Searched refs:buf (Results 26 - 50 of 8610) sorted by relevance

1234567891011>>

/linux-master/drivers/media/platform/st/sti/delta/
H A Ddelta-mem.c11 struct delta_buf *buf)
28 buf->size = size;
29 buf->paddr = dma_addr;
30 buf->vaddr = addr;
31 buf->name = name;
32 buf->attrs = attrs;
36 ctx->name, size, buf->vaddr, &buf->paddr, buf->name);
41 void hw_free(struct delta_ctx *ctx, struct delta_buf *buf) argument
10 hw_alloc(struct delta_ctx *ctx, u32 size, const char *name, struct delta_buf *buf) argument
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_adjust_frags.c12 __u8 *buf; local
26 buf = malloc(128);
27 if (!ASSERT_OK_PTR(buf, "alloc buf 128b"))
30 memset(buf, 0, 128);
31 offset = (__u32 *)buf;
33 buf[*offset] = 0xaa; /* marker at offset 16 (head) */
34 buf[*offset + 15] = 0xaa; /* marker at offset 31 (head) */
36 topts.data_in = buf;
37 topts.data_out = buf;
[all...]
/linux-master/drivers/iio/test/
H A Diio-test-format.c17 char *buf; local
21 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL);
22 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buf);
25 ret = iio_format_value(buf, IIO_VAL_INT, 1, &val);
26 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "42\n");
29 ret = iio_format_value(buf, IIO_VAL_INT, 1, &val);
30 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-23\n");
33 ret = iio_format_value(buf, IIO_VAL_INT, 1, &val);
34 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0\n");
37 ret = iio_format_value(buf, IIO_VAL_IN
48 char *buf; local
109 char *buf; local
149 char *buf; local
189 char *buf; local
204 char *buf; local
[all...]
/linux-master/kernel/
H A Drelay.c36 struct rchan_buf *buf = vmf->vma->vm_private_data; local
39 if (!buf)
42 page = vmalloc_to_page(buf->start + (pgoff << PAGE_SHIFT));
76 * @buf: relay channel buffer
83 static int relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma) argument
87 if (!buf)
90 if (length != (unsigned long)buf->chan->alloc_size)
95 vma->vm_private_data = buf;
102 * @buf: the buffer struct
108 static void *relay_alloc_buf(struct rchan_buf *buf, size_ argument
149 struct rchan_buf *buf; local
193 relay_destroy_buf(struct rchan_buf *buf) argument
220 struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref); local
230 relay_buf_empty(struct rchan_buf *buf) argument
241 relay_buf_full(struct rchan_buf *buf) argument
252 relay_subbuf_start(struct rchan_buf *buf, void *subbuf, void *prev_subbuf, size_t prev_padding) argument
270 struct rchan_buf *buf; local
283 __relay_reset(struct rchan_buf *buf, unsigned int init) argument
321 struct rchan_buf *buf; local
340 relay_set_buf_dentry(struct rchan_buf *buf, struct dentry *dentry) argument
347 relay_create_buf_file(struct rchan *chan, struct rchan_buf *buf, unsigned int cpu) argument
378 struct rchan_buf *buf; local
425 relay_close_buf(struct rchan_buf *buf) argument
436 struct rchan_buf *buf; local
483 struct rchan_buf *buf; local
540 struct rchan_buf *buf; member in struct:rchan_percpu_buf_dispatcher
575 struct rchan_buf *buf; local
659 relay_switch_subbuf(struct rchan_buf *buf, size_t length) argument
730 struct rchan_buf *buf; local
754 struct rchan_buf *buf; local
787 struct rchan_buf *buf; local
815 struct rchan_buf *buf = inode->i_private; local
831 struct rchan_buf *buf = filp->private_data; local
845 struct rchan_buf *buf = filp->private_data; local
869 struct rchan_buf *buf = filp->private_data; local
878 relay_file_read_consume(struct rchan_buf *buf, size_t read_pos, size_t bytes_consumed) argument
912 relay_file_read_avail(struct rchan_buf *buf) argument
956 relay_file_read_subbuf_avail(size_t read_pos, struct rchan_buf *buf) argument
986 relay_file_read_start_pos(struct rchan_buf *buf) argument
1013 relay_file_read_end_pos(struct rchan_buf *buf, size_t read_pos, size_t count) argument
1038 struct rchan_buf *buf = filp->private_data; local
[all...]
/linux-master/drivers/md/dm-vdo/
H A Dmessage-stats.c14 static void write_u64(char *prefix, u64 value, char *suffix, char **buf, argument
19 count = scnprintf(*buf, *maxlen, "%s%llu%s", prefix == NULL ? "" : prefix,
21 *buf += count;
25 static void write_u32(char *prefix, u32 value, char *suffix, char **buf, argument
30 count = scnprintf(*buf, *maxlen, "%s%u%s", prefix == NULL ? "" : prefix,
32 *buf += count;
37 char **buf, unsigned int *maxlen)
41 count = scnprintf(*buf, *maxlen, "%s%llu%s", prefix == NULL ? "" : prefix,
43 *buf += count;
47 static void write_string(char *prefix, char *value, char *suffix, char **buf, argument
36 write_block_count_t(char *prefix, block_count_t value, char *suffix, char **buf, unsigned int *maxlen) argument
58 write_bool(char *prefix, bool value, char *suffix, char **buf, unsigned int *maxlen) argument
69 write_u8(char *prefix, u8 value, char *suffix, char **buf, unsigned int *maxlen) argument
80 write_block_allocator_statistics(char *prefix, struct block_allocator_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
95 write_commit_statistics(char *prefix, struct commit_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
108 write_recovery_journal_statistics(char *prefix, struct recovery_journal_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
126 write_packer_statistics(char *prefix, struct packer_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
142 write_slab_journal_statistics(char *prefix, struct slab_journal_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
160 write_slab_summary_statistics(char *prefix, struct slab_summary_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
170 write_ref_counts_statistics(char *prefix, struct ref_counts_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
179 write_block_map_statistics(char *prefix, struct block_map_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
226 write_hash_lock_statistics(char *prefix, struct hash_lock_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
245 write_error_statistics(char *prefix, struct error_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
261 write_bio_stats(char *prefix, struct bio_stats *stats, char *suffix, char **buf, unsigned int *maxlen) argument
280 write_memory_usage(char *prefix, struct memory_usage *stats, char *suffix, char **buf, unsigned int *maxlen) argument
291 write_index_statistics(char *prefix, struct index_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
314 write_vdo_statistics(char *prefix, struct vdo_statistics *stats, char *suffix, char **buf, unsigned int *maxlen) argument
417 vdo_write_stats(struct vdo *vdo, char *buf, unsigned int maxlen) argument
[all...]
H A Dmessage-stats.h11 int vdo_write_stats(struct vdo *vdo, char *buf, unsigned int maxlen);
/linux-master/drivers/accel/habanalabs/common/
H A Dmemory_mgr.c22 struct hl_mmap_mem_buf *buf; local
25 buf = idr_find(&mmg->handles, lower_32_bits(handle >> PAGE_SHIFT));
26 if (!buf) {
31 kref_get(&buf->refcount);
33 return buf;
39 * @buf: memory manager buffer descriptor
45 static void hl_mmap_mem_buf_destroy(struct hl_mmap_mem_buf *buf) argument
47 if (buf->behavior->release)
48 buf->behavior->release(buf);
63 struct hl_mmap_mem_buf *buf = local
83 struct hl_mmap_mem_buf *buf = local
97 hl_mmap_mem_buf_put(struct hl_mmap_mem_buf *buf) argument
115 struct hl_mmap_mem_buf *buf; local
152 struct hl_mmap_mem_buf *buf; local
201 struct hl_mmap_mem_buf *buf = local
233 struct hl_mmap_mem_buf *buf; local
330 struct hl_mmap_mem_buf *buf; local
[all...]
/linux-master/drivers/usb/gadget/
H A Du_os_desc.h35 static inline u8 *__usb_ext_prop_ptr(u8 *buf, size_t offset) argument
37 return buf + offset;
40 static inline u8 *usb_ext_prop_size_ptr(u8 *buf) argument
42 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_DW_SIZE);
45 static inline u8 *usb_ext_prop_type_ptr(u8 *buf) argument
47 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_DW_PROPERTY_DATA_TYPE);
50 static inline u8 *usb_ext_prop_name_len_ptr(u8 *buf) argument
52 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_W_PROPERTY_NAME_LENGTH);
55 static inline u8 *usb_ext_prop_name_ptr(u8 *buf) argument
57 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_B_PROPERTY_NAM
60 usb_ext_prop_data_len_ptr(u8 *buf, size_t off) argument
66 usb_ext_prop_data_ptr(u8 *buf, size_t off) argument
71 usb_ext_prop_put_size(u8 *buf, int dw_size) argument
76 usb_ext_prop_put_type(u8 *buf, int type) argument
81 usb_ext_prop_put_name(u8 *buf, const char *name, int pnl) argument
96 usb_ext_prop_put_binary(u8 *buf, int pnl, const u8 *data, int data_len) argument
103 usb_ext_prop_put_unicode(u8 *buf, int pnl, const char *string, int data_len) argument
[all...]
/linux-master/drivers/media/pci/cx23885/
H A Dnetup-init.c18 u8 buf[3]; local
22 .buf = buf,
26 buf[0] = reg >> 8;
27 buf[1] = reg & 0xff;
28 buf[2] = val;
39 u8 buf[6]; local
43 .buf = buf,
47 buf[
63 u8 buf[2]; local
[all...]
/linux-master/arch/m68k/include/asm/
H A Dparport.h17 #define insl(port,buf,len) isa_insb(port,buf,(len)<<2)
18 #define outsl(port,buf,len) isa_outsb(port,buf,(len)<<2)
/linux-master/tools/lib/
H A Dstr_error_r.c21 char *str_error_r(int errnum, char *buf, size_t buflen) argument
23 int err = strerror_r(errnum, buf, buflen);
25 snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, [buf], %zd)=%d", errnum, buflen, err);
26 return buf;
/linux-master/arch/powerpc/boot/
H A Dugecon.h16 extern void ug_console_write(const char *buf, int len);
/linux-master/lib/test_fortify/
H A Dread_overflow2-memcpy.c3 memcpy(large, instance.buf, sizeof(large))
H A Dread_overflow2-memmove.c3 memmove(large, instance.buf, sizeof(large))
H A Dwrite_overflow-memcpy.c3 memcpy(instance.buf, large_src, sizeof(large_src))
H A Dwrite_overflow-memmove.c3 memmove(instance.buf, large_src, sizeof(large_src))
H A Dwrite_overflow-memset.c3 memset(instance.buf, 0x5A, sizeof(large_src))
/linux-master/arch/um/include/shared/
H A Dlongjmp.h12 #define UML_LONGJMP(buf, val) do { \
13 longjmp(*buf, val); \
16 #define UML_SETJMP(buf) ({ \
19 n = setjmp(*buf); \
/linux-master/arch/mips/mm/
H A Dpage.c91 pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) argument
97 uasm_i_lui(buf, GPR_T9, uasm_rel_hi(off));
98 uasm_i_addiu(buf, GPR_T9, GPR_T9, uasm_rel_lo(off));
100 uasm_i_addiu(buf, GPR_T9, GPR_ZERO, off);
101 uasm_i_daddu(buf, reg1, reg2, GPR_T9);
104 uasm_i_lui(buf, GPR_T9, uasm_rel_hi(off));
105 uasm_i_addiu(buf, GPR_T9, GPR_T9, uasm_rel_lo(off));
106 UASM_i_ADDU(buf, reg1, reg2, GPR_T9);
108 UASM_i_ADDIU(buf, reg1, reg2, off);
221 static void build_clear_store(u32 **buf, in argument
230 build_clear_pref(u32 **buf, int off) argument
267 u32 *buf = &__clear_page_start; local
357 build_copy_load(u32 **buf, int reg, int off) argument
366 build_copy_store(u32 **buf, int reg, int off) argument
375 build_copy_load_pref(u32 **buf, int off) argument
384 build_copy_store_pref(u32 **buf, int off) argument
416 u32 *buf = &__copy_page_start; local
[all...]
/linux-master/Documentation/networking/device_drivers/atm/
H A Dcxacru-cf.py34 buf = sys.stdin.read(4) variable
36 if len(buf) == 0:
38 elif len(buf) != 4:
40 sys.stderr.write("Error: read {0} not 4 bytes\n".format(len(buf)))
45 sys.stdout.write("{0:x}={1}".format(i, struct.unpack("<I", buf)[0]))
/linux-master/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf-i2c.c247 &msg->buf[i]);
278 msg->buf[i]);
330 u8 buf[26]; local
334 buf[0] = USB_READ_I2C_CMD;
335 buf[1] = 0x00;
337 buf[2] = I2C_INT_STATUS_REG;
338 buf[3] = 0x00;
339 buf[4] = 0x00;
341 buf[5] = USB_END_I2C_CMD;
343 mxl111sf_i2c_get_data(state, 0, buf, bu
354 u8 buf[26]; local
432 u8 buf[26]; local
[all...]
/linux-master/drivers/md/bcache/
H A Dfeatures.c35 out += snprintf(out, buf + size - out, \
38 out += snprintf(out, buf + size - out, \
42 out += snprintf(out, buf + size - out, " "); \
45 out += snprintf(out, buf + size - out, "%s", f->string);\
48 out += snprintf(out, buf + size - out, "]"); \
53 out += snprintf(out, buf + size - out, "\n"); \
56 int bch_print_cache_set_feature_compat(struct cache_set *c, char *buf, int size) argument
58 char *out = buf;
60 return out - buf;
63 int bch_print_cache_set_feature_ro_compat(struct cache_set *c, char *buf, in argument
70 bch_print_cache_set_feature_incompat(struct cache_set *c, char *buf, int size) argument
[all...]
/linux-master/tools/perf/util/arm-spe-decoder/
H A Darm-spe-pkt-decoder.c60 static int arm_spe_get_payload(const unsigned char *buf, size_t len, argument
64 size_t payload_len = arm_spe_payload_len(buf[ext_hdr]);
69 buf += 1 + ext_hdr;
72 case 1: packet->payload = *(uint8_t *)buf; break;
73 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break;
74 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break;
75 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break;
88 static int arm_spe_get_alignment(const unsigned char *buf, size_t len, argument
91 unsigned int alignment = 1 << ((buf[0] & 0xf) + 1);
97 return alignment - (((uintptr_t)buf)
106 arm_spe_get_timestamp(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet) argument
113 arm_spe_get_events(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet) argument
128 arm_spe_get_data_source(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet) argument
135 arm_spe_get_context(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet) argument
143 arm_spe_get_op_type(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet) argument
151 arm_spe_get_counter(const unsigned char *buf, size_t len, const unsigned char ext_hdr, struct arm_spe_pkt *packet) argument
164 arm_spe_get_addr(const unsigned char *buf, size_t len, const unsigned char ext_hdr, struct arm_spe_pkt *packet) argument
177 arm_spe_do_get_packet(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet) argument
237 arm_spe_get_packet(const unsigned char *buf, size_t len, struct arm_spe_pkt *packet) argument
292 arm_spe_pkt_desc_event(const struct arm_spe_pkt *packet, char *buf, size_t buf_len) argument
332 arm_spe_pkt_desc_op_type(const struct arm_spe_pkt *packet, char *buf, size_t buf_len) argument
427 arm_spe_pkt_desc_addr(const struct arm_spe_pkt *packet, char *buf, size_t buf_len) argument
469 arm_spe_pkt_desc_counter(const struct arm_spe_pkt *packet, char *buf, size_t buf_len) argument
496 arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf, size_t buf_len) argument
[all...]
/linux-master/drivers/tty/
H A Dtty_audit.c25 struct tty_audit_buf *buf; local
27 buf = current->signal->tty_audit_buf;
28 WARN_ON(buf == ERR_PTR(-ESRCH));
29 return buf;
34 struct tty_audit_buf *buf; local
36 buf = kzalloc(sizeof(*buf), GFP_KERNEL);
37 if (!buf)
40 buf->data = kmalloc(N_TTY_BUF_SIZE, GFP_KERNEL);
41 if (!buf
54 tty_audit_buf_free(struct tty_audit_buf *buf) argument
91 tty_audit_buf_push(struct tty_audit_buf *buf) argument
114 struct tty_audit_buf *buf; local
156 struct tty_audit_buf *buf; local
179 struct tty_audit_buf *buf; local
205 struct tty_audit_buf *buf; local
[all...]
/linux-master/net/tipc/
H A Dtrace.c51 * @buf: returned buffer of dump data in format
53 int tipc_skb_dump(struct sk_buff *skb, bool more, char *buf) argument
61 i += scnprintf(buf, sz, "msg: (null)\n");
69 i += scnprintf(buf, sz, "msg: %u", msg_user(hdr));
70 i += scnprintf(buf + i, sz - i, " %u", msg_type(hdr));
71 i += scnprintf(buf + i, sz - i, " %u", msg_hdr_sz(hdr));
72 i += scnprintf(buf + i, sz - i, " %u", msg_data_sz(hdr));
73 i += scnprintf(buf + i, sz - i, " %x", msg_orignode(hdr));
74 i += scnprintf(buf + i, sz - i, " %x", msg_destnode(hdr));
75 i += scnprintf(buf
166 tipc_list_dump(struct sk_buff_head *list, bool more, char *buf) argument
[all...]

Completed in 255 milliseconds

1234567891011>>