code stringlengths 6 250k | repo_name stringlengths 5 70 | path stringlengths 3 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 6 250k |
|---|---|---|---|---|---|
/* Copyright (C) 2005-2015 Free Software Foundation, Inc.
Contributed by Richard Henderson <rth@redhat.com>.
This file is part of the GNU Offloading and Multi Processing Library
(libgomp).
Libgomp is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public Licen... | stlankes/HermitCore | usr/libgomp/ordered.c | C | bsd-3-clause | 8,440 |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 1994 - 2000, 2006 Ralf Baechle
* Copyright (C) 1999, 2000 Silicon Graphics, In... | EAVR/EV3.14 | ev3sources/extra/linux-03.20.00.13/arch/mips/kernel/signal32.c | C | gpl-2.0 | 22,480 |
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
#include <asm/io.h>
#include <linux/fs.h>
#include <linux/semaphore.h>
#include <linux/cdev.h>
#include <linux/kfifo.h>
#include <linux/wakelock.h>
#include <linux/wait.h>
#include <linux/platf... | visi0nary/mediatek | mt6732/mediatek/kernel/drivers/emd_ctl/emd_ctl_chr.c | C | gpl-2.0 | 25,690 |
/*
* Scsi Host Layer for MPT (Message Passing Technology) based controllers
*
* This code is based on drivers/scsi/mpt2sas/mpt2_scsih.c
* Copyright (C) 2007-2012 LSI Corporation
* (mailto:DL-MPTFusionLinux@lsi.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms o... | rahulkodinya/drm | drivers/scsi/mpt2sas/mpt2sas_scsih.c | C | gpl-2.0 | 247,052 |
/*
* Lossless video DSP utils
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later versi... | CTSRD-SOAAP/chromium-42.0.2311.135 | third_party/ffmpeg/libavcodec/x86/lossless_videodsp_init.c | C | bsd-3-clause | 2,705 |
// SPDX-License-Identifier: GPL-2.0
/*
* Shared Memory Communications over RDMA (SMC-R) and RoCE
*
* Manage send buffer.
* Producer:
* Copy user space data into send buffer, if send buffer space available.
* Consumer:
* Trigger RDMA write into RMBE of peer and send CDC, if RMBE space available.
*
* Copyright I... | koct9i/linux | net/smc/smc_tx.c | C | gpl-2.0 | 18,820 |
/* lzo1c_cc.c -- LZO1C compression internal entry point
This file is part of the LZO real-time data compression library.
Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
Copyright (... | walkerka/opentoonz | thirdparty/lzo/2.03/src/lzo1c_cc.c | C | bsd-3-clause | 4,894 |
/*****************************************************************************/
/*
* devio.c -- User space communication with USB devices.
*
* Copyright (C) 1999-2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
*
* This program is free software; you can redistribute it and/or modify
* it under t... | WukLab/Hotpot | hotpot-kernel/drivers/usb/core/devio.c | C | gpl-2.0 | 56,575 |
/*
* libata-scsi.c - helper library for ATA
*
* Maintained by: Tejun Heo <tj@kernel.org>
* Please ALWAYS copy linux-ide@vger.kernel.org
* on emails.
*
* Copyright 2003-2004 Red Hat, Inc. All rights reserved.
* Copyright 2003-2004 Jeff Garzik
*
*
* This program is free software; you can r... | jeremytrimble/adi-linux | drivers/ata/libata-scsi.c | C | gpl-2.0 | 108,444 |
/*
* Copyright (C) 2013 Red Hat
* Author: Rob Clark <robdclark@gmail.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it ... | brammittendorff/PF_RING | linux-3.16.7-ckt9/drivers/gpu/drm/msm/msm_iommu.c | C | lgpl-2.1 | 4,023 |
/* go-getgoroot.c -- getgoroot function for runtime package.
Copyright 2010 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
#include <stdlib.h>
#include "runtime.h"
String getgoroot (void) __asm__ (GOSYM_PREFIX "runt... | atgreen/gcc | libgo/runtime/go-getgoroot.c | C | gpl-2.0 | 546 |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2005 Silicon Graphics, Inc. All Rights Reserved.
*/
/*
* This file contains a module version of the ioc3 serial driver. ... | mkvdv/au-linux-kernel-autumn-2017 | linux/drivers/tty/serial/ioc3_serial.c | C | gpl-3.0 | 58,786 |
#include "foo/chain_dep_one.h"
int main() {
int *p = func_do_something();
*p += 1;
return *p;
}
| raviagarwal7/buck | test/com/facebook/buck/cxx/testdata/infertest/foo/top_chain.c | C | apache-2.0 | 109 |
/*
* linux/ipc/msgutil.c
* Copyright (C) 1999, 2004 Manfred Spraul
*
* This file is released under GNU General Public Licence version 2 or
* (at your option) any later version.
*
* See the file COPYING for more details.
*/
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/security.h>
#include... | infraredbg/Lenovo_A820_kernel_kk | kernel/ipc/msgutil.c | C | gpl-2.0 | 2,804 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* IIO ADC driver for NXP LPC18xx ADC
*
* Copyright (C) 2016 Joachim Eastwood <manabian@gmail.com>
*
* UNSUPPORTED hardware features:
* - Hardware triggers
* - Burst mode
* - Interrupts
* - DMA
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/iio... | mpe/powerpc | drivers/iio/adc/lpc18xx_adc.c | C | gpl-2.0 | 5,336 |
/*
* usb-serial driver for Quatech SSU-100
*
* based on ftdi_sio.c and the original serqt_usb.c from Quatech
*
*/
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/tty.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/serial.h>
#include <linux/us... | kmihelich/linux-espressobin | drivers/usb/serial/ssu100.c | C | gpl-2.0 | 13,980 |
/*
* fs/nfs/idmap.c
*
* UID and GID to name mapping for clients.
*
* Copyright (c) 2002 The Regents of the University of Michigan.
* All rights reserved.
*
* Marius Aamodt Eriksen <marius@umich.edu>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... | Savaged-Zen/Savaged-Zen-Inc | fs/nfs/idmap.c | C | gpl-2.0 | 17,785 |
#include <gsl/gsl_math.h>
#include <gsl/gsl_cblas.h>
#include "cblas.h"
float
cblas_scnrm2 (const int N, const void *X, const int incX)
{
#define BASE float
#include "source_nrm2_c.h"
#undef BASE
}
| vankampen92/islandPLUS | src/lib_gsl/cblas/scnrm2.c | C | gpl-3.0 | 199 |
/* linux/arch/arm/plat-s3c64xx/dma.c
*
* Copyright 2009 Openmoko, Inc.
* Copyright 2009 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
* http://armlinux.simtec.co.uk/
*
* S3C64XX DMA core
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public... | pombredanne/bcm11351 | arch/arm/mach-s3c64xx/dma.c | C | gpl-2.0 | 16,705 |
/*
* Copyright (C) 2008 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your opti... | verybigdog/gst-plugins-bad | sys/wasapi/gstwasapi.c | C | gpl-2.0 | 1,370 |
/**
* dwc3_otg.c - DesignWare USB3 DRD Controller OTG
*
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Sof... | jameshilliard/m8-3.4.0-gb1fa77f | drivers/usb/dwc3/dwc3_otg.c | C | gpl-2.0 | 30,186 |
/*
* drm gem CMA (contiguous memory allocator) helper functions
*
* Copyright (C) 2012 Sascha Hauer, Pengutronix
*
* Based on Samsung Exynos code
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Genera... | eabatalov/au-linux-kernel-autumn-2017 | linux/drivers/gpu/drm/drm_gem_cma_helper.c | C | gpl-3.0 | 17,787 |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | PerilousApricot/lstore | vendor/apr-util-accre/dbd/apr_dbd_pgsql.c | C | apache-2.0 | 39,809 |
/*
* arch/arm/mach-mv78xx0/common.c
*
* Core functions for Marvell MV78xx0 SoCs
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#include <linux/kernel.h>
#include <linux... | infraredbg/Lenovo_A820_kernel_kk | kernel/arch/arm/mach-mv78xx0/common.c | C | gpl-2.0 | 10,457 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright 2007, Google Inc.
* Copyright 2012, Intel Inc.
*
* based on omap.c driver, which was
* Copyright (C) 2004 Nokia Corporation
* Written by Tuukka Tikkanen and Juha Yrjölä <juha.yrjola@nokia.com>
* Misc hacks here and there by Tony Lindgren <tony@atomide... | CSE3320/kernel-code | linux-5.8/drivers/mmc/host/android-goldfish.c | C | gpl-2.0 | 13,343 |
/*
* Copyright (C) 2011 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITH... | fear130986/GT-I9195_EUR_KK_Opensource_kernel | arch/arm/mach-msm/board-s5000-tsp_msm8930.c | C | gpl-2.0 | 10,598 |
/* This caused an ICE on s390x due to a reload bug handling
commutative constraints. */
/* { dg-do compile } */
/* { dg-options "-O1" } */
struct line_map
{
unsigned start_location;
unsigned ordinary;
};
unsigned
linemap_resolve_location (struct line_map **loc_map);
unsigned
linemap_position_for_loc_and_offs... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.target/s390/pr66306.c | C | gpl-3.0 | 571 |
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-cddce1" } */
int
fn1 (int x)
{
return ~x | x;
}
int
fn2 (int x)
{
return x | ~x;
}
unsigned int
fn3 (unsigned int x)
{
return ~x | x;
}
unsigned int
fn4 (unsigned int x)
{
return x | ~x;
}
int
fn5 (int x)
{
return ~x | (unsigned) x;
}
int
fn6 (int ... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.dg/fold-ior-2.c | C | gpl-3.0 | 519 |
/*
* omap-mcbsp.c -- OMAP ALSA SoC DAI driver using McBSP port
*
* Copyright (C) 2008 Nokia Corporation
*
* Contact: Jarkko Nikula <jarkko.nikula@bitmer.com>
* Peter Ujfalusi <peter.ujfalusi@ti.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the ... | NebulaOy/linux | sound/soc/omap/omap-mcbsp.c | C | gpl-2.0 | 22,405 |
#include "util.h"
#include <sys/types.h>
#include <byteswap.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <linux/list.h>
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <sys/utsname.h>
#include "evlist.h"
#include "evsel.h"
#include "header.h"
#include "../perf.h"
#include "trace-... | fritsch/linux | tools/perf/util/header.c | C | gpl-2.0 | 68,135 |
/*
* exynos_adc.c - Support for ADC in EXYNOS SoCs
*
* 8 ~ 10 channel, 10/12-bit ADC
*
* Copyright (C) 2013 Naveen Krishna Chatradhi <ch.naveen@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* th... | garyvan/openwrt | linux-3.10.20-rt14/drivers/iio/adc/exynos_adc.c | C | gpl-2.0 | 11,167 |
/*
* HID Sensors Driver
* Copyright (c) 2012, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope ... | andyhui/linux-kernel-3.12.17 | drivers/iio/magnetometer/hid-sensor-magn-3d.c | C | gpl-2.0 | 11,147 |
/*
* Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/... | zzpu/linux-stack | arch/powerpc/mm/pgtable-book3s64.c | C | gpl-2.0 | 3,691 |
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | SOKP/kernel_moto_shamu | sound/soc/msm/qdsp6v2/msm-compr-q6-v2.c | C | gpl-2.0 | 43,157 |
//=============================================================================
// File : sharp_bb.c
//
// Description:
//
// Revision History:
//
// Version Date Author Description of Changes
//-----------------------------------------------------------------------------
// 1.... | widz4rd/WIDzard-A860S | drivers/dmb/isdbt/sharp/ntv/nmi_test.c | C | gpl-2.0 | 10,695 |
/*
* Xiph RTP Protocols
* Copyright (c) 2009 Colin McQuillian
* Copyright (c) 2010 Josh Allmann
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; eithe... | ashishlal/pjproject-2.0.1 | third_party/ffmpeg/libavformat/rtpdec_xiph.c | C | gpl-2.0 | 13,146 |
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
/*******************************************************************************
*
* Module Name: dbtest - Various debug-related tests
*
******************************************************************************/
#include <acpi/acpi.h>
#include "accommon.h"
#... | CSE3320/kernel-code | linux-5.8/drivers/acpi/acpica/dbtest.c | C | gpl-2.0 | 29,348 |
int __attribute__((noinline)) test2(int x[1000])
{
int i;
return x[12];
}
int __attribute__((noinline)) test1()
{
int x[1000], i;
for (i = 0; i < 1000; i++)
x[i] = i;
return test2(x);
}
int main()
{
__transaction_atomic {
if (test1() !=0)
__transaction_cancel;
}
return 0;
}
| atgreen/gcc | libitm/testsuite/libitm.c/stackundo.c | C | gpl-2.0 | 308 |
/* linux/arch/arm/plat-s3c/dev-hsmmc2.c
*
* Copyright (c) 2009 Samsung Electronics
* Copyright (c) 2009 Maurus Cuelenaere
*
* Based on arch/arm/plat-s3c/dev-hsmmc1.c
* original file Copyright (c) 2008 Simtec Electronics
*
* S3C series device definition for hsmmc device 2
*
* This program is free software; you... | JackpotClavin/android_kernel_samsung_venturi | arch/arm/plat-samsung/dev-hsmmc2.c | C | gpl-2.0 | 2,313 |
/*
* Copyright (C) ST-Ericsson SA 2011
*
* Display output device driver
*
* Author: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com>
* for ST-Ericsson.
*
* License terms: GNU General Public License (GPL), version 2.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <li... | honeyx/S3mini_golden_kernel | drivers/misc/dispdev/dispdev.c | C | gpl-2.0 | 14,586 |
/*******************************************************************
* This file is part of the Emulex Linux Device Driver for *
* Fibre Channel Host Bus Adapters. *
* Copyright (C) 2004-2012 Emulex. All rights reserved. *
* EMULEX and SLI are trademarks of Emulex. ... | giantdisaster/btrfs | drivers/scsi/lpfc/lpfc_scsi.c | C | gpl-2.0 | 156,899 |
/******************************************************************************
*
* Copyright(c) 2009-2012 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundati... | eabatalov/au-linux-kernel-autumn-2017 | linux/drivers/net/wireless/realtek/rtlwifi/rc.c | C | gpl-3.0 | 8,638 |
/*
* Copyright (C) 2015, Samsung Electronics Co. Ltd. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any... | glewarne/S6-UniBase | drivers/sensorhub/brcm/ssp_sensorhub.c | C | gpl-2.0 | 19,097 |
/* bnx2.c: Broadcom NX2 network driver.
*
* Copyright (c) 2004-2010 Broadcom Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*
* Written by: Michael Chan (mchan@broadcom.c... | DerArtem/android-tegra-2.6.36-honeycomb-folio-nvidia | drivers/net/bnx2.c | C | gpl-2.0 | 212,983 |
/******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | rpaleari/qtrace | src/roms/SLOF/board-js2x/rtas/rtas_pci.c | C | gpl-2.0 | 3,111 |
/*
Copyright (C) 2010 Willow Garage <http://www.willowgarage.com>
Copyright (C) 2009 - 2010 Ivo van Doorn <IvDoorn@gmail.com>
Copyright (C) 2009 Mattias Nissler <mattias.nissler@gmx.de>
Copyright (C) 2009 Felix Fietkau <nbd@openwrt.org>
Copyright (C) 2009 Xose Vazquez Perez <xose.vazquez@gmail.com>
Copyright (C) ... | kbc-developers/android_kernel_semc_xperia2011 | ti_wlan/compat-wireless-wl12xx/drivers/net/wireless/rt2x00/rt2800usb.c | C | gpl-2.0 | 32,092 |
/*
* LCD panel driver for Sharp LS037V7DW01
*
* Copyright (C) 2008 Nokia Corporation
* Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software F... | EAVR/EV3.14 | ev3sources/extra/linux-03.20.00.13/drivers/video/omap2/displays/panel-sharp-ls037v7dw01.c | C | gpl-2.0 | 3,616 |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
*
* Contact Information: wlanfae <wlanfae@realtek.com>
*/
#include "rtllib.h"
#include <linux/etherdevice.h>
#include "rtl819x_TS.h"
static void TsSetupTimeOut(struct timer_list *unused)
{
}
static void TsI... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/drivers/staging/rtl8192e/rtl819x_TSProc.c | C | gpl-2.0 | 14,122 |
/*
* linux/kernel/time/tick-sched.c
*
* Copyright(C) 2005-2006, Thomas Gleixner <tglx@linutronix.de>
* Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar
* Copyright(C) 2006-2007 Timesys Corp., Thomas Gleixner
*
* No idle tick implementation for low and high resolution timers
*
* Started by: Thomas Glei... | maoze/linux-3-14-for-arm | linux-3.14/kernel/time/tick-sched.c | C | gpl-3.0 | 29,816 |
/*
* jcprepct.c
*
* Copyright (C) 1994, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains the compression preprocessing controller.
* This controller manages the color conversion, downs... | ioquake/jedi-outcast | utils/tgajpg/jcprepct.c | C | gpl-2.0 | 12,772 |
// SPDX-License-Identifier: GPL-2.0
/*
* driver: reading from and writing to system console on S/390 via SCLP
*
* Copyright IBM Corp. 1999, 2009
*
* Author(s): Martin Peschke <mpeschke@de.ibm.com>
* Martin Schwidefsky <schwidefsky@de.ibm.com>
*/
#include <linux/kmod.h>
#include <linux/types.h>
#include <l... | CSE3320/kernel-code | linux-5.8/drivers/s390/char/sclp_rw.c | C | gpl-2.0 | 12,378 |
/*
* Copyright (C) 2013 INRIA
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief Float test application
*
* @author Oliver Hahm <olive... | kb2ma/RIOT | tests/float/main.c | C | lgpl-2.1 | 647 |
/*
dmx3191d.c - driver for the Domex DMX3191D SCSI card.
Copyright (C) 2000 by Massimo Piccioni <dafastidio@libero.it>
Portions Copyright (C) 2004 by Christoph Hellwig <hch@lst.de>
Based on the generic NCR5380 driver by Drew Eckhardt et al.
This program is free software; you can redistribute it an... | mkvdv/au-linux-kernel-autumn-2017 | linux/drivers/scsi/dmx3191d.c | C | gpl-3.0 | 4,351 |
/*
* Board support file for Nokia RM-680.
*
* Copyright (C) 2010 Nokia
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/io.h>
#include <linux/i2c.h>
#inclu... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/arch/arm/mach-omap2/board-rm680.c | C | apache-2.0 | 3,788 |
/*
* fs/f2fs/namei.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <... | mdmower/android_kernel_htc_msm8960 | fs/f2fs/namei.c | C | gpl-2.0 | 20,280 |
/*
* KFR2R09 board support code
*
* Copyright (C) 2009 Magnus Damm
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/init.h>
#include <linux/platform_device.h>
#include <l... | geminy/aidear | oss/linux/linux-4.7/arch/sh/boards/mach-kfr2r09/setup.c | C | gpl-3.0 | 16,113 |
/*
* Copyright (c) 2013, Mellanox Technologies inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of th... | mericon/Xp_Kernel_LGH850 | virt/drivers/net/ethernet/mellanox/mlx5/core/mad.c | C | gpl-2.0 | 2,378 |
// SPDX-License-Identifier: GPL-2.0
#include <linux/jhash.h>
#include <linux/netfilter.h>
#include <linux/rcupdate.h>
#include <linux/rhashtable.h>
#include <linux/vmalloc.h>
#include <net/genetlink.h>
#include <net/ila.h>
#include <net/netns/generic.h>
#include <uapi/linux/genetlink.h>
#include "ila.h"
struct ila_xla... | koct9i/linux | net/ipv6/ila/ila_xlat.c | C | gpl-2.0 | 13,982 |
/*
* Copyright 2007 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Compatibility file for Linux wireless for kernels 2.6.24.... | kbc-developers/android_kernel_semc_xperia2011 | ti_wlan/compat-wireless-wl12xx/compat/compat-2.6.24.c | C | gpl-2.0 | 4,492 |
/* kernel/power/wakelock.c
*
* Copyright (C) 2005-2008 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the ... | jerem/linux-rk3066 | kernel/power/wakelock.c | C | gpl-2.0 | 20,898 |
/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope t... | thecubed/android_kernel_lge_geefhd | drivers/platform/msm/qpnp-pwm.c | C | gpl-2.0 | 44,573 |
/*
* OMAP2 Power Management Routines
*
* Copyright (C) 2005 Texas Instruments, Inc.
* Copyright (C) 2006-2008 Nokia Corporation
*
* Written by:
* Richard Woodruff <r-woodruff2@ti.com>
* Tony Lindgren
* Juha Yrjola
* Amit Kucheria <amit.kucheria@nokia.com>
* Igor Stoppa <igor.stoppa@nokia.com>
*
* Based on ... | AiJiaZone/linux-4.0 | virt/arch/arm/mach-omap2/pm24xx.c | C | gpl-2.0 | 8,162 |
/*
* AMD 10Gb Ethernet driver
*
* This file is available to you under your choice of the following two
* licenses:
*
* License 1: GPLv2
*
* Copyright (c) 2014-2016 Advanced Micro Devices, Inc.
*
* This file is free software; you may copy, redistribute and/or modify
* it under the terms of the GNU General Pub... | geminy/aidear | oss/linux/linux-4.7/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | C | gpl-3.0 | 20,901 |
/*
* Board support file for Nokia RM-680/696.
*
* Copyright (C) 2010 Nokia
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/io.h>
#include <linux/i2c.h>
#i... | talnoah/android_kernel_htc_dlx | virt/arch/arm/mach-omap2/board-rm680.c | C | gpl-2.0 | 4,180 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* irq_comm.c: Common API for in kernel interrupt controller
* Copyright (c) 2007, Intel Corporation.
*
* Authors:
* Yaozu (Eddie) Dong <Eddie.dong@intel.com>
*
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*/
#include <linux/kvm_host.h>
#include <linux/slab... | rperier/linux | arch/x86/kvm/irq_comm.c | C | gpl-2.0 | 11,141 |
/**************************************************************************//**
* @file system_ARMCM3.c
* @brief CMSIS Device System Source File for
* ARMCM3 Device Series
* @version V1.08
* @date 23. November 2012
*
* @note
*
*****************************************************... | Stanford-BDML/super-scamp | vendor/CMSIS/CMSIS/DSP_Lib/Examples/arm_variance_example/ARM/RTE/Device/ARMCM3/system_ARMCM3.c | C | gpl-3.0 | 3,281 |
/*
* CCM: Counter with CBC-MAC
*
* (C) Copyright IBM Corp. 2007 - Joy Latten <latten@us.ibm.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at ... | JijonHyuni/HyperKernel-JB | virt/crypto/ccm.c | C | gpl-2.0 | 22,059 |
/* linux/arch/arm/mach-s3c2440/mach-osiris.c
*
* Copyright (c) 2005-2008 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <ben@simtec.co.uk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by t... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/arch/arm/mach-s3c24xx/mach-osiris.c | C | gpl-2.0 | 10,363 |
/*
* Copyright 2011 Freescale Semiconductor, Inc
*
* Freescale Integrated Flash Controller
*
* Author: Dipen Dudhat <Dipen.Dudhat@freescale.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Softwar... | AiJiaZone/linux-4.0 | virt/drivers/memory/fsl_ifc.c | C | gpl-2.0 | 9,139 |
/*
* V4L2 Driver for SuperH Mobile CEU interface
*
* Copyright (C) 2008 Magnus Damm
*
* Based on V4L2 Driver for PXA camera host - "pxa_camera.c",
*
* Copyright (C) 2006, Sascha Hauer, Pengutronix
* Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
*
* This program is free software; you can re... | AiJiaZone/linux-4.0 | virt/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c | C | gpl-2.0 | 57,025 |
/*
* linux/fs/nfs/file.c
*
* Copyright (C) 1992 Rick Sladkey
*
* Changes Copyright (C) 1994 by Florian La Roche
* - Do not copy data too often around in the kernel.
* - In nfs_file_read the return value of kmalloc wasn't checked.
* - Put in a better version of read look-ahead buffering. Original idea
... | mbrugg/MC-EWIO-KERNEL-ORG | fs/nfs/file.c | C | gpl-2.0 | 24,488 |
/*
* pcmad.c
* Hardware driver for Winsystems PCM-A/D12 and PCM-A/D16
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 2000,2001 David A. Schleef <ds@schleef.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Li... | mericon/Xp_Kernel_LGH850 | virt/drivers/staging/comedi/drivers/pcmad.c | C | gpl-2.0 | 4,044 |
/*
* Cell MIC driver for ECC counting
*
* Copyright 2007 Benjamin Herrenschmidt, IBM Corp.
* <benh@kernel.crashing.org>
*
* This file may be distributed under the terms of the
* GNU General Public License.
*/
#undef DEBUG
#include <linux/edac.h>
#include <linux/module.h>
#include <linux/init.h>
... | mericon/Xp_Kernel_LGH850 | virt/drivers/edac/cell_edac.c | C | gpl-2.0 | 7,930 |
/*
* Misc utility routines used by kernel or app-level.
* Contents are wifi-specific, used by any kernel or app-level
* software that might want wifi things as it grows.
*
* Copyright (C) 1999-2011, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement... | Xmister/linux-sunxi | modules/wifi/bcm40183/5.90.125.95.3/open-src/src/shared/bcmwifi.c | C | gpl-2.0 | 5,831 |
/*
* linux/ipc/util.c
* Copyright (C) 1992 Krishna Balasubramanian
*
* Sep 1997 - Call suser() last after "normal" permission checks so we
* get BSD style process accounting right.
* Occurs in several places in the IPC code.
* Chris Evans, <chris@ferret.lmh.ox.ac.uk>
* Nov 1999 ... | andrea2107/android_kernel_xiaomi_hermes | ipc/util.c | C | gpl-2.0 | 23,117 |
/* PR rtl-optimization/48381 */
struct S { int s; } t;
int baz (void);
void fn (int, unsigned, int, unsigned, char);
static char
foo (signed x, unsigned y)
{
return x < 0 || y >= 32 ? 1 : x >> y;
}
long long
bar (long long x, long y)
{
return y < 0 ? 1LL : x - y;
}
void
test (int x, unsigned y, unsigned z, cha... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.c-torture/compile/pr48381.c | C | gpl-3.0 | 406 |
/*
* Copyright © 2000 SuSE, Inc.
* Copyright © 2007, 2009 Red Hat, Inc.
* Copyright © 2009 Soren Sandmann
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies ... | zztiswb116/WinObjC | deps/3rdparty/pixmanlegacy/pixman/pixman-solid-fill.c | C | mit | 3,473 |
#include <linux/kernel.h>
#include <linux/gcd.h>
#include <linux/export.h>
#include <linux/lcm.h>
/* Lowest common multiple */
unsigned long lcm(unsigned long a, unsigned long b)
{
if (a && b)
return (a * b) / gcd(a, b);
else if (b)
return b;
return a;
}
EXPORT_SYMBOL_GPL(lcm);
| mericon/Xp_Kernel_LGH850 | virt/lib/lcm.c | C | gpl-2.0 | 288 |
/*
* S390 version
* Copyright IBM Corp. 1999
* Author(s): Hartmut Penner (hp@de.ibm.com)
*
* Derived from "arch/i386/mm/init.c"
* Copyright (C) 1995 Linus Torvalds
*/
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#incl... | patjak/linux | arch/s390/mm/init.c | C | gpl-2.0 | 5,850 |
// SPDX-License-Identifier: GPL-2.0
/*
* (C) 2001 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
/*
* Linux VFS extended attribute operations.
*/
#include "protocol.h"
#include "orangefs-kernel.h"
#include "orangefs-bufmap.h"
#include <linux/posix_acl_xattr.h>
#incl... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/fs/orangefs/xattr.c | C | gpl-2.0 | 12,684 |
/*
* Intel Management Engine Interface (Intel MEI) Linux driver
* Copyright (c) 2015, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* ... | geminy/aidear | oss/linux/linux-4.7/drivers/watchdog/mei_wdt.c | C | gpl-3.0 | 16,267 |
/* PR c/43385 */
extern void abort (void);
int e;
__attribute__((noinline)) void
foo (int x, int y)
{
if (__builtin_expect (x, 0) && y != 0)
e++;
}
__attribute__((noinline)) int
bar (int x, int y)
{
if (__builtin_expect (x, 0) && y != 0)
return 1;
else
return 0;
}
int
main (void)
{
int z = 0;
... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.c-torture/execute/pr43385.c | C | gpl-2.0 | 886 |
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */
#define CHECK_H "avx-check.h"
#define TEST avx_test
#include "sse2-cvtsd2ss-1.c"
| SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.target/i386/avx-vcvtsd2ss-1.c | C | gpl-2.0 | 178 |
/*
* linux/fs/namespace.c
*
* (C) Copyright Al Viro 2000, 2001
* Released under GPL v2.
*
* Based on code from fs/super.c, copyright Linus Torvalds and others.
* Heavily rewritten.
*/
#include <linux/syscalls.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/percp... | JijonHyuni/HyperKernel-JB | virt/fs/namespace.c | C | gpl-2.0 | 66,557 |
// SPDX-License-Identifier: GPL-2.0-or-later
/* exynos_drm_vidi.c
*
* Copyright (C) 2012 Samsung Electronics Co.Ltd
* Authors:
* Inki Dae <inki.dae@samsung.com>
*/
#include <linux/component.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/timer.h>
#include <drm/drm_atomic_helper.h>... | CSE3320/kernel-code | linux-5.8/drivers/gpu/drm/exynos/exynos_drm_vidi.c | C | gpl-2.0 | 12,485 |
/*
* IBM eServer eHCA Infiniband device driver for Linux on POWER
*
* SQP functions
*
* Authors: Khadija Souissi <souissi@de.ibm.com>
* Heiko J Schick <schickhj@de.ibm.com>
*
* Copyright (c) 2005 IBM Corporation
*
* All rights reserved.
*
* This source code is distributed under a dual licens... | talnoah/android_kernel_htc_dlx | virt/drivers/infiniband/hw/ehca/ehca_sqp.c | C | gpl-2.0 | 7,028 |
/* Test for warnings for missing format attributes. Don't warn if no
relevant parameters for a format attribute; see c/1017. */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -Wmissing-format-attribute" } */
#include "format.h"
void
foo (int i, ...)
{
va_list a... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.dg/format/miss-2.c | C | gpl-2.0 | 457 |
/*
*
Copyright (c) Eicon Networks, 2000.
*
This source file is supplied for the use with
Eicon Networks range of DIVA Server Adapters.
*
Eicon File Revision : 1.9
*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published b... | JijonHyuni/HyperKernel-JB | virt/drivers/isdn/hardware/eicon/maintidi.c | C | gpl-2.0 | 68,416 |
/*
* Architecture-specific kernel symbols
*/
#ifdef CONFIG_VIRTUAL_MEM_MAP
#include <linux/compiler.h>
#include <linux/export.h>
#include <linux/bootmem.h>
EXPORT_SYMBOL(min_low_pfn); /* defined by bootmem.c, but not exported by generic code */
EXPORT_SYMBOL(max_low_pfn); /* defined by bootmem.c, but not exported by... | dperezde/little-penguin | linux/arch/ia64/kernel/ia64_ksyms.c | C | gpl-2.0 | 344 |
/* Area: ffi_call, closure_call
Purpose: Test long doubles passed in variable argument lists.
Limitations: none.
PR: none.
Originator: Blake Chaffin 6/6/2007 */
/* { dg-do run { xfail strongarm*-*-* xscale*-*-* } } */
/* { dg-output "" { xfail avr32*-*-* x86_64-*-mingw* } } */
/* { dg-output "" { xfai... | eprislac/guard-yard | vendor/ruby/2.3.0/gems/ffi-1.9.8/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c | C | mit | 1,551 |
/*
* Copyright (C) 2007 Google, Inc.
* Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*... | keeeener/nicki | kernel/arch/arm/mach-msm/timer.c | C | gpl-2.0 | 32,618 |
/*
* net/dsa/slave.c - Slave device handling
* Copyright (c) 2008-2009 Marvell Semiconductor
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at yo... | JijonHyuni/HyperKernel-JB | virt/net/dsa/slave.c | C | gpl-2.0 | 10,433 |
/* CopyRight (C) 2007 Qualcomm Inc. All Rights Reserved.
*
*
* This file is part of Express Card USB Driver
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/usb.h>
#include "ft1000_usb.h"
... | publicloudapp/csrutil | linux-4.3/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c | C | mit | 40,085 |
/*
* Copyright 2011 Cisco Systems, Inc. All rights reserved.
*
* This program is free software; you may redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WAR... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/net/ethernet/cisco/enic/enic_pp.c | C | apache-2.0 | 9,159 |
foo (a, b)
{
return a % (1 << b);
}
| SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.c-torture/unsorted/bc.c | C | gpl-2.0 | 38 |
/*
* Cobalt time initialization.
*
* Copyright (C) 2007 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License,... | felixhaedicke/nst-kernel | src/arch/mips/cobalt/time.c | C | gpl-2.0 | 1,481 |
/*
* omap_hwmod_2xxx_interconnect_data.c - common interconnect data for OMAP2xxx
*
* Copyright (C) 2009-2011 Nokia Corporation
* Paul Walmsley
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Soft... | prasidh09/cse506 | unionfs-3.10.y/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c | C | gpl-2.0 | 10,369 |
/*
* Copyright (C) 2004 Florian Schirmer <jolt@tuxbox.org>
* Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either ver... | go2ev-devteam/Gplus_2159_0801 | openplatform/sdk/os/kernel-2.6.32/arch/mips/bcm47xx/prom.c | C | gpl-2.0 | 4,571 |
/*
* BCMSDH interface glue
* implement bcmsdh API for SDIOH driver
*
* Copyright (C) 1999-2012, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General P... | LeJay/android_kernel_samsung_jactiveltexx_stock | drivers/net/wireless/bcmdhd/bcmsdh.c | C | gpl-2.0 | 18,889 |
/*
* ImgTec IR Decoder setup for JVC protocol.
*
* Copyright 2012-2014 Imagination Technologies Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or ... | mericon/Xp_Kernel_LGH850 | virt/drivers/media/rc/img-ir/img-ir-jvc.c | C | gpl-2.0 | 2,074 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.