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/base/power/main.c - Where the driver meets power management.
*
* Copyright (c) 2003 Patrick Mochel
* Copyright (c) 2003 Open Source Development Lab
*
* This file is released under the GPLv2
*
*
* The driver model core calls device_pm_add() when a device is registered.
* This will intialize the em... | wfarnsworth/utrace-beagle | drivers/base/power/main.c | C | gpl-2.0 | 27,725 |
/* parsermodule.c
*
* Copyright 1995-1996 by Fred L. Drake, Jr. and Virginia Polytechnic
* Institute and State University, Blacksburg, Virginia, USA.
* Portions copyright 1991-1995 by Stichting Mathematisch Centrum,
* Amsterdam, The Netherlands. Copying is permitted under the terms
* associated with the ma... | MicroTrustRepos/microkernel | src/l4/pkg/python/contrib/Modules/parsermodule.c | C | gpl-2.0 | 99,597 |
/*
* Copyright (c) 2014 Samsung Electronics, Inc.
* All rights reserved.
*
* This software is a confidential and proprietary information
* of Samsung Electronics, Inc. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the... | kadasaikumar/iotivity-1.2.1 | service/resource-hosting/SampleApp/tizen/sampleConsumer/src/oicapp-utils.c | C | gpl-3.0 | 1,944 |
/*
* Connexant Cx11646 library
* Copyright (C) 2004 Michel Xhaard mxhaard@magic.fr
*
* V4L2 by Jean-Francois Moine <http://moinejf.free.fr>
*
* 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 Founda... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/drivers/media/usb/gspca/conex.c | C | gpl-2.0 | 30,267 |
/* Area: ffi_call
Purpose: Check structures.
Limitations: none.
PR: none.
Originator: From the original ffitest.c */
/* { dg-do run } */
#include "ffitest.h"
typedef struct
{
float f;
int i;
} test_structure_9;
static test_structure_9 ABI_ATTR struct9 (test_structure_9 ts)
{
ts.f += 1;
ts.i += ... | fernandoandreotti/cibim | vendor/ruby/2.4.0/gems/ffi-1.9.23/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c | C | apache-2.0 | 1,391 |
// RUN: %clang_cc1 %s -emit-llvm -g -o /dev/null
typedef void (*sigcatch_t)( struct sigcontext *);
sigcatch_t sigcatch[50] = {(sigcatch_t) 0};
| rutgers-apl/Atomicity-Violation-Detector | tdebug-llvm/clang/test/CodeGen/2010-01-14-FnType-DebugInfo.c | C | gpl-2.0 | 144 |
/*************************************************************************
* myri10ge.c: Myricom Myri-10G Ethernet driver.
*
* Copyright (C) 2005 - 2009 Myricom, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... | dancefire/hd806-kernel-android | drivers/net/myri10ge/myri10ge.c | C | gpl-2.0 | 115,129 |
/*
* pSeries_lpar.c
* Copyright (C) 2001 Todd Inglett, IBM Corporation
*
* pSeries LPAR support.
*
* 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
*... | uniphier/linux-unph | arch/powerpc/platforms/pseries/lpar.c | C | gpl-2.0 | 33,066 |
/*
* Wistron laptop button driver
* Copyright (C) 2005 Miloslav Trmac <mitr@volny.cz>
* Copyright (C) 2005 Bernhard Rosenkraenzer <bero@arklinux.org>
* Copyright (C) 2005 Dmitry Torokhov <dtor@mail.ru>
*
* You can redistribute and/or modify this program under the terms of the
* GNU General Public License version... | jameshilliard/m8-3.4.0-gb1fa77f | drivers/input/misc/wistron_btns.c | C | gpl-2.0 | 32,154 |
/*
* net/sched/act_api.c Packet action API.
*
* 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.
*
* Author: Ja... | wozgeass/Raspberry-RT | net/sched/act_api.c | C | gpl-2.0 | 23,895 |
/*
* Routines providing a simple monitor for use on the PowerMac.
*
* Copyright (C) 1996-2005 Paul Mackerras.
* Copyright (C) 2001 PPC64 Team, IBM Corp
* Copyrignt (C) 2006 Michael Ellerman, IBM Corp
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the G... | ljalves/linux_media | arch/powerpc/xmon/xmon.c | C | gpl-2.0 | 77,316 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* AD5446 SPI DAC driver
*
* Copyright 2010 Analog Devices Inc.
*/
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/list.h>
#include <linux/sp... | CSE3320/kernel-code | linux-5.8/drivers/iio/dac/ad5446.c | C | gpl-2.0 | 14,883 |
/* PR middle-end/17813 */
/* Origin: Tom Hughes <tom@compton.nu> */
/* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */
/* { dg-options "-O -fomit-frame-pointer" } */
/* { dg-options "-O -fomit-frame-pointer -march=i386" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
#include <setjmp.h>
#include <signal.... | the-linix-project/linix-kernel-source | gccsrc/gcc-4.7.2/gcc/testsuite/gcc.dg/setjmp-2.c | C | bsd-2-clause | 1,080 |
// SPDX-License-Identifier: GPL-2.0
// spi-uniphier.c - Socionext UniPhier SPI controller driver
// Copyright 2012 Panasonic Corporation
// Copyright 2016-2018 Socionext Inc.
#include <linux/kernel.h>
#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <l... | c0d3z3r0/linux-rockchip | drivers/spi/spi-uniphier.c | C | gpl-2.0 | 19,884 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* TI BQ25890 charger driver
*
* Copyright (C) 2015 Intel Corporation
*/
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/power_supply.h>
#include <linux/regmap.h>
#include <linux/types.h>
#include <linux/gpio/consumer.h>
#include <linux/interrupt.h>
#... | mpe/powerpc | drivers/power/supply/bq25890_charger.c | C | gpl-2.0 | 28,514 |
// SPDX-License-Identifier: GPL-2.0
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundatio... | HarveyHunt/linux | drivers/staging/lustre/lnet/lnet/nidstrings.c | C | gpl-2.0 | 29,102 |
/*
* 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) 2016 Advanced Micro Devices, Inc. All Rights Reserved.
* Copyright (C) 2016 T-Platforms. All Rights Reserved.
*
* This pr... | raumfeld/linux-am33xx | drivers/ntb/hw/amd/ntb_hw_amd.c | C | gpl-2.0 | 27,573 |
/*
* Copyright (C) 2009 Texas Instruments Inc.
*
* Modified from mach-omap2/board-zoom2.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.
*/
#include <linux/kernel.h>
#inclu... | JijonHyuni/HyperKernel-JB | virt/arch/arm/mach-omap2/board-zoom-peripherals.c | C | gpl-2.0 | 9,696 |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com
* Written by Alex Tomas <alex@clusterfs.com>
*
* Architecture independence:
* Copyright (c) 2005, Bull S.A.
* Written by Pierre Peiffer <pierre.peiffer@bull.net>
*/
/*
* Extents support for EXT4
... | uniphier/linux-unph | fs/ext4/extents.c | C | gpl-2.0 | 165,044 |
/*
kmod, the new module loader (replaces kerneld)
Kirk Petersen
Reorganized not to be a daemon by Adam Richter, with guidance
from Greg Zornetzer.
Modified to avoid chroot and file sharing problems.
Mikael Pettersson
Limit the concurrent number of kmod modprobes to catch loops from
"modprobe needs a service ... | ystk/linux-poky-debian | kernel/kmod.c | C | gpl-2.0 | 19,341 |
/*
* 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.
*/
#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <linux/hwmon.h>
#include <linux/list.h>
#include <linux/module.h>
#include <ac... | thanhnhiel/linux-emcraft | drivers/hwmon/asus_atk0110.c | C | gpl-2.0 | 32,893 |
/*
* (C) Copyright 2001
* Denis Peter, MPL AG Switzerland, d.peter@mpl.ch
*
* 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 Softwar... | kbridgers/VOLTE4GFAX | uboot/u-boot-2010.06/board/mpl/common/memtst.c | C | gpl-2.0 | 13,953 |
/*
* UWB DRP IE management.
*
* Copyright (C) 2005-2006 Intel Corporation
* Copyright (C) 2008 Cambridge Silicon Radio Ltd.
*
* 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.
*... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/uwb/drp-ie.c | C | gpl-2.0 | 9,720 |
/*
* Universal Interface for Intel High Definition Audio Codec
*
* Generic widget tree parser
*
* Copyright (c) 2004 Takashi Iwai <tiwai@suse.de>
*
* This driver 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... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/sound/pci/hda/hda_generic.c | C | gpl-2.0 | 29,040 |
/****************************************************************************
*
* Filename: cpia2_v4l.c
*
* Copyright 2001, STMicrolectronics, Inc.
* Contact: steve.miller@st.com
* Copyright 2001,2005, Scott J. Bertin <scottbertin@yahoo.com>
*
* Description:
* This is a USB driver for CPia2 based... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/media/video/cpia2/cpia2_v4l.c | C | gpl-2.0 | 50,706 |
// SPDX-License-Identifier: GPL-2.0
#include <test_progs.h>
#include <network_helpers.h>
void test_prog_run_xattr(void)
{
const char *file = "./test_pkt_access.o";
struct bpf_object *obj;
char buf[10];
int err;
struct bpf_prog_test_run_attr tattr = {
.repeat = 1,
.data_in = &pkt_v4,
.data_size_in = sizeof(p... | penberg/linux | tools/testing/selftests/bpf/prog_tests/prog_run_xattr.c | C | gpl-2.0 | 1,375 |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2003-2015 Broadcom Corporation
* All Rights Reserved
*/
#include <linux/gpio/driver.h>
#include <linux/platform_device.h>
#include <linux/of_device.h>
#include <linux/module.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/irqchip/chained_... | gazoo74/linux | drivers/gpio/gpio-xlp.c | C | gpl-2.0 | 12,004 |
/*
* arch/s390/hypfs/hypfs_diag.c
* Hypervisor filesystem for Linux on s390. Diag 204 and 224
* implementation.
*
* Copyright IBM Corp. 2006, 2008
* Author(s): Michael Holzheu <holzheu@de.ibm.com>
*/
#define KMSG_COMPONENT "hypfs"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/types.h... | 110440/fastsocket | kernel/arch/s390/hypfs/hypfs_diag.c | C | gpl-2.0 | 18,858 |
/*
* Server-side XDR for NFSv4
*
* Copyright (c) 2002 The Regents of the University of Michigan.
* All rights reserved.
*
* Kendrick Smith <kmsmith@umich.edu>
* Andy Adamson <andros@umich.edu>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | nazgee/igep-kernel | fs/nfsd/nfs4xdr.c | C | gpl-2.0 | 84,583 |
/*
* Freescale i.MX28 timer driver
*
* Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
* on behalf of DENX Software Engineering GmbH
*
* Based on code from LTIB:
* (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This... | JeremySavonet/Eurobot-2017-Moon-Village | software/custom_leds/fpga/software/spl_bsp/uboot-socfpga/arch/arm/cpu/arm926ejs/mxs/timer.c | C | gpl-3.0 | 3,771 |
// RUN: not %clang_cc1 %s -fsyntax-only -fdiagnostics-parseable-fixits 2>&1 | FileCheck %s
// vim: set binary noeol:
// This file intentionally ends without a \n on the last line. Make sure your
// editor doesn't add one. The trailing space is also intentional.
// CHECK: :9:8: warning: duplicate 'extern' declaration... | cd80/UtilizedLLVM | tools/clang/test/FixIt/fixit-eof-space.c | C | unlicense | 385 |
/*
This file is based on:
$XFree86: xc/programs/Xserver/hw/xfree86/etc/scanpci.c,v 3.34.2.17 1998/11/10 11:55:40 dawes Exp $
Modified for readability by Nick Kurshev
*/
/*
* Copyright 1995 by Robin Cutshaw <robin@XFree86.Org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
*... | larsmagne/mplayer | vidix/sysdep/pci_netbsd.c | C | gpl-2.0 | 2,117 |
/*
* NET3 Protocol independent device support routines.
*
* 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.
*
... | crseanpaul/exynos-drm-next | net/core/dev.c | C | gpl-2.0 | 163,626 |
/*
* Author: Andy Fleming <afleming@freescale.com>
* Kumar Gala <galak@kernel.crashing.org>
*
* Copyright 2006-2008, 2011-2012 Freescale Semiconductor 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
... | ccotter/linux-deterministic | arch/powerpc/platforms/85xx/smp.c | C | gpl-2.0 | 9,126 |
/*
* Copyright (C) 2005-2007 Red Hat GmbH
*
* A target that delays reads and/or writes and can send
* them to different devices.
*
* This file is released under the GPL.
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/blkdev.h>
#include <linux/bio.h>
#include <linux/slab.h>
#include <linux... | SebKuzminsky/linux-stable | drivers/md/dm-delay.c | C | gpl-2.0 | 8,635 |
#define PJ_LIB__
# include <projects.h>
PROJ_HEAD(gins8, "Ginsburg VIII (TsNIIGAiK)") "\n\tPCyl, Sph., no inv.";
#define Cl 0.000952426
#define Cp 0.162388
#define C12 0.08333333333333333
FORWARD(s_forward); /* spheroid */
double t = lp.phi * lp.phi;
xy.y = lp.phi * (1. + t * C12);
xy.x = lp.lam * (1. - Cp * t);
t... | zhm/node-spatialite | src/spatialite/deps/proj/proj/src/PJ_gins8.c | C | bsd-3-clause | 487 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* X.25 Packet Layer release 002
*
* This is ALPHA test software. This code may break your machine,
* randomly fail to work with new releases, misbehave and/or generally
* screw up. It might even work.
*
* This code REQUIRES 2.1.15 or higher
*
* History
* X.25 00... | rperier/linux | net/x25/x25_link.c | C | gpl-2.0 | 9,234 |
/* Copyright (c) 2003-2004, Roger Dingledine
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2013, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file address.c
* \brief Functions to use and manipulate the tor_addr_t structure.
**/
#include "orconfig... | sweepstakecoin/sweepstakecoin | src/tor/address.c | C | mit | 49,889 |
/*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2014 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
#include "qla_def.h"
#include "qla_target.h"
#include <linux/kthread.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/delay.h>
static int qla24xx... | mikedlowis-prototypes/albase | source/kernel/drivers/scsi/qla2xxx/qla_attr.c | C | bsd-2-clause | 64,344 |
/* Copyright (c) 2008-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... | NamelessRom/android_kernel_lge_msm8610 | drivers/char/diag/diagchar_core.c | C | gpl-2.0 | 61,822 |
/*
* Copyright © 2008-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... | dperezde/little-penguin | linux-eudyptula/drivers/gpu/drm/i915/intel_ringbuffer.c | C | gpl-2.0 | 71,135 |
/* Common hooks for Xilinx MicroBlaze.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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, or (at... | KubaKaszycki/kubux | gcc/gcc/common/config/microblaze/microblaze-common.c | C | gpl-3.0 | 1,516 |
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
*
* RMNET configuration engine
*/
#include <net/sock.h>
#include <linux/module.h>
#include <linux/netlink.h>
#include <linux/netdevice.h>
#include "rmnet_config.h"
#include "rmnet_handlers.h"
#include "rm... | koct9i/linux | drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | C | gpl-2.0 | 11,619 |
/*
* Copyright (C) 2014 Freie Universität Berlin
*
* 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 cpu_lpc1768
* @{
*
* @file
* @brief Implementation of the low... | koenning/RIOT | cpu/lpc1768/periph/uart.c | C | lgpl-2.1 | 8,199 |
/*
** =========================================================================
** File:
** tspdrv.c
**
** Description:
** TouchSense Kernel Module main entry-point.
**
** Portions Copyright (c) 2008-2010 Immersion Corporation. All Rights Reserved.
**
** This file contains Original Code and/or Modifications of ... | friedrich420/N3-AEL-Kernel-Lollipop-Ed. | drivers/motor/tspdrv.c | C | gpl-2.0 | 24,918 |
/*
comedi/drivers/mpc624.c
Hardware driver for a Micro/sys inc. MPC-624 PC/104 board
COMEDI - Linux Control and Measurement Device Interface
Copyright (C) 2000 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 G... | talnoah/android_kernel_htc_dlx | virt/drivers/staging/comedi/drivers/mpc624.c | C | gpl-2.0 | 12,985 |
/*
* QEMU KVM stub
*
* Copyright Red Hat, Inc. 2010
*
* Author: Paolo Bonzini <pbonzini@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
#include "qemu-common.h"
#include "hw/hw.h"
#include "cpu.h"
#include "... | marsleezm/qemu | kvm-stub.c | C | gpl-2.0 | 2,123 |
/*
* Support for HTC Magician PDA phones:
* i-mate JAM, O2 Xda mini, Orange SPV M500, Qtek s100, Qtek s110
* and T-Mobile MDA Compact.
*
* Copyright (c) 2006-2007 Philipp Zabel
*
* Based on hx4700.c, spitz.c and others.
*
* This program is free software; you can redistribute it and/or modify
* it under the te... | kv193/buildroot | linux/linux-kernel/arch/arm/mach-pxa/magician.c | C | gpl-2.0 | 18,186 |
/*
* QEMU i8255x (PRO100) emulation
*
* Copyright (C) 2006-2011 Stefan Weil
*
* Portions of the code are copies from grub / etherboot eepro100.c
* and linux e100.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
*... | andrew-pa/limbo-android | jni/qemu/hw/eepro100.c | C | gpl-2.0 | 70,586 |
/**
******************************************************************************
* @file stm32f7xx_hal_ltdc.c
* @author MCD Application Team
* @brief LTDC HAL module driver.
* This file provides firmware functions to manage the following
* functionalities of the LTDC peripheral:
... | adfernandes/mbed | targets/TARGET_STM/TARGET_STM32F7/STM32Cube_FW/STM32F7xx_HAL_Driver/stm32f7xx_hal_ltdc.c | C | apache-2.0 | 70,299 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* pSeries NUMA support
*
* Copyright (C) 2002 Anton Blanchard <anton@au.ibm.com>, IBM
*/
#define pr_fmt(fmt) "numa: " fmt
#include <linux/threads.h>
#include <linux/memblock.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/mmzone.h>
#include <linux/ex... | CSE3320/kernel-code | linux-5.8/arch/powerpc/mm/numa.c | C | gpl-2.0 | 40,786 |
/*
* Copyright (C) 2009,2010,2011 Imagination Technologies Ltd.
*
* Copyright (C) 2002 ARM Limited, 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 Foundation.
*/
... | aps243/kernel-imx | arch/metag/kernel/smp.c | C | gpl-2.0 | 12,596 |
/* bnx2x_ethtool.c: Broadcom Everest network driver.
*
* Copyright (c) 2007-2011 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.
*
* Maintained by: Eilon Greenstei... | jpihet/linux | drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | C | gpl-2.0 | 65,376 |
/*
* NETLINK Kernel-user communication protocol.
*
* Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
* Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
*
* 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 Sof... | agat63/AGAT_JB_kernel | net/netlink/af_netlink.c | C | gpl-2.0 | 48,959 |
/*
* (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/common/cmd_console.c | C | gpl-3.0 | 1,849 |
/*
* AD7152 capacitive sensor driver supporting AD7152/3
*
* Copyright 2010-2011a Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/i2c.h>
#include <linux/... | bas-t/linux_media | drivers/staging/iio/cdc/ad7152.c | C | gpl-2.0 | 13,830 |
/*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* Copyright (C) 2010 Samsung Electronics Co. Ltd.
* Jaswinder Singh <jassi.brar@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 publis... | djvoleur/S6-UniKernel_v4 | drivers/dma/pl330.c | C | gpl-2.0 | 77,687 |
/*
* PCI Backend - Handles the virtual fields in the configuration space headers.
*
* Author: Ryan Wilson <hap9@epoch.ncsc.mil>
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/pci.h>
#include "pciback.h"
#include "conf_space.h"
struct pci_bar_info {
u32 val;
u32 len_val... | ziqiaozhou/cachebar | source/drivers/xen/xen-pciback/conf_space_header.c | C | gpl-2.0 | 8,723 |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*============================================================================
**
** Source: test1.c
**
** Purpose:
** Tests to see that wcsncpy correctly copi... | Priya91/coreclr | src/pal/tests/palsuite/c_runtime/wcsncpy/test1/test1.c | C | mit | 1,867 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Qualcomm Wireless Connectivity Subsystem Iris driver
*
* Copyright (C) 2016 Linaro Ltd
* Copyright (C) 2014 Sony Mobile Communications AB
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*/
#include <linux/clk.h>
#include <linux/kernel.h>
#includ... | HinTak/linux | drivers/remoteproc/qcom_wcnss_iris.c | C | gpl-2.0 | 4,219 |
/*
* linux/arch/powerpc/kernel/traps.c
*
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
*
* Modified by Cort Dougan (cort@cs.nmt.edu)
* and Paul Mackerras (paulus@cs.anu.edu.au)
*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people w... | lxl1140989/dmsdk | uboot/u-boot-dm6291/arch/powerpc/cpu/74xx_7xx/traps.c | C | gpl-2.0 | 5,594 |
/**
******************************************************************************
* @file stm32f10x_i2c.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @brief This file provides all the I2C firmware functions.
***********************************************************... | gpgreen/adahrs-stm32-nucleo | system/src/stm32f1-stdperiph/stm32f10x_i2c.c | C | gpl-3.0 | 45,306 |
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
void SexiALI_Convert(void *vdest, void *vsrc, unsigned int frames)
{
unsigned int x;
short *src = vsrc;
unsigned char *dest = vdest;
for(x=0;x<256;x++)
{
int tmp;
tmp = *src;
src++;
tmp += *src;
src++;
*dest++ = tmp;
*dest++ = tm... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.dg/vect/pr37482.c | C | gpl-3.0 | 329 |
/* { dg-options "-O2 --save-temps" } */
/* { dg-do run } */
extern void abort (void);
int
test_si (int a, int b)
{
/* { dg-final { scan-assembler "extr\tw\[0-9\]+, w\[0-9\]+, w\[0-9\]+, 27\n" } } */
return (a << 5) | ((unsigned int) b >> 27);
}
long long
test_di (long long a, long long b)
{
/* { dg-final { sca... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.target/aarch64/extr.c | C | gpl-3.0 | 676 |
/******************************************************************************
*
* Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
*
* 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 ... | dperezde/little-penguin | linux/drivers/staging/rtl8188eu/core/rtw_debug.c | C | gpl-2.0 | 5,814 |
#include "builtin.h"
static void flush_current_id(int patchlen, unsigned char *id, git_SHA_CTX *c)
{
unsigned char result[20];
char name[50];
if (!patchlen)
return;
git_SHA1_Final(result, c);
memcpy(name, sha1_to_hex(id), 41);
printf("%s %s\n", sha1_to_hex(result), name);
git_SHA1_Init(c);
}
static int rem... | TextusData/Mover | thirdparty/git-1.7.11.3/builtin/patch-id.c | C | gpl-3.0 | 3,148 |
/*
* Support for Medifield PNW Camera Imaging ISP subsystem.
*
* Copyright (c) 2010 Intel Corporation. All Rights Reserved.
*
* Copyright (c) 2010 Silicon Hive www.siliconhive.com.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License ver... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.14/drivers/staging/media/atomisp/pci/atomisp2/hrt/hive_isp_css_mm_hrt.c | C | gpl-2.0 | 3,463 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright 2013 Cisco Systems, Inc. and/or its affiliates.
* All rights reserved.
*/
/* kernel includes */
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/... | koct9i/linux | drivers/media/radio/si4713/radio-usb-si4713.c | C | gpl-2.0 | 15,023 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Memory subsystem initialization for Hexagon
*
* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
*/
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/memblock.h>
#include <asm/atomic.h>
#include <linux/highmem.h>
#include <asm/tlb.h>
#inc... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/arch/hexagon/mm/init.c | C | gpl-2.0 | 6,604 |
/*
* UBSAN error reporting functions
*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
* Author: Andrey Ryabinin <ryabinin.a.a@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 Softwa... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/lib/ubsan.c | C | gpl-2.0 | 11,357 |
/*
* IUCV protocol stack for Linux on zSeries
*
* Copyright IBM Corp. 2006, 2009
*
* Author(s): Jennifer Hunt <jenhunt@us.ibm.com>
* Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
* PM functions:
* Ursula Braun <ursula.braun@de.ibm.com>
*/
#define KMSG_COMPONENT "af_iucv"
#define pr_fmt(fmt) KMSG_COMP... | animalcreek/linux | net/iucv/af_iucv.c | C | gpl-2.0 | 61,324 |
/*
*
* (C) COPYRIGHT 2011-2014 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you of this program is subject to the terms
* of such GNU licence.... | JonnyXDA/android_kernel_ulefone_metal | drivers/misc/mediatek/gpu/mt6735/mali-r7p0/drivers/base/ump/src/imports/ion/ump_kernel_import_ion.c | C | gpl-2.0 | 4,731 |
/*
* methods/gauss.c
*
* Calculate the sum of a given range of integer numbers.
*
* Somewhat of a more subtle way of calculation - and it even has a story
* behind it:
*
* Supposedly during math classes in elementary school, the teacher of
* young mathematician Gauss gave the class an assignment to calcu... | ibc/MediaSoup | worker/deps/lcov/example/methods/gauss.c | C | isc | 1,285 |
/*******************************************************************************
* Copyright (C) 2015 Maxim Integrated Products, Inc., 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 d... | ruriwo/ErgoThumb072_firmware | tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32610/i2c_api.c | C | gpl-2.0 | 12,961 |
/* -*- mode: c; c-basic-offset: 8; -*-
* vim: noexpandtab sw=8 ts=8 sts=0:
*
* Copyright (C) 2004, 2005 Oracle. 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; eit... | prasidh09/cse506 | unionfs-3.10.y/fs/ocfs2/cluster/heartbeat.c | C | gpl-2.0 | 70,858 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* arch/arm/kernel/unwind.c
*
* Copyright (C) 2008 ARM Limited
*
* Stack unwinding support for ARM
*
* An ARM EABI version of gcc is required to generate the unwind
* tables. For information about the structure of the unwind tables,
* see "Exception Handling ABI for t... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/arch/arm/kernel/unwind.c | C | gpl-2.0 | 13,433 |
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
//
// This file is provided under a dual BSD/GPLv2 license. When using or
// redistributing this file, you may do so under either license.
//
// Copyright(c) 2019 Intel Corporation. All rights reserved.
//
// Authors: Guennadi Liakhovetski <guennadi.liakhovets... | chenshuo/linux-study | sound/soc/sof/intel/intel-ipc.c | C | gpl-2.0 | 2,531 |
#include "66_hotswap.h"
| chancegrissom/qmk_firmware | keyboards/clueboard/66_hotswap/66_hotswap.c | C | gpl-2.0 | 26 |
/*
* xfrm4_policy.c
*
* Changes:
* Kazunori MIYAZAWA @USAGI
* YOSHIFUJI Hideaki @USAGI
* Split up af-specific portion
*
*/
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/inetdevice.h>
#include <net/dst.h>
#include <net/xfrm.h>
#include <net/ip.h>
static struct dst_ops xfrm4_dst_ops;
static... | go2ev-devteam/Gplus_2159_0801 | openplatform/sdk/os/kernel-2.6.32/net/ipv4/xfrm4_policy.c | C | gpl-2.0 | 7,447 |
/* riowd.c - driver for hw watchdog inside Super I/O of RIO
*
* Copyright (C) 2001, 2008 David S. Miller (davem@davemloft.net)
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include... | Andiry/Linux-xHCI-development | drivers/watchdog/riowd.c | C | gpl-2.0 | 5,827 |
/*
* QEMU Crystal CS4231 audio chip emulation
*
* Copyright (c) 2006 Fabrice Bellard
*
* 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... | VishalRohra/orp | third-party/qemu-orp/hw/audio/cs4231.c | C | apache-2.0 | 4,859 |
#include "pro_micro.h"
| chancegrissom/qmk_firmware | keyboards/converter/usb_usb/pro_micro/pro_micro.c | C | gpl-2.0 | 23 |
/*
* Copyright (c) 2006, 2007, 2008, 2009 QLogic Corporation. All rights reserved.
* Copyright (c) 2003, 2004, 2005, 2006 PathScale, 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 L... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/drivers/infiniband/hw/qib/qib_user_pages.c | C | gpl-2.0 | 4,658 |
#include <stdio.h>
#include "and.h"
#include "opcodes.h"
static void do_imm_insns(void)
{
immsweep(NIHF, 00000000);
immsweep(NIHF, 000000ff);
immsweep(NIHF, 00000055);
immsweep(NIHF, 000000aa);
immsweep(NIHF, 0000ffff);
immsweep(NIHF, 00005555);
immsweep(NIHF, 0000aaaa);
immsweep(NIHF, ffff0000);
immsweep(NIH... | acarno/slicer | valgrind/none/tests/s390x/and_EI.c | C | gpl-2.0 | 490 |
/*
* PPP async serial channel driver for Linux.
*
* Copyright 1999 Paul Mackerras.
*
* 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 op... | talnoah/android_kernel_htc_dlx | virt/drivers/net/ppp/ppp_async.c | C | gpl-2.0 | 24,225 |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2004 Hewlett-Packard Development Company, L.P.
* Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
*
* This is a pseudo I/O MMU which dispatches to the hardware I/O MMU
* whenever possible. We assume that the hardware I/O MMU requires
* full 32-bit a... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/arch/ia64/hp/common/hwsw_iommu.c | C | gpl-2.0 | 1,902 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* CM3232 Ambient Light Sensor
*
* Copyright (C) 2014-2015 Capella Microsystems Inc.
* Author: Kevin Tsai <ktsai@capellamicro.com>
*
* IIO driver for CM3232 (7-bit I2C slave address 0x10).
*/
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/drivers/iio/light/cm3232.c | C | gpl-2.0 | 10,716 |
/*
* Copyright 2009 Jerome Glisse.
* 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 deal in the Software without restriction, including
* without limitation the rights to use, copy,... | gamvrosi/duet | linux-3.13.6+duet/drivers/gpu/drm/radeon/radeon_ttm.c | C | gpl-2.0 | 24,159 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright 2008 Red Hat, Inc. All rights reserved.
* Copyright 2008 Ian Kent <raven@themaw.net>
*/
#include <linux/module.h>
#include <linux/miscdevice.h>
#include <linux/compat.h>
#include <linux/fdtable.h>
#include <linux/magic.h>
#include <linux/nospec.h>
#includ... | GuillaumeSeren/linux | fs/autofs/dev-ioctl.c | C | gpl-2.0 | 17,878 |
/* Test the `vaddhnu64' 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_vaddhnu64 (void)
{
uint32x2_t out_u... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.target/arm/neon/vaddhnu64.c | C | gpl-2.0 | 641 |
/******************************************************************************
*
* 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... | iwinoto/v4l-media_build | media/drivers/net/wireless/rtlwifi/rtl8192de/phy.c | C | gpl-2.0 | 119,494 |
/*
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
* 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 opt... | ziqiaozhou/cachebar | source/drivers/staging/vt6656/wctl.c | C | gpl-2.0 | 8,568 |
/*
* drivers/staging/android/ion/ion_cma_heap.c
*
* Copyright (C) Linaro 2012
* Author: <benjamin.gaignard@linaro.org> for ST-Ericsson.
*
* 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... | dperezde/little-penguin | linux/drivers/staging/android/ion/ion_cma_heap.c | C | gpl-2.0 | 4,233 |
/*
* Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar
* Copyright (C) 2005-2006, Thomas Gleixner, Russell King
*
* This file contains the interrupt descriptor management code
*
* Detailed information is available in Documentation/DocBook/genericirq
*
*/
#include <linux/irq.h>
#include <linux/slab.h>
#i... | dperezde/little-penguin | linux-eudyptula/kernel/irq/irqdesc.c | C | gpl-2.0 | 12,338 |
/*
* Virtual Processor Dispatch Trace Log
*
* (C) Copyright IBM Corporation 2009
*
* Author: Jeremy Kerr <jk@ozlabs.org>
*
* 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... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/arch/powerpc/platforms/pseries/dtl.c | C | gpl-2.0 | 6,531 |
/*
* Cobalt/SEAD3 LCD frame buffer driver.
*
* Copyright (C) 2008 Yoichi Yuasa <yuasa@linux-mips.org>
* Copyright (C) 2012 MIPS Technologies, 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 So... | AiJiaZone/linux-4.0 | virt/drivers/video/fbdev/cobalt_lcdfb.c | C | gpl-2.0 | 8,488 |
/*
* Cryptographic API.
*
* SHA1 Secure Hash Algorithm.
*
* Derived from cryptoapi implementation, adapted for in-place
* scatterlist interface.
*
* Copyright (c) Alan Smithee.
* Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk>
* Copyright (c) Jean-Francois Dive <jef@linuxbe.org>
*
* This program is f... | glfernando/kernel_m7 | crypto/sha1_generic.c | C | gpl-2.0 | 3,450 |
// SPDX-License-Identifier: GPL-2.0
/*
* Precise Delay Loops for i386
*
* Copyright (C) 1993 Linus Torvalds
* Copyright (C) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
* Copyright (C) 2008 Jiri Hladky <hladky _dot_ jiri _at_ gmail _dot_ com>
*
* The __delay function must _NOT_ be inlined as its execution tim... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/arch/x86/lib/delay.c | C | gpl-2.0 | 4,072 |
// SPDX-License-Identifier: GPL-2.0
/*
* Support for GalaxyCore GC0310 VGA camera sensor.
*
* Copyright (c) 2013 Intel Corporation. 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 ... | CSE3320/kernel-code | linux-5.8/drivers/staging/media/atomisp/i2c/atomisp-gc0310.c | C | gpl-2.0 | 32,626 |
/*
Auvitek AU8522 QAM/8VSB demodulator driver
Copyright (C) 2008 Steven Toth <stoth@linuxtv.org>
Copyright (C) 2008 Devin Heitmueller <dheitmueller@linuxtv.org>
Copyright (C) 2005-2008 Auvitek International, Ltd.
Copyright (C) 2012 Michael Krufky <mkrufky@linuxtv.org>
This program is free soft... | kv193/buildroot | linux/linux-kernel/drivers/media/dvb/frontends/au8522_common.c | C | gpl-2.0 | 7,063 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.