/linux-master/samples/bpf/ |
H A D | task_fd_query_user.c | 49 char buf[256]; local 52 ret = snprintf(buf, sizeof(buf), PMU_TYPE_FILE, event_type); 53 CHECK_PERROR_RET(ret < 0 || ret >= sizeof(buf)); 55 fd = open(buf, O_RDONLY); 58 ret = read(fd, buf, sizeof(buf)); 60 CHECK_PERROR_RET(ret < 0 || ret >= sizeof(buf)); 63 ret = (int)strtol(buf, NULL, 10); 71 char buf[25 local 97 char buf[256]; local 123 test_nondebug_fs_kuprobe_common(const char *event_type, const char *name, __u64 offset, __u64 addr, bool is_return, char *buf, __u32 *buf_len, __u32 *prog_id, __u32 *fd_type, __u64 *probe_offset, __u64 *probe_addr) argument 173 test_nondebug_fs_probe(const char *event_type, const char *name, __u64 offset, __u64 addr, bool is_return, __u32 expected_fd_type, __u32 expected_ret_fd_type, char *buf, __u32 buf_len) argument 229 char buf[256], event_alias[sizeof("test_1234567890")]; local 313 char filename[256], buf[256]; local [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-88pm860x.c | 81 unsigned char buf[8]; local 84 pm860x_page_bulk_read(info->i2c, REG0_ADDR, 8, buf); 85 dev_dbg(info->dev, "%x-%x-%x-%x-%x-%x-%x-%x\n", buf[0], buf[1], 86 buf[2], buf[3], buf[4], buf[5], buf[6], buf[ 106 unsigned char buf[4]; local 130 unsigned char buf[8]; local 158 unsigned char buf[8]; local 201 unsigned char buf[2]; local [all...] |
H A D | rtc-s35390a.c | 71 static int s35390a_set_reg(struct s35390a *s35390a, int reg, char *buf, int len) argument 78 .buf = buf 88 static int s35390a_get_reg(struct s35390a *s35390a, int reg, char *buf, int len) argument 96 .buf = buf 108 u8 buf; local 121 buf = S35390A_FLAG_RESET | S35390A_FLAG_24H; 122 ret = s35390a_set_reg(s35390a, S35390A_CMD_STATUS1, &buf, 1); 127 ret = s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, &buf, 173 char buf[1]; local 215 char buf[7], status; local 244 char buf[7], status; local 278 char buf[3], sts = 0; local 331 char buf[3], sts; local 426 char buf, status1; local [all...] |
H A D | rtc-pcf8583.c | 51 unsigned char buf[8], addr[1] = { 1 }; local 57 .buf = addr, 62 .buf = buf, 67 memset(buf, 0, sizeof(buf)); 71 dt->tm_year = buf[4] >> 6; 72 dt->tm_wday = buf[5] >> 5; 74 buf[4] &= 0x3f; 75 buf[ 89 unsigned char buf[8]; local 123 unsigned char buf[2]; local 159 unsigned char buf[9]; local [all...] |
/linux-master/drivers/watchdog/ |
H A D | watchdog_pretimeout.h | 22 int watchdog_pretimeout_available_governors_get(char *buf); 23 int watchdog_pretimeout_governor_get(struct watchdog_device *wdd, char *buf); 25 const char *buf); 43 static inline int watchdog_pretimeout_available_governors_get(char *buf) argument 49 char *buf) 55 const char *buf) 48 watchdog_pretimeout_governor_get(struct watchdog_device *wdd, char *buf) argument 54 watchdog_pretimeout_governor_set(struct watchdog_device *wdd, const char *buf) argument
|
/linux-master/tools/testing/selftests/proc/ |
H A D | fd-003-kthread.c | 43 char buf[4096]; local 47 snprintf(buf, sizeof(buf), "/proc/%u", pid); 48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); 61 rv = read(fd, buf, sizeof(buf)); 63 if (0 < rv && rv <= sizeof(buf)) { 68 assert(buf[rv - 1] == '\n'); 69 buf[rv - 1] = '\0'; 73 p = strrchr(buf, ' '); 133 char buf[64]; local [all...] |
/linux-master/arch/arm/kernel/ |
H A D | early_printk.c | 17 char buf[128]; local 19 unsigned l = min(n, sizeof(buf)-1); 20 memcpy(buf, s, l); 21 buf[l] = 0; 24 printascii(buf); 40 static int __init setup_early_printk(char *buf) argument
|
/linux-master/drivers/s390/char/ |
H A D | ctrlchar.c | 39 * @buf: console input buffer 49 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty) argument 56 if ((buf[0] != '^') && (buf[0] != '\252')) 61 if (len == 3 && buf[1] == '-') { 62 ctrlchar_sysrq.key = buf[2]; 71 switch (tolower(buf[1])) {
|
/linux-master/arch/mips/include/asm/ |
H A D | uasm.h | 25 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 28 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 31 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 34 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 37 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, signed int c) 40 void uasm_i##op(u32 **buf, unsigned int a, signed int b, unsigned int c) 43 void uasm_i##op(u32 **buf, int a, int b, int c) 46 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, signed int c) 49 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c, \ 53 void uasm_i##op(u32 **buf, unsigne [all...] |
/linux-master/drivers/media/platform/chips-media/coda/ |
H A D | coda-mpeg2.c | 64 u32 coda_mpeg2_parse_headers(struct coda_ctx *ctx, u8 *buf, u32 size) argument 73 memcmp(buf, sequence_header_start, 4) != 0) 77 (size >= 25 && memcmp(buf + 22, u.start_code_prefix, 3) == 0)) && 78 memcmp(buf + 12, u.extension_start, 4) == 0) 82 (size > 89 && memcmp(buf + 86, u.start_code_prefix, 3) == 0)) && 83 memcmp(buf + 76, u.extension_start, 4) == 0)
|
H A D | coda-mpeg4.c | 61 u32 coda_mpeg4_parse_headers(struct coda_ctx *ctx, u8 *buf, u32 size) argument 70 memcmp(buf, vos_start, 4) != 0 || 71 memcmp(buf + 5, u.vo_start, 4) != 0) 75 (size >= 33 && memcmp(buf + 30, u.start_code_prefix, 3) == 0)) 79 (size >= 34 && memcmp(buf + 31, u.start_code_prefix, 3) == 0)) 83 (size >= 35 && memcmp(buf + 32, u.start_code_prefix, 3) == 0))
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_global_func1.c | 21 volatile char buf[MAX_STACK] = {}; local 23 __sink(buf[MAX_STACK - 1]); 33 volatile char buf[MAX_STACK] = {}; local 35 __sink(buf[MAX_STACK - 1]); 43 volatile char buf[MAX_STACK] = {}; local 45 __sink(buf[MAX_STACK - 1]);
|
/linux-master/drivers/firewire/ |
H A D | device-attribute-test.c | 101 char *buf = kunit_kzalloc(test, PAGE_SIZE, GFP_KERNEL); local 118 KUNIT_EXPECT_GT(test, show_immediate(node_dev, &config_rom_attributes[0].attr, buf), 0); 119 KUNIT_EXPECT_STREQ(test, buf, "0xffffff\n"); 122 KUNIT_EXPECT_GT(test, show_immediate(node_dev, &config_rom_attributes[4].attr, buf), 0); 123 KUNIT_EXPECT_STREQ(test, buf, "0xffffff\n"); 126 KUNIT_EXPECT_GT(test, show_text_leaf(node_dev, &config_rom_attributes[5].attr, buf), 0); 127 KUNIT_EXPECT_STREQ(test, buf, "Vendor Name\n"); 130 KUNIT_EXPECT_GT(test, show_text_leaf(node_dev, &config_rom_attributes[6].attr, buf), 0); 131 KUNIT_EXPECT_STREQ(test, buf, "Model Name\n"); 136 KUNIT_EXPECT_LT(test, show_immediate(unit0_dev, &config_rom_attributes[0].attr, buf), 182 char *buf = kunit_kzalloc(test, PAGE_SIZE, GFP_KERNEL); local [all...] |
/linux-master/include/linux/ |
H A D | of_pdt.h | 15 * buf should be 32 bytes; return 0 on success. 18 int (*nextprop)(phandle node, char *prev, char *buf); 22 int (*getproperty)(phandle node, const char *prop, char *buf, 30 int (*pkg2path)(phandle node, char *buf, const int buflen, int *len);
|
/linux-master/drivers/pps/ |
H A D | sysfs.c | 19 char *buf) 26 return sprintf(buf, "%lld.%09d#%d\n", 33 char *buf) 40 return sprintf(buf, "%lld.%09d#%d\n", 47 char *buf) 51 return sprintf(buf, "%4x\n", pps->info.mode); 56 char *buf) 60 return sprintf(buf, "%d\n", !!pps->info.echo); 65 char *buf) 69 return sprintf(buf, " 18 assert_show(struct device *dev, struct device_attribute *attr, char *buf) argument 32 clear_show(struct device *dev, struct device_attribute *attr, char *buf) argument 46 mode_show(struct device *dev, struct device_attribute *attr, char *buf) argument 55 echo_show(struct device *dev, struct device_attribute *attr, char *buf) argument 64 name_show(struct device *dev, struct device_attribute *attr, char *buf) argument 73 path_show(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/linux-master/drivers/macintosh/ |
H A D | macio_sysfs.c | 9 compatible_show (struct device *dev, struct device_attribute *attr, char *buf) argument 19 *buf = '\0'; 24 length += sprintf (buf, "%s\n", compat); 25 buf += length; 36 char *buf) 38 return of_device_modalias(dev, buf, PAGE_SIZE); 42 struct device_attribute *attr, char *buf) 47 return sprintf(buf, "%pOF\n", ofdev->dev.of_node); 53 struct device_attribute *attr, char *buf) 55 return sprintf(buf, " 35 modalias_show(struct device *dev, struct device_attribute *attr, char *buf) argument 41 devspec_show(struct device *dev, struct device_attribute *attr, char *buf) argument 52 name_show(struct device *dev, struct device_attribute *attr, char *buf) argument 59 type_show(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/linux-master/drivers/parisc/ |
H A D | eisa_enumerator.c | 75 static int configure_memory(const unsigned char *buf, argument 87 c = get_8(buf+len); 93 res->start = mem_parent->start + get_24(buf+len+2); 94 res->end = res->start + get_16(buf+len+5)*1024; 115 static int configure_irq(const unsigned char *buf) argument 124 c = get_8(buf+len); 146 static int configure_dma(const unsigned char *buf) argument 155 c = get_8(buf+len); 167 static int configure_port(const unsigned char *buf, struct resource *io_parent, argument 179 c = get_8(buf 209 configure_port_init(const unsigned char *buf) argument 274 configure_choise(const unsigned char *buf, u_int8_t *info) argument 288 configure_type_string(const unsigned char *buf) argument 301 configure_function(const unsigned char *buf, int *more) argument 312 parse_slot_config(int slot, const unsigned char *buf, struct eeprom_eisa_slot_info *es, struct resource *io_parent, struct resource *mem_parent) argument [all...] |
/linux-master/security/selinux/ |
H A D | ima.c | 24 char *buf; local 33 buf = kzalloc(buf_len, GFP_KERNEL); 34 if (!buf) 37 rc = strscpy(buf, "initialized", buf_len); 40 rc = strlcat(buf, selinux_initialized() ? on : off, buf_len); 43 rc = strlcat(buf, "enforcing", buf_len); 46 rc = strlcat(buf, enforcing_enabled() ? on : off, buf_len); 49 rc = strlcat(buf, "checkreqprot", buf_len); 52 rc = strlcat(buf, checkreqprot_get() ? on : off, buf_len); 56 rc = strlcat(buf, selinux_policycap_name [all...] |
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | utils.c | 5 void randomize_buffer(void *buf, size_t buflen) argument 7 int *p = (int *)buf; 20 memcpy(buf + buflen - leftover, &tmp, leftover);
|
/linux-master/drivers/edac/ |
H A D | edac_pci.h | 98 u8 buf; local 100 pci_read_config_byte(pdev, offset, &buf); 102 buf &= ~mask; 103 value |= buf; 114 u16 buf; local 116 pci_read_config_word(pdev, offset, &buf); 118 buf &= ~mask; 119 value |= buf; 138 u32 buf; local 140 pci_read_config_dword(pdev, offset, &buf); [all...] |
/linux-master/arch/x86/events/intel/ |
H A D | pt.c | 93 char *buf) 99 return snprintf(buf, PAGE_SIZE, "%x\n", intel_pt_validate_hw_cap(cap)); 502 struct pt_buffer *buf = perf_get_aux(&pt->handle); local 513 if (!buf->single) 623 static void pt_config_buffer(struct pt_buffer *buf) argument 629 if (buf->single) { 630 base = buf->data_pages[0]; 631 mask = (buf->nr_pages * PAGE_SIZE - 1) >> 7; 633 base = topa_to_page(buf->cur)->table; 634 mask = (u64)buf 91 pt_cap_show(struct device *cdev, struct device_attribute *attr, char *buf) argument 700 topa_insert_table(struct pt_buffer *buf, struct topa *topa) argument 747 topa_insert_pages(struct pt_buffer *buf, int cpu, gfp_t gfp) argument 790 pt_topa_dump(struct pt_buffer *buf) argument 825 pt_buffer_advance(struct pt_buffer *buf) argument 848 struct pt_buffer *buf = perf_get_aux(&pt->handle); local 879 pt_buffer_region(struct pt_buffer *buf) argument 888 pt_buffer_region_size(struct pt_buffer *buf) argument 899 struct pt_buffer *buf = perf_get_aux(&pt->handle); local 956 pt_read_offset(struct pt_buffer *buf) argument 976 pt_topa_entry_for_page(struct pt_buffer *buf, unsigned int pg) argument 1047 pt_topa_prev_entry(struct pt_buffer *buf, struct topa_entry *te) argument 1081 pt_buffer_reset_markers(struct pt_buffer *buf, struct perf_output_handle *handle) argument 1163 pt_buffer_reset_offsets(struct pt_buffer *buf, unsigned long head) argument 1192 pt_buffer_fini_topa(struct pt_buffer *buf) argument 1217 pt_buffer_init_topa(struct pt_buffer *buf, int cpu, unsigned long nr_pages, gfp_t gfp) argument 1247 pt_buffer_try_single(struct pt_buffer *buf, int nr_pages) argument 1302 struct pt_buffer *buf; local 1349 struct pt_buffer *buf = data; local 1480 struct pt_buffer *buf; local 1574 struct pt_buffer *buf; local 1618 struct pt_buffer *buf = perf_get_aux(&pt->handle); local 1645 struct pt_buffer *buf = perf_get_aux(&pt->handle); local [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | memctrl.h | 5 typedef int (*dimm_printer_t)(int synd_code, unsigned long paddr, char *buf, int buflen);
|
/linux-master/sound/usb/caiaq/ |
H A D | midi.h | 7 int port, const char *buf, int len);
|
H A D | input.h | 5 void snd_usb_caiaq_input_dispatch(struct snd_usb_caiaqdev *cdev, char *buf, unsigned int len);
|
/linux-master/include/xen/ |
H A D | xen-front-pgdir-shbuf.h | 81 xen_front_pgdir_shbuf_get_dir_start(struct xen_front_pgdir_shbuf *buf); 83 int xen_front_pgdir_shbuf_map(struct xen_front_pgdir_shbuf *buf); 85 int xen_front_pgdir_shbuf_unmap(struct xen_front_pgdir_shbuf *buf); 87 void xen_front_pgdir_shbuf_free(struct xen_front_pgdir_shbuf *buf);
|