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
/* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * See file CREDITS for list of people who contributed to this * project. * * 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 S...
daydaygit/flrelse
uboot1.1.6/board/rbc823/kbd.c
C
gpl-3.0
6,098
/* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Released under the terms of the GNU GPL v2.0. */ #include <ctype.h> #include <stdlib.h> #include <string.h> #include <regex.h> #include <sys/utsname.h> #include "lkc.h" struct symbol symbol_yes = { .name = "y", .curr = { "y", yes }, .flags = SYMBOL...
knone1/android_kernel_asus_moorefield-backup
scripts/kconfig/symbol.c
C
gpl-2.0
28,151
/* * Copyright (C) 2010-2013 Motorola Mobility LLC * * 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 will be useful, * but W...
faux123/kernel-msm
drivers/misc/stm401/stm401_flash.c
C
gpl-2.0
18,830
/* * mt65xx pinctrl driver based on Allwinner A1X pinctrl driver. * Copyright (c) 2014 MediaTek Inc. * Author: Hongzhou.Yang <hongzhou.yang@mediatek.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...
AiJiaZone/linux-4.0
virt/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
C
gpl-2.0
37,050
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2010 Google, Inc. */ #include <linux/delay.h> #include <linux/dma-mapping.h> #include <linux/err.h> #include <linux/module.h> #include <linux/init.h> #include <linux/iopoll.h> #include <linux/platform_device.h> #include <linux/clk.h> #include <linux/io.h> #...
rperier/linux
drivers/mmc/host/sdhci-tegra.c
C
gpl-2.0
54,792
/* { dg-require-effective-target vect_int } */ #include <stdarg.h> #include "../../tree-vect.h" #define N 8 int main1 () { int i; unsigned int out[N*8], a0, a1, a2, a3, a4, a5, a6, a7, b1, b0, b2, b3, b4, b5, b6, b7; unsigned int in[N*8] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,2...
selmentdev/selment-toolchain
source/gcc-latest/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-slp-12.c
C
gpl-3.0
2,981
#include <linux/rcupdate.h> #include <linux/spinlock.h> #include <linux/jiffies.h> #include <linux/module.h> #include <linux/cache.h> #include <linux/slab.h> #include <linux/init.h> #include <linux/tcp.h> #include <linux/hash.h> #include <linux/tcp_metrics.h> #include <linux/vmalloc.h> #include <net/inet_connection_so...
mikedlowis-prototypes/albase
source/kernel/net/ipv4/tcp_metrics.c
C
bsd-2-clause
31,133
/* * Copyright (C) 2016 NVIDIA Corporation * * 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/reset-controller.h> #include <soc/tegra/bpmp.h> #include <soc/te...
mkvdv/au-linux-kernel-autumn-2017
linux/drivers/reset/tegra/reset-bpmp.c
C
gpl-3.0
1,916
/* * This is the linux wireless configuration interface. * * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/if.h> #include <linux/module.h> #include <linux/err.h> #include <linux/list.h> #include <linux/slab.h> #include <linux/nl80211....
ptmr3/GalaxyS4_Kernel
net/wireless/core.c
C
gpl-2.0
26,910
// SPDX-License-Identifier: GPL-2.0-only /* * trimslice.c - TrimSlice machine ASoC driver * * Copyright (C) 2011 - CompuLab, Ltd. * Author: Mike Rapoport <mike@compulab.co.il> * * Based on code copyright/by: * Author: Stephen Warren <swarren@nvidia.com> * Copyright (C) 2010-2011 - NVIDIA, Inc. */ #include <li...
c0d3z3r0/linux-rockchip
sound/soc/tegra/trimslice.c
C
gpl-2.0
4,936
/* * kernel/workqueue.c - generic async execution with shared worker pool * * Copyright (C) 2002 Ingo Molnar * * Derived from the taskqueue/keventd code by: * David Woodhouse <dwmw2@infradead.org> * Andrew Morton * Kai Petzke <wpp@marie.physik.tu-berlin.de> * Theodore Ts'o <tytso@mit.edu> *...
puppies/fl2440
linux-3.10.33/kernel/workqueue.c
C
gpl-2.0
142,571
/* * arch/sh/kernel/signal_64.c * * Copyright (C) 2000, 2001 Paolo Alberelli * Copyright (C) 2003 - 2008 Paul Mundt * Copyright (C) 2004 Richard Curnow * * 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 * fo...
JijonHyuni/HyperKernel-JB
virt/arch/sh/kernel/signal_64.c
C
gpl-2.0
22,028
// SPDX-License-Identifier: MIT /* * Copyright 2018 Noralf Trønnes * Copyright (c) 2006-2009 Red Hat Inc. * Copyright (c) 2006-2008 Intel Corporation * Jesse Barnes <jesse.barnes@intel.com> * Copyright (c) 2007 Dave Airlie <airlied@linux.ie> */ #include <linux/module.h> #include <linux/mutex.h> #include <linux...
GuillaumeSeren/linux
drivers/gpu/drm/drm_client_modeset.c
C
gpl-2.0
32,829
/* * Procfs interface for the Zorro bus. * * Copyright (C) 1998-2003 Geert Uytterhoeven * * Heavily based on the procfs interface for the PCI bus, which is * * Copyright (C) 1997, 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz> */ #include <linux/types.h> #include <linux/zorro.h> #include <linux/proc_fs.h> #in...
CaptainThrowback/kernel_htc_m8gpe
drivers/zorro/proc.c
C
gpl-2.0
3,824
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * PF_INET protocol family socket handler. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
haiphamspkt/haiphamkernel
net/ipv4/af_inet.c
C
gpl-2.0
43,738
// SPDX-License-Identifier: GPL-2.0 /* * Wireless USB Host Controller * Security support: encryption enablement, etc * * Copyright (C) 2006 Intel Corporation * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> * * FIXME: docs */ #include <linux/types.h> #include <linux/slab.h> #include <linux/usb/ch9.h> #in...
HarveyHunt/linux
drivers/usb/wusbcore/security.c
C
gpl-2.0
17,200
/* 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 th...
thecubed/android_kernel_lge_geefhd
drivers/media/video/msm/vfe/msm_vfe7x27a_v4l2.c
C
gpl-2.0
72,293
/* * Architecture-specific setup. * * Copyright (C) 1998-2003 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> * 04/11/17 Ashok Raj <ashok.raj@intel.com> Added CPU Hotplug Support * * 2005-10-07 Keith Owens <kaos@sgi.com> * Add notify_die() hooks. */ #include <linux/cpu.h> #include <linux/pm...
talnoah/android_kernel_htc_dlx
virt/arch/ia64/kernel/process.c
C
gpl-2.0
21,204
/* * BQ27x00 battery driver * * Copyright (C) 2008 Rodolfo Giometti <giometti@linux.it> * Copyright (C) 2008 Eurotech S.p.A. <info@eurotech.it> * Copyright (C) 2010-2011 Lars-Peter Clausen <lars@metafoo.de> * Copyright (C) 2011 Pali Rohár <pali.rohar@gmail.com> * * Based on a previous work by Copyright (C) 2008...
dperezde/little-penguin
linux-eudyptula/drivers/power/bq27x00_battery.c
C
gpl-2.0
25,132
// SPDX-License-Identifier: GPL-2.0 /* * NVMe Over Fabrics Target Passthrough command implementation. * * Copyright (c) 2017-2018 Western Digital Corporation or its * affiliates. * Copyright (c) 2019-2020, Eideticom Inc. * */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> #include "../hos...
rperier/linux
drivers/nvme/target/passthru.c
C
gpl-2.0
15,875
/* * linux/drivers/sound/vidc.c * * Copyright (C) 1997-2000 by Russell King <rmk@arm.linux.org.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 the Free Software Foundation. * * VIDC20 audio driver...
JijonHyuni/HyperKernel-JB
virt/sound/oss/vidc.c
C
gpl-2.0
12,376
/* * Little-endian CRC32 implementation. * * Copyright (c) 2009 Joshua Oreman <oremanj@rwcr.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 version 2 of the * License, or ...
KernelAnalysisPlatform/KlareDbg
tracers/qemu/decaf/roms/ipxe/src/crypto/crc32.c
C
gpl-3.0
1,498
/* * Copyright (C) 2012 Red Hat, Inc. * * This file is released under the GPL. */ #include "dm-cache-metadata.h" #include "persistent-data/dm-array.h" #include "persistent-data/dm-bitset.h" #include "persistent-data/dm-space-map.h" #include "persistent-data/dm-space-map-disk.h" #include "persistent-data/dm-transa...
tejaswanjari/SMR_FS-EXT4
kernel/drivers/md/dm-cache-metadata.c
C
gpl-2.0
35,369
/* * linux/arch/arm/mach-omap2/hsmmc.c * * Copyright (C) 2007-2008 Texas Instruments * Copyright (C) 2008 Nokia Corporation * Author: Texas Instruments * * 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...
talnoah/android_kernel_htc_dlx
virt/arch/arm/mach-omap2/hsmmc.c
C
gpl-2.0
15,713
/***************************************************************************** Copyright(c) 2011 I&C Inc. All Rights Reserved File name : INC_RF_CTRL500.c Description : 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 ...
koxda/android_kernel_samsung_msm8660-common
drivers/media/tdmb/t39f0/INC_RF_CTRL500.c
C
gpl-2.0
57,241
/* * 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) 2003 by Ralf Baechle */ #include <linux/init.h> #include <linux/mm.h> #include <linux/memblock.h> #include <linux/highmem.h...
CSE3320/kernel-code
linux-5.8/arch/mips/mm/pgtable-32.c
C
gpl-2.0
2,146
// SPDX-License-Identifier: GPL-2.0 /****************************************************************************** * rtl871x_mlme.c * * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved. * Linux device driver for RTL8192SU * * Modifications for inclusion into the Linux staging tree are * Copyrig...
CSE3320/kernel-code
linux-5.8/drivers/staging/rtl8712/rtl871x_mlme.c
C
gpl-2.0
52,503
#include "clar_libgit2.h" static git_repository *_repo; static git_commit *commit; void test_commit_parent__initialize(void) { git_oid oid; cl_git_pass(git_repository_open(&_repo, cl_fixture("testrepo.git"))); git_oid_fromstr(&oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644"); cl_git_pass(git_commit_lookup(&comm...
cwahbong/nodegit
vendor/libgit2/tests/commit/parent.c
C
mit
1,534
/* * Meson GXL and GXM USB2 PHY driver * * Copyright (C) 2017 Martin Blumenstingl <martin.blumenstingl@googlemail.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. * * Yo...
BPI-SINOVOIP/BPI-Mainline-kernel
linux-4.14/drivers/phy/amlogic/phy-meson-gxl-usb2.c
C
gpl-2.0
7,954
/** * @file ncdinterfacemonitor_test.c * @author Ambroz Bizjak <ambrop7@gmail.com> * * @section LICENSE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above...
Jigsaw-Code/outline-client
third_party/badvpn/examples/ncdinterfacemonitor_test.c
C
apache-2.0
5,056
/* Test the `vqmovuns64' ARM Neon intrinsic. */ /* This file was autogenerated by neon-testgen. */ /* { dg-do assemble } */ /* { dg-require-effective-target arm_neon_ok } */ /* { dg-options "-save-temps -O0" } */ /* { dg-add-options arm_neon } */ #include "arm_neon.h" void test_vqmovuns64 (void) { uint32x2_t out...
SanDisk-Open-Source/SSD_Dashboard
uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.target/arm/neon/vqmovuns64.c
C
gpl-2.0
579
/* * FB driver for the S6D02A1 LCD Controller * * Based on fb_st7735r.c by Noralf Tronnes * Init code from UTFT library by Henning Karlsen * * 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 Foundatio...
eabatalov/au-linux-kernel-autumn-2017
linux/drivers/staging/fbtft/fb_s6d02a1.c
C
gpl-3.0
4,155
/* * Intel MIC Platform Software Stack (MPSS) * * Copyright(c) 2015 Intel Corporation. * * 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 t...
mkvdv/au-linux-kernel-autumn-2017
linux/drivers/misc/mic/scif/scif_rma.c
C
gpl-3.0
47,406
/* * Framework for buffer objects that can be shared across devices/subsystems. * * Copyright(C) 2011 Linaro Limited. All rights reserved. * Author: Sumit Semwal <sumit.semwal@ti.com> * * Many thanks to linaro-mm-sig list, and specially * Arnd Bergmann <arnd@arndb.de>, Rob Clark <rob@ti.com> and * Daniel Vetter...
poondog/kangaroo-m7-mkII
drivers/base/dma-buf.c
C
gpl-2.0
7,165
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
ruriwo/ErgoThumb072_firmware
tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/pinmap.c
C
gpl-2.0
1,482
/* linux/arch/arm/mach-s3c2410/s3c2410.c * * Copyright (c) 2003-2005 Simtec Electronics * Ben Dooks <ben@simtec.co.uk> * * http://www.simtec.co.uk/products/EB2410ITX/ * * 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 * p...
wkritzinger/asuswrt-merlin
release/src-rt-7.x.main/src/linux/linux-2.6.36/arch/arm/mach-s3c2410/s3c2410.c
C
gpl-2.0
4,168
/* * * (C) Copyright 2000-2003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * (C) Copyright 2007 Freescale Semiconductor, Inc. * TsiChung Liew (Tsi-Chung.Liew@freescale.com) * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redi...
kbridgers/VOLTE4GFAX
uboot/u-boot-2010.06/arch/m68k/cpu/mcf523x/cpu_init.c
C
gpl-2.0
5,157
/* sunxvr500.c: Sun 3DLABS XVR-500 Expert3D driver for sparc64 systems * * Copyright (C) 2007 David S. Miller (davem@davemloft.net) */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/fb.h> #include <linux/pci.h> #include <linux/init.h> #include <linux/of_device.h> #include <asm/io.h> /* XXX Th...
talnoah/android_kernel_htc_dlx
virt/drivers/video/sunxvr500.c
C
gpl-2.0
11,532
/* em28xx-vbi.c - VBI driver for em28xx Copyright (C) 2009 Devin Heitmueller <dheitmueller@kernellabs.com> This work was sponsored by EyeMagnet Limited. 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...
AiJiaZone/linux-4.0
virt/drivers/media/usb/em28xx/em28xx-vbi.c
C
gpl-2.0
2,998
/* * Copyright 2007-8 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * t...
geminy/aidear
oss/linux/linux-4.7/drivers/gpu/drm/radeon/radeon_cursor.c
C
gpl-3.0
10,725
// SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2010,2011 Code Aurora Forum. All rights reserved. Copyright (c) 2011,2012 Intel Corp. */ #include <net/bluetooth/bluetooth.h> #include <net/bluetooth/hci_core.h> #include <net/bluetooth/l2cap.h> #include "hci_request.h" #include "a2mp.h" #include "amp....
c0d3z3r0/linux-rockchip
net/bluetooth/a2mp.c
C
gpl-2.0
21,953
/* * Copyright (c) 2013 Samsung Electronics Co., Ltd. * Copyright (c) 2013 Linaro Ltd. * Author: Thomas Abraham <thomas.ab@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 Fou...
mythos234/cmkernel_zeroltexx
drivers/clk/samsung/clk.c
C
gpl-2.0
12,904
/* * Copyright 2012 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
mericon/Xp_Kernel_LGH850
virt/drivers/gpu/drm/nouveau/nv10_fence.c
C
gpl-2.0
3,114
/* Driver for Philips TDA8083 based QPSK Demodulator Copyright (C) 2001 Convergence Integrated Media GmbH written by Ralph Metzler <ralph@convergence.de> adoption to the new DVB frontend API and diagnostic ioctl's by Holger Waechtler <holger@convergence.de> This program is free software; you...
mkvdv/au-linux-kernel-autumn-2017
linux/drivers/media/dvb-frontends/tda8083.c
C
gpl-3.0
12,137
/* ivtv firmware functions. Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> Copyright (C) 2004 Chris Kennedy <c@groovy.org> Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> This program is free software; you can redistribute it and/or modify it under the terms of the G...
mkvdv/au-linux-kernel-autumn-2017
linux/drivers/media/pci/ivtv/ivtv-firmware.c
C
gpl-3.0
12,024
/* Copyright (c) 2009-2010, 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 ho...
LibiSC/BatteryExtenderSGAKernel
arch/arm2/mach-msm/rpc_pmapp.c
C
gpl-2.0
13,129
/* Copyright (c) 2008-2009, 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 ho...
sktjdgns1189/android_kernel_samsung_SHW-M340S
drivers/stagings/msm/mddi.c
C
gpl-2.0
8,189
/* Copyright (C) 2012-2013 B.A.T.M.A.N. contributors: * * Martin Hundebøll, Jeppe Ledet-Pedersen * * 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 Foundation. * * This program is distri...
prasidh09/cse506
unionfs-3.10.y/net/batman-adv/network-coding.c
C
gpl-2.0
55,838
/* * (C) 2005, 2006 Linux Networx (http://lnxi.com) * This file may be distributed under the terms of the * GNU General Public License. * * Written Doug Thompson <norsk5@xmission.com> * */ #include <linux/module.h> #include <linux/edac.h> #include <linux/slab.h> #include <linux/ctype.h> #include "edac_core.h" #...
fwmiller/Conserver-Freescale-Linux-U-boot
rpm/BUILD/linux-3.0.35/drivers/edac/edac_pci_sysfs.c
C
gpl-2.0
20,235
/* * Universal Flash Storage Host controller PCI glue driver * * This code is based on drivers/scsi/ufs/ufshcd-pci.c * Copyright (C) 2011-2013 Samsung India Software Operations * * Authors: * Santosh Yaraganavi <santosh.sy@samsung.com> * Vinayak Holikatti <h.vinayak@samsung.com> * * This program is free softw...
geekzoo/linux
linux-3.18.5/drivers/scsi/ufs/ufshcd-pci.c
C
gpl-2.0
5,444
/* typhoon.c: A Linux Ethernet device driver for 3Com 3CR990 family of NICs */ /* Written 2002-2004 by David Dillow <dave@thedillows.org> Based on code written 1998-2000 by Donald Becker <becker@scyld.com> and Linux 2.2.x driver by David P. McLean <davidpmclean@yahoo.com>. This software may be used and distributed...
prasidh09/cse506
unionfs-3.10.y/drivers/net/ethernet/3com/typhoon.c
C
gpl-2.0
72,494
/* * 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) 2008 Maxime Bizon <mbizon@freebox.fr> * Copyright (C) 2009 Florian Fainelli <florian@openwrt.org> */ #include <linux/kern...
CSE3320/kernel-code
linux-5.8/arch/mips/bcm63xx/cpu.c
C
gpl-2.0
8,554
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/alpha/kernel/sys_rawhide.c * * Copyright (C) 1995 David A Rusling * Copyright (C) 1996 Jay A Estabrook * Copyright (C) 1998, 1999 Richard Henderson * * Code supporting the RAWHIDE. */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/mm.h> #i...
CSE3320/kernel-code
linux-5.8/arch/alpha/kernel/sys_rawhide.c
C
gpl-2.0
6,561
/* * File: portdrv_core.c * Purpose: PCI Express Port Bus Driver's Core Functions * * Copyright (C) 2004 Intel * Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com) */ #include <linux/module.h> #include <linux/pci.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/pm.h> #include <linux/stri...
talnoah/android_kernel_htc_dlx
virt/drivers/pci/pcie/portdrv_core.c
C
gpl-2.0
15,644
#include <linux/export.h> #include <linux/types.h> #include <linux/io.h> /* * Copy data from IO memory space to "real" memory space. * This needs to be optimized. */ void _memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) { unsigned char *t = to; while (count) { count--; *t = readb(from...
talnoah/android_kernel_htc_dlx
virt/arch/arm/kernel/io.c
C
gpl-2.0
905
/* * finite state machine implementation * * Author Karsten Keil <kkeil@novell.com> * * Thanks to Jan den Ouden * Fritz Elfert * Copyright 2008 by Karsten Keil <kkeil@novell.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
JijonHyuni/HyperKernel-JB
virt/drivers/isdn/mISDN/fsm.c
C
gpl-2.0
4,430
/* * rcar_du_group.c -- R-Car Display Unit Channels Pair * * Copyright (C) 2013-2014 Renesas Electronics Corporation * * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License...
AiJiaZone/linux-4.0
virt/drivers/gpu/drm/rcar-du/rcar_du_group.c
C
gpl-2.0
6,486
/*++ Copyright-c Realtek Semiconductor Corp. All rights reserved. Module Name: r8192U_dm.c Abstract: HW dynamic mechanism. Major Change History: When Who What ---------- --------------- ------------------------------- 2008-05-14 amy create version 0 porting from windows code. --*/ #incl...
publicloudapp/csrutil
linux-4.3/drivers/staging/rtl8192u/r8192U_dm.c
C
mit
120,533
/* * Software multibuffer async crypto daemon. * * Copyright (c) 2014 Tim Chen <tim.c.chen@linux.intel.com> * * Adapted from crypto daemon. * * 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 Foundat...
AiJiaZone/linux-4.0
virt/crypto/mcryptd.c
C
gpl-2.0
18,436
/* Origin: Joseph Myers <jsm28@cam.ac.uk>. */ /* Case labels in a switch statement are converted to the promoted type of the controlling expression, not an unpromoted version. Reported as PR c/2454 by Andreas Krakowczyk <Andreas.Krakowczyk@fujitsu-siemens.com>. */ extern void exit (int); extern void abort (...
SanDisk-Open-Source/SSD_Dashboard
uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.c-torture/execute/20011223-1.c
C
gpl-2.0
457
/* * arch/cris/arch-v32/drivers/nandflash.c * * Copyright (c) 2007 * * Derived from drivers/mtd/nand/spia.c * Copyright (C) 2000 Steven J. Hill (sjhill@realitydiluted.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License versio...
felixhaedicke/nst-kernel
src/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
C
gpl-2.0
4,201
#include <linux/delay.h> #include <linux/timer.h> #include <linux/io.h> #include <linux/errno.h> #include <mach/cputype.h> #ifdef CONFIG_ARCH_MMP #define UTMI_REVISION 0x0 #define UTMI_CTRL 0x4 #define UTMI_PLL 0x8 #define UTMI_TX 0xc #define UTMI_RX 0x10 #define UTMI_IVREF 0x14 #define UTMI_T0 0x18 #defin...
JijonHyuni/HyperKernel-JB
virt/drivers/usb/gadget/mv_udc_phy.c
C
gpl-2.0
5,894
/* * linux/arch/arm/mach-pxa/idp.c * * 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. * * Copyright (c) 2001 Cliff Brake, Accelent Systems Inc. * * 2001-09-13: Cliff Brak...
go2ev-devteam/Gplus_2159_0801
openplatform/sdk/os/kernel-2.6.32/arch/arm/mach-pxa/idp.c
C
gpl-2.0
4,648
/* * MUSB OTG controller driver for Blackfin Processors * * Copyright 2006-2008 Analog Devices Inc. * * Enter bugs at http://blackfin.uclinux.org/ * * Licensed under the GPL-2 or later. */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/list.h> #include <linux/gpio....
iwinoto/v4l-media_build
media/drivers/usb/musb/blackfin.c
C
gpl-2.0
14,616
/* * linux/drivers/media/video/exynos/mfc/s5p_mfc_shm.c * * Copyright (c) 2010 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 as published by * the Free Software Foundation; ...
DevriesL/SM-G9208_ImageBreaker
drivers/media/platform/exynos/mfc/s5p_mfc_shm.c
C
gpl-2.0
1,608
/* ************************************************************************* * Ralink Tech Inc. * 5F., No.36, Taiyuan St., Jhubei City, * Hsinchu County 302, * Taiwan, R.O.C. * * (c) Copyright 2002-2007, Ralink Technology, Inc. * * This program is free software; you can redistribute it and/or modify * * it u...
go2ev-devteam/Gplus_2159_0801
openplatform/sdk/os/kernel-2.6.32/drivers/staging/rt2860/rt_linux.c
C
gpl-2.0
26,841
/* * linux/drivers/video/neofb.c -- NeoMagic Framebuffer Driver * * Copyright (c) 2001-2002 Denis Oliver Kropp <dok@directfb.org> * * * Card specific code is based on XFree86's neomagic driver. * Framebuffer framework code is based on code of cyber2000fb. * * This file is subject to the terms and conditions o...
mericon/Xp_Kernel_LGH850
virt/drivers/video/fbdev/neofb.c
C
gpl-2.0
56,494
/* * Copyright (C) 2012-2013 Renesas Solutions Corp. * Copyright (C) 2013 Magnus Damm * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.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 ...
mericon/Xp_Kernel_LGH850
virt/drivers/pinctrl/sh-pfc/pfc-r8a73a4.c
C
gpl-2.0
84,504
/* * Copyright (c) 2014 Nicolas Martyanoff * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS...
galdor/libstring
src/string.c
C
isc
4,309
/* * Copyright (c) 2008 Stefan Kempf <sisnkemp@gmail.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND...
sisnkemp/compiler
comp/pass_deadcodeelim.c
C
isc
7,202
/* $OpenBSD: amdcf.c,v 1.1 2015/07/20 19:44:32 pirofti Exp $ */ /* * Copyright (c) 2007, Juniper Networks, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of so...
orumin/openbsd-efivars
arch/octeon/dev/amdcf.c
C
isc
22,762
#include <stdio.h> #include <string.h> int search(char *p[], char *name); char *names[] = { "Herb", "Rex", "Dennis", "John", NULL }; int main(int argc, char **argv) { if (search(names, "Herb") != -1) printf("Herb is in list\n"); if (search(names, "Mary") == -1) printf("Mary is not in list\n"); return...
SmileAI/Ink.Pavilion
C语言编程百例/基础知识篇/43_指针的初始化.c
C
mit
472
/* ============================================================= The MIT License (MIT) Copyright (c) 2015 Carlo Meroni Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includi...
Flowx08/Celegans-simulation
src/Celegans.c
C
mit
232,413
#include "_signal.h" #include "core.h" #include "log.h" #include <signal.h> static struct _signal signals[] = { { SIGUSR1, "SIGUSR1", 0, signal_handler }, { SIGUSR2, "SIGUSR2", 0, signal_handler }, { SIGTTIN, "SIGTTIN", 0, signal_handler }, { SIGTTOU, "S...
kenshinx/rps
src/_signal.c
C
mit
2,992
/** ****************************************************************************** * File Name : ADC.c * Description : This file provides code for the configuration * of the ADC instances. ****************************************************************************** * ...
savent404/MX_AudioPlayer
MX_AudioPlayer/Src/adc.c
C
mit
4,697
/*- * Copyright (c) 2011 David Schultz * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice unmodified, this li...
twrl/conurbation
sources/superlibs/owpenlibm/src/s_ctanh.c
C
mit
4,402
/* Copyright 2007 Walter Alini, Matías Bordese */ /* This file is part of biOps. biOps 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 lat...
blairg23/pattern-recognition
08_grad_project/Deliverables/biOps/src/tiffio.c
C
mit
5,086
/*============================================================================= * BF-Compiler-V2 -- a brainfuck compiler * By SirPython of Code Review and GitHub * * bfc.c =============================================================================*/ #include <stdio.h> typedef struct { unsigned int opcode : 8; } ins...
SirPython/BF-Compiler-V2
bfc.c
C
mit
705
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=99 ft=cpp: */ #define DEBUG_PROPERTIES 0 #define DEBUG_GC 0 #include <stdlib.h> #include <string.h> #include <math.h> #include "ejs-value.h" #include "ejs-ops.h" #include "ejs-object.h" #include "ejs-number.h" #...
carlosalberto/echo-js
runtime/ejs-object.c
C
mit
94,518
#include <math.h> #include "gthreecamera.h" typedef struct { graphene_matrix_t projection_matrix; graphene_matrix_t projection_matrix_inverse; graphene_matrix_t world_matrix_inverse; float near; float far; } GthreeCameraPrivate; enum { PROP_0, PROP_NEAR, PROP_FAR, N_PROPS }; static GParamSpec ...
alexlarsson/gthree
gthree/gthreecamera.c
C
mit
6,131
/* * Copyright 2015 Luis Lafuente <llafuente@noboxout.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list...
llafuente/flang
src/libast/ast-traverse.c
C
mit
8,452
#include <clover.h> int QX(import_half_fermion)(struct QX(HalfFermion) **half_fermion_ptr, struct Q(State) *state, double (*reader)(const int pos[4], int color, int dirac, ...
usqcd-software/clover
port/hfermion-import.c
C
mit
661
/* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and bina...
MalmoUniversity-DA366A/calvin-arduino
system/src/sam3x/interrupt_sam_nvic.c
C
mit
1,683
//////////////////////////////////////////////////////////////////////////////// // Comments // Tests adding a multi-character string constant midway in a character array. //////////////////////////////////////////////////////////////////////////////// // Libraries #include <stdio.h> ///////////////////////////////...
DeadDork/learning_c
experiments/string-array_1.c
C
mit
528
#include <stdio.h> #include <unistd.h> #include "bee.h" #include "simclist.h" int main() { list_t l; while(1){ list_init(&l); usleep(100000); } bee_user_init(); bee_user_login_id_pw("kaija.chang@gmail.com", "mamamiya"); sleep(3); bee_logout(); sleep(1); return 0; }
kaija/bee
sample/test2.c
C
mit
317
/* This software module was originally developed by Apple Computer, Inc. in the course of development of MPEG-4. This software module is an implementation of a part of one or more MPEG-4 tools as specified by MPEG-4. ISO/IEC gives users of MPEG-4 free license to this software module or modifications thereof for use ...
andresgonzalezfornell/TFM
lib/libisomediafile/src/PrimaryItemAtom.c
C
mit
3,124
#include <errno.h> #include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <X11/Xlib.h> #include <X11/extensions/Xrandr.h> #include "list.h" #include "log.h" #include "xmalloc.h" #include "xoutputd.h" #include "y.tab.h" static const char *conne...
jlpc/xoutputd
xoutputd.c
C
mit
5,386
/* a thread-safe lock allowing for multiple readers or a single writer at any * given point in time */ #include <limits.h> #include <assert.h> #include "lock.h" #define MAX_READERS (INT_MAX - 1) void acquire_readlock(struct lock *l) { pthread_mutex_lock(&l->use_state_mutex); while(l->use_state < 0 || l->use_stat...
iburinoc/ibchat
util/lock.c
C
mit
1,438
#include <stdio.h> #include <sys/resource.h> #include <sys/stat.h> #include <unistd.h> void print_cpu_times() { struct rusage usage; getrusage(RUSAGE_SELF, &usage); printf("CPU time: %ld.%06ld sec user, %ld.%06ld sec sys.\n", usage.ru_utime.tv_sec, usage.ru_utime.tv_usec, usage.ru...
hustcalm/whatsprogrammer
advanced-linux-programming/chapter-8-linux-system-calls/print-cpu-times.c
C
mit
416
/* * Copyright (c) 2012 Sander van der Burg * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge,...
svanderburg/lib8svx
src/lib8svx/name.c
C
mit
1,981
#include "tss_emu.h" #include "tss.h" #include "gdebug.h" #include "system.h" #include "ctrl_reg_emu.h" #include "cpuseg_emu.h" #include "stack.h" #include "memory.h" static void itr_emu_high_0xD(vm_emu_datas *status, BYTE low_code); static void itr_emu_high_0x1(vm_emu_datas *status, BYTE low_c...
ddk50/tinyos
tss_emu.c
C
mit
3,793
/* ========================================================================= * Freetype GL - A C OpenGL Freetype engine * Platform: Any * WWW: http://code.google.com/p/freetype-gl/ * ------------------------------------------------------------------------- * Copyright 2011,2012 Nicolas P. Rougier. All r...
ibawt/ev
vendor/freetype-gl/demo-cartoon.c
C
mit
7,238
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include "chromosnet.h" #include "functions.h" #include "geometry.h" #include "help.h" #include "lineal.h" #include "modelonumerico.h" #include "MPI_pakal.h" #include "particion.h" #include "physi...
itztli/pakal
MPI_pakal.c
C
mit
7,888
/* ** Table handling. ** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h ** ** Major portions taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #define lj_tab_c #define LUA_CORE #include "lj_obj.h" #include...
wenhulove333/ScutServer
Sample/ClientSource/scripting/lua/luajit/LuaJIT-2.0.1/src/lj_tab.c
C
mit
18,589
//: generator/pp comment config //:not cScript #include "../release/libsheepy.h" //:end #define internal static #include <stdlib.h> #include <stdio.h> char *get(void **csv, size_t line, size_t col); char *get2(void **csv, intmax_t line, intmax_t col); #ifndef unitTest #endif int MAIN(int ARGC, char** ARGV); int arg...
RemyNoulin/libsheepy
example/csv.c
C
mit
1,559
/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : 91x_enet.c * Author : MCD Application Team * Version : V2.0 * Date : 12/07/2007 * Description : This file provides all the ENET software functions. ************************...
miragecentury/M2_SE_RTOS_Project
Project/LPC1549_Keil/CycloneTCP_SSL_Crypto_Open_1_6_4/demo/common/st/str91x_fw_lib/src/91x_enet.c
C
mit
33,623
/* ---------------------------------------------------------------------------- */ /* Atmel Microcontroller Software Support */ /* SAM Software Package License */ /* --------------------------------------------------------------------...
inertialsense/InertialSenseSDK
hw-libs/libusb/device/cdc-serial/CDCDSerial.c
C
mit
8,184
/* $Id$ *====================================================================== * * DISCLAIMER * * This material was prepared as an account of work sponsored by an * agency of the United States Government. Neither the United States * Government nor the United States Department of Energy, nor Battelle, * nor a...
rangsimanketkaew/NWChem
src/peigs/src/c/pmmLSL.c
C
mit
6,815
/* Copyright (c) 1997-1999 Guenter Geiger, Miller Puckette, Larry Troxler, * Winfried Ritsch, Karl MacMillan, and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ /* MIDI I/O for Linux using ALSA */ #include <stdio....
jconst/SoundDrop
SoundDrop/libpd/pure-data/src/s_midi_alsa.c
C
mit
7,206
/** * The MIT License (MIT) * * Copyright (c) 2014 0x6d72 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
0x6d72/vayu
src/core/socket.c
C
mit
9,850