Searched refs:buf (Results 1 - 25 of 8610) sorted by relevance

1234567891011>>

/linux-master/lib/test_fortify/
H A Dwrite_overflow-strncpy.c3 strncpy(instance.buf, large_src, sizeof(instance.buf) + 1)
H A Dwrite_overflow-strscpy.c3 strscpy(instance.buf, large_src, sizeof(instance.buf) + 1)
H A Dread_overflow2_field-memcpy.c3 memcpy(large, instance.buf, sizeof(instance.buf) + 1)
H A Dread_overflow2_field-memmove.c3 memmove(large, instance.buf, sizeof(instance.buf) + 1)
H A Dwrite_overflow_field-memcpy.c3 memcpy(instance.buf, large, sizeof(instance.buf) + 1)
H A Dwrite_overflow_field-memmove.c3 memmove(instance.buf, large, sizeof(instance.buf) + 1)
H A Dwrite_overflow_field-memset.c3 memset(instance.buf, 0x42, sizeof(instance.buf) + 1)
/linux-master/tools/testing/selftests/bpf/progs/
H A Dread_vsyscall.c17 char buf[8]; local
22 read_ret[0] = bpf_probe_read_kernel(buf, sizeof(buf), user_ptr);
23 read_ret[1] = bpf_probe_read_kernel_str(buf, sizeof(buf), user_ptr);
24 read_ret[2] = bpf_probe_read(buf, sizeof(buf), user_ptr);
25 read_ret[3] = bpf_probe_read_str(buf, sizeof(buf), user_ptr);
26 read_ret[4] = bpf_probe_read_user(buf, sizeo
35 char buf[8]; local
[all...]
/linux-master/scripts/dtc/libfdt/
H A Dfdt_empty_tree.c13 int fdt_create_empty_tree(void *buf, int bufsize) argument
17 err = fdt_create(buf, bufsize);
21 err = fdt_finish_reservemap(buf);
25 err = fdt_begin_node(buf, "");
29 err = fdt_end_node(buf);
33 err = fdt_finish(buf);
37 return fdt_open_into(buf, buf, bufsize);
/linux-master/sound/firewire/oxfw/
H A Doxfw-command.c13 u8 *buf; local
16 buf = kmalloc(len + 10, GFP_KERNEL);
17 if (buf == NULL)
20 buf[0] = 0x00; /* CONTROL */
21 buf[1] = 0xff; /* UNIT */
22 buf[2] = 0xbf; /* EXTENDED STREAM FORMAT INFORMATION */
23 buf[3] = 0xc0; /* SINGLE subfunction */
24 buf[4] = dir; /* Plug Direction */
25 buf[5] = 0x00; /* UNIT */
26 buf[
52 avc_stream_get_format(struct fw_unit *unit, enum avc_general_plug_dir dir, unsigned int pid, u8 *buf, unsigned int *len, unsigned int eid) argument
116 u8 *buf; local
[all...]
/linux-master/sound/firewire/bebob/
H A Dbebob_command.c13 u8 *buf; local
16 buf = kzalloc(12, GFP_KERNEL);
17 if (buf == NULL)
20 buf[0] = 0x00; /* AV/C CONTROL */
21 buf[1] = 0x08 | (0x07 & subunit_id); /* AUDIO SUBUNIT ID */
22 buf[2] = 0xb8; /* FUNCTION BLOCK */
23 buf[3] = 0x80; /* type is 'selector'*/
24 buf[4] = 0xff & fb_id; /* function block id */
25 buf[5] = 0x10; /* control attribute is CURRENT */
26 buf[
51 u8 *buf; local
92 avc_bridgeco_fill_extension_addr(u8 *buf, u8 *addr) argument
99 avc_bridgeco_fill_plug_info_extension_command(u8 *buf, u8 *addr, unsigned int itype) argument
113 u8 *buf; local
149 u8 *buf; local
182 avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, u8 addr[AVC_BRIDGECO_ADDR_BYTES], u8 *buf, unsigned int len) argument
218 u8 *buf; local
257 u8 *buf; local
289 avc_bridgeco_get_plug_strm_fmt(struct fw_unit *unit, u8 addr[AVC_BRIDGECO_ADDR_BYTES], u8 *buf, unsigned int *len, unsigned int eid) argument
[all...]
/linux-master/drivers/xen/
H A Dxen-front-pgdir-shbuf.c48 void (*calc_num_grefs)(struct xen_front_pgdir_shbuf *buf);
51 void (*fill_page_dir)(struct xen_front_pgdir_shbuf *buf);
54 int (*grant_refs_for_buffer)(struct xen_front_pgdir_shbuf *buf,
58 int (*map)(struct xen_front_pgdir_shbuf *buf);
61 int (*unmap)(struct xen_front_pgdir_shbuf *buf);
70 * \param buf shared buffer which page directory is of interest.
75 xen_front_pgdir_shbuf_get_dir_start(struct xen_front_pgdir_shbuf *buf) argument
77 if (!buf->grefs)
80 return buf->grefs[0];
90 * references onto the backing storage (buf
95 xen_front_pgdir_shbuf_map(struct xen_front_pgdir_shbuf *buf) argument
116 xen_front_pgdir_shbuf_unmap(struct xen_front_pgdir_shbuf *buf) argument
131 xen_front_pgdir_shbuf_free(struct xen_front_pgdir_shbuf *buf) argument
158 get_num_pages_dir(struct xen_front_pgdir_shbuf *buf) argument
169 backend_calc_num_grefs(struct xen_front_pgdir_shbuf *buf) argument
181 guest_calc_num_grefs(struct xen_front_pgdir_shbuf *buf) argument
200 backend_unmap(struct xen_front_pgdir_shbuf *buf) argument
247 backend_map(struct xen_front_pgdir_shbuf *buf) argument
332 backend_fill_page_dir(struct xen_front_pgdir_shbuf *buf) argument
359 guest_fill_page_dir(struct xen_front_pgdir_shbuf *buf) argument
401 guest_grant_refs_for_buffer(struct xen_front_pgdir_shbuf *buf, grant_ref_t *priv_gref_head, int gref_idx) argument
430 grant_references(struct xen_front_pgdir_shbuf *buf) argument
475 alloc_storage(struct xen_front_pgdir_shbuf *buf) argument
517 struct xen_front_pgdir_shbuf *buf = cfg->pgdir; local
[all...]
/linux-master/arch/s390/kernel/
H A Dnospec-sysfs.c8 struct device_attribute *attr, char *buf)
10 return sprintf(buf, "Mitigation: __user pointer sanitization\n");
14 struct device_attribute *attr, char *buf)
17 return sprintf(buf, "Mitigation: etokens\n");
19 return sprintf(buf, "Mitigation: execute trampolines\n");
21 return sprintf(buf, "Mitigation: limited branch prediction\n");
22 return sprintf(buf, "Vulnerable\n");
7 cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) argument
13 cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf) argument
/linux-master/drivers/ata/
H A Dsata_promise.h30 unsigned int devno, u8 *buf)
33 __le32 *buf32 = (__le32 *) buf;
64 buf[12] = (1 << 5) | PDC_PKT_CLEAR_BSY | ATA_REG_DEVICE;
65 buf[13] = dev_reg;
68 buf[14] = (1 << 5) | PDC_REG_DEVCTL;
69 buf[15] = tf->ctl;
74 static inline unsigned int pdc_pkt_footer(struct ata_taskfile *tf, u8 *buf, argument
78 buf[i++] = (1 << 5) | ATA_REG_DEVICE;
79 buf[i++] = tf->device;
83 buf[
28 pdc_pkt_header(struct ata_taskfile *tf, dma_addr_t sg_table, unsigned int devno, u8 *buf) argument
89 pdc_prep_lba28(struct ata_taskfile *tf, u8 *buf, unsigned int i) argument
112 pdc_prep_lba48(struct ata_taskfile *tf, u8 *buf, unsigned int i) argument
[all...]
/linux-master/drivers/media/common/videobuf2/
H A Dvideobuf2-dma-contig.c13 #include <linux/dma-buf.h>
75 struct vb2_dc_buf *buf = buf_priv; local
77 return &buf->dma_addr;
96 struct vb2_dc_buf *buf = buf_priv; local
98 if (buf->vaddr)
99 return buf->vaddr;
101 if (buf->db_attach) {
104 if (!dma_buf_vmap_unlocked(buf->db_attach->dmabuf, &map))
105 buf->vaddr = map.vaddr;
107 return buf
118 struct vb2_dc_buf *buf = buf_priv; local
125 struct vb2_dc_buf *buf = buf_priv; local
145 struct vb2_dc_buf *buf = buf_priv; local
169 struct vb2_dc_buf *buf = buf_priv; local
191 vb2_dc_alloc_coherent(struct vb2_dc_buf *buf) argument
210 vb2_dc_alloc_non_coherent(struct vb2_dc_buf *buf) argument
235 struct vb2_dc_buf *buf; local
276 struct vb2_dc_buf *buf = buf_priv; local
324 struct vb2_dc_buf *buf = dbuf->priv; local
442 struct vb2_dc_buf *buf; local
473 vb2_dc_get_base_sgt(struct vb2_dc_buf *buf) argument
502 struct vb2_dc_buf *buf = buf_priv; local
533 struct vb2_dc_buf *buf = buf_priv; local
566 struct vb2_dc_buf *buf; local
692 struct vb2_dc_buf *buf = mem_priv; local
732 struct vb2_dc_buf *buf = mem_priv; local
758 struct vb2_dc_buf *buf = mem_priv; local
772 struct vb2_dc_buf *buf; local
[all...]
H A Dvideobuf2-dma-sg.c60 static int vb2_dma_sg_alloc_compacted(struct vb2_dma_sg_buf *buf, argument
64 unsigned long size = buf->size;
85 __free_page(buf->pages[last_page]);
93 buf->pages[last_page++] = &pages[i];
104 struct vb2_dma_sg_buf *buf; local
112 buf = kzalloc(sizeof *buf, GFP_KERNEL);
113 if (!buf)
116 buf->vaddr = NULL;
117 buf
181 struct vb2_dma_sg_buf *buf = buf_priv; local
203 struct vb2_dma_sg_buf *buf = buf_priv; local
214 struct vb2_dma_sg_buf *buf = buf_priv; local
226 struct vb2_dma_sg_buf *buf; local
286 struct vb2_dma_sg_buf *buf = buf_priv; local
306 struct vb2_dma_sg_buf *buf = buf_priv; local
327 struct vb2_dma_sg_buf *buf = buf_priv; local
334 struct vb2_dma_sg_buf *buf = buf_priv; local
375 struct vb2_dma_sg_buf *buf = dbuf->priv; local
469 struct vb2_dma_sg_buf *buf = dbuf->priv; local
480 struct vb2_dma_sg_buf *buf = dbuf->priv; local
490 struct vb2_dma_sg_buf *buf; local
525 struct vb2_dma_sg_buf *buf = buf_priv; local
553 struct vb2_dma_sg_buf *buf = mem_priv; local
581 struct vb2_dma_sg_buf *buf = mem_priv; local
606 struct vb2_dma_sg_buf *buf = mem_priv; local
620 struct vb2_dma_sg_buf *buf; local
652 struct vb2_dma_sg_buf *buf = buf_priv; local
[all...]
/linux-master/include/linux/
H A Dzutil.h47 typedef uLong (*check_func) (uLong check, const Byte *buf,
57 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;}
58 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1);
59 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2);
60 #define DO8(buf,
78 zlib_adler32(uLong adler, const Byte *buf, uInt len) argument
[all...]
/linux-master/tools/testing/selftests/proc/
H A Dproc-self-wchan.c24 char buf[64]; local
34 buf[0] = '\0';
35 if (read(fd, buf, sizeof(buf)) != 1)
37 if (buf[0] != '0')
/linux-master/drivers/media/dvb-frontends/
H A Dnxt200x.c58 static int i2c_writebytes (struct nxt200x_state* state, u8 addr, u8 *buf, u8 len) argument
61 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = len };
71 static int i2c_readbytes(struct nxt200x_state *state, u8 addr, u8 *buf, u8 len) argument
74 struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len };
85 const u8 *buf, u8 len)
89 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf2, .len = len + 1 };
98 memcpy(&buf2[1], buf, len);
108 static int nxt200x_readbytes(struct nxt200x_state *state, u8 reg, u8 *buf, u argument
84 nxt200x_writebytes(struct nxt200x_state* state, u8 reg, const u8 *buf, u8 len) argument
143 u8 attr, len2, buf; local
202 u8 buf, len2, attr; local
246 u8 buf, stopval, counter = 0; local
279 u8 buf; local
288 u8 buf[9]; local
319 u8 buf, count = 0; local
378 u8 buf; local
405 u8 buf[3], written = 0, chunkpos = 0; local
472 u8 buf[3]; local
523 u8 buf[5]; local
857 u8 buf[2]; local
920 u8 buf[3]; local
1128 u8 buf [] = {0,0,0,0,0}; local
[all...]
/linux-master/fs/bcachefs/
H A Dprintbuf.c13 static inline unsigned printbuf_linelen(struct printbuf *buf) argument
15 return buf->pos - buf->last_newline;
21 char *buf; local
38 buf = krealloc(out->buf, new_size, !out->atomic ? GFP_KERNEL : GFP_NOWAIT);
40 if (!buf) {
45 out->buf = buf;
58 len = vsnprintf(out->buf
91 bch2_printbuf_str(const struct printbuf *buf) argument
108 bch2_printbuf_exit(struct printbuf *buf) argument
116 bch2_printbuf_tabstops_reset(struct printbuf *buf) argument
121 bch2_printbuf_tabstop_pop(struct printbuf *buf) argument
137 bch2_printbuf_tabstop_push(struct printbuf *buf, unsigned spaces) argument
160 bch2_printbuf_indent_add(struct printbuf *buf, unsigned spaces) argument
180 bch2_printbuf_indent_sub(struct printbuf *buf, unsigned spaces) argument
195 bch2_prt_newline(struct printbuf *buf) argument
217 cur_tabstop(struct printbuf *buf) argument
248 __prt_tab_rjust(struct printbuf *buf) argument
282 bch2_prt_tab_rjust(struct printbuf *buf) argument
[all...]
/linux-master/drivers/platform/surface/aggregator/
H A Dssh_parser.h32 * @buf: The buffer to initialize.
39 static inline void sshp_buf_init(struct sshp_buf *buf, u8 *ptr, size_t cap) argument
41 buf->ptr = ptr;
42 buf->len = 0;
43 buf->cap = cap;
48 * @buf: The buffer to initialize/allocate to.
57 static inline int sshp_buf_alloc(struct sshp_buf *buf, size_t cap, gfp_t flags) argument
65 sshp_buf_init(buf, ptr, cap);
71 * @buf: The buffer to free.
77 static inline void sshp_buf_free(struct sshp_buf *buf) argument
93 sshp_buf_drop(struct sshp_buf *buf, size_t n) argument
111 sshp_buf_read_from_fifo(struct sshp_buf *buf, struct kfifo *fifo) argument
137 sshp_buf_span_from(struct sshp_buf *buf, size_t offset, struct ssam_span *span) argument
[all...]
/linux-master/net/bridge/
H A Dbr_stp_bpdu.c81 unsigned char buf[35]; local
86 buf[0] = 0;
87 buf[1] = 0;
88 buf[2] = 0;
89 buf[3] = BPDU_TYPE_CONFIG;
90 buf[4] = (bpdu->topology_change ? 0x01 : 0) |
92 buf[5] = bpdu->root.prio[0];
93 buf[6] = bpdu->root.prio[1];
94 buf[7] = bpdu->root.addr[0];
95 buf[
128 unsigned char buf[4]; local
152 const unsigned char *buf; local
[all...]
/linux-master/drivers/media/pci/saa7164/
H A Dsaa7164-buffer.c55 void saa7164_buffer_display(struct saa7164_buffer *buf) argument
57 struct saa7164_dev *dev = buf->port->dev;
61 __func__, buf, buf->idx);
63 buf->cpu, (long long)buf->dma, buf->pci_size);
65 buf->pt_cpu, (long long)buf->pt_dma, buf
82 struct saa7164_buffer *buf = NULL; local
150 saa7164_buffer_dealloc(struct saa7164_buffer *buf) argument
188 saa7164_buffer_activate(struct saa7164_buffer *buf, int i) argument
224 struct saa7164_buffer *buf; local
273 struct saa7164_user_buffer *buf; local
296 saa7164_buffer_dealloc_user(struct saa7164_user_buffer *buf) argument
[all...]
/linux-master/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_dmabuf.h10 #include <linux/dma-buf.h>
17 static inline struct mock_dmabuf *to_mock(struct dma_buf *buf) argument
19 return buf->priv;
/linux-master/arch/x86/boot/compressed/
H A Derror.c30 static char buf[1024]; local
35 len = vsnprintf(buf, sizeof(buf), fmt, args);
38 if (len && buf[len - 1] == '\n')
39 buf[len - 1] = '\0';
41 error(buf);

Completed in 678 milliseconds

1234567891011>>