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 |
|---|---|---|---|---|---|
/*
* RIFF common functions and data
* Copyright (c) 2000 Fabrice Bellard
*
* 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 ... | kingvuplus/xbmc | lib/ffmpeg/libavformat/riff.c | C | gpl-2.0 | 40,094 |
/*
* Copyright (C) 2009 Jonathan Matthew <jonathan@d14n.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 of the License, or (at your option) any later vers... | mssurajkaiga/rhythmbox | lib/libmediaplayerid/mpid-udev.c | C | gpl-2.0 | 2,622 |
/*
* Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Licensed under the GPL
*/
#include <signal.h>
#include "kern_constants.h"
#include "kern_util.h"
#include "longjmp.h"
#include "task.h"
#include "user.h"
#include "sysdep/ptrace.h"
/* Set during early boot */
int host_has_cmov = 1;
static... | janrinze/loox7xxport | arch/um/sys-i386/bugs.c | C | gpl-2.0 | 1,886 |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | chrdwhdhxtszpzclljxk/CrossAny | third_lib/curl-7.43.0/lib/vtls/gtls.c | C | gpl-2.0 | 47,657 |
/* Plural expression evaluation.
Copyright (C) 2000-2013 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 Foundati... | SanDisk-Open-Source/SSD_Dashboard | uefi/userspace/glibc/intl/plural-eval.c | C | gpl-2.0 | 2,663 |
/**
* collectd - src/virt.c
* Copyright (C) 2006-2008 Red Hat 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; only version 2 of the license is applicable.
*
* This program is dis... | abwaheed/collectd | src/virt.c | C | gpl-2.0 | 28,983 |
/*******************************************************
HIDAPI - Multi-Platform library for
communication with HID devices.
Alan Ott
Signal 11 Software
8/22/2009
Linux Version - 6/2/2010
Libusb Version - 8/13/2010
Copyright 2009, All Rights Reserved.
At the discretion of the user of this library,
this s... | seergey/LPD | Software/src/hidapi/linux/hid-libusb.c | C | gpl-3.0 | 37,330 |
/*
** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.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 ... | dr4g0nsr/mplayer-skyviia-8860 | mplayer_android/libfaad2/pulse.c | C | gpl-3.0 | 1,766 |
/*
* HMAC_DRBG implementation (NIST SP 800-90)
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy ... | RetroPie/RetroArch | deps/mbedtls/hmac_drbg.c | C | gpl-3.0 | 11,071 |
#include "clar_libgit2.h"
#include "git2/rebase.h"
#include "posix.h"
#include <fcntl.h>
static git_repository *repo;
static git_index *_index;
static git_signature *signature;
/* Fixture setup and teardown */
void test_rebase_iterator__initialize(void)
{
repo = cl_git_sandbox_init("rebase");
cl_git_pass(git_repos... | chigraph/chigraph | third_party/libgit2/tests/rebase/iterator.c | C | apache-2.0 | 4,490 |
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <string.h>
#include <platform_def.h>
#include <arch_helpers.h>
#include <common/bl_common.h>
#include <common/debug.h>
#include <drivers/console.h>
#include <lib/m... | jenswi-linaro/arm-trusted-firmware | plat/hisilicon/hikey/hisi_mcu.c | C | bsd-3-clause | 5,381 |
/* gdtr.c
*
* Gamma distribution function
*
*
*
* SYNOPSIS:
*
* double a, b, x, y, gdtr();
*
* y = gdtr( a, b, x );
*
*
*
* DESCRIPTION:
*
* Returns the integral from zero to x of the Gamma probability
* density function:
*
*
* x
* b -
* a | | b-1 -... | lesserwhirls/scipy-cwt | scipy/special/cephes/gdtr.c | C | bsd-3-clause | 2,044 |
/*
* Copyright (c) 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 h... | TheNameIsNigel/android_kernel_huawei_msm8916 | mm/showmem.c | C | gpl-2.0 | 1,472 |
/*
* Kernel-based Virtual Machine driver for Linux
*
* This module enables machines with Intel VT-x extensions to run virtual
* machines without emulation or binary translation.
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Authors:
* Avi Kivity <avi@qumra... | hackeran/linux-netmap | arch/x86/kvm/vmx.c | C | gpl-2.0 | 215,158 |
/*
* Adapted from Linux v2.6.36 kernel: arch/powerpc/kernel/asm-offsets.c
*
* This program is used to generate definitions needed by
* assembly language modules.
*
* We use the technique used in the OSF Mach kernel code:
* generate asm statements containing #defines,
* compile this file to assembler, and then e... | dingguanliang/uboot2014formicro2440 | u-boot-2014.10/lib/asm-offsets.c | C | gpl-2.0 | 1,153 |
/* sec_nad.c
*
* Copyright (C) 2016 Samsung Electronics
*
* 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.
*
* T... | Fevax/android_kernel_samsung_universal8890-N | drivers/staging/samsung/sec_nad.c | C | gpl-2.0 | 5,334 |
/* Copyright (C) 1999-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 | libio/iofwide.c | C | gpl-2.0 | 14,044 |
/**
* this is a small sample script to use libmbfl.
* Rui Hirokawa <hirokawa@php.net>
*
* this file is encoded in EUC-JP.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mbfl/mbfilter.h"
int main(int argc, char **argv)
{
enum mbfl_no_encoding no_encoding;
enum mbfl_no_language no_langua... | scottmac/libmbfl-old | tests/strwidth.c | C | lgpl-2.1 | 1,630 |
/* { dg-do run } */
/* { dg-options "-O2 -fno-strict-aliasing -msse2" } */
/* { dg-additional-options "-mno-mmx" { target { ! ia32 } } } */
#include "sse2-check.h"
#include "mmx-vals.h"
__attribute__((noinline, noclone))
static void
test_pavgw (long long *ll1, long long *ll2, long long *r)
{
__m64 t1 = *(__m64 *) ... | Gurgel100/gcc | gcc/testsuite/gcc.target/i386/sse2-mmx-pavgw.c | C | gpl-2.0 | 1,142 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Driver for Allwinner sun4i Pulse Width Modulation Controller
*
* Copyright (C) 2014 Alexandre Belloni <alexandre.belloni@free-electrons.com>
*/
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/io.h>
#inclu... | Pingmin/linux | drivers/pwm/pwm-sun4i.c | C | gpl-2.0 | 10,172 |
/* Return hyperbole sine of complex float value.
Copyright (C) 2004, 2005 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 ... | mseaborn/nacl-glibc | sysdeps/alpha/fpu/s_csinhf.c | C | gpl-2.0 | 1,534 |
/*
* meson-rng.c - Random Number Generator driver for the Amlogic Meson
*
* Copyright (C) 2014 Amlogic, 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;
*
* This program is distri... | Raybuntu/linux | drivers/char/hw_random/meson-rng.c | C | gpl-2.0 | 2,395 |
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize" } */
#define DEF_LOOP(TYPE, NAME, CONST) \
void \
test_##TYPE##_##NAME (TYPE *restrict x, \
TYPE *restrict pred, int n) \
{ \
for (int i = 0; i < n; ++i) \
x[i] = pred[i] > 0 ? CONST : 0; \
}
#define TEST_TYPE(T, T... | Gurgel100/gcc | gcc/testsuite/gcc.target/aarch64/sve/vcond_18.c | C | gpl-2.0 | 2,209 |
/* vi: set sw=4 ts=4: */
/*
* Display or change file attributes on a fat file system
*
* Copyright 2005 H. Peter Anvin
* Busybox'ed (2014) by Pascal Bellard <pascal.bellard@ads-lu.com>
*
* This file can be redistributed under the terms of the GNU General
* Public License
*/
//config:config FATATTR
//config: boo... | josefbacik/busybox | util-linux/fatattr.c | C | gpl-2.0 | 2,628 |
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License... | md-5/jdk10 | test/hotspot/jtreg/runtime/exceptionMsgs/ArrayStoreException/libArrayStoreExceptionTest.c | C | gpl-2.0 | 1,386 |
/*
* Copyright (C) 2003-2011 The Music Player Daemon Project
* http://www.musicpd.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
* (at your opti... | lintweaker/mpd-dsd | src/archive_api.c | C | gpl-2.0 | 2,982 |
/* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
#include "test_sve_acle.h"
/*
** qincd_1_s64_tied:
** sqincd z0\.d
** ret
*/
TEST_UNIFORM_Z (qincd_1_s64_tied, svint64_t,
z0 = svqincd_s64 (z0, 1),
z0 = svqincd (z0, 1))
/*
** qincd_1_s64_untied:
** movprfx z0, z1
** sqincd z0\.d
** ret
*/
TEST_U... | Gurgel100/gcc | gcc/testsuite/gcc.target/aarch64/sve/acle/asm/qincd_s64.c | C | gpl-2.0 | 1,961 |
/*
SPARC translation
Copyright (C) 2003 Thomas M. Ogrisegg <tom@fnord.at>
Copyright (C) 2003-2005 Fabrice Bellard
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
v... | kashifqazi/qemu-migration | target-sparc/translate.c | C | gpl-2.0 | 194,729 |
/*
* RL2 Format Demuxer
* Copyright (c) 2008 Sascha Sommer (saschasommer@freenet.de)
*
* 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... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/ffmpeg/libavformat/rl2.c | C | gpl-3.0 | 8,972 |
/*-
* Copyright (c) 2001-2007, by Weongyo Jeong. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* a) Redistributions of source code must retain the above copyright notice,
* this list of... | sctplab/sctp-refimpl | APPS/sock_regression/ut_002_setopt/ut_002_setopt.c | C | bsd-2-clause | 16,783 |
// SPDX-License-Identifier: LGPL-2.1
/*
* fs/cifs/file.c
*
* vfs operations that deal with files
*
* Copyright (C) International Business Machines Corp., 2002,2010
* Author(s): Steve French (sfrench@us.ibm.com)
* Jeremy Allison (jra@samba.org)
*
*/
#include <linux/fs.h>
#include <linux/ba... | cminyard/linux-live-app-coredump | fs/cifs/file.c | C | gpl-2.0 | 129,758 |
/*
* sched_clock.c: support for extending counters to full 64-bit ns counter
*
* 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/clocksource.h>
#include <linux/i... | evil-god/runbo-q5x6 | kernel/arch/arm/kernel/sched_clock.c | C | gpl-2.0 | 4,984 |
/* Copyright (C) 2004 MySQL AB
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.
This program is distributed in t... | lzpfmh/oceanbase | oceanbase_0.4/tools/sysbench/sysbench/drivers/mysql/drv_mysql.c | C | gpl-2.0 | 26,182 |
/*
libco.armeabi (2013-04-05)
author: Themaister
license: public domain
*/
#define LIBCO_C
#include <libco.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#ifndef __APPLE__
#include <malloc.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
static thread_local uint32_t co_acti... | rootfather/RetroArch | libretro-common/libco/armeabi.c | C | gpl-3.0 | 2,385 |
/* Test mpz_set_d and mpz_init_set_d.
Copyright 2000, 2001, 2002, 2003, 2006 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
The GNU MP Library test suite is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by th... | carthy/beard.gmp | tests/mpz/t-set_d.c | C | gpl-3.0 | 3,615 |
/****************************************************************************
*
* Copyright 2016 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | jsdosa/TizenRT | lib/libc/string/lib_strncasecmp.c | C | apache-2.0 | 3,488 |
/**
******************************************************************************
* @file stm32wlxx_ll_rcc.c
* @author MCD Application Team
* @brief RCC LL module driver.
******************************************************************************
* @attention
*
* <h2><center>© Copyright (... | adfernandes/mbed | targets/TARGET_STM/TARGET_STM32WL/STM32Cube_FW/STM32WLxx_HAL_Driver/stm32wlxx_ll_rcc.c | C | apache-2.0 | 34,267 |
/*
* Copyright (c) 2001-2003
* Fraunhofer Institute for Open Communication Systems (FhG Fokus).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must ... | dcui/FreeBSD-9.3_kernel | sys/contrib/ngatm/netnatm/sig/sig_verify.c | C | bsd-3-clause | 11,592 |
/*
* Bitmap of bitmaps, where each layer is number-of-bits-per-word smaller than
* the previous. Hence an 'axmap', since we axe each previous layer into a
* much smaller piece. I swear, that is why it's named like that. It has
* nothing to do with anything remotely narcissistic.
*
* A set bit at layer N indicates... | laitianli/fio | lib/axmap.c | C | gpl-2.0 | 10,648 |
/*
* Copyright (c) 2013-2015, Mellanox Technologies. 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... | koct9i/linux | drivers/infiniband/hw/mlx5/main.c | C | gpl-2.0 | 187,266 |
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2006 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
*
* 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 F... | deklab/dektalk | mobile/ios/dependencies/sources/sofia-sip/libsofia-sip-ua/nua/nua.c | C | apache-2.0 | 28,593 |
/*
* Copyright 2012 Nouveau Community
*
* 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, publi... | prasidh09/cse506 | unionfs-3.10.y/drivers/gpu/drm/nouveau/core/subdev/bus/nv04.c | C | gpl-2.0 | 2,735 |
/* exynos_drm_fimd.c
*
* Copyright (C) 2011 Samsung Electronics Co.Ltd
* Authors:
* Joonyoung Shim <jy0922.shim@samsung.com>
* Inki Dae <inki.dae@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
... | garwynn/D710SPR_FL24_Kernel | drivers/gpu/drm/exynos/exynos_drm_fimd.c | C | gpl-2.0 | 35,585 |
/*
* audio output driver for SDL 1.2+
* Copyright (C) 2012 Rudolf Polzer <divVerent@xonotic.org>
*
* This file is part of mpv.
*
* mpv 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 o... | typcn/mpv | audio/out/ao_sdl.c | C | gpl-2.0 | 5,530 |
/*
* AAC encoder main-type prediction
* Copyright (C) 2015 Rostislav Pehlivanov
*
* 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 ... | raj-bhatia/grooveip-ios-public | submodules/externals/ffmpeg/libavcodec/aacenc_pred.c | C | gpl-2.0 | 12,358 |
/*
* Copyright (c) 2010-2013 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Obere Lagerstr. 30
* 82178 Puchheim
* Germany
* <rtems@embedded-brains.de>
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.r... | jamieiles/rtems-oldland | c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c | C | gpl-2.0 | 1,585 |
/* i810_dma.c -- DMA support for the i810 -*- linux-c -*-
* Created: Mon Dec 13 01:50:01 1999 by jhartmann@precisioninsight.com
*
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* All Rights Reserved.
*
* Permission is hereby granted, f... | AvaKathrynShaw/Linux-2.4.27.1 | drivers/char/drm/i810_dma.c | C | gpl-2.0 | 33,038 |
/*
* linux/fs/nfs/dir.c
*
* Copyright (C) 1992 Rick Sladkey
*
* nfs directory handling functions
*
* 10 Apr 1996 Added silly rename for unlink --okir
* 28 Sep 1996 Improved directory cache --okir
* 23 Aug 1997 Claus Heine claus@momo.math.rwth-aachen.de
* Re-implemented silly rename for unli... | AOSP-Jaguar/android_kernel_sony_msm8974 | fs/nfs/dir.c | C | gpl-2.0 | 60,692 |
/*
* drivers/base/power/runtime.c - Helper functions for device run-time PM
*
* Copyright (c) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
* Copyright (C) 2010 Alan Stern <stern@rowland.harvard.edu>
*
* This file is released under the GPLv2.
*/
#include <linux/sched.h>
#include <linux/pm_runtime.h>
#includ... | vwmofo/vigor_mofokernel | drivers/base/power/runtime.c | C | gpl-2.0 | 35,361 |
/*Daala video codec
Copyright (c) 2013 Daala project contributors. 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 o... | KyleSiefring/daala | src/tests/logging_test.c | C | bsd-2-clause | 6,855 |
/*
* Generic process-grouping system.
*
* Based originally on the cpuset system, extracted by Paul Menage
* Copyright (C) 2006 Google, Inc
*
* Notifications support
* Copyright (C) 2009 Nokia Corporation
* Author: Kirill A. Shutemov
*
* Copyright notices from the original cpuset code:
* -------------... | dancefire/hd806-kernel-android | kernel/cgroup.c | C | gpl-2.0 | 129,386 |
#include <adapter/frontend.h>
#include <demod/dib7000p.h>
#include <tuner/dib0090.h>
#include <sip/dibx090p.h>
#include "dibx090p_priv.h"
#ifdef CONFIG_BUILD_HOST
//#define DYN_DEBUG_FULL_RF_LIST // ONLY FOR DRIVER DEBUG : Use of double and printf to log prediv/loopdiv found couples !!!
#endif
static const struct... | lgeek/linux-tronsmart-orion-r28 | drivers/media/rkdtv/DIBCom7090/sip/dibx090p/dib7090p.c | C | gpl-2.0 | 23,090 |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2012, The Linux Foundation. All rights reserved.
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linu... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/drivers/hwtracing/coresight/coresight.c | C | gpl-2.0 | 25,932 |
/*
* xslt.c: Implemetation of an XSL Transformation 1.0 engine
*
* Reference:
* XSLT specification
* http://www.w3.org/TR/1999/REC-xslt-19991116
*
* Associating Style Sheets with XML documents
* http://www.w3.org/1999/06/REC-xml-stylesheet-19990629
*
* See Copyright for the status of this software.
*... | Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/third_party/libxslt/libxslt/xslt.c | C | mit | 184,619 |
// SPDX-License-Identifier: GPL-2.0
#include <linux/seq_file.h>
#include <linux/debugfs.h>
#include "nitrox_csr.h"
#include "nitrox_dev.h"
static int firmware_show(struct seq_file *s, void *v)
{
struct nitrox_device *ndev = s->private;
seq_printf(s, "Version: %s\n", ndev->hw.fw_name);
return 0;
}
static int firm... | rneugeba/linux-stable | drivers/crypto/cavium/nitrox/nitrox_debugfs.c | C | gpl-2.0 | 2,808 |
/*
* 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... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/drivers/scsi/qla2xxx/qla_attr.c | C | gpl-2.0 | 62,816 |
// Support for several common scsi like command data block requests
//
// Copyright (C) 2010 Kevin O'Connor <kevin@koconnor.net>
// Copyright (C) 2002 MandrakeSoft S.A.
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "biosvar.h" // GET_GLOBAL
#include "util.h" // dprintf
#inclu... | rpaleari/qtrace | src/roms/seabios/src/blockcmd.c | C | gpl-2.0 | 8,651 |
/*
* Revision 1.2 1996/08/20 20:41:32 jaf
* Removed all static local variables that were SAVE'd in the Fortran
* code, and put them in struct lpc10_decoder_state that is passed as an
* argument.
*
* Removed init function, since all initialization is now done in
* init_lpc10_decoder_state().
*
* Revision 1.... | ipwndev/DSLinux-Mirror | user/sox/src/lpc10/random.c | C | gpl-2.0 | 2,605 |
/* Copyright (c) 2007 Scott Lembcke
*
* 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... | Plingot/Chipmunk-iOS-framework | src/cpSpaceQuery.c | C | mit | 6,992 |
/*
* linux/kernel/fork.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* 'fork.c' contains the help-routines for the 'fork' system call
* (see also entry.S and others).
* Fork is rather simple, once you get the hang of it, but the memory
* management can be a bitch. See 'mm/memory.c': 'copy_page_range(... | CyanHacker-Lollipop/kernel_htc_msm8974 | kernel/fork.c | C | gpl-2.0 | 45,005 |
/* Copyright (c) 2010-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... | nazunamoe/Oxygen_united_kernel-gproj | arch/arm/mach-msm/footswitch-8x60.c | C | gpl-2.0 | 15,973 |
/*
* zoom2.c -- SoC audio for Zoom2
*
* Author: Misael Lopez Cruz <x0052729@ti.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ... | NamelessRom/android_kernel_samsung_latona | sound/soc/omap/zoom2.c | C | gpl-2.0 | 16,614 |
/*
* linux/arch/arm/mm/fault.c
*
* Copyright (C) 1995 Linus Torvalds
* Modifications for ARM processor (c) 1995-2004 Russell King
*
* 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 Foun... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/arch/arm/mm/fault.c | C | gpl-2.0 | 15,389 |
/*
* The simplest mpeg audio layer 2 encoder
* Copyright (c) 2000, 2001 Fabrice Bellard
*
* 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
* vers... | ghmajx/asuswrt-merlin | release/src/router/ffmpeg/libavcodec/mpegaudioenc.c | C | gpl-2.0 | 23,656 |
/* Copyright (c) 2011-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... | iHateWEBos/kernel_htc_m8_LolliSense | drivers/mfd/wcd9xxx-irq.c | C | gpl-2.0 | 17,967 |
/*
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code 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 ... | md-5/jdk10 | test/hotspot/jtreg/serviceability/jvmti/GetModulesInfo/libJvmtiGetAllModulesTest.c | C | gpl-2.0 | 2,153 |
/* linux/arch/arm/mach-msm/board-villec2-wifi.c
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <asm/mach-types.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/skbuff.h>
#include <linux/wifi_tiwlan.h>
#include... | flar2/m7-Sense-5.0.2 | arch/arm/mach-msm/board-villec2-wifi.c | C | gpl-2.0 | 6,958 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1998-2016. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | neeraj9/otp | lib/ic/c_src/oe_ei_encode_pid.c | C | apache-2.0 | 1,294 |
//
// Little cms
// Copyright (C) 1998-2010 Marti Maria, Ignacio Ruiz de Conejo
//
// 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
//... | Enseed/lcms2 | utils/matlab/icctrans.c | C | mit | 16,497 |
/*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 l... | liaoqingwei/ltp | testcases/kernel/syscalls/pwrite/pwrite01.c | C | gpl-2.0 | 9,235 |
/*
* sys.c - pseudo-bus for system 'devices' (cpus, PICs, timers, etc)
*
* Copyright (c) 2002-3 Patrick Mochel
* 2002-3 Open Source Development Lab
*
* This file is released under the GPLv2
*
* This exports a 'system' bus type.
* By default, a 'sys' bus gets added to the root of the system. There... | augustayu/fastsocket | kernel/drivers/base/sys.c | C | gpl-2.0 | 14,747 |
/* mpz_fdiv_r -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
Copyright 1994, 1995, 1996, 2001, 2005 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
it under... | jpflori/mpir | mpz/fdiv_r.c | C | gpl-3.0 | 1,744 |
/* Copyright (c) 2007-2008 CSIRO
Copyright (c) 2007-2009 Xiph.Org Foundation
Written by Jean-Marc Valin */
/*
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... | endlessm/chromium-browser | third_party/opus/src/celt/vq.c | C | bsd-3-clause | 12,830 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* RTC Driver for X-Powers AC100
*
* Copyright (c) 2016 Chen-Yu Tsai
*
* Chen-Yu Tsai <wens@csie.org>
*/
#include <linux/bcd.h>
#include <linux/clk-provider.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mfd/ac100.h>
... | GuillaumeSeren/linux | drivers/rtc/rtc-ac100.c | C | gpl-2.0 | 17,357 |
/*
* IPV4 GSO/GRO offload support
* Linux INET implementation
*
* 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.
... | samnazarko/linux-imx6 | net/ipv4/gre_offload.c | C | gpl-2.0 | 7,156 |
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright (C) 2017-2018 Netronome Systems, Inc. */
#include <linux/etherdevice.h>
#include <linux/inetdevice.h>
#include <net/netevent.h>
#include <linux/idr.h>
#include <net/dst_metadata.h>
#include <net/arp.h>
#include "cmsg.h"
#include "main.h"
#include... | koct9i/linux | drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c | C | gpl-2.0 | 23,679 |
/* tan.c
*
* Circular tangent
*
*
*
* SYNOPSIS:
*
* double x, y, tan();
*
* y = tan( x );
*
*
*
* DESCRIPTION:
*
* Returns the circular tangent of the radian argument x.
*
* Range reduction is modulo pi/4. A rational function
* x + x**3 P(x**2)/Q(x**2)
* is employed in the basic interva... | ysleu/RTL8685 | uClinux-dist/lib/libm/tan.c | C | gpl-2.0 | 5,831 |
/*
* Copyright (C) 2001 Alan Robertson <alanr@unix.sh>
* This software licensed under the GNU LGPL.
*
*
* 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 of the... | vmgmedia/pacemaker | replace/unsetenv.c | C | gpl-2.0 | 1,532 |
/* -*- linux-c -*- */
/*
* Driver for USB Rio 500
*
* Cesar Miquel (miquel@df.uba.ar)
*
* based on hp_scanner.c by David E. Nelson (dnelson@jump.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 So... | ipwndev/DSLinux-Mirror | linux-2.6.x/drivers/usb/misc/rio500.c | C | gpl-2.0 | 13,159 |
/*
***************************************************************************
* Ralink Tech Inc.
* 4F, No. 2 Technology 5th Rd.
* Science-based Industrial Park
* Hsin-chu, Taiwan, R.O.C.
*
* (c) Copyright 2002-2010, Ralink Technology, Inc.
*
* All rights reserved. Ralink's source code is an unpublish... | choushane/MaRa-a1a0a5aNaL | target/linux/rt305x/files/drivers/net/wireless/rt2860v2/common/p2p_action.c | C | gpl-2.0 | 15,602 |
/* GStreamer
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
* 2005 Wim Taymans <wim@fluendo.com>
*
* gstossdmabuffer.c:
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the... | jcaden/gst-plugins-good | sys/oss/gstossdmabuffer.c | C | lgpl-2.1 | 8,320 |
/*
chacha-merged.c version 20080118
D. J. Bernstein
Public domain.
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "utils.h"
#include "crypto_stream_chacha20.h"
#include "stream_chacha20_ref.h"
#include "../stream_chacha20.h"
struct chacha_ctx {
uint32_t input[16];
};
typedef uint8_... | FuzzyHobbit/libsodium | src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c | C | isc | 9,104 |
#include "util.h"
#include "parse-options.h"
#include "cache.h"
#include "header.h"
#define OPT_SHORT 1
#define OPT_UNSET 2
static int opterror(const struct option *opt, const char *reason, int flags)
{
if (flags & OPT_SHORT)
return error("switch `%c' %s", opt->short_name, reason);
if (flags & OPT_UNSET)
return... | mericon/Xp_Kernel_LGH850 | virt/tools/perf/util/parse-options.c | C | gpl-2.0 | 16,415 |
/*
* lms283gf05.c -- support for Samsung LMS283GF05 LCD
*
* Copyright (c) 2009 Marek Vasut <marek.vasut@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#includ... | JijonHyuni/HyperKernel-JB | virt/drivers/video/backlight/lms283gf05.c | C | gpl-2.0 | 5,030 |
/*
* Copyright (C) 2008-2009 Samsung Electronics
* Minkyu Kang <mk7.kang@samsung.com>
* Kyungmin Park <kyungmin.park@samsung.com>
*
* 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 GN... | hujiafu/lpc1788_uboot | u-boot-linux-cortexm-1.10.2/board/samsung/smdkc100/smdkc100.c | C | gpl-2.0 | 1,387 |
/*
Unix SMB/CIFS implementation.
POSIX NTVFS backend - fsinfo
Copyright (C) Andrew Tridgell 2004
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, ... | opinkerfi/winexe | source4/ntvfs/posix/pvfs_fsinfo.c | C | gpl-3.0 | 6,203 |
/* THIS FILE IS GENERATED. Original: powerpc-isa205-64l.xml */
#include "defs.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_64l;
static void
initialize_tdesc_powerpc_isa205_64l (void)
{
struct target_desc *result = allocate_target_description ();
struct tdesc_feature *feature;
st... | BackupGGCode/propgcc | gdb/gdb/features/rs6000/powerpc-isa205-64l.c | C | gpl-3.0 | 5,482 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | michaelmarks/apitest | thirdparty/SDL2-2.0.1/src/test/SDL_test_imageFace.c | C | unlicense | 16,716 |
/*********************************************************************/
/* Copyright 2009, 2010 The University of Texas at Austin. */
/* All rights reserved. */
/* */
/* Redistribution and use in sou... | walkerka/opentoonz | thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/kernel/generic/ztrmm_ltcopy_8.c | C | bsd-3-clause | 19,108 |
/******************************************************************************
*
* Module Name: utxface - External interfaces for "global" ACPI functions
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2005, R. Byron Moore
* All rights reserved.
*
* R... | pengdonglin137/linux-2.6.11 | drivers/acpi/utilities/utxface.c | C | gpl-2.0 | 14,081 |
/*
* 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... | Broadcom/linux-rdma-nxt | drivers/gpu/drm/qxl/qxl_display.c | C | gpl-2.0 | 34,829 |
/* Unit tests for GMutex
* Copyright (C) 2011 Red Hat, Inc
* Author: Matthias Clasen
*
* This work is provided "as is"; redistribution and modification
* in whole or in part, in any medium, physical or electronic is
* permitted without restriction.
*
* This work is distributed in the hope that it will be useful... | FabianKnapp/nexmon | utilities/glib/glib/tests/mutex.c | C | gpl-3.0 | 5,213 |
/*****************************************************************************
Copyright (c) 2011, Intel Corp.
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 cod... | zhmz90/OpenBLAS | lapack-netlib/lapacke/src/lapacke_zgetri.c | C | bsd-3-clause | 3,388 |
/* chesvxx.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 o... | CreativeCimmons/ORB-SLAM-Android-app | slam_ext/external/clapack-3.2.1-CMAKE/SRC/chesvxx.c | C | gpl-2.0 | 26,340 |
/* Copyright (c) 2002,2007-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 t... | raiy/android_kernel_samsung_msm8660-common-1 | drivers/gpu/msm/kgsl_mmu.c | C | gpl-2.0 | 19,793 |
/*
* check TSC synchronization.
*
* Copyright (C) 2006, Red Hat, Inc., Ingo Molnar
*
* We check whether all boot CPUs have their TSC's synchronized,
* print a warning if not and turn off the TSC clock-source.
*
* The warp-check is point-to-point between two CPUs, the CPU
* initiating the bootup is the 'source ... | bas-t/linux_media | arch/x86/kernel/tsc_sync.c | C | gpl-2.0 | 13,045 |
/*****************************************************************************
* stream_output.c : stream output module
*****************************************************************************
* Copyright (C) 2002-2007 VLC authors and VideoLAN
* $Id$
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* ... | u-stone/vlc | src/stream_output/stream_output.c | C | gpl-2.0 | 27,293 |
/* Test mpz_set_d and mpz_init_set_d.
Copyright 2000, 2001, 2002, 2003, 2006 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP 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... | freedesktop-unofficial-mirror/gstreamer-sdk__gmp | tests/mpz/t-set_d.c | C | gpl-3.0 | 3,592 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Hardware monitoring driver for PMBus devices
*
* Copyright (c) 2010, 2011 Ericsson AB.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/i2c.h>
#inc... | chenshuo/linux-study | drivers/hwmon/pmbus/pmbus.c | C | gpl-2.0 | 7,389 |
// SPDX-License-Identifier: GPL-2.0
/*
* SAMA7G5 PMC code.
*
* Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries
*
* Author: Claudiu Beznea <claudiu.beznea@microchip.com>
*
*/
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/mfd/syscon.h>
#include <linux/slab.h>
#include <d... | tprrt/linux-stable | drivers/clk/at91/sama7g5.c | C | gpl-2.0 | 30,168 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.