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
/* * drivers/usb/driver.c - most of the driver model stuff for usb * * (C) Copyright 2005 Greg Kroah-Hartman <gregkh@suse.de> * * based on drivers/usb/usb.c which had the following copyrights: * (C) Copyright Linus Torvalds 1999 * (C) Copyright Johannes Erdfelt 1999-2001 * (C) Copyright Andreas Gal 1999 * (C) ...
kh007im/ngawi-ics
drivers/usb/core/driver.c
C
gpl-2.0
57,402
/* * * smapi.c -- SMAPI interface routines * * * Written By: Mike Sullivan IBM Corporation * * Copyright (C) 1999 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...
sensysnetworks/uClinux
linux-2.4.x/drivers/char/mwave/smapi.c
C
gpl-2.0
19,507
/* * 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 version. * * FFmpeg is distributed...
endlessm/chromium-browser
third_party/ffmpeg/libavcodec/tests/mathops.c
C
bsd-3-clause
1,281
/* { dg-do compile } */ /* { dg-options "-O2 -Wall" } */ /* { dg-require-effective-target label_values } */ extern void foo(void *here); extern inline void bar(void) { __label__ here; foo(&&here); here: ; } void baz(void) { bar(); }
Gurgel100/gcc
gcc/testsuite/gcc.dg/20000707-1.c
C
gpl-2.0
243
/* Copyright (C) 1991-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library 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 ...
wjflyhigh/glibc-2.21
misc/gethostid.c
C
gpl-2.0
977
/* Copyright (c) 2010-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 Software Foundation. * * This program is distributed in the...
Grarak/grakernel-msm8930
sound/soc/msm/qdsp6/q6adm.c
C
gpl-2.0
38,487
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Copyright (C) 2001 Lennert Buytenhek (buytenh@gnu.org) and * James Leu (jleu@mindspring.net). * Copyright (C) 2001 by various other people who didn't put their name here. */ #include <linux/memblock.h>...
c0d3z3r0/linux-rockchip
arch/um/drivers/net_kern.c
C
gpl-2.0
20,452
/* * Security plug functions * * Copyright (C) 2001 WireX Communications, Inc <chris@wirex.com> * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com> * Copyright (C) 2001 Networks Associates Technology, Inc <ssmalley@nai.com> * * This program is free software; you can redistribute it and/or modify * it ...
jokersax/lgogsprint3.4kernel
security/security.c
C
gpl-2.0
35,888
/* Copyright (c) 2011-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 ho...
HackerOO7/android_kernel_huawei_u8951
drivers/video/msm/mdp4_overlay_dtv.c
C
gpl-2.0
25,337
/* * linux/sound/arm/aaci.c - ARM PrimeCell AACI PL041 driver * * Copyright (C) 2003 Deep Blue Solutions 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 version 2 as * published by the Free Software Founda...
ysleu/RTL8685
uClinux-dist/linux-2.6.x/sound/arm/aaci.c
C
gpl-2.0
27,278
/******************************************************************************* Copyright (c) 2006-2015 Cadence Design Systems 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 restric...
kYc0o/RIOT
cpu/esp_common/vendor/xtensa/xtensa_intr.c
C
lgpl-2.1
3,731
/* This test is part of GDB, the GNU debugger. Copyright 2011-2012 Free Software Foundation, Inc. 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 3 of the License, or (...
ILyoan/gdb
gdb/testsuite/gdb.python/py-frame-inline.c
C
gpl-2.0
1,155
/* * Driver for the i2c controller on the Marvell line of host bridges * (e.g, gt642[46]0, mv643[46]0, mv644[46]0, and Orion SoC family). * * Author: Mark A. Greer <mgreer@mvista.com> * * 2005 (c) MontaVista, Software, Inc. This file is licensed under * the terms of the GNU General Public License version 2. Th...
william-wfei/linux
drivers/i2c/busses/i2c-mv64xxx.c
C
gpl-2.0
28,249
/* utf.c (13.09.09) exFAT file system implementation library. Free exFAT implementation. Copyright (C) 2010-2013 Andrew Nayenko 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...
largeriver/twrp
qcom_msm8916_64_android5.0/sources/twrp/bootable/recovery/exfat/libexfat/utf.c
C
mit
5,583
/* vi: set sw=4 ts=4: */ /* * rtm_map.c * * 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. * * Authors: Alexe...
smx-smx/dsl-n55u-bender
release/src/router/busybox/networking/libiproute/rtm_map.c
C
gpl-2.0
2,620
/* * drivers/watchdog/ar7_wdt.c * * Copyright (C) 2007 Nicolas Thill <nico@openwrt.org> * Copyright (c) 2005 Enrik Berkhan <Enrik.Berkhan@akk.org> * * Some code taken from: * National Semiconductor SCx200 Watchdog support * Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com> * * This program is...
zioproto/SDK.UBNT.v5.3.3
target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c
C
gpl-2.0
8,441
/*************************************************************************** * Copyright (C) 2009 - 2010 by Simon Qian <SimonQian@SimonQian.com> * * * * This program is free software; you can redistribute it and/or modify * * it unde...
ibichao/vsprog
src/programmer/interfaces/versaloon/usbtoxxx/usbtobdm.c
C
gpl-3.0
2,801
/* * This is a module which is used for logging packets. */ /* (C) 2001 Jan Rekorajski <baggins@pld.org.pl> * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org> * * 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 * ...
go2ev-devteam/Gplus_2159_0801
openplatform/sdk/os/kernel-2.6.32/net/ipv6/netfilter/ip6t_LOG.c
C
gpl-2.0
11,941
/* { dg-do run } */ /* { dg-options "-O2" } */ extern void abort (); extern void exit (int); int x; foo() { static int count; count++; if (count > 1) abort (); } static inline int frob () { int a; __asm__ ("mov %1, %0\n\t" : "=r" (a) : "m" (x)); x++; return a; } int main () { int i; for (i = 0...
LeChuck42/or1k-gcc
gcc/testsuite/gcc.target/i386/pr60902.c
C
gpl-2.0
376
/* * linux/drivers/char/core.c * * Driver core for serial ports * * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. * * Copyright 1999 ARM Limited * Copyright (C) 2000-2001 Deep Blue Solutions Ltd. * * This program is free software; you can redistribute it and/or modify * it under the ...
mantera/WX_435_Kernel-CM7
drivers/serial/serial_core.c
C
gpl-2.0
64,815
/* * linux/mm/swap_state.c * * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds * Swap reorganised 29.12.95, Stephen Tweedie * * Rewritten to use page cache, (C) 1998 Stephen Tweedie */ #include <linux/mm.h> #include <linux/gfp.h> #include <linux/kernel_stat.h> #include <linux/swap.h> #include <linux/swa...
redpig/linux
mm/swap_state.c
C
gpl-2.0
10,465
/* * Support for Sharp SL-C6000x PDAs * Model: (Tosa) * * Copyright (c) 2005 Dirk Opfer * * Based on code written by Sharp/Lineo for 2.4 kernels * * 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...
Taeung/tip
arch/arm/mach-pxa/tosa.c
C
gpl-2.0
21,202
/* cpptrf.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
CreativeCimmons/ORB-SLAM-Android-app
slam_ext/external/clapack-3.2.1-CMAKE/SRC/cpptrf.c
C
gpl-2.0
6,067
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. * ...
aberlemont/linux
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
C
gpl-2.0
23,950
#ifdef CONFIG_VIDEO_RK29 #include <plat/rk_camera.h> /* Notes: Simple camera device registration: new_camera_device(sensor_name,\ // sensor name, it is equal to CONFIG_SENSOR_X face,\ // sensor face information, it can be back or front pwdn...
Dee-UK/D33_KK_Kernel
arch/arm/mach-rk30/board-rk3168-tb-camera.c
C
gpl-2.0
20,872
/* * Yamaha SMAF format * Copyright (c) 2005 Vidar Madsen * * 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...
ShawnKoo/avplayer-1
third_party/android/ffmpeg_2.0/jni/ffmpeg/libavformat/mmf.c
C
gpl-3.0
9,530
#include <stdio.h> #include <pcap.h> #define LINE_LEN 16 void dispatcher_handler(u_char *, const struct pcap_pkthdr *, const u_char *); int main(int argc, char **argv) { pcap_t *fp; char errbuf[PCAP_ERRBUF_SIZE]; if(argc != 2) { printf("usage: %s filename", argv[0]); return -1; } /* Open the capture ...
wubenqi/zutils
zutils/pcap_util/third_party/winpcap/Examples-pcap/readfile/readfile.c
C
apache-2.0
1,129
//===--- magic-symbols-for-install-name.c - Magic linker directive symbols ===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
jckarter/swift
stdlib/linker-support/magic-symbols-for-install-name.c
C
apache-2.0
3,415
/************************************************************************** * * Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"...
WhiteBearSolutions/WBSAirback
packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/gpu/drm/ttm/ttm_bo.c
C
apache-2.0
47,301
/* Conversion from and to IBM904. Copyright (C) 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Pub...
utds3lab/pemu
plugins/glibc-2.13-new/iconvdata/ibm904.c
C
gpl-2.0
1,142
/* * RV40 decoder motion compensation functions * Copyright (c) 2008 Konstantin Shishkov * * 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 * ver...
cpopescu/whispermedialib
third-party/gstreamer/gst-ffmpeg-0.10.10/gst-libs/ext/ffmpeg/libavcodec/rv40dsp.c
C
lgpl-3.0
17,341
/************************************************************************** * * Copyright (c) 2009 VMware, Inc., Palo Alto, CA., USA * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to...
talnoah/android_kernel_htc_dlx
virt/drivers/gpu/drm/ttm/ttm_object.c
C
gpl-2.0
11,815
/* PR c/77323 */ /* { dg-do compile { target ia32 } } */ /* { dg-options "" } */ __int128 a; /* { dg-error "not supported" } */ _Float128x b; /* { dg-error "not supported" } */
mickael-guene/gcc
gcc/testsuite/gcc.dg/pr77323.c
C
gpl-2.0
178
/** ****************************************************************************** * @file stm32f3xx_hal_adc.c * @author MCD Application Team * @version V1.3.0 * @date 01-July-2016 * @brief This file provides firmware functions to manage the following * functionalities of the Analog to ...
Neuromancer2701/mbedROS2_STF7
mbed-os/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.c
C
mit
41,201
/* { dg-do run } */ /* { dg-options "-fno-inline -fomit-frame-pointer -fno-rename-registers" } */ /* { dg-additional-options "-mdynamic-no-pic" { target *-*-darwin* } } */ /* -fno-inline -maltivec -m32/-m64 -mmultiple/no-multiple -Os/-O2. */ #ifndef NO_BODY #define abort() __builtin_abort () #define vec_all_eq(v1,v2)...
mickael-guene/gcc
gcc/testsuite/gcc.target/powerpc/savres.c
C
gpl-2.0
28,575
/* * Copyright (c) 2014 Redpine Signals Inc. * * Permission to use, copy, modify, and/or 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 AUTHO...
tprrt/linux-stable
drivers/net/wireless/rsi/rsi_91x_hal.c
C
gpl-2.0
32,152
// RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.cstring,debug.ExprInspection -analyzer-store=region -verify %s // RUN: %clang_analyze_cc1 -DUSE_BUILTINS -analyzer-checker=core,unix.cstring,debug.ExprInspection -analyzer-store=region -verify %s // XFAIL: * // This file is for tests that may eventually go into st...
endlessm/chromium-browser
third_party/llvm/clang/test/Analysis/string-fail.c
C
bsd-3-clause
3,535
/* * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved. * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. * Copyright (c) 2004 Voltaire, 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 ...
rimistri/mediatek
mt6592/kernel/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
C
gpl-2.0
25,647
/* * linux/net/sunrpc/xprt.c * * This is a generic RPC call interface supporting congestion avoidance, * and asynchronous calls. * * The interface works like this: * * - When a process places a call, it allocates a request slot if * one is available. Otherwise, it sleeps on the backlog queue * (xprt_rese...
mlachwani/Android-4.4.3-HTC-M8-Kernel-ATT
net/sunrpc/xprt.c
C
gpl-2.0
26,919
/* * Copyright (c) 2013-2015 Paul B Mahol * * 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...
OshinKaramian/jsmc
server/ffmpeg/linux/libavfilter/af_afade.c
C
gpl-3.0
31,164
/* Execute compiled code */ /* XXX TO DO: XXX speed up searching for keywords by using a dictionary XXX document it! */ /* enable more aggressive intra-module optimizations, where available */ #define PY_LOCAL_AGGRESSIVE #include "Python.h" #include "code.h" #include "frameobject.h" #include "opcode.h" #i...
Kiddinglife/kidding-engine
python/Python/ceval.c
C
lgpl-3.0
150,792
/* * * Copyright 2015, Google 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: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
ipylypiv/grpc
src/core/lib/iomgr/socket_utils_posix.c
C
bsd-3-clause
2,652
/* linux/drivers/mtd/nand/s3c_nand.c * * Copyright (c) 2009 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. */ #inclu...
riversource/Galaxy-Note-Kernel
drivers/mtd/nand/s3c_nand.c
C
gpl-2.0
38,078
/* $Id: tif_thunder.c,v 1.12 2011-04-02 20:54:09 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * th...
malaterre/ITK
Modules/ThirdParty/TIFF/src/itktiff/tif_thunder.c
C
apache-2.0
6,640
/* * Copyright (C) International Business Machines Corp., 2000-2004 * Portions Copyright (C) Christoph Hellwig, 2001-2002 * * 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; eithe...
DIGImend/linux
fs/jfs/namei.c
C
gpl-2.0
37,800
/* * Copyright © 2015 Intel Corporation * * 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, pub...
BPI-SINOVOIP/BPI-Mainline-kernel
linux-5.4/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
C
gpl-2.0
9,776
/* * Copyright (c) 2010 Broadcom Corporation * * Permission to use, copy, modify, and/or 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 AUTHO...
redpig/linux
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c
C
gpl-2.0
109,440
/* * Copyright 2008 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. * Copyright 2009 Jerome Glisse. * * 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, in...
tobw/linux-curie
drivers/gpu/drm/radeon/radeon_device.c
C
gpl-2.0
28,249
/* * Performance events x86 architecture code * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2009 Red Hat, Inc., Ingo Molnar * Copyright (C) 2009 Jaswinder Singh Rajput * Copyright (C) 2009 Advanced Micro Devices, Inc., Robert Richter * Copyright (C) 2008-2009 Red Hat, Inc....
puppies/fl2440
linux-3.10.33/arch/x86/kernel/cpu/perf_event.c
C
gpl-2.0
48,563
#include <linux/compiler.h> #include <linux/mm.h> #include <linux/signal.h> #include <linux/smp.h> #include <asm/asm.h> #include <asm/bootinfo.h> #include <asm/byteorder.h> #include <asm/cpu.h> #include <asm/inst.h> #include <asm/processor.h> #include <asm/uaccess.h> #include <asm/branch.h> #include <asm/mipsregs.h> #...
standak3/m8_ul_4.4.2_original
arch/mips/math-emu/dsemul.c
C
gpl-2.0
2,137
/* * Copyright IBM Corp. 2007,2011 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com> */ #define KMSG_COMPONENT "cpu" #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt #include <linux/workqueue.h> #include <linux/bootmem.h> #include <linux/cpuset.h> #include <linux/device.h> #include <linux/kernel.h> #include...
jameshilliard/m8-3.4.0-gb1fa77f
arch/s390/kernel/topology.c
C
gpl-2.0
9,909
/* The IGEN simulator generator for GDB, the GNU Debugger. Copyright 2002-2013 Free Software Foundation, Inc. Contributed by Andrew Cagney. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
dje42/gdb
sim/igen/table.c
C
gpl-2.0
12,894
/* * This file is part of UBIFS. * * Copyright (C) 2006-2008 Nokia 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 the hope t...
Evervolv/android_kernel_htc_msm8974
fs/ubifs/find.c
C
gpl-2.0
16,894
/************************************************************************** * * Copyright 2009, VMware, Inc. * All Rights Reserved. * Copyright 2010 George Sapountzis <gsapountzis@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documen...
gavinp/chromium
third_party/mesa/MesaLib/src/gallium/targets/dri-swrast/swrast_drm_api.c
C
bsd-3-clause
2,039
#include <linux/err.h> #include <linux/slab.h> #include <linux/kmod.h> #include <linux/list.h> #include <linux/spinlock.h> #include <linux/workqueue.h> #include <linux/notifier.h> #include <linux/netdevice.h> #include <linux/netfilter.h> #include <linux/module.h> #include <linux/cache.h> #include <linux/audit.h> #incl...
boa19861105/BOA
net/xfrm/xfrm_policy.c
C
gpl-2.0
67,573
/* * platform.c - platform 'pseudo' bus for legacy devices * * Copyright (c) 2002-3 Patrick Mochel * Copyright (c) 2002-3 Open Source Development Labs * * This file is released under the GPLv2 * * Please see Documentation/driver-model/platform.txt for more * information. */ #include <linux/string.h> #include...
eva-oss/linux
drivers/base/platform.c
C
gpl-2.0
37,422
#include <linux/bitops.h> #include <linux/slab.h> #include <linux/bio.h> #include <linux/mm.h> #include <linux/pagemap.h> #include <linux/page-flags.h> #include <linux/spinlock.h> #include <linux/blkdev.h> #include <linux/swap.h> #include <linux/writeback.h> #include <linux/pagevec.h> #include <linux/prefetch.h> #inclu...
andreamerello/linux-stm32
fs/btrfs/extent_io.c
C
gpl-2.0
150,772
/* * Copyright (C) STMicroelectronics SA 2014 * Authors: Benjamin Gaignard <benjamin.gaignard@st.com> * Fabien Dessenne <fabien.dessenne@st.com> * for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ #include <linux/clk.h> #include <linux/dma-mapping.h> #inc...
systemdaemon/systemd
src/linux/drivers/gpu/drm/sti/sti_gdp.c
C
gpl-2.0
15,476
/* * This file contains the handling of command. * It prepares command and sends it to firmware when it is ready. */ #include <linux/hardirq.h> #include <linux/kfifo.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/if_arp.h> #include <linux/export.h> #include "decl.h" #include "cfg.h" #include "...
david-a-wheeler/linux
drivers/net/wireless/marvell/libertas/cmd.c
C
gpl-2.0
43,430
/* * (C) Copyright 2013 * David Feng <fenghua@phytium.com.cn> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <linux/compiler.h> int interrupt_init(void) { return 0; } void enable_interrupts(void) { return; } int disable_interrupts(void) { return 0; } void show_regs(struct pt_regs *r...
mdxy2010/forlinux-ok6410
u-boot15/arch/arm/lib/interrupts_64.c
C
gpl-2.0
2,563
/* * U-boot - traps.c Routines related to interrupts and exceptions * * Copyright (c) 2005 blackfin.uclinux.org * * This file is based on * No original Copyright holder listed, * Probabily original (C) Roman Zippel (assigned DJD, 1999) * * Copyright 2003 Metrowerks - for Blackfin * Copyright 2000-2001 Lineo, ...
daydaygit/flrelse
uboot1.1.6/cpu/bf533/traps.c
C
gpl-3.0
2,260
#undef DEBUG /* * ARM performance counter support. * * Copyright (C) 2009 picoChip Designs, Ltd., Jamie Iles * Copyright (C) 2010 ARM Ltd., Will Deacon <will.deacon@arm.com> * * This code is based on the sparc64 perf event code, which is in turn based * on the x86 code. */ #define pr_fmt(fmt) "hw perfevents: "...
BPI-SINOVOIP/BPI-Mainline-kernel
linux-4.14/drivers/perf/arm_pmu.c
C
gpl-2.0
21,948
/* * linux/drivers/video/fb_defio.c * * Copyright (C) 2006 Jaya Kumar * * 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/module.h> #include <linux/kernel.h> #include <linux...
kzlin129/tt-gpl
go12/linux-2.6.28.10/drivers/video/fb_defio.c
C
gpl-2.0
5,396
/* Copyright (c) 2011, 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...
playfulgod/kernel_lge-m695
drivers/video/msm/lcdc_auo_wvga.c
C
gpl-2.0
9,125
/* $Id: tif_codec.c,v 1.17 2015-08-19 02:31:04 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * tha...
pmonasse/stereo-adaptive-weights
third_party/tiff-4.0.8/libtiff/tif_codec.c
C
gpl-3.0
4,991
/******************************************************************************* Intel PRO/1000 Linux driver Copyright(c) 1999 - 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 pub...
rahulkodinya/drm
drivers/net/ethernet/intel/e1000e/ethtool.c
C
gpl-2.0
57,641
// SPDX-License-Identifier: GPL-2.0 #include <test_progs.h> static void test_task_fd_query_tp_core(const char *probe_name, const char *tp_name) { const char *file = "./test_tracepoint.o"; int err, bytes, efd, prog_fd, pmu_fd; struct perf_event_attr attr = {}; __u64 probe_offset, probe_addr; __u32 len, ...
koct9i/linux
tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c
C
gpl-2.0
2,357
/* histogram/add.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough * * 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 3 of the License, or (at * your opti...
vankampen92/islandPLUS
src/lib_gsl/histogram/add.c
C
gpl-3.0
1,448
/* * PCI searching functions. * * Copyright (C) 1993 -- 1997 Drew Eckhardt, Frederic Potter, * David Mosberger-Tang * Copyright (C) 1997 -- 2000 Martin Mares <mj@ucw.cz> * Copyright (C) 2003 -- 2004 Greg Kroah-Hartman <greg@kroah.com> */ #include <linux/pci.h> #include <linux/slab.h> #include <linux/module....
AiJiaZone/linux-4.0
virt/drivers/pci/search.c
C
gpl-2.0
12,294
// SPDX-License-Identifier: GPL-2.0 #include <test_progs.h> static void test_global_data_number(struct bpf_object *obj, __u32 duration) { int i, err, map_fd; uint64_t num; map_fd = bpf_find_map(__func__, obj, "result_number"); if (map_fd < 0) { error_cnt++; return; } struct { char *name; uint32_t key; ...
koct9i/linux
tools/testing/selftests/bpf/prog_tests/global_data.c
C
gpl-2.0
4,248
#include <linux/configfs.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/device.h> #include <linux/nls.h> #include <linux/usb/composite.h> #include <linux/usb/gadget_configfs.h> #include "configfs.h" #include "u_f.h" #include "u_os_desc.h" int check_user_usb_string(const char *name, struct usb_g...
bas-t/linux_media
drivers/usb/gadget/configfs.c
C
gpl-2.0
37,760
/* * Copyright © 2016 Intel Corporation * * 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, pub...
BPI-SINOVOIP/BPI-Mainline-kernel
linux-4.14/drivers/gpu/drm/i915/selftests/mock_gtt.c
C
gpl-2.0
3,765
/* * Support PCI/PCIe on PowerNV platforms * * Copyright 2011 Benjamin Herrenschmidt, IBM Corp. * * 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 (a...
geminy/aidear
oss/linux/linux-4.7/arch/powerpc/platforms/powernv/pci-ioda.c
C
gpl-3.0
99,278
/* * Copyright (C) 2007-2009 Luca Tettamanti <kronos.it@gmail.com> * * This file is released under the GPLv2 * See COPYING in the top level directory of the kernel tree. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/debugfs.h> #include <linux/kernel.h> #include <linux/hwmon.h> #include <linux/li...
qzhuyan/linux
drivers/hwmon/asus_atk0110.c
C
gpl-2.0
32,811
/* Copyright (c) 2011-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 Software Foundation. * * This program is distributed in the ...
KylinUI/android_kernel_sony_apq8064
drivers/media/radio/radio-iris.c
C
gpl-2.0
113,202
/* * Copyright (c) 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 Software Foundation. * * This program is distributed in the h...
TeamRegular/android_kernel_lge_e2nxx-stock
arch/arm/mach-msm/acpuclock-cortex.c
C
gpl-2.0
11,427
#include <arm_neon.h> /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */ int32x4x4_t f_vld4q_lane_s32 (int32_t * p, int32x4x4_t v) { int32x4x4_t res; /* { dg-error "lane 4 out of range 0 - 3" "" { target *-*-* } 0 } */ res = vld4q_lane_s32 (p, v, 4); /* { dg-error "lane -1 ou...
selmentdev/selment-toolchain
source/gcc-latest/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vld4q_lane_s32_indices_1.c
C
gpl-3.0
416
/* * dvbdev.c * * Copyright (C) 2000 Ralph Metzler <ralph@convergence.de> * & Marcus Metzler <marcus@convergence.de> * for convergence integrated media GmbH * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Genera...
mikedlowis-prototypes/albase
source/kernel/drivers/media/dvb-core/dvbdev.c
C
bsd-2-clause
22,804
/* * fs/signalfd.c * * Copyright (C) 2003 Linus Torvalds * * Mon Mar 5, 2007: Davide Libenzi <davidel@xmailserver.org> * Changed ->read() to return a siginfo strcture instead of signal number. * Fixed locking in ->poll(). * Added sighand-detach notification. * Added fd re-use in sys_sig...
gamvrosi/scrubber
linux-2.6.35/fs/signalfd.c
C
gpl-3.0
7,258
/* Implementation of the PRODUCT intrinsic Copyright (C) 2002-2015 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran runtime library (libgfortran). Libgfortran is free software; you can redistribute it and/or modify it under the terms of the GNU Genera...
evaautomation/gcc-linaro
libgfortran/generated/product_c16.c
C
gpl-2.0
12,146
/* * Transparent proxy support for Linux/iptables * * Copyright (C) 2007-2008 BalaBit IT Ltd. * Author: Krisztian Kovacs * * 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. * *...
uoaerg/linux-dccp
net/netfilter/xt_socket.c
C
gpl-2.0
8,158
/* * Copyright © 2010 Intel Corporation * * 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, pub...
shakalaca/ASUS_ZenFone_A500CG_A600CG
linux/modules/intel_media/display/pnw/drv/mdfld_dsi_pkg_sender.c
C
gpl-2.0
43,783
/* * linux/fs/jbd2/commit.c * * Written by Stephen C. Tweedie <sct@redhat.com>, 1998 * * Copyright 1998 Red Hat corp --- All Rights Reserved * * This file is part of the Linux kernel and is made available under * the terms of the GNU General Public License, version 2, or at your * option, any later version, in...
ggsamsa/sched_casio
fs/jbd2/commit.c
C
gpl-2.0
32,905
/* aries-watchdog.c * * Copyright (C) 2010 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...
project-voodoo/android_kernel_samsung
arch/arm/mach-s5pv210/aries-watchdog.c
C
gpl-2.0
2,628
// SPDX-License-Identifier: GPL-2.0-only /* * ARC700 mmap * * (started from arm version - for VIPT alias handling) * * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) */ #include <linux/fs.h> #include <linux/mm.h> #include <linux/mman.h> #include <linux/sched/mm.h> #include <asm/cacheflush.h> #define COLO...
CSE3320/kernel-code
linux-5.8/arch/arc/mm/mmap.c
C
gpl-2.0
1,798
#include "p18.h"
kmtoki/qmk_firmware
keyboards/pabile/p18/p18.c
C
gpl-2.0
17
/* crypto/o_time.c -*- mode:C; c-file-style: "eay" -*- */ /* * Written by Richard Levitte (richard@levitte.org) for the OpenSSL project * 2001. */ /* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project * 2008. */ /* ==================================================================== * C...
Gum-Joe/nodegit
vendor/openssl/openssl/crypto/o_time.c
C
mit
14,435
/* * TCP over IPv6 * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Based on: * linux/net/ipv4/tcp.c * linux/net/ipv4/tcp_input.c * linux/net/ipv4/tcp_output.c * * Fixes: * Hideaki YOSHIFUJI : sin6_scope_id support * YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket ...
chucktr/vigor_aosp_kernel
net/ipv6/tcp_ipv6.c
C
gpl-2.0
60,707
/* * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Licensed under the GPL * * Ported the filesystem routines to 2.5. * 2003-02-10 Petr Baudis <pasky@ucw.cz> */ #include <linux/fs.h> #include <linux/magic.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/pagemap.h> #incl...
mikedlowis-prototypes/albase
source/kernel/fs/hostfs/hostfs_kern.c
C
bsd-2-clause
21,242
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) STMicroelectronics 2020 */ #include <linux/bitfield.h> #include <linux/clk.h> #include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/of_platform.h> #include <linux/pinctrl/consumer.h> #include <linux/regmap.h> #include <linux/reset.h> /* FMC2 C...
rperier/linux
drivers/memory/stm32-fmc2-ebi.c
C
gpl-2.0
31,237
#include "cache.h" /* * Do not use this for inspecting *tracked* content. When path is a * symlink to a directory, we do not want to say it is a directory when * dealing with tracked content in the working tree. */ static int is_directory(const char *path) { struct stat st; return (!stat(path, &st) && S_ISDIR(s...
focuslau/kernel-moto-photon-ics
tools/perf/util/abspath.c
C
gpl-2.0
2,805
/* * fs/kernfs/dir.c - kernfs directory implementation * * Copyright (c) 2001-3 Patrick Mochel * Copyright (c) 2007 SUSE Linux Products GmbH * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org> * * This file is released under the GPLv2. */ #include <linux/sched.h> #include <linux/fs.h> #include <linux/namei.h>...
stefanstrogin/linux
fs/kernfs/dir.c
C
gpl-2.0
36,295
// SPDX-License-Identifier: GPL-2.0-or-later /* audit_watch.c -- watching inodes * * Copyright 2003-2009 Red Hat, Inc. * Copyright 2005 Hewlett-Packard Development Company, L.P. * Copyright 2005 IBM Corporation */ #include <linux/file.h> #include <linux/kernel.h> #include <linux/audit.h> #include <linux/kthread.h...
CSE3320/kernel-code
linux-5.8/kernel/audit_watch.c
C
gpl-2.0
14,172
/* * Copyright (c) 2005 Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement * retains certain rights in this software. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
wdicharry/xdm
src/plugins/xdmExodus/exodusii/cbind/src/exgvv.c
C
gpl-3.0
3,538
/** ****************************************************************************** * @file stm32f3xx_hal_i2s.c * @author MCD Application Team * @version V1.1.0 * @date 12-Sept-2014 * @brief I2S HAL module driver. * This file provides firmware functions to manage the following * ...
ruriwo/ErgoThumb072_firmware
tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.c
C
gpl-2.0
42,032
/* * Copyright(c) 2007 - 2008 Intel Corporation. All rights reserved. * * 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 h...
EAVR/EV3.14
ev3sources/extra/linux-03.20.00.13/drivers/scsi/libfc/fc_disc.c
C
gpl-2.0
20,330
/* * s5m8767.c * * Copyright (c) 2011 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; either version 2 of the...
danielhk/android_kernel_samsung_smdk4210
drivers/regulator/s5m8767.c
C
gpl-2.0
26,810
/* * Micro Crystal RV-3029 / RV-3049 rtc class driver * * Author: Gregory Hermant <gregory.hermant@calao-systems.com> * Michael Buesch <m@bues.ch> * * based on previously existing rtc class drivers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU ...
mkvdv/au-linux-kernel-autumn-2017
linux/drivers/rtc/rtc-rv3029c2.c
C
gpl-3.0
23,909
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008 * Guennadi Liakhovetski, DENX Software Engineering, <lg@denx.de> */ #include <linux/init.h> #include <linux/err.h> #include <linux/spinlock.h> #include <linux/delay.h> #include <linux/clk.h> #include <linux/irq.h> #include <linux/io.h> #include <linux...
rperier/linux
drivers/dma/ipu/ipu_irq.c
C
gpl-2.0
8,917
/* * drivers/media/i2c/ad5820.c * * AD5820 DAC driver for camera voice coil focus. * * Copyright (C) 2008 Nokia Corporation * Copyright (C) 2007 Texas Instruments * Copyright (C) 2016 Pavel Machek <pavel@ucw.cz> * * Contact: Tuukka Toivonen <tuukkat76@gmail.com> * Sakari Ailus <sakari.ailus@iki.fi> * * ...
jallen93/linux-vnic-dbg
drivers/media/i2c/ad5820.c
C
gpl-2.0
8,810