Searched refs:buf (Results 226 - 250 of 8610) sorted by relevance

1234567891011>>

/linux-master/include/crypto/
H A Decdh.h55 * @buf: Buffer allocated by the caller to hold the packet ECDH
66 int crypto_ecdh_encode_key(char *buf, unsigned int len, const struct ecdh *p);
70 * @buf: Buffer holding a packet key that should be decoded
76 * in @buf. Thus, both pointers refer to the same memory.
80 int crypto_ecdh_decode_key(const char *buf, unsigned int len, struct ecdh *p);
/linux-master/include/net/
H A Dselftests.h10 u64 *buf);
17 u64 *buf)
16 net_selftest(struct net_device *ndev, struct ethtool_test *etest, u64 *buf) argument
/linux-master/drivers/media/platform/st/sti/hva/
H A Dhva-mem.h29 struct hva_buffer **buf);
32 struct hva_buffer *buf);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dalloc.c75 struct mlx5_frag_buf *buf, int node)
79 buf->size = size;
80 buf->npages = DIV_ROUND_UP(size, PAGE_SIZE);
81 buf->page_shift = PAGE_SHIFT;
82 buf->frags = kcalloc(buf->npages, sizeof(struct mlx5_buf_list),
84 if (!buf->frags)
87 for (i = 0; i < buf->npages; i++) {
88 struct mlx5_buf_list *frag = &buf->frags[i];
91 frag->buf
74 mlx5_frag_buf_alloc_node(struct mlx5_core_dev *dev, int size, struct mlx5_frag_buf *buf, int node) argument
117 mlx5_frag_buf_free(struct mlx5_core_dev *dev, struct mlx5_frag_buf *buf) argument
236 mlx5_fill_page_frag_array_perm(struct mlx5_frag_buf *buf, __be64 *pas, u8 perm) argument
246 mlx5_fill_page_frag_array(struct mlx5_frag_buf *buf, __be64 *pas) argument
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dmap_lookup_percpu_elem.c12 __u64 *buf; local
14 buf = malloc(nr_cpus*sizeof(__u64));
15 if (!ASSERT_OK_PTR(buf, "malloc"))
19 buf[i] = i;
37 ret = bpf_map_update_elem(bpf_map__fd(skel->maps.percpu_array_map), &key, buf, 0);
40 ret = bpf_map_update_elem(bpf_map__fd(skel->maps.percpu_hash_map), &key, buf, 0);
43 ret = bpf_map_update_elem(bpf_map__fd(skel->maps.percpu_lru_hash_map), &key, buf, 0);
57 free(buf);
H A Dsockopt_sk.c23 } buf = {}; local
65 buf.u8[0] = 1;
66 err = setsockopt(fd, SOL_IP, IP_TTL, &buf, 1);
74 buf.u8[0] = 0x01;
75 err = setsockopt(fd, SOL_CUSTOM, 0, &buf, 1);
81 buf.u32 = 0x00;
83 err = getsockopt(fd, SOL_CUSTOM, 0, &buf, &optlen);
93 if (buf.u8[0] != 0x01) {
94 log_err("Unexpected buf[0] 0x%02x != 0x01", buf
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dskb_load_bytes.c14 char buf[16]; local
16 test_result = bpf_skb_load_bytes(skb, load_offset, buf, 10);
H A Dasync_stack_depth.c21 volatile char buf[256] = {}; local
22 return buf[69];
28 volatile char buf[300] = {}; local
29 return buf[255] + timer_cb(NULL, NULL, NULL);
37 volatile char buf[256] = {}; local
44 return bpf_timer_set_callback(&elem->timer, timer_cb) + buf[0];
52 volatile char buf[256] = {}; local
58 return bpf_timer_set_callback(&elem->timer, bad_timer_cb) + buf[0];
/linux-master/drivers/scsi/snic/
H A Dsnic_attrs.c12 char *buf)
16 return snprintf(buf, PAGE_SIZE, "%s\n", snic->name);
22 char *buf)
26 return snprintf(buf, PAGE_SIZE, "%s\n",
33 char *buf)
35 return snprintf(buf, PAGE_SIZE, "%s\n", SNIC_DRV_VERSION);
41 char *buf)
48 return snprintf(buf, PAGE_SIZE, "%s\n",
10 snic_show_sym_name(struct device *dev, struct device_attribute *attr, char *buf) argument
20 snic_show_state(struct device *dev, struct device_attribute *attr, char *buf) argument
31 snic_show_drv_version(struct device *dev, struct device_attribute *attr, char *buf) argument
39 snic_show_link_state(struct device *dev, struct device_attribute *attr, char *buf) argument
/linux-master/tools/perf/tests/workloads/
H A Ddatasym.c8 } buf __attribute__((aligned(64))); typedef in typeref:struct:_buf
10 static buf buf1 = {
/linux-master/tools/lib/bpf/
H A Dlibbpf_errno.c40 int libbpf_strerror(int err, char *buf, size_t size) argument
44 if (!buf || !size)
50 ret = strerror_r(err, buf, size);
51 buf[size - 1] = '\0';
59 ret = snprintf(buf, size, "%s", msg);
60 buf[size - 1] = '\0';
61 /* The length of the buf and msg is positive.
70 ret = snprintf(buf, size, "Unknown libbpf error %d", err);
71 buf[size - 1] = '\0';
/linux-master/drivers/staging/media/av7110/
H A Dav7110_ipack.h6 void (*func)(u8 *buf, int size, void *priv));
9 extern int av7110_ipack_instant_repack(const u8 *buf, int count, struct ipack *p);
/linux-master/include/drm/
H A Di915_gsc_proxy_mei_interface.h26 * @buf: message buffer to send
30 int (*send)(struct device *dev, const void *buf, size_t size);
35 * @buf: message buffer to contain the received message
39 int (*recv)(struct device *dev, void *buf, size_t size);
/linux-master/fs/smb/client/
H A Dasn1.c29 char buf[50]; local
31 sprint_oid(value, vlen, buf, sizeof(buf));
33 buf);
56 char buf[50]; local
58 sprint_oid(value, vlen, buf, sizeof(buf));
60 buf);
/linux-master/arch/powerpc/platforms/pseries/
H A Dpapr-sysparm.c22 struct papr_sysparm_buf *buf = kzalloc(sizeof(*buf), GFP_KERNEL); local
24 return buf;
27 void papr_sysparm_buf_free(struct papr_sysparm_buf *buf) argument
29 kfree(buf);
32 static size_t papr_sysparm_buf_get_length(const struct papr_sysparm_buf *buf) argument
34 return be16_to_cpu(buf->len);
37 static void papr_sysparm_buf_set_length(struct papr_sysparm_buf *buf, size_t length) argument
39 WARN_ONCE(length > sizeof(buf->val),
41 length = min(sizeof(buf
50 papr_sysparm_buf_clamp_length(struct papr_sysparm_buf *buf) argument
59 papr_sysparm_buf_can_submit(const struct papr_sysparm_buf *buf) argument
96 papr_sysparm_get(papr_sysparm_t param, struct papr_sysparm_buf *buf) argument
116 memcpy(rtas_work_area_raw_buf(work_area), buf, sizeof(*buf)); local
152 papr_sysparm_set(papr_sysparm_t param, const struct papr_sysparm_buf *buf) argument
172 memcpy(rtas_work_area_raw_buf(work_area), buf, sizeof(*buf)); local
[all...]
/linux-master/arch/powerpc/include/asm/
H A Dhvconsole.h24 extern ssize_t hvc_get_chars(uint32_t vtermno, u8 *buf, size_t count);
25 extern ssize_t hvc_put_chars(uint32_t vtermno, const u8 *buf, size_t count);
/linux-master/drivers/tty/hvc/
H A Dhvc_riscv_sbi.c18 static ssize_t hvc_sbi_tty_put(uint32_t vtermno, const u8 *buf, size_t count) argument
23 sbi_console_putchar(buf[i]);
28 static ssize_t hvc_sbi_tty_get(uint32_t vtermno, u8 *buf, size_t count) argument
37 buf[i] = c;
48 static ssize_t hvc_sbi_dbcn_tty_put(uint32_t vtermno, const u8 *buf, size_t count) argument
50 return sbi_debug_console_write(buf, count);
53 static ssize_t hvc_sbi_dbcn_tty_get(uint32_t vtermno, u8 *buf, size_t count) argument
55 return sbi_debug_console_read(buf, count);
/linux-master/include/linux/
H A Dima.h19 extern int ima_file_hash(struct file *file, char *buf, size_t buf_size);
20 extern int ima_inode_hash(struct inode *inode, char *buf, size_t buf_size);
21 extern void ima_kexec_cmdline(int kernel_fd, const void *buf, int size);
24 const void *buf, size_t buf_len,
43 static inline int ima_file_hash(struct file *file, char *buf, size_t buf_size) argument
48 static inline int ima_inode_hash(struct inode *inode, char *buf, size_t buf_size) argument
53 static inline void ima_kexec_cmdline(int kernel_fd, const void *buf, int size) {} argument
57 const void *buf, size_t buf_len,
55 ima_measure_critical_data(const char *event_label, const char *event_name, const void *buf, size_t buf_len, bool hash, u8 *digest, size_t digest_len) argument
H A Dnvram.h81 static inline ssize_t nvram_read_bytes(char *buf, size_t count, loff_t *ppos) argument
85 char *p = buf;
92 return p - buf;
95 static inline ssize_t nvram_write_bytes(char *buf, size_t count, loff_t *ppos) argument
99 char *p = buf;
106 return p - buf;
109 static inline ssize_t nvram_read(char *buf, size_t count, loff_t *ppos) argument
113 return ppc_md.nvram_read(buf, count, ppos);
116 return arch_nvram_ops.read(buf, count, ppos);
118 return nvram_read_bytes(buf, coun
121 nvram_write(char *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/fs/btrfs/
H A Dverity.h16 int btrfs_get_verity_descriptor(struct inode *inode, void *buf, size_t buf_size);
27 static inline int btrfs_get_verity_descriptor(struct inode *inode, void *buf, argument
/linux-master/tools/usb/usbip/libsrc/
H A Dnames.c293 char buf[512], *cp; local
302 while (fgets(buf, sizeof(buf), f)) {
305 cp = strchr(buf, '\r');
308 cp = strchr(buf, '\n');
311 if (buf[0] == '#' || !buf[0])
313 cp = buf;
314 if (buf[0] == 'P' && buf[
[all...]
/linux-master/sound/drivers/opl4/
H A Dopl4_proc.c44 char* buf; local
46 buf = vmalloc(count);
47 if (!buf)
49 snd_opl4_read_memory(opl4, buf, pos, count);
50 if (copy_to_user(_buf, buf, count)) {
51 vfree(buf);
54 vfree(buf);
65 char *buf; local
67 buf = vmalloc(count);
68 if (!buf)
[all...]
/linux-master/lib/
H A Dstrscpy_kunit.c32 char buf[6]; local
39 memset(buf, POISON, sizeof(buf));
41 max_count = sizeof(buf) - 2; /* Space for null and to verify overflow */
50 written = strscpy_pad(buf, src, count);
54 KUNIT_ASSERT_EQ_MSG(test, 0, strncmp(buf, src, count - 1),
56 KUNIT_ASSERT_EQ_MSG(test, buf[count - 1], '\0',
61 KUNIT_ASSERT_EQ_MSG(test, buf[i], src[i],
62 "buf[i]==%c != src[i]==%c", buf[
[all...]
/linux-master/drivers/md/
H A Ddm-sysfs.c69 static ssize_t dm_attr_name_show(struct mapped_device *md, char *buf) argument
71 if (dm_copy_name_and_uuid(md, buf, NULL))
74 strcat(buf, "\n");
75 return strlen(buf);
78 static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf) argument
80 if (dm_copy_name_and_uuid(md, NULL, buf))
83 strcat(buf, "\n");
84 return strlen(buf);
87 static ssize_t dm_attr_suspended_show(struct mapped_device *md, char *buf) argument
89 sprintf(buf, "
94 dm_attr_use_blk_mq_show(struct mapped_device *md, char *buf) argument
[all...]
/linux-master/drivers/platform/x86/intel/ifs/
H A Dsysfs.c24 char *buf)
28 return sysfs_emit(buf, "%#llx\n", ifsd->scan_details);
46 char *buf)
50 return sysfs_emit(buf, "%s\n", status_msg[ifsd->status]);
65 const char *buf, size_t count)
70 rc = kstrtouint(buf, 0, &cpu);
88 const char *buf, size_t count)
94 rc = kstrtouint(buf, 0, &cur_batch);
111 struct device_attribute *attr, char *buf)
116 return sysfs_emit(buf, "non
22 details_show(struct device *dev, struct device_attribute *attr, char *buf) argument
44 status_show(struct device *dev, struct device_attribute *attr, char *buf) argument
63 run_test_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
86 current_batch_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
110 current_batch_show(struct device *dev, struct device_attribute *attr, char *buf) argument
126 image_version_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]

Completed in 261 milliseconds

1234567891011>>