plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | sb_wdog | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/sb_wdog.c | 8,737 | utf_8 | b29e8e25abaed971582f8a3242425b13 | /*
* Watchdog driver for SiByte SB1 SoCs
*
*
* This driver is intended to make the second of two hardware watchdogs
* on the Sibyte 12XX and 11XX SoCs available to the user. There are two
* such devices available on the SoC, but it seems that there isn't an
* enumeration class for watchdogs in Linux like there ... |
google | android | booke_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/booke_wdt.c | 5,971 | utf_8 | 2f5089b79e6cff21ae5a4d9ee82dcd5a | /*
* Watchdog timer for PowerPC Book-E systems
*
* Author: Matthew McClintock
* option) any later version.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/watchdog.h>
#include <asm/reg_booke.h>
#include <asm/time.h>
#include <asm/div64.h>
/* If the ke... |
google | android | it8712f_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/it8712f_wdt.c | 10,199 | utf_8 | 20c287b0d82d008d5834c78d047e48b5 | /*
* IT8712F "Smart Guardian" Watchdog support
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/fs.h>
#inclu... |
google | android | ibmasr | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/ibmasr.c | 9,628 | utf_8 | 0bc96b96bc304769fe5c1ec172819931 | /*
* IBM Automatic Server Restart driver.
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/timer.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/dmi.h>
#include <linux/io.h>
#... |
google | android | nuc900_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/nuc900_wdt.c | 7,310 | utf_8 | fb545413ef00df0231ac4dc47a073323 | /*
*
*/
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/inte... |
google | android | lantiq_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/lantiq_wdt.c | 5,878 | utf_8 | 18c97db8e25b0449e8660b4f049270ef | /*
* Based on EP93xx wdt driver
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/of_platform.h>
#include <linux/uaccess.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <lantiq_soc.h>
/*
*... |
google | android | pcwd_pci | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/pcwd_pci.c | 20,378 | utf_8 | d9a26ce80d1c541b0c661bde1446cec1 | /*
* Berkshire PCI-PC Watchdog Card Driver
*
* provided "AS-IS" and at no charge.
*/
/*
* A bells and whistles driver is available from:
* http://www.kernel.org/pub/linux/kernel/people/wim/pcwd/pcwd_pci/
*
* More info available at
* http://www.berkprod.com/ or http://www.pcwatchdog.com/
*/
/*
* Includes, def... |
google | android | cpu5wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/cpu5wdt.c | 6,791 | utf_8 | 67a45c028bc176c4490c6f9edf3255ed | /*
* sma cpu5 watchdog driver
*
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/miscdevice.h>
#include <linux/fs.h>
#include <linux... |
google | android | alim7101_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/alim7101_wdt.c | 11,167 | utf_8 | 82b7b88e6fd20428b86e963d2562b6ed | /*
* ALi M7101 PMU Computer Watchdog Timer driver
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/ioport.h>
#include <linux/notifier.h>... |
google | android | rc32434_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/rc32434_wdt.c | 8,324 | utf_8 | 59abe2f8edf30ee901631fa15c85e1c9 | /*
* IDT Interprise 79RC32434 watchdog driver
*
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> /* For module specific items */
#include <linux/moduleparam.h> /* For new moduleparam's */
#include <linux/types.h> /* For standard types (like size_t) */
#include <linux/errno.h> /* For t... |
google | android | ts72xx_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/ts72xx_wdt.c | 10,015 | utf_8 | bbce2ca3eeed4be0d0452d48a56a7771 | /*
* Watchdog driver for Technologic Systems TS-72xx based SBCs
* (TS-7200, TS-7250 and TS-7260). These boards have external
* glue logic CPLD chip, which includes programmable watchdog
* timer.
*
* warranty of any kind, whether express or implied.
*/
#include <linux/fs.h>
#include <linux/io.h>
#include <linux/m... |
google | android | sc520_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/sc520_wdt.c | 11,080 | utf_8 | ae27efe2635bff1557b746d22527565d | /*
* AMD Elan SC520 processor Watchdog Timer driver
*
* Based on acquirewdt.c by Alan Cox,
* 9/27 - 2001 [Initial release]
*
* Additional fixes Alan Cox
* - Fixed formatting
* - Removed debug printks
* - Fixed SMP built kernel deadlock
* - Switched to private locks not lock_kernel
* - Used ior... |
google | android | cpwd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/cpwd.c | 16,309 | utf_8 | 8a3d617055331973e03b598d00f5d7bd | /* cpwd.c - driver implementation for hardware watchdog
* timers found on Sun Microsystems CP1400 and CP1500 boards.
*
* This device supports both the generic Linux watchdog
* interface and Solaris-compatible ioctls as best it is
* able.
*
* NOTE: CP1400 systems appear to have a defective intr_mask
* register... |
google | android | sbc_fitpc2_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/sbc_fitpc2_wdt.c | 5,377 | utf_8 | 952ede190aae911453fc5cff98fed9d5 | /*
* Watchdog driver for SBC-FITPC2 board
*
* warranty of any kind, whether express or implied.
*/
#define pr_fmt(fmt) KBUILD_MODNAME " WATCHDOG: " fmt
#include <linux/module.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#inc... |
google | android | sbc_epx_c3 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/sbc_epx_c3.c | 5,119 | utf_8 | 4ca3b6f68551d1e19477d4390d4471f1 | /*
* SBC EPX C3 0.1 A Hardware Watchdog Device for the Winsystems EPX-C3
* single board computer
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/mi... |
google | android | w83977f_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/w83977f_wdt.c | 12,093 | utf_8 | c7af09eae56262070f3f4c2e8b666dff | /*
* W83977F Watchdog Timer Driver for Winbond W83977F I/O Chip
*
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/init.h>
#include <linux/i... |
google | android | mtx-1_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/mtx-1_wdt.c | 6,368 | utf_8 | 6a83193827c146a3f2fc0eaed96b0871 | /*
* Driver for the MTX-1 Watchdog.
*
* use the Linux watchdog/timer APIs
*
* The Watchdog is configured to reset the MTX-1
* if it is not triggered for 100 seconds.
* It should not be triggered more often than 1.6 seconds.
*
* A timer triggers the watchdog every 5 seconds, until
* ... |
google | android | intel_scu_watchdog | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/intel_scu_watchdog.c | 15,396 | utf_8 | 0ea229011b36bc4e7d41fd148fbafb8c | /*
* Intel_SCU 0.2: An Intel SCU IOH Based Watchdog Device
* for Intel part #(s):
* - AF82MP20 PCH
*
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/compiler.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/m... |
google | android | via_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/via_wdt.c | 7,638 | utf_8 | 2c8cb24011b415f05d0a468e43c044ca | /*
* VIA Chipset Watchdog Driver
*
*
* Caveat: PnP must be enabled in BIOS to allow full access to watchdog
* control registers. If not, the watchdog must be configured in BIOS manually.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/device.h>
#include <linux/io.h>
#include <linux/jiffies.h>
#incl... |
google | android | shwdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/shwdt.c | 9,364 | utf_8 | dc53e53ffe49a164eaa07b30696d82e1 | /*
* drivers/watchdog/shwdt.c
*
* Watchdog driver for integrated watchdog in the SuperH processors.
*
* Added expect close support, made emulated timeout runtime changeable
* general cleanups, add some ioctls
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/modulep... |
google | android | of_xilinx_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/of_xilinx_wdt.c | 6,546 | utf_8 | f84a6c681aa265243ed864a2a508b6b0 | /*
* Watchdog Device Driver for Xilinx axi/xps_timebase_wdt
*
*/
#include <linux/err.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
#include <linux/watchdog.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_addres... |
google | android | pnx833x_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/pnx833x_wdt.c | 7,250 | utf_8 | 2cdf8004f3b7125497c0fbb00238ddec | /*
* PNX833x Hardware Watchdog Driver
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/notifi... |
google | android | orion_wdt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/watchdog/orion_wdt.c | 16,996 | utf_8 | 696e6cf6cfc33e88c86b850bd3538b17 | /*
* drivers/watchdog/orion_wdt.c
*
* Watchdog driver for Orion/Kirkwood processors
*
* warranty of any kind, whether express or implied.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/platf... |
google | android | blk-mq-cpumap | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-mq-cpumap.c | 2,598 | utf_8 | 66bf36a4dbc9ec1133a2c065ca36e63d | /*
* CPU <-> hardware queue mapping helpers
*
*/
#include <linux/kernel.h>
#include <linux/threads.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/cpu.h>
#include <linux/blk-mq.h>
#include "blk.h"
#include "blk-mq.h"
static int cpu_to_queue_index(unsigned int nr_cpus, unsign... |
google | android | blk-mq-cpu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-mq-cpu.c | 1,607 | utf_8 | ada19b96394e884d086ee03a30be4707 | /*
* CPU notifier helper code for blk-mq
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/blkdev.h>
#include <linux/list.h>
#include <linux/llist.h>
#include <linux/smp.h>
#include <linux/cpu.h>
#include <linux/blk-mq.h>
#include "blk-mq.h"
static LIST_HEAD(blk_mq_cpu_... |
google | android | bio | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/bio.c | 49,737 | utf_8 | 564875ce0c0554a2c44a12e4d069ad32 | /*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-
*
*/
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/uio.h>
#include <linux/iocontext.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/expor... |
google | android | blk-lib | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-lib.c | 7,644 | utf_8 | 12ec122ff78d105c7d18d7202cd97f33 | /*
* Functions related to generic helpers functions
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/scatterlist.h>
#include "blk.h"
struct bio_batch {
atomic_t done;
int error;
struct completion *wait;
};
static void bio_batch_end_io(struct... |
google | android | blk-timeout | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-timeout.c | 5,850 | utf_8 | 1c2cac15f7c1325b43bc662122a3f2db | /*
* Functions related to generic timeout handling of requests.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/fault-inject.h>
#include "blk.h"
#include "blk-mq.h"
#ifdef CONFIG_FAIL_IO_TIMEOUT
static DECLARE_FAULT_ATTR(fail_io_timeout);
static int __init setup_fail_i... |
google | android | blk-mq-tag | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-mq-tag.c | 17,077 | utf_8 | dcc6f98ba8d4f320d2a91c669d5ae8ca | /*
* Fast and scalable bitmap tagging variant. Uses sparser bitmaps spread
* over multiple cachelines to avoid ping-pong between multiple submitters
* or submitter and completer. Uses rolling wakeups to avoid falling of
* the scaling cliff when we run out of tags and have to start putting
* submitters to sleep.
*... |
google | android | bio-integrity | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/bio-integrity.c | 14,570 | utf_8 | faefd94e48e629fabd83de6cb762b0f1 | /*
* bio-integrity.c - bio data integrity extensions
*
* USA.
*
*/
#include <linux/blkdev.h>
#include <linux/mempool.h>
#include <linux/export.h>
#include <linux/bio.h>
#include <linux/workqueue.h>
#include <linux/slab.h>
#define BIP_INLINE_VECS 4
static struct kmem_cache *bip_slab;
static struct workqueue_struct ... |
google | android | blk-iopoll | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-iopoll.c | 5,984 | utf_8 | 600ccd086ff69a47d1a9ae869e004c49 | /*
* Functions related to interrupt-poll handling in the block layer. This
* is similar to NAPI for network devices.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/cpu.h>
#include <linux/blk-... |
google | android | blk-mq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-mq.c | 56,792 | utf_8 | be0a0d9be3d9d08b4336ca4e0df2d116 | /*
* Block multiqueue core code
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/backing-dev.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/kmemleak.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/smp.h... |
google | android | blk-settings | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-settings.c | 27,552 | utf_8 | 2d741b3e51b15cb0d955d574b8146eb2 | /*
* Functions related to setting various queue properties from drivers
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/bootmem.h> /* for max_pfn/max_low_pfn */
#include <linux/gcd.h>
#include <linux/lcm.h>
#include <linux... |
google | android | blk-integrity | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-integrity.c | 12,623 | utf_8 | 93774c5d79d6832fc19674e24d839117 | /*
* blk-integrity.c - Block layer data integrity extensions
*
* USA.
*
*/
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/mempool.h>
#include <linux/bio.h>
#include <linux/scatterlist.h>
#include <linux/export.h>
#include <linux/slab.h>
#include "blk.h"
/**
* blk_rq_count_integrity_sg - ... |
google | android | blk-mq-sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-mq-sysfs.c | 11,517 | utf_8 | ad7bbef3596b2cb48023b0575fdf8d27 | #include <linux/kernel.h>
#include <linux/module.h>
#include <linux/backing-dev.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/smp.h>
#include <linux/blk-mq.h>
#include "blk-mq.h"
#include "blk-mq-tag... |
google | android | blk-cgroup | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-cgroup.c | 36,465 | utf_8 | 4f7098d8f12f09e0d16ee4fb4bf9cda7 | /*
* Common Block IO controller cgroup interface
*
* Based on ideas and code from CFQ, CFS and BFQ:
*/
#include <linux/ioprio.h>
#include <linux/kdev_t.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/slab.h>
#include <linux/genhd.h>
#inclu... |
google | android | deadline-iosched | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/deadline-iosched.c | 11,555 | utf_8 | a00b91a4e4a1140b4c84efea9e574649 | /*
* Deadline i/o scheduler.
*
*/
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/blkdev.h>
#include <linux/elevator.h>
#include <linux/bio.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/compiler.h>
#include <linux/rbtree.h>
/*
* See Documentation/block... |
google | android | elevator | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/elevator.c | 24,373 | utf_8 | 67db5a96f0069330a786de498538da26 | /*
* Block device elevator/IO-scheduler.
*
* Removed tests for max-bomb-segments, which was breaking elvtune
* when run without -bN
*
* Jens:
* - Rework again to work with bio instead of buffer_heads
* - loose bi_dev comparisons, partition handling is right now
* - completely modularize elevator setup and te... |
google | android | t10-pi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/t10-pi.c | 4,964 | utf_8 | 8331d3a41c6d75b1a4c747098cb3a904 | /*
* t10_pi.c - Functions for generating and verifying T10 Protection
* Information.
*
* USA.
*
*/
#include <linux/t10-pi.h>
#include <linux/blkdev.h>
#include <linux/crc-t10dif.h>
#include <net/checksum.h>
typedef __be16 (csum_fn) (void *, unsigned int);
static const __be16 APP_ESCAPE = (__force __be16) 0x... |
google | android | cfq-iosched | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/cfq-iosched.c | 126,141 | utf_8 | b1252a8cffa80ba94aeee58313ba9e20 | /*
* CFQ, or complete fairness queueing, disk scheduler.
*
* Based on ideas from a previously unfinished io
* scheduler (round robin per-process disk scheduling) and Andrea Arcangeli.
*
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/blkdev.h>
#include <linux/elevator.h>
#include <linux/ji... |
google | android | ioprio | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/ioprio.c | 5,196 | utf_8 | bf3830d2e6272cefa2377d9534cbae4c | /*
* fs/ioprio.c
*
*
* Helper functions for setting/querying io priorities of processes. The
* system calls closely mimmick getpriority/setpriority, see the man page for
* those. The prio argument is a composite of prio class and prio data, where
* the data argument has meaning within that class. The standard sc... |
google | android | blk-merge | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-merge.c | 18,988 | utf_8 | d1428d178d4c75c4e424de831f5874d3 | /*
* Functions related to segment and merge handling
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/scatterlist.h>
#include "blk.h"
static struct bio *blk_bio_discard_split(struct request_queue *q,
struct bio *bio,
struct bio_set *bs... |
google | android | blk-tag | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-tag.c | 10,243 | utf_8 | 1b31ebb109ea3361cdf48b048255612e | /*
* Functions related to tagged command queuing
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/slab.h>
#include "blk.h"
/**
* blk_queue_find_tag - find a request by its tag and queue
*
* Notes:
* Should be used when a device returns a ta... |
google | android | ioctl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/ioctl.c | 14,960 | utf_8 | 3259e6f9ed31aa36e17f91524404b168 | #include <linux/capability.h>
#include <linux/blkdev.h>
#include <linux/export.h>
#include <linux/gfp.h>
#include <linux/blkpg.h>
#include <linux/hdreg.h>
#include <linux/backing-dev.h>
#include <linux/fs.h>
#include <linux/blktrace_api.h>
#include <linux/pr.h>
#include <asm/uaccess.h>
static int blkpg_ioctl(struct blo... |
google | android | noop-iosched | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/noop-iosched.c | 2,669 | utf_8 | 08ab933d399999ad248cd15055009bbc | /*
* elevator noop
*/
#include <linux/blkdev.h>
#include <linux/elevator.h>
#include <linux/bio.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
struct noop_data {
struct list_head queue;
};
static void noop_merged_requests(struct request_queue *q, struct request *rq,
struct request ... |
google | android | partition-generic | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partition-generic.c | 14,593 | utf_8 | 85829cdd5f4ffd0131d788aba031eda7 | /*
* Code extracted from drivers/block/genhd.c
* Re-organised Feb 1998 Russell King
*
* We now have independent partition support from the
* block drivers, which allows all the partition code to
* be grouped in one location, and it to be mostly self
* contained.
*/
#include <linux/init.h>
#include <linux/... |
google | android | blk-ioc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-ioc.c | 10,453 | utf_8 | bf6f395d1d5134a33912807990dff3c3 | /*
* Functions related to io context handling
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/slab.h>
#include "blk.h"
/*
* For io context allocations
*/
static struct kmem_cache *iocontext_cachep;
/**
* get_io_context ... |
google | android | blk-core | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-core.c | 95,877 | utf_8 | 3b33ebb45d8714e38038722a58671884 | /*
*/
/*
* This handles all read/write requests to block devices
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/backing-dev.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/blk-mq.h>
#include <linux/highmem.h>
#include <linux/mm.h>
#include <linux/kernel_stat.h>
#include <l... |
google | android | blk-flush | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-flush.c | 15,602 | utf_8 | 60ecdc66fa895b49927ffacde6005f9a | /*
* Functions to sequence FLUSH and FUA writes.
*
*
* REQ_{FLUSH|FUA} requests are decomposed to sequences consisted of three
* optional steps - PREFLUSH, DATA and POSTFLUSH - according to the request
* properties and hardware capability.
*
* If a request doesn't have data, only REQ_FLUSH makes sense, which
*... |
google | android | compat_ioctl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/compat_ioctl.c | 21,313 | utf_8 | fb08ddb3390c6e1d8824ff4fa63a0724 | #include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <linux/blktrace_api.h>
#include <linux/cdrom.h>
#include <linux/compat.h>
#include <linux/elevator.h>
#include <linux/fd.h>
#include <linux/hdreg.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
#include <linux/types.h>
#include <linux/uaccess.h>
static... |
google | android | bounce | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/bounce.c | 5,961 | utf_8 | fc09c9b9d94ff11d5421d1f4c4978be0 | /* bounce buffer handling for block devices
*
* - Split from highmem.c
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/mm.h>
#include <linux/export.h>
#include <linux/swap.h>
#include <linux/gfp.h>
#include <linux/bio.h>
#include <linux/pagemap.h>
#include <linux/mempool.h>
#include <linux/blkdev.h>... |
google | android | blk-sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-sysfs.c | 17,852 | utf_8 | 3cf49e8090c2fd61bbd2ee8ca4254067 | /*
* Functions related to sysfs handling
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/blktrace_api.h>
#include <linux/blk-mq.h>
#include <linux/blk-cgroup.h>
#include "blk.h"
#include "blk... |
google | android | genhd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/genhd.c | 45,446 | utf_8 | 9c2f16c161e639873535f7648b203bfd | /*
* gendisk handling
*/
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/genhd.h>
#include <linux/kdev_t.h>
#include <linux/kernel.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#in... |
google | android | blk-exec | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-exec.c | 3,273 | utf_8 | be9d7d81dca91518d5a1d624d8d4a7f6 | /*
* Functions related to setting various queue properties from drivers
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/blk-mq.h>
#include <linux/sched/sysctl.h>
#include "blk.h"
/*
* for max sense size
*/
#include <scsi/scsi_cmnd.h>
/**
* blk... |
google | android | scsi_ioctl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/scsi_ioctl.c | 19,861 | utf_8 | 8bc3a959ac3378e55933f391c5ea039f | /*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-
*
*/
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/capability.h>
#include <linux/completion.h>
#include <linux/cdrom.h>
#include <linux/ratelimit.h>... |
google | android | blk-throttle | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-throttle.c | 43,618 | utf_8 | 5d035844627e7ef38a7408bf958cfdcd | /*
* Interface for controlling IO bandwidth on a request queue
*
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/blkdev.h>
#include <linux/bio.h>
#include <linux/blktrace_api.h>
#include <linux/blk-cgroup.h>
#include "blk.h"
/* Max dispatch from a group in 1 round */
static int throtl_grp_quantu... |
google | android | cmdline-parser | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/cmdline-parser.c | 5,012 | utf_8 | 62d531770900569f84ffc10e8572bbf1 | /*
* Parse command line, get partition information
*
*
*/
#include <linux/export.h>
#include <linux/cmdline-parser.h>
static int parse_subpart(struct cmdline_subpart **subpart, char *partdef)
{
int ret = 0;
struct cmdline_subpart *new_subpart;
*subpart = NULL;
new_subpart = kzalloc(sizeof(struct cmdline_subpart... |
google | android | blk-softirq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-softirq.c | 4,540 | utf_8 | 860ee3fdc174fa68166bfbf9d63a0960 | /*
* Functions related to softirq rq completions
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/cpu.h>
#include <linux/sched.h>
#include "blk.h"
static DEFINE_PER_CPU(struct list_head, blk_cpu... |
google | android | bsg-lib | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/bsg-lib.c | 6,117 | utf_8 | 6eb5d0ca30ff03d3cd71ef3902249121 | /*
* BSG helper library
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#include <linux/slab.h>
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/scatterlist.h>
#include <linux/bsg-lib.h>
#include <linux/export.h>
#include <scsi/scsi_cmnd.h>
/**
* bsg_destroy_... |
google | android | bsg | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/bsg.c | 23,458 | utf_8 | 5a8fda6eff19360b2f2467f7c0808041 | /*
* bsg.c - block layer implementation of the sg v4 interface
*
* archive for more details.
*
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/file.h>
#include <linux/blkdev.h>
#include <linux/poll.h>
#include <linux/cdev.h>
#include <linux/jiffies.h>
#include <linux/percpu.h>
#include <linux... |
google | android | blk-map | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/blk-map.c | 5,927 | utf_8 | e2386648646531f88b2beb1d8003980b | /*
* Functions related to mapping data to requests
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/uio.h>
#include "blk.h"
static bool iovec_gap_to_prv(struct request_queue *q,
struct iovec *prv, struct iovec *cur)
{
unsigned long prev_e... |
google | android | sun | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/sun.c | 3,827 | utf_8 | e612b1e4eb470c0885205dea59d42045 | /*
* fs/partitions/sun.c
*
* Code extracted from drivers/block/genhd.c
*
* Re-organised Feb 1998 Russell King
*/
#include "check.h"
#include "sun.h"
int sun_partition(struct parsed_partitions *state)
{
int i;
__be16 csum;
int slot = 1;
__be16 *ush;
Sector sect;
struct sun_disklabel {
unsigned char info... |
google | android | ultrix | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/ultrix.c | 1,189 | utf_8 | 635bb520866f83c3fc4214e09df07cf3 | /*
* fs/partitions/ultrix.c
*
* Code extracted from drivers/block/genhd.c
*
* Re-organised Jul 1999 Russell King
*/
#include "check.h"
#include "ultrix.h"
int ultrix_partition(struct parsed_partitions *state)
{
int i;
Sector sect;
unsigned char *data;
struct ultrix_disklabel {
s32 pt_magic; /* magic no... |
google | android | osf | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/osf.c | 1,925 | utf_8 | 277bbdfb97371d70345311a268100077 | /*
* fs/partitions/osf.c
*
* Code extracted from drivers/block/genhd.c
*
* Re-organised Feb 1998 Russell King
*/
#include "check.h"
#include "osf.h"
#define MAX_OSF_PARTITIONS 18
int osf_partition(struct parsed_partitions *state)
{
int i;
int slot = 1;
unsigned int npartitions;
Sector sect;
unsigned char ... |
google | android | efi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/efi.c | 23,249 | utf_8 | e0219dc32672a546e71001c1bd5d4abf | /************************************************************
* EFI GUID Partition Table handling
*
* http://www.uefi.org/specs/
* http://www.intel.com/technology/efi/
*
* - detect hybrid MBRs, tighter pMBR checking & cleanups.
*
* - Removed __PRIPTR_PREFIX - not being used
*
* - Change read_lba() to use the ... |
google | android | mac | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/mac.c | 3,604 | utf_8 | 6e4e1f94a692f0c5108b055dceb2400c | /*
* fs/partitions/mac.c
*
* Code extracted from drivers/block/genhd.c
* Re-organised Feb 1998 Russell King
*/
#include <linux/ctype.h>
#include "check.h"
#include "mac.h"
#ifdef CONFIG_PPC_PMAC
#include <asm/machdep.h>
extern void note_bootable_part(dev_t dev, int part, int goodness);
#endif
/*
* Code to unde... |
google | android | sgi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/sgi.c | 2,274 | utf_8 | d487a9e03d098d3e5e7c976bac411a5f | /*
* fs/partitions/sgi.c
*
* Code extracted from drivers/block/genhd.c
*/
#include "check.h"
#include "sgi.h"
struct sgi_disklabel {
__be32 magic_mushroom; /* Big fat spliff... */
__be16 root_part_num; /* Root partition number */
__be16 swap_part_num; /* Swap partition number */
s8 boot_file[16]; /* Nam... |
google | android | amiga | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/amiga.c | 3,753 | utf_8 | f9e95d59aa3b402fcab34d190f315bb8 | /*
* fs/partitions/amiga.c
*
* Code extracted from drivers/block/genhd.c
*
* Re-organised Feb 1998 Russell King
*/
#define pr_fmt(fmt) fmt
#include <linux/types.h>
#include <linux/affs_hardblocks.h>
#include "check.h"
#include "amiga.h"
static __inline__ u32
checksum_block(__be32 *m, int size)
{
u32 sum = 0;
... |
google | android | cmdline | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/cmdline.c | 2,278 | utf_8 | 866f326ddcc64d7a91ce1434d3604a55 | /*
*
* Read block device partition table from the command line.
* Typically used for fixed block (eMMC) embedded devices.
* It has no MBR, so saves storage space. Bootloader can be easily accessed
* by absolute address of data on the block device.
* Users can easily change the partition.
*
* The format for the ... |
google | android | ibm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/ibm.c | 9,556 | utf_8 | 419f7f3a3f7dcc66cae36d3b8d398407 | /*
*/
#include <linux/buffer_head.h>
#include <linux/hdreg.h>
#include <linux/slab.h>
#include <asm/dasd.h>
#include <asm/ebcdic.h>
#include <asm/uaccess.h>
#include <asm/vtoc.h>
#include "check.h"
#include "ibm.h"
union label_t {
struct vtoc_volume_label_cdl vol;
struct vtoc_volume_label_ldl lnx;
struct vtoc_cms_l... |
google | android | sysv68 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/sysv68.c | 1,939 | utf_8 | 68d6e48f449ccb35593a516401816eb2 | /*
* fs/partitions/sysv68.c
*
*/
#include "check.h"
#include "sysv68.h"
/*
* Volume ID structure: on first 256-bytes sector of disk
*/
struct volumeid {
u8 vid_unused[248];
u8 vid_mac[8]; /* ASCII string "MOTOROLA" */
};
/*
* config block: second 256-bytes sector on disk
*/
struct dkconfig {
u8 ios_unused0[1... |
google | android | msdos | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/msdos.c | 16,201 | utf_8 | e89944b668e6606e17933901f5f29c12 | /*
* fs/partitions/msdos.c
*
* Code extracted from drivers/block/genhd.c
* in the early extended-partition checks and added DM partitions
*
* Support for DiskManager v6.0x added by Mark Lord,
* with information provided by OnTrack. This now works for linux fdisk
* and LILO, as well as loadlin and bootln.... |
google | android | karma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/karma.c | 1,115 | utf_8 | d8e6ba9102aaaab8ce2b85131da88254 | /*
* fs/partitions/karma.c
* Rio Karma partition info.
*
* based on osf.c
*/
#include "check.h"
#include "karma.h"
#include <linux/compiler.h>
int karma_partition(struct parsed_partitions *state)
{
int i;
int slot = 1;
Sector sect;
unsigned char *data;
struct disklabel {
u8 d_reserved[270];
struct d_pa... |
google | android | acorn | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/acorn.c | 12,563 | utf_8 | 268fb23a6df6adcde828608c0e3e1c9d | /*
* linux/fs/partitions/acorn.c
*
*
* Scan ADFS partitions on hard disk drives. Unfortunately, there
* isn't a standard for partitioning drives on Acorn machines, so
* every single manufacturer of SCSI and IDE cards created their own
* method.
*/
#include <linux/buffer_head.h>
#include <linux/adfs_fs.h>
... |
google | android | ldm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/ldm.c | 45,133 | utf_8 | eaca611d9e046a4fb122bd311237afdc | /**
* ldm - Support for Windows Logical Disk Manager (Dynamic Disks)
*
* Boston, MA 02111-1307 USA
*/
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/stringify.h>
#include <linux/kernel.h>
#include "ldm.h"
#include "check.h"
#include "msdos.h"
/**
* ldm_debug/info/error/crit - Output an error ... |
google | android | aix | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/aix.c | 6,378 | utf_8 | ea1de1f35b219c3cd11ac5a021cd98e3 | /*
* fs/partitions/aix.c
*
*/
#include "check.h"
#include "aix.h"
struct lvm_rec {
char lvm_id[4]; /* "_LVM" */
char reserved4[16];
__be32 lvmarea_len;
__be32 vgda_len;
__be32 vgda_psn[2];
char reserved36[10];
__be16 pp_size; /* log2(pp_size) */
char reserved46[12];
__be16 version;
};
struct vgda {
__be3... |
google | android | check | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/check.c | 4,286 | utf_8 | cd007723cabb8b33fa261b26d6ce8108 | /*
* fs/partitions/check.c
*
* Code extracted from drivers/block/genhd.c
* Re-organised Feb 1998 Russell King
*
* We now have independent partition support from the
* block drivers, which allows all the partition code to
* be grouped in one location, and it to be mostly self
* contained.
*
* Added ne... |
google | android | atari | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/block/partitions/atari.c | 4,012 | utf_8 | bb62e7c375a0b7eca9cdd24be4ca39d3 | /*
* fs/partitions/atari.c
*
* Code extracted from drivers/block/genhd.c
*
* Re-organised Feb 1998 Russell King
*/
#include <linux/ctype.h>
#include "check.h"
#include "atari.h"
/* ++guenther: this should be settable by the user ("make config")?.
*/
#define ICD_PARTS
/* check if a partition entry looks valid ... |
google | android | gptimers-example | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/blackfin/gptimers-example.c | 2,045 | utf_8 | 82d8b970b7bf10d1b0df7563205b4a7a | /*
* Simple gptimers example
* http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:gptimers
*
*/
#include <linux/interrupt.h>
#include <linux/module.h>
#include <asm/gptimers.h>
#include <asm/portmux.h>
/* ... random driver includes ... */
#define DRIVER_NAME "gptimer_example"
#ifdef IRQ_TIMER5
#defin... |
google | android | testptp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/ptp/testptp.c | 12,306 | utf_8 | 41d87af11d2e48a73271c1d46c627dd5 | /*
* PTP 1588 clock support - User space test program
*
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#define _GNU_SOURCE
#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <math.h>
#include <signal.h>
#in... |
google | android | cfag12864b-example | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/auxdisplay/cfag12864b-example.c | 5,954 | utf_8 | 27de1d5e7aa5759fa49650a1f20f0a39 | /*
* Filename: cfag12864b-example.c
* Version: 0.1.0
* Description: cfag12864b LCD userspace example program
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/*
* ------------------------
* start of cfag12864b code
* ------------------------
*/
#include <string.h>
#incl... |
google | android | disable-tsc-on-off-stress-test | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/prctl/disable-tsc-on-off-stress-test.c | 1,742 | utf_8 | 5f4ddf55ffb57b707038ef10d70102ba | /*
* Tests for prctl(PR_GET_TSC, ...) / prctl(PR_SET_TSC, ...)
*
* Tests if the control register is updated correctly
* when set with prctl()
*
* Warning: this test will cause a very high load for a few seconds
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <inttyp... |
google | android | disable-tsc-ctxt-sw-stress-test | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c | 1,763 | utf_8 | b1c719ff4ad26e33fab9b8d5c00e96df | /*
* Tests for prctl(PR_GET_TSC, ...) / prctl(PR_SET_TSC, ...)
*
* Tests if the control register is updated correctly
* at context switches
*
* Warning: this test will cause a very high load for a few seconds
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <inttypes... |
google | android | disable-tsc-test | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/prctl/disable-tsc-test.c | 2,139 | utf_8 | 2f12f0fd68208a4238a397dac4734781 | /*
* Tests for prctl(PR_GET_TSC, ...) / prctl(PR_SET_TSC, ...)
*
* Basic test to test behaviour of PR_GET_TSC and PR_SET_TSC
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <inttypes.h>
#include <sys/prctl.h>
#include <linux/prctl.h>
/* Get/set the process' ability to ... |
google | android | txtimestamp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/networking/timestamping/txtimestamp.c | 13,303 | utf_8 | 2ff2cf22c57f4700d8c5a40a0e5d5ccb | /*
*
* - SCHED, SND and ACK timestamps
* - RAW, UDP and TCP
* - IPv4 and IPv6
* - various packet sizes (to test GSO and TSO)
*
* Consult the command line arguments for help on running
* the various testcases.
*
* This test requires a dummy TCP server.
* A simple `nc6 [-u] -l -p $DESTPORT` will do
*
*
* 51... |
google | android | timestamping | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/networking/timestamping/timestamping.c | 15,146 | utf_8 | 8181c57916ef1ef9e8242a2d8548fae7 | /*
* This program demonstrates how the various time stamping features in
* the Linux kernel work. It emulates the behavior of a PTP
* implementation in stand-alone master mode by sending PTPv1 Sync
* multicasts once every second. It looks for similar packets, but
* beyond that doesn't actually implement PTP.
*
*... |
google | android | hwtstamp_config | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/networking/timestamping/hwtstamp_config.c | 3,089 | utf_8 | 6f6d7e062bd83cacdf59d6846d15cba9 | /* Test program for SIOC{G,S}HWTSTAMP
* Author: Ben Hutchings
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/if.h>
#include <linux/net_tstamp.h>
#include <linux/sockios.h>
static int
lookup_value(const char **names, int s... |
google | android | spidev_test | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/spi/spidev_test.c | 6,806 | utf_8 | b6c6b20f48f8eacc61562607d5802dd4 | /*
* SPI testing utility (using spidev driver)
*
*
* Cross-compile with cross-gcc -I/path/to/cross-kernel/include
*/
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <li... |
google | android | spidev_fdx | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/spi/spidev_fdx.c | 2,762 | utf_8 | 4c65fc97fb1f5db72e622df6d0d0b988 | #include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <linux/types.h>
#include <linux/spi/spidev.h>
static int verbose;
static void do_read(int fd, int len)
{
unsigned char buf[32], *bp;
int statu... |
google | android | v4l2-pci-skeleton | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/video4linux/v4l2-pci-skeleton.c | 26,421 | utf_8 | 68ccfab4853bd4e58f15624106b1641d | /*
* This is a V4L2 PCI Skeleton Driver. It gives an initial skeleton source
* for use with other PCI drivers.
*
* This skeleton PCI driver assumes that the card has an S-Video connector as
* input 0 and an HDMI connector as input 1.
*
*/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.... |
google | android | sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/mic/mpssd/sysfs.c | 2,240 | utf_8 | 69bdf335950e5d2a6df9dd58174daddb | /*
*
* Intel MIC User Space Tools.
*/
#include "mpssd.h"
#define PAGE_SIZE 4096
char *
readsysfs(char *dir, char *entry)
{
char filename[PATH_MAX];
char value[PAGE_SIZE];
char *string = NULL;
int fd;
int len;
if (dir == NULL)
snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry);
else
snprintf(filenam... |
google | android | mpssd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/mic/mpssd/mpssd.c | 45,052 | utf_8 | 7089aa7fafa0505b56519f0fbfe92d07 | /*
*
* Intel MIC User Space Tools.
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <fcntl.h>
#include <getopt.h>
#include <assert.h>
#include <unistd.h>
#include <stdbool.h>
#include <signal.h>
#include <poll.h>
#include <features.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sy... |
google | android | crc32hash | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/pcmcia/crc32hash.c | 661 | utf_8 | a4b4c5fe3b610905669a11b1b535e2a0 | /* Usage example:
$ ./crc32hash "Dual Speed"
*/
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
static unsigned int crc32(unsigned char const *p, unsigned int len)
{
int i;
unsigned int crc = 0;
while (len--) {
crc ^= *p++;
for (i = 0; i < 8; i++)
crc = (crc >> 1) ^ ((crc & 1) ? ... |
google | android | dnotify_test | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/filesystems/dnotify_test.c | 772 | utf_8 | 2edf541ec00a7b7743859cb0b38059be | #define _GNU_SOURCE /* needed to get the defines */
#include <fcntl.h> /* in glibc 2.2 this has the needed
values defined */
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
static volatile int event_fd;
static void handler(int sig, siginfo_t *si, void *data)
{
event_fd = si->si_fd;
}
int main(void... |
google | android | aliasing-test | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/ia64/aliasing-test.c | 6,145 | utf_8 | 757b6958e51a8f79b4f696d56501b020 | /*
* Exercise /dev/mem mmap cases that have been troublesome in the past
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <... |
google | android | dslm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/laptops/dslm.c | 3,682 | utf_8 | 1240812c41ef5255af65b1154e9a0077 | /*
* dslm.c
* Simple Disk Sleep Monitor
* by Bartek Kania
*/
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <time.h>
#include <string.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <linux/hdreg.h>
#ifdef DEBUG
#define D(x) x
#else
#define D(x)
#end... |
google | android | mei-amt-version | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/misc-devices/mei/mei-amt-version.c | 13,342 | utf_8 | 41818671ede369d3756837495f60fdf3 | /******************************************************************************
* Intel Management Engine Interface (Intel MEI) Linux driver
* Intel MEI Interface Header
*
* http://www.intel.com
*
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, ... |
google | android | hpet_example | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/timers/hpet_example.c | 5,546 | utf_8 | bbcdf809003c38cb388ac2baa81bfeac | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <memory.h>
#include <malloc.h>
#include <time.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include <errno.h>
#include <sys/time.h>
#include <linux/hpet.h>
extern void h... |
google | android | cn_test | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/connector/cn_test.c | 4,632 | utf_8 | 2b15d7066dfb6c42069d03c963019d4c | /*
* cn_test.c
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define pr_fmt(fmt) "cn_test: " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <linux/connecto... |
google | android | ucon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/Documentation/connector/ucon.c | 5,208 | utf_8 | 2b525fa1843ff2bb5a60c5710d953ed4 | /*
* ucon.c
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <asm/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/poll.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <arpa/inet.h>
#include <stdbool.h>
#include <stdio.h>
#include <std... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.