Searched refs:buf (Results 151 - 175 of 8610) sorted by relevance

1234567891011>>

/linux-master/arch/mips/include/asm/
H A Duasm.h25 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 Dcoda-mpeg2.c64 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 Dcoda-mpeg4.c61 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 Dtest_global_func1.c21 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/rtc/
H A Drtc-s35390a.c71 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 Drtc-pcf8583.c51 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/firewire/
H A Ddevice-attribute-test.c101 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 Dof_pdt.h15 * 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 Dsysfs.c19 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 Dmacio_sysfs.c9 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 Deisa_enumerator.c75 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 Dima.c24 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 Dutils.c5 void randomize_buffer(void *buf, size_t buflen) argument
7 int *p = (int *)buf;
20 memcpy(buf + buflen - leftover, &tmp, leftover);
/linux-master/arch/x86/events/intel/
H A Dpt.c93 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 Dmemctrl.h5 typedef int (*dimm_printer_t)(int synd_code, unsigned long paddr, char *buf, int buflen);
/linux-master/sound/usb/caiaq/
H A Dmidi.h7 int port, const char *buf, int len);
H A Dinput.h5 void snd_usb_caiaq_input_dispatch(struct snd_usb_caiaqdev *cdev, char *buf, unsigned int len);
/linux-master/include/xen/
H A Dxen-front-pgdir-shbuf.h81 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);
/linux-master/include/linux/firmware/broadcom/
H A Dtee_bnxt_fw.h12 int tee_bnxt_copy_coredump(void *buf, u32 offset, u32 size);
/linux-master/drivers/media/pci/cx23885/
H A Dcx23885-alsa.c74 struct cx23885_audio_buffer *buf = chip->buf; local
78 buf->vaddr = vmalloc_32(nr_pages << PAGE_SHIFT);
79 if (NULL == buf->vaddr) {
85 buf->vaddr, nr_pages << PAGE_SHIFT);
87 memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT);
88 buf->nr_pages = nr_pages;
90 buf->sglist = vzalloc(array_size(sizeof(*buf->sglist), buf
114 struct cx23885_audio_buffer *buf = dev->buf; local
128 struct cx23885_audio_buffer *buf = dev->buf; local
138 cx23885_alsa_dma_free(struct cx23885_audio_buffer *buf) argument
153 struct cx23885_audio_buffer *buf = chip->buf; local
362 struct cx23885_audio_buffer *buf; local
[all...]
/linux-master/samples/kfifo/
H A Drecord-example.c71 char buf[100]; local
74 struct { unsigned char buf[6]; } hello = { "hello" }; member in struct:__anon238
85 memset(buf, 'a' + i, i + 1);
86 kfifo_in(&test, buf, i + 1);
96 ret = kfifo_out_peek(&test, buf, sizeof(buf));
98 printk(KERN_INFO "%.*s\n", ret, buf);
103 ret = kfifo_out(&test, buf, sizeof(buf));
104 buf[re
120 fifo_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
138 fifo_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/fs/f2fs/
H A Dhash.c25 static void TEA_transform(unsigned int buf[4], unsigned int const in[]) argument
28 __u32 b0 = buf[0], b1 = buf[1];
38 buf[0] += b0;
39 buf[1] += b1;
43 unsigned int *buf, int num)
59 *buf++ = val;
65 *buf++ = val;
67 *buf++ = pad;
72 __u32 in[8], buf[ local
42 str2hashbuf(const unsigned char *msg, size_t len, unsigned int *buf, int num) argument
[all...]
/linux-master/include/linux/soc/ti/
H A Dti-msgmgr.h17 * @buf: Buffer pointer
28 u8 *buf; member in struct:ti_msgmgr_message
/linux-master/drivers/nvmem/
H A Dstm32-bsec-optee-ta.h32 * @buf: buffer to fill with nvem values
39 void *buf, size_t bytes);
46 * @buf: buffer with nvem values
53 unsigned int offset, void *buf, size_t bytes);
67 unsigned int offset, void *buf,
75 unsigned int offset, void *buf,
66 stm32_bsec_optee_ta_read(struct tee_context *ctx, unsigned int offset, void *buf, size_t bytes) argument
73 stm32_bsec_optee_ta_write(struct tee_context *ctx, unsigned int lower, unsigned int offset, void *buf, size_t bytes) argument
/linux-master/drivers/net/ethernet/qualcomm/
H A Dqca_7k_common.c18 qcafrm_create_header(u8 *buf, u16 length) argument
22 if (!buf)
27 buf[0] = 0xAA;
28 buf[1] = 0xAA;
29 buf[2] = 0xAA;
30 buf[3] = 0xAA;
31 buf[4] = len & 0xff;
32 buf[5] = (len >> 8) & 0xff;
33 buf[6] = 0;
34 buf[
41 qcafrm_create_footer(u8 *buf) argument
64 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) argument
[all...]

Completed in 246 milliseconds

1234567891011>>