code stringlengths 1.03k 250k | repo_name stringlengths 7 70 | path stringlengths 4 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 1.03k 250k |
|---|---|---|---|---|---|
/*
* Sonics Silicon Backplane
* Broadcom ChipCommon Power Management Unit driver
*
* Copyright 2009, Michael Buesch <m@bues.ch>
* Copyright 2007, Broadcom Corporation
*
* Licensed under the GNU/GPL. See COPYING for details.
*/
#include <linux/ssb/ssb.h>
#include <linux/ssb/ssb_regs.h>
#include <linux/ssb/ssb_d... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/ssb/driver_chipcommon_pmu.c | C | apache-2.0 | 19,592 |
/*
* Copyright 2013 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... | systemdaemon/systemd | src/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv44.c | C | gpl-2.0 | 2,109 |
/* 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... | sbryan12144/BeastMode-Elite | sound/soc/msm/msm-dai-fe.c | C | gpl-2.0 | 7,420 |
/*
* Interface handling
*
* Copyright 2002-2005, Instant802 Networks, Inc.
* Copyright 2005-2006, Devicescape Software, Inc.
* Copyright (c) 2006 Jiri Benc <jbenc@suse.cz>
* Copyright 2008, Johannes Berg <johannes@sipsolutions.net>
*
* This program is free software; you can redistribute it and/or modify
* it u... | crseanpaul/staging | net/mac80211/iface.c | C | gpl-2.0 | 48,997 |
/*
* Copyright (c) 2011, Jim Hollinger
* 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 con... | iSCInc/cURL | v7.38.0/docs/examples/rtsp.c | C | mit | 8,497 |
/*
* array.c - functions to create, destroy, access, and manipulate arrays
* of strings.
*
* Arrays are sparse doubly-linked lists. An element's index is stored
* with it.
*
* Chet Ramey
* chet@ins.cwru.edu
*/
/* Copyright (C) 1997-2009 Free Software Foundation, Inc.
This file is part of GNU Bash, t... | tavaresdong/courses-notes | uw_cse333/hw/projdocs/test_tree/bash-4.2/array.c | C | mit | 23,772 |
/* Copyright (C) 2002-2015 Free Software Foundation, Inc.
Contributed by Andy Vaught
F2003 I/O support contributed by Jerry DeLisle
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 General Public... | evaautomation/gcc-linaro | libgfortran/io/read.c | C | gpl-2.0 | 26,585 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Changes:
* Arnaldo Carvalho de Melo <acme@conectiva.com.br> 08/23/2000
* - get rid of some verify_areas and use __copy*user and __get/put_user
* for the ones that remain
*/
#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <lin... | CSE3320/kernel-code | linux-5.8/drivers/scsi/scsi_ioctl.c | C | gpl-2.0 | 8,821 |
/* { dg-require-effective-target vect_int } */
#include <stdarg.h>
#include "tree-vect.h"
#define A 3
#define B 4
#define N 256
short src[N], dst[N];
void foo (short * __restrict__ dst, short * __restrict__ src, int h, int stride, int dummy)
{
int i;
h /= 16;
for (i = 0; i < h; i++)
{
dst[0] += A*sr... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.dg/vect/bb-slp-25.c | C | gpl-3.0 | 1,244 |
/* Copyright (C) 2007-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 your option) any later
version.
GCC is distribute... | evaautomation/gcc-linaro | libgcc/config/libbid/_usi_to_td.c | C | gpl-2.0 | 1,165 |
/*
* arch/arm/mach-s3c2410/h1940-bluetooth.c
* Copyright (c) Arnaud Patard <arnaud.patard@rtp-net.org>
*
* 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.
*
* S3C2410 bluetooth "driver"
*
... | EAVR/EV3.14 | ev3sources/extra/linux-03.20.00.13/arch/arm/mach-s3c2410/h1940-bluetooth.c | C | gpl-2.0 | 3,028 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* max6650.c - Part of lm_sensors, Linux kernel modules for hardware
* monitoring.
*
* (C) 2007 by Hans J. Koch <hjk@hansjkoch.de>
*
* based on code written by John Morris <john.morris@spirentcom.com>
* Copyright (c) 2003 Spirent Communications
* and Cl... | chenshuo/linux-study | drivers/hwmon/max6650.c | C | gpl-2.0 | 19,506 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Old U-boot compatibility for 83xx
*
* Author: Scott Wood <scottwood@freescale.com>
*
* Copyright (c) 2007 Freescale Semiconductor, Inc.
*/
#include "ops.h"
#include "stdio.h"
#include "cuboot.h"
#define TARGET_83xx
#include "ppcboot.h"
static bd_t bd;
static void ... | CSE3320/kernel-code | linux-5.8/arch/powerpc/boot/cuboot-83xx.c | C | gpl-2.0 | 1,376 |
// SPDX-License-Identifier: MIT
/*
* Copyright © 2018 Intel Corporation
*/
#include "gem/i915_gem_pm.h"
#include "gt/intel_engine_user.h"
#include "gt/intel_gt.h"
#include "i915_selftest.h"
#include "intel_reset.h"
#include "selftests/igt_flush_test.h"
#include "selftests/igt_reset.h"
#include "selftests/igt_spinne... | mpe/powerpc | drivers/gpu/drm/i915/gt/selftest_workarounds.c | C | gpl-2.0 | 30,024 |
/*
* Copyright (c) 2000-2001,2005 Silicon Graphics, 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.
*
* This program is distributed in the hope that it woul... | kv193/buildroot | linux/linux-kernel/fs/xfs/xfs_dir2.c | C | gpl-2.0 | 16,361 |
/*
* linux/fs/ext4/ialloc.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* BSD ufs-inspired inode and directory allocation by
* Stephen Tweedie (sct@redhat.com), 1993
* Big-endian to litt... | impedimentToProgress/UCI-BlueChip | snapgear_linux/linux-2.6.21.1/fs/ext4/ialloc.c | C | mit | 22,027 |
/*
* arch/arm/mach-tegra/common.c
*
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
* Copyright (C) 2010 Google, Inc.
*
* Author:
* Colin Cross <ccross@android.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foun... | aps243/kernel-imx | arch/arm/mach-tegra/common.c | C | gpl-2.0 | 2,847 |
/*
* Copyright (c) 2016, Mellanox Technologies inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of th... | eabatalov/au-linux-kernel-autumn-2017 | linux/drivers/infiniband/core/rdma_core.c | C | gpl-3.0 | 17,879 |
/* Copyright (C) 2008 Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
*
* 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.
*/
/* Kernel module implementing an IP set type: the setlist t... | rhuitl/uClinux | user/ipset/kernel/ip_set_setlist.c | C | gpl-2.0 | 7,681 |
/*
* Copyright (C) 2012 Russell King
* Rewritten from the dovefb driver, and Armada510 manuals.
*
* 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/clk.h>
#inc... | eabatalov/au-linux-kernel-autumn-2017 | linux/drivers/gpu/drm/armada/armada_crtc.c | C | gpl-3.0 | 39,329 |
/***************************************************************************/
/* */
/* cffgload.c */
/* */
/* Op... | Sebbyastian/openfaction | vendor/freetype/src/cff/cffgload.c | C | gpl-3.0 | 94,060 |
/*
* Copyright (c) 2015-2016, Linaro Limited
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be use... | eabatalov/au-linux-kernel-autumn-2017 | linux/drivers/tee/optee/rpc.c | C | gpl-3.0 | 9,386 |
/*
* Copyright (c) 2006 Oracle. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tree, or t... | Schischu/xoom-ElementalX | net/rds/ib_cm.c | C | gpl-2.0 | 23,929 |
/*
* Generic parts
* Linux ethernet bridge
*
* Authors:
* Lennert Buytenhek <buytenh@gnu.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
* 2 of the License, or (... | santod/NuK3rn3l_htc_m7_GPE-5.0.x | net/bridge/br.c | C | gpl-2.0 | 2,057 |
/*
* s3c24xx-i2s.c -- ALSA Soc Audio Layer
*
* (c) 2006 Wolfson Microelectronics PLC.
* Graeme Gregory graeme.gregory@wolfsonmicro.com or linux@wolfsonmicro.com
*
* Copyright 2004-2005 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <ben@simtec.co.uk>
*
* This program is free software; you c... | linuxium/ubuntu-xenial | sound/soc/samsung/s3c24xx-i2s.c | C | gpl-2.0 | 12,658 |
/* -*- mode: C; c-file-style: "gnu" -*- */
/* xdgmime.c: XDG Mime Spec mime resolver. Based on version 0.11 of the spec.
*
* More info can be found at http://www.freedesktop.org/standards/
*
* Copyright (C) 2003,2004 Red Hat, Inc.
* Copyright (C) 2003,2004 Jonathan Blandford <jrb@alum.mit.edu>
*
* Licensed u... | tierney/cryptagram-cc | src/base/third_party/xdg_mime/xdgmime.c | C | gpl-3.0 | 20,931 |
/******************************************************************************
*
* 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 - 2013 Intel Corporation. All rights reserved.
*
... | hoonir/iamroot_hypstudy_5th | drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c | C | gpl-2.0 | 9,504 |
/*
* KZM Board System emulation.
*
* Copyright (c) 2008 OKL and 2011 NICTA
* Written by Hans at OK-Labs
* Updated by Peter Chubb.
*
* This code is licensed under the GPL, version 2 or later.
* See the file `COPYING' in the top level directory.
*
* It (partially) emulates a Kyoto Microcomputer
* KZM-ARM11-01 ... | JavaGuy147/RT-Xen-Scheduler | tools/qemu-xen/hw/arm/kzm.c | C | gpl-2.0 | 5,652 |
/*
comedi/drivers/daqboard2000.c
hardware driver for IOtech DAQboard/2000
COMEDI - Linux Control and Measurement Device Interface
Copyright (C) 1999 Anders Blomdell <anders.blomdell@control.lth.se>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Gen... | soap-DEIM/l4android | drivers/staging/comedi/drivers/daqboard2000.c | C | gpl-2.0 | 26,395 |
/*
* Copyright (C) 2000, 2001 Blue Mug, 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 option) any later versi... | prasidh09/cse506 | unionfs-3.10.y/arch/arm/mach-clps711x/board-edb7211.c | C | gpl-2.0 | 5,044 |
/*
* Copyright (c) 2006 Chelsio, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tree,... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/drivers/infiniband/hw/cxgb3/iwch_mem.c | C | gpl-2.0 | 3,021 |
/******************************************************************************
*
* 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 - 2013 Intel Corporation. All rights reserved.
*
... | andyhui/linux-kernel-3.12.17 | drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | C | gpl-2.0 | 35,358 |
/*
* Support for PCI on Celleb platform.
*
* (C) Copyright 2006-2007 TOSHIBA CORPORATION
*
* This code is based on arch/powerpc/kernel/rtas_pci.c:
* Copyright (C) 2001 Dave Engebretsen, IBM Corporation
* Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM
*
* This program is free software; you can red... | mericon/Xp_Kernel_LGH850 | virt/arch/powerpc/platforms/cell/celleb_pci.c | C | gpl-2.0 | 12,165 |
/*
* 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 Foundation.
*
* This program is distributed... | ziqiaozhou/cachebar | source/drivers/staging/lustre/lustre/llite/lloop.c | C | gpl-2.0 | 21,296 |
/* 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 WITHOUT ANY WARRANTY; without even the implied warranty ... | ncarrier/carino-packages-linux | net/mac802154/cfg.c | C | gpl-2.0 | 5,344 |
/*
* Copyright (c) 2013-2014, NVIDIA 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... | tzanussi/linux-yocto-micro-3.19 | drivers/soc/tegra/fuse/fuse-tegra30.c | C | gpl-2.0 | 5,497 |
/*
* 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... | dperezde/little-penguin | linux/drivers/scsi/libfc/fc_rport.c | C | gpl-2.0 | 56,723 |
/*
* IBM/3270 Driver - console view.
*
* Author(s):
* Original 3270 Code for 2.4 written by Richard Hitt (UTS Global)
* Rewritten for 2.5 by Martin Schwidefsky <schwidefsky@de.ibm.com>
* Copyright IBM Corp. 2003, 2009
*/
#include <linux/module.h>
#include <linux/console.h>
#include <linux/init.h>
#inclu... | mikedlowis-prototypes/albase | source/kernel/drivers/s390/char/con3270.c | C | bsd-2-clause | 16,202 |
/* { dg-do run { target openacc_nvidia_accel_selected } } */
/* { dg-additional-options "-lcuda" } */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <openacc.h>
#include <cuda.h>
int
main (int argc, char **argv)
{
CUdevice dev;
CUfunction delay;
CUmodule module;
CUresult r;
CUstream str... | selmentdev/selment-toolchain | source/gcc-latest/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-72.c | C | gpl-3.0 | 2,526 |
/* Intel PRO/1000 Linux driver
* Copyright(c) 1999 - 2014 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed i... | mericon/Xp_Kernel_LGH850 | virt/drivers/net/ethernet/intel/e1000e/nvm.c | C | gpl-2.0 | 15,672 |
/*
* drivers/pci/iov.c
*
* Copyright (C) 2009 Intel Corporation, Yu Zhao <yu.zhao@intel.com>
*
* PCI Express I/O Virtualization (IOV) support.
* Single Root IOV 1.0
* Address Translation Service 1.0
*/
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/export.h>
#includ... | andyhui/linux-kernel-3.12.17 | drivers/pci/iov.c | C | gpl-2.0 | 19,297 |
/**
* @file
* Dynamic pool memory manager
*
* lwIP has dedicated pools for many structures (netconn, protocol control blocks,
* packet buffers, ...). All these pools are managed here.
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in... | poranmeloge/test-github | stm32_rtt_wifi/components/net/lwip-1.3.2/src/core/memp.c | C | gpl-2.0 | 12,047 |
/*
* linux/drivers/leds-pwm.c
*
* simple PWM based LED control
*
* Copyright 2009 Luotao Fu @ Pengutronix (l.fu@pengutronix.de)
*
* based on leds-gpio.c by Raphael Assenat <raph@8d.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lice... | mikedlowis-prototypes/albase | source/kernel/drivers/leds/leds-pwm.c | C | bsd-2-clause | 5,379 |
/*
* Copyright (C) 2012 Red Hat
*
* based in parts on udlfb.c:
* Copyright (C) 2009 Roberto De Ioris <roberto@unbit.it>
* Copyright (C) 2009 Jaya Kumar <jayakumar.lkml@gmail.com>
* Copyright (C) 2009 Bernie Thompson <bernie@plugable.com>
*
* This file is subject to the terms and conditions of the GNU General Pu... | boddob/linux | drivers/gpu/drm/udl/udl_fb.c | C | gpl-2.0 | 13,304 |
/*
* Copyright (C) 2010 Bluecherry, LLC www.bluecherrydvr.com
* Copyright (C) 2010 Ben Collins <bcollins@bluecherry.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 ... | nc543/linux-release | drivers/staging/solo6x10/solo6010-i2c.c | C | gpl-2.0 | 7,680 |
/*
* Linux multi-function-device driver (MFD) for the integrated peripherals
* of the VIA VX855 chipset
*
* Copyright (C) 2009 VIA Technologies, Inc.
* Copyright (C) 2010 One Laptop per Child
* Author: Harald Welte <HaraldWelte@viatech.com>
* All rights reserved.
*
* This program is free software; you can redi... | moonlightly/kernel_htc_qsd8k | drivers/mfd/vx855.c | C | gpl-2.0 | 4,057 |
/*
* bootmem - A boot-time physical memory allocator and configurator
*
* Copyright (C) 1999 Ingo Molnar
* 1999 Kanoj Sarcar, SGI
* 2008 Johannes Weiner
*
* Access to this subsystem has to be serialized externally (which is true
* for the boot process anyway).
*/
#include <linux... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/mm/nobootmem.c | C | gpl-2.0 | 11,469 |
/*
* sigreturn.c - tests for x86 sigreturn(2) and exit-to-userspace
* Copyright (c) 2014-2015 Andrew Lutomirski
*
* 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.... | codeaurora-unoffical/linux-msm | tools/testing/selftests/x86/sigreturn.c | C | gpl-2.0 | 23,945 |
/* -*- linux-c -*-
* drivers/char/viotape.c
*
* iSeries Virtual Tape
*
* Authors: Dave Boutcher <boutcher@us.ibm.com>
* Ryan Arnold <ryanarn@us.ibm.com>
* Colin Devilbiss <devilbis@us.ibm.com>
* Stephen Rothwell
*
* (C) Copyright 2000-2004 IBM Corporation
*
* This program is... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/char/viotape.c | C | gpl-2.0 | 26,464 |
/*
* SCSI target kernel/user interface functions
*
* Copyright (C) 2005 FUJITA Tomonori <tomof@acm.org>
* Copyright (C) 2005 Mike Christie <michaelc@cs.wisc.edu>
*
* 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 ... | talnoah/android_kernel_htc_dlx | virt/drivers/scsi/scsi_tgt_if.c | C | gpl-2.0 | 9,294 |
/* Test for _Atomic in C11. Test of valid assignment cases for
arithmetic types. */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors" } */
#define TEST_ASSIGN(TYPE1, OP, TYPE2) \
do \
{ \
_Atomic TYPE1 a = 0; \
TYPE2 b = 0; \
_Atomic TYPE2 c = 0; \
... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.dg/c11-atomic-2.c | C | gpl-3.0 | 4,207 |
/*
* Copyright © 2007 David Airlie
*
* 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,... | kv193/buildroot | linux/linux-kernel/drivers/gpu/drm/nouveau/nouveau_fbcon.c | C | gpl-2.0 | 14,178 |
/*
* volume_id - reads filesystem label and uuid
*
* Copyright (C) 2005 Kay Sievers <kay.sievers@vrfy.org>
*
* This 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 o... | cyclops8456/vyatta-busybox | util-linux/volume_id/unused_lsi_raid.c | C | gpl-2.0 | 1,552 |
/* $Header: /cvsroot/osrs/libtiff/libtiff/tif_open.c,v 1.6 2001/07/20 02:22:46 warmerda 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 gran... | xbmc/atv2 | xbmc/lib/cximage-6.0/tiff/tif_open.c | C | gpl-2.0 | 13,384 |
/*
* nvec_paz00: OEM specific driver for Compal PAZ00 based devices
*
* Copyright (C) 2011 The AC100 Kernel Team <ac100@lists.launchpad.net>
*
* Authors: Ilya Petrov <ilya.muromec@gmail.com>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the... | geminy/aidear | oss/linux/linux-4.7/drivers/staging/nvec/nvec_paz00.c | C | gpl-3.0 | 2,048 |
/*
* ams369fg06 AMOLED LCD panel driver.
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* Author: Jingoo Han <jg1.han@samsung.com>
*
* Derived from drivers/video/s6e63m0.c
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as p... | mericon/Xp_Kernel_LGH850 | virt/drivers/video/backlight/ams369fg06.c | C | gpl-2.0 | 12,009 |
/*
* (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
*
* (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 t... | lxl1140989/dmsdk | uboot/u-boot-dm6291/arch/m68k/lib/time.c | C | gpl-2.0 | 5,061 |
/*
* Copyright (c) 2013-2014 TRUSTONIC 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.
*
* This program is distributed in the hope that it will... | CoderSherlock/Mondroid | kernelsource/msm/drivers/gud/MobiCoreKernelApi/session.c | C | gpl-2.0 | 5,372 |
/*
* Copyright © 2006-2007 Intel Corporation
* Copyright (c) 2006 Dave Airlie <airlied@linux.ie>
*
* 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... | NooNameR/Sense4.0-kernel | drivers/gpu2/drm/i915/intel_lvds.c | C | gpl-2.0 | 33,631 |
/*
* Mediatek SoCs General-Purpose Timer handling.
*
* Copyright (C) 2014 Matthias Brugger
*
* Matthias Brugger <matthias.bgg@gmail.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... | AiJiaZone/linux-4.0 | virt/drivers/clocksource/mtk_timer.c | C | gpl-2.0 | 7,190 |
/*
* Driver for the Solomon SSD1307 OLED controller
*
* Copyright 2012 Free Electrons
*
* Licensed under the GPLv2 or later.
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/i2c.h>
#include <linux/fb.h>
#include <linux/uaccess.h>
#include <linux/of_device.h>
#include <linux/of_gpio.h>
#incl... | mericon/Xp_Kernel_LGH850 | virt/drivers/video/fbdev/ssd1307fb.c | C | gpl-2.0 | 14,012 |
/*
* linux/arch/arm/plat-versatile/platsmp.c
*
* Copyright (C) 2002 ARM 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 Foundation.
*/
#include <linux/init... | dperezde/little-penguin | linux/arch/arm/plat-versatile/platsmp.c | C | gpl-2.0 | 2,192 |
/*
* Real-time clock driver for MPC5121
*
* Copyright 2007, Domen Puncer <domen.puncer@telargo.com>
* Copyright 2008, Freescale Semiconductor, Inc. All rights reserved.
* Copyright 2011, Dmitry Eremin-Solenikov
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the ... | WukLab/Hotpot | hotpot-kernel/drivers/rtc/rtc-mpc5121.c | C | gpl-2.0 | 10,449 |
/*
u8g_pb.c
common procedures for the page buffer
Universal 8bit Graphics Library
Copyright (c) 2011, olikraus@gmail.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:
* Redist... | rossonet/JavaAgent | utiliti/Marlin/RAM/ArduinoAddons/Arduino_1.6.x/hardware/marlin/avr/libraries/U8glib/utility/u8g_pb.c | C | agpl-3.0 | 4,396 |
/*
* Arch related setup for Hexagon
*
* 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.
... | WukLab/Hotpot | hotpot-kernel/arch/hexagon/kernel/setup.c | C | gpl-2.0 | 3,774 |
/*
* originally written by: Kirk Reiser <kirk@braille.uwo.ca>
* this version considerably modified by David Borowski, david575@rogers.com
*
* Copyright (C) 1998-99 Kirk Reiser.
* Copyright (C) 2003 David Borowski.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of t... | mericon/Xp_Kernel_LGH850 | virt/drivers/staging/speakup/speakup_apollo.c | C | gpl-2.0 | 7,309 |
/*
* Copyright (c) 2007-2008 Atheros Communications 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" A... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/staging/otus/wrap_mem.c | C | gpl-2.0 | 2,742 |
/*
* arch/arm/mach-orion5x/d2net-setup.c
*
* LaCie d2Network and Big Disk Network NAS setup
*
* Copyright (C) 2009 Simon Guinot <sguinot@lacie.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, wheth... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/arch/arm/mach-orion5x/d2net-setup.c | C | apache-2.0 | 9,418 |
/**************************************************************************
*
* Copyright © 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 d... | mericon/Xp_Kernel_LGH850 | virt/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | C | gpl-2.0 | 21,903 |
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2014, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/* file name: cbiditst.c
* encoding: US-ASCII
* ... | junhuac/MQUIC | src/third_party/icu/source/test/cintltst/cbiditst.c | C | mit | 213,146 |
/*
*
* Bluetooth virtual HCI driver
*
* Copyright (C) 2000-2001 Qualcomm Incorporated
* Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
* Copyright (C) 2004-2006 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under t... | mericon/Xp_Kernel_LGH850 | virt/drivers/bluetooth/hci_vhci.c | C | gpl-2.0 | 8,255 |
/*
* bnx2i_iscsi.c: QLogic NetXtreme II iSCSI driver.
*
* Copyright (c) 2006 - 2013 Broadcom Corporation
* Copyright (c) 2007, 2008 Red Hat, Inc. All rights reserved.
* Copyright (c) 2007, 2008 Mike Christie
* Copyright (c) 2014, QLogic Corporation
*
* This program is free software; you can redistribute it and... | systemdaemon/systemd | src/linux/drivers/scsi/bnx2i/bnx2i_iscsi.c | C | gpl-2.0 | 63,142 |
/*
* linux/fs/lockd/svclock.c
*
* Handling of server-side locks, mostly of the blocked variety.
* This is the ugliest part of lockd because we tread on very thin ice.
* GRANT and CANCEL calls may get stuck, meet in mid-flight, etc.
* IMNSHO introducing the grant callback into the NLM protocol was one
* of the wo... | cybernet/rhel7-kernel | kernel/fs/lockd/svclock.c | C | gpl-2.0 | 26,611 |
/*
* drm kms/fb cma (contiguous memory allocator) helper functions
*
* Copyright (C) 2012 Analog Device Inc.
* Author: Lars-Peter Clausen <lars@metafoo.de>
*
* Based on udl_fbdev.c
* Copyright (C) 2012 Red Hat
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | ziqiaozhou/cachebar | source/drivers/gpu/drm/drm_fb_cma_helper.c | C | gpl-2.0 | 12,138 |
/* Disk protection for HP machines.
*
* Copyright 2008 Eric Piel
* Copyright 2009 Pavel Machek <pavel@suse.cz>
*
* GPLv2.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>
#inclu... | ysleu/RTL8685 | uClinux-dist/linux-2.6.x/Documentation/hwmon/hpfall.c | C | gpl-2.0 | 1,759 |
/*
* Copyright (c) 2012-2014 Qualcomm Atheros, 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 TH... | tejaswanjari/SMR_FS-EXT4 | kernel/drivers/net/wireless/ath/wil6210/pcie_bus.c | C | gpl-2.0 | 7,624 |
/*
* Tegra host1x Command DMA
*
* Copyright (c) 2010-2013, NVIDIA Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distribut... | dperezde/little-penguin | linux/drivers/gpu/host1x/hw/cdma_hw.c | C | gpl-2.0 | 9,139 |
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/ide.h>
#include <linux/bitops.h>
static const char *udma_str[] =
{ "UDMA/16", "UDMA/25", "UDMA/33", "UDMA/44",
"UDMA/66", "UDMA/100", "UDMA/133", "UDMA7" };
static const char *mwdma_str[] =... | JijonHyuni/HyperKernel-JB | virt/drivers/ide/ide-xfer-mode.c | C | gpl-2.0 | 6,790 |
/* crypto/md5/md5test.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... | teeple/pns_server | work/install/node-v0.10.25/deps/openssl/openssl/test/md5test.c | C | gpl-2.0 | 4,736 |
/*
* fs/f2fs/data.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <l... | publicloudapp/csrutil | linux-4.3/fs/f2fs/data.c | C | mit | 39,210 |
/*
* AMD CPU Microcode Update Driver for Linux
* Copyright (C) 2008-2011 Advanced Micro Devices Inc.
*
* Author: Peter Oruba <peter.oruba@amd.com>
*
* Based on work by:
* Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
*
* Maintainers:
* Andreas Herrmann <herrmann.der.user@googlemail.com>
* Borislav Pe... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/arch/x86/kernel/microcode_amd.c | C | gpl-2.0 | 11,001 |
/*
* Copyright (C) 2012 Altera Corporation
* Copyright (c) 2011 Picochip Ltd., Jamie Iles
*
* Modified from mach-picoxcell/time.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 Foundati... | eabatalov/au-linux-kernel-autumn-2017 | linux/drivers/clocksource/dw_apb_timer_of.c | C | gpl-3.0 | 4,563 |
// SPDX-License-Identifier: GPL-2.0
/*
* Test for x86 KVM_CAP_MSR_PLATFORM_INFO
*
* Copyright (C) 2018, Google LLC.
*
* This work is licensed under the terms of the GNU GPL, version 2.
*
* Verifies expected behavior of controlling guest access to
* MSR_PLATFORM_INFO.
*/
#define _GNU_SOURCE /* for program_invo... | openwrt-es/linux | tools/testing/selftests/kvm/x86_64/platform_info_test.c | C | gpl-2.0 | 2,731 |
/*
* wm8997.c -- WM8997 ALSA SoC Audio driver
*
* Copyright 2012 Wolfson Microelectronics plc
*
* Author: Charles Keepax <ckeepax@opensource.wolfsonmicro.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
* publish... | anoever/thunderbolt | sound/soc/codecs/wm8997.c | C | gpl-2.0 | 41,128 |
/*
* Block device elevator/IO-scheduler.
*
* Copyright (C) 2000 Andrea Arcangeli <andrea@suse.de> SuSE
*
* 30042000 Jens Axboe <axboe@kernel.dk> :
*
* Split the elevator a bit so that it is possible to choose a different
* one or even write a new "plug in". There are three pieces:
* - elevator_fn, inserts a ... | JijonHyuni/HyperKernel-JB | virt/block/elevator.c | C | gpl-2.0 | 25,046 |
/*
V4L2 controls framework implementation.
Copyright (C) 2010 Hans Verkuil <hverkuil@xs4all.nl>
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, ... | Jarbu12/Xperia-M-Kernel | kernel/drivers/media/video/v4l2-ctrls.c | C | gpl-3.0 | 72,190 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* STMicroelectronics accelerometers driver
*
* Copyright 2012-2013 STMicroelectronics Inc.
*
* Denis Ciocca <denis.ciocca@st.com>
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/sysfs.h>
#include <linux/slab.h>
#include <... | mpe/powerpc | drivers/iio/accel/st_accel_core.c | C | gpl-2.0 | 30,598 |
// SPDX-License-Identifier: GPL-2.0+
/* Synopsys DesignWare 8250 library. */
#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/serial_8250.h>
#include <linux/serial_core.h>
#include "8250_dwlib.h"
/* Offsets for the DesignWare specific registers */
#d... | mpe/powerpc | drivers/tty/serial/8250/8250_dwlib.c | C | gpl-2.0 | 3,853 |
/*
* wm8955.c -- WM8955 ALSA SoC Audio driver
*
* Copyright 2009 Wolfson Microelectronics plc
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.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 b... | bestmjh47/android_kernel_samsung_aries | sound/soc/codecs/wm8955.c | C | gpl-2.0 | 30,428 |
/*
* Copyright (c) 2015-2017 Contributors as noted in the AUTHORS file
*
* This file is part of Solo5, a unikernel base layer.
*
* 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 permiss... | djwillia/solo5 | kernel/ukvm/time.c | C | isc | 1,193 |
/* $OpenBSD: cache_sh4.c,v 1.6 2010/01/01 13:20:33 miod Exp $ */
/* $NetBSD: cache_sh4.c,v 1.15 2005/12/24 23:24:02 perry Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by UCHIYAMA Yasushi.
*
* Re... | orumin/openbsd-efivars | arch/sh/sh/cache_sh4.c | C | isc | 11,533 |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "generic.h"
#include "array.g.h"
#include "misc.g.h"
#include "matrix.h"
#include "matrix.g.h"
T *mcopy(T dest[static M*N], const T src[static M*N])
{
return memcpy(dest, src, sizeof (T [M*N]));
}
static T rnd(T init)
{
(void)in... | cventus/otivm | src/gm/gen/matrix.g.c | C | isc | 2,856 |
/*
Copyright (C) <2010-2011> Karl Hiramoto <karl@hiramoto.org>
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, me... | karlhiramoto/nfqwf | Rules.c | C | mit | 6,452 |
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
* COPYRIGHT:
* Copyright (c) 2005-2013, International Business Machines Corporation and
* others. All Rights Reserved.
**************... | quyse/inanity | deps/icu/repo/source/test/cintltst/utexttst.c | C | mit | 8,513 |
#include <stdio.h>
#define __USE_XOPEN2K
#include <stdlib.h>
#if defined (__GNUC__) && ! defined (__INTEL_COMPILER)
#include <x86intrin.h>
#else
#include <immintrin.h>
#endif
#include <sys/time.h>
#include <assert.h>
#include <math.h>
#include "defs.h"
#include "utils.h"
#include "progressbar.h"
#ifdef ISPC_AVAIL
#... | manodeep/pairwise | all_pairwise/pairwise_3d.c | C | mit | 19,056 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE129_listen_socket_14.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE129.label.xml
Template File: sources-sinks-14.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: listen_socke... | maurer/tiamat | samples/Juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__c_CWE129_listen_socket_14.c | C | mit | 15,278 |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/********
* IMG Writer - Program for write image files.
*
* Distributed under the MIT license.
*
* Programmed by Luiz Felipe
* GitHub: https://github.com/Silva97
********/
int getarg(int argc, char* argv[], char* arg);
int fsize(char fn... | DieBoy/imgwriter | imgw.c | C | mit | 3,068 |
#include "yaml_private.h"
/*
* API functions.
*/
YAML_DECLARE(int)
yaml_emitter_open(yaml_emitter_t *emitter);
YAML_DECLARE(int)
yaml_emitter_close(yaml_emitter_t *emitter);
YAML_DECLARE(int)
yaml_emitter_dump(yaml_emitter_t *emitter, yaml_document_t *document);
/*
* Clean up functions.
*/
static void
yaml_e... | mingodad/h2o | deps/yaml/src/dumper.c | C | mit | 10,079 |
/*!
* @brief Runner of tests for the lexer.
*/
#include <assert.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "clint.h"
#include "helper.h"
#include "tree.h"
static bool check(bool full, char *input, const char *expected)
{
static char buffer[20... | loyd/clint | test/test-parser.c | C | mit | 3,489 |
/************************************************
* GW KV
* https://github.com/gwAdvNet2015/gw-kv-store
*
* Copyright 2015 Tim Wood, Phil Lopreiato,
* Eric Armbrust, Neel Shah
*
* This program is licensed under the MIT license.
*
* A little help from:
* http://beej.us/guide/bgnet/
*... | gwAdvNet2015/gw-kv-store | server/server-kv-run.c | C | mit | 2,491 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.