Searched refs:buf (Results 1 - 25 of 8610) sorted by last modified time

1234567891011>>

/linux-master/tools/testing/selftests/bpf/bpf_testmod/
H A Dbpf_testmod.c249 char *buf, loff_t off, size_t len)
252 .buf = buf,
298 return snprintf(buf, len, "%d\n", writable.val);
320 char *buf, loff_t off, size_t len)
323 .buf = buf,
247 bpf_testmod_test_read(struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument
318 bpf_testmod_test_write(struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument
/linux-master/sound/soc/sof/
H A Ddebug.c49 u8 *buf; local
75 buf = kzalloc(size, GFP_KERNEL);
76 if (!buf)
89 memcpy_fromio(buf, dfse->io_mem + pos, size);
93 memcpy(buf, dfse->cache_buf + pos, size);
101 kfree(buf);
105 memcpy_fromio(buf, dfse->io_mem + pos, size);
108 memcpy(buf, ((u8 *)(dfse->buf) + pos), size);
112 size_ret = copy_to_user(buffer, buf
217 memory_info_update(struct snd_sof_dev *sdev, char *buf, size_t buff_size) argument
[all...]
/linux-master/sound/soc/intel/avs/
H A Dtopology.c375 static int avs_ssp_sprint(char *buf, size_t size, const char *fmt, int port, int tdm) argument
386 retsize = scnprintf(buf, min_t(size_t, size, needle - fmt + 1), "%s", fmt);
387 retsize += scnprintf(buf + retsize, size - retsize, "%d", port);
389 retsize += scnprintf(buf + retsize, size - retsize, ":%d", tdm);
390 retsize += scnprintf(buf + retsize, size - retsize, "%s", needle + 2);
394 return snprintf(buf, size, "%s", fmt);
1548 char buf[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; local
1560 avs_ssp_sprint(buf, len, route->source, ssp_port, tdm_slot);
1561 strscpy((char *)route->source, buf, len);
1562 avs_ssp_sprint(buf, le
1602 char *buf; local
[all...]
/linux-master/sound/soc/codecs/
H A Drt722-sdca.c96 unsigned char buf[3]; local
116 for (idx = 0; idx < sizeof(buf); idx++) {
121 buf[idx] = val & 0xff;
124 if (buf[0] == 0x11)
125 btn_type = rt722_sdca_btn_type(&buf[1]);
238 unsigned char buf[3]; local
255 for (idx = 0; idx < sizeof(buf); idx++) {
260 buf[idx] = val & 0xff;
263 if (buf[0] == 0x11)
264 btn_type = rt722_sdca_btn_type(&buf[
[all...]
H A Drt5645.c3959 static char buf[32]; local
3977 snprintf(buf, sizeof(buf), "cfg-spk:%d cfg-mic:%s", spk, mic);
3979 return buf;
H A Dcs35l56-sdw.c26 static int cs35l56_sdw_read_one(struct sdw_slave *peripheral, unsigned int reg, void *buf) argument
30 ret = sdw_nread_no_pm(peripheral, reg, 4, (u8 *)buf);
36 swab32s((u32 *)buf);
86 static int cs35l56_sdw_write_one(struct sdw_slave *peripheral, unsigned int reg, const void *buf) argument
88 u32 val_le = swab32(*(u32 *)buf);
/linux-master/sound/pci/emu10k1/
H A Demuproc.c350 char buf[100]; local
351 char *bufp = buf;
368 len = (int)(ptrdiff_t)(bufp - buf);
370 buf, &spaces[nspaces - clamp(65 - len, 0, nspaces)],
386 struct file *file, char __user *buf,
419 if (copy_to_user(buf, ((char *)tmp) + (pos & 3), count))
384 snd_emu10k1_fx8010_read(struct snd_info_entry *entry, void *file_private_data, struct file *file, char __user *buf, size_t count, loff_t pos) argument
/linux-master/net/tipc/
H A Dmsg.c102 struct sk_buff *buf; local
104 buf = tipc_buf_acquire(hdr_sz + data_sz, GFP_ATOMIC);
105 if (unlikely(!buf))
108 msg = buf_msg(buf);
114 return buf;
120 * @*buf: in: the buffer to append. Always defined
121 * out: head buf after successful complete reassembly, otherwise NULL
124 int tipc_buf_append(struct sk_buff **headbuf, struct sk_buff **buf) argument
127 struct sk_buff *frag = *buf;
147 *buf
[all...]
/linux-master/net/rxrpc/
H A Dtxbuf.c25 void *buf; local
36 buf = page_frag_alloc_align(&call->conn->tx_data_alloc, total, gfp,
39 if (!buf) {
44 whdr = buf + hoff;
92 void *buf, *buf2 = NULL; local
99 buf = page_frag_alloc(&call->local->tx_alloc,
101 if (!buf) {
109 page_frag_free(buf);
115 whdr = buf;
116 ack = buf
[all...]
H A Drxkad.c343 __be32 buf[2]; member in union:__anon111
369 crypto.buf[0] = htonl(call->call_id);
370 crypto.buf[1] = htonl(x);
372 sg_init_one(&sg, crypto.buf, 8);
379 y = ntohl(crypto.buf[1]);
416 u32 data_size, buf; local
450 buf = ntohl(sechdr.data_size);
451 data_size = buf & 0xffff;
453 check = buf >> 16;
480 u32 data_size, buf; local
559 __be32 buf[2]; member in union:__anon112
[all...]
/linux-master/net/core/
H A Dfilter.c3937 void *buf, unsigned long len, bool flush)
3946 src = flush ? buf : xdp->data + off;
3947 dst = flush ? xdp->data + off : buf;
3964 src = flush ? buf : ptr_buf + copy_off;
3965 dst = flush ? ptr_buf + copy_off : buf;
3970 buf += copy_len;
4016 void *, buf, u32, len)
4025 bpf_xdp_copy_buf(xdp, offset, buf, len, false);
4027 memcpy(buf, ptr, len);
4042 int __bpf_xdp_load_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u3 argument
3936 bpf_xdp_copy_buf(struct xdp_buff *xdp, unsigned long off, void *buf, unsigned long len, bool flush) argument
4074 __bpf_xdp_store_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len) argument
[all...]
/linux-master/lib/
H A Dscatterlist.c136 * @buf: Virtual address for IO
140 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) argument
143 sg_set_buf(sg, buf, buflen);
953 * @buf: Where to copy from
962 size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, argument
985 memcpy(buf + offset, miter.addr, len);
987 memcpy(miter.addr, buf + offset, len);
1002 * @buf: Where to copy from
1009 const void *buf, size_t buflen)
1011 return sg_copy_buffer(sgl, nents, (void *)buf, bufle
1008 sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, const void *buf, size_t buflen) argument
1025 sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen) argument
1043 sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents, const void *buf, size_t buflen, off_t skip) argument
1061 sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip) argument
[all...]
/linux-master/kernel/bpf/
H A Dverifier.c3526 static void fmt_reg_mask(char *buf, ssize_t buf_sz, u32 reg_mask) argument
3532 buf[0] = '\0';
3536 n = snprintf(buf, buf_sz, "%sr%d", first ? "" : ",", i);
3538 buf += n;
3545 static void fmt_stack_mask(char *buf, ssize_t buf_sz, u64 stack_mask) argument
3551 buf[0] = '\0';
3555 n = snprintf(buf, buf_sz, "%s%d", first ? "" : ",", -(i + 1) * 8);
3557 buf += n;
9158 /* bpf_xxx(..., buf, len) call will access 'len'
9159 * bytes from memory 'buf'
[all...]
/linux-master/include/linux/
H A Dregmap.h1303 int regmap_parse_val(struct regmap *map, const void *buf,
1644 int (*set_type_config)(unsigned int **buf, unsigned int type,
1654 int regmap_irq_set_type_config_simple(unsigned int **buf, unsigned int type,
2007 static inline int regmap_parse_val(struct regmap *map, const void *buf, argument
H A Dfilter.h1594 int __bpf_xdp_load_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len);
1595 int __bpf_xdp_store_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len);
1598 void *buf, unsigned long len, bool flush);
1613 void *buf, u32 len)
1619 void *buf, u32 len)
1629 static inline void bpf_xdp_copy_buf(struct xdp_buff *xdp, unsigned long off, void *buf, argument
1612 __bpf_xdp_load_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len) argument
1618 __bpf_xdp_store_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len) argument
/linux-master/fs/btrfs/
H A Dvolumes.c205 * Fill @buf with textual description of @bg_flags, no more than @size_buf
208 void btrfs_describe_block_groups(u64 bg_flags, char *buf, u32 size_buf) argument
212 char *bp = buf;
249 buf[size_buf - size_bp - 1] = '\0'; /* remove last | */
4239 * Fill @buf with textual description of balance filter flags @bargs, up to
4243 static void describe_balance_args(struct btrfs_balance_args *bargs, char *buf, argument
4248 char *bp = buf;
4331 buf[size_buf - size_bp - 1] = '\0'; /* remove last , */
4333 buf[0] = '\0';
4340 char *buf; local
[all...]
H A Dioctl.c1785 buf_size = sizeof(uargs->buf);
1787 ret = search_ioctl(inode, &sk, &buf_size, uargs->buf);
1824 (char __user *)(&uarg->buf[0]));
/linux-master/drivers/spi/
H A Dspi.c58 modalias_show(struct device *dev, struct device_attribute *a, char *buf) argument
63 len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1);
67 return sysfs_emit(buf, "%s%s\n", SPI_MODULE_PREFIX, spi->modalias);
73 const char *buf, size_t count)
78 ret = driver_set_override(dev, &spi->driver_override, buf, count);
86 struct device_attribute *a, char *buf)
92 len = sysfs_emit(buf, "%s\n", spi->driver_override ? : "");
121 char *buf, size_t offset)
140 return sysfs_emit(buf, "%llu\n", val);
146 char *buf) \
71 driver_override_store(struct device *dev, struct device_attribute *a, const char *buf, size_t count) argument
85 driver_override_show(struct device *dev, struct device_attribute *a, char *buf) argument
120 spi_emit_pcpu_stats(struct spi_statistics __percpu *stat, char *buf, size_t offset) argument
1119 spi_map_buf_attrs(struct spi_controller *ctlr, struct device *dev, struct sg_table *sgt, void *buf, size_t len, enum dma_data_direction dir, unsigned long attrs) argument
1196 spi_map_buf(struct spi_controller *ctlr, struct device *dev, struct sg_table *sgt, void *buf, size_t len, enum dma_data_direction dir) argument
2966 slave_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2977 slave_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
4644 static u8 *buf; variable
[all...]
H A Dspi-axi-spi-engine.c348 const uint16_t *buf; local
353 buf = st->cmd_buf;
355 writel_relaxed(buf[i], addr);
374 const u8 *buf = st->tx_buf; local
378 writel_relaxed(buf[i], addr);
382 const u16 *buf = (const u16 *)st->tx_buf; local
386 writel_relaxed(buf[i], addr);
390 const u32 *buf = (const u32 *)st->tx_buf; local
394 writel_relaxed(buf[i], addr);
416 u8 *buf local
424 u16 *buf = (u16 *)st->rx_buf; local
432 u32 *buf = (u32 *)st->rx_buf; local
[all...]
/linux-master/drivers/s390/net/
H A Dqeth_core_main.c1329 struct qeth_qdio_out_buffer *buf,
1334 skb_queue_walk(&buf->skb_list, skb) {
1345 struct qeth_qdio_out_buffer *buf, bool error,
1351 if (buf->next_element_to_fill == 0)
1355 QETH_TXQ_STAT_ADD(queue, buf_elements, buf->next_element_to_fill);
1357 QETH_TXQ_STAT_ADD(queue, tx_errors, buf->frames);
1359 QETH_TXQ_STAT_ADD(queue, tx_packets, buf->frames);
1360 QETH_TXQ_STAT_ADD(queue, tx_bytes, buf->bytes);
1363 while ((skb = __skb_dequeue(&buf->skb_list)) != NULL) {
1385 struct qeth_qdio_out_buffer *buf,
1328 qeth_notify_skbs(struct qeth_qdio_out_q *q, struct qeth_qdio_out_buffer *buf, enum iucv_tx_notify notification) argument
1344 qeth_tx_complete_buf(struct qeth_qdio_out_q *queue, struct qeth_qdio_out_buffer *buf, bool error, int budget) argument
1384 qeth_clear_output_buffer(struct qeth_qdio_out_q *queue, struct qeth_qdio_out_buffer *buf, bool error, int budget) argument
1412 qeth_free_out_buf(struct qeth_qdio_out_buffer *buf) argument
1423 struct qeth_qdio_out_buffer *buf, *tmp; local
2931 qeth_init_input_buffer(struct qeth_card *card, struct qeth_qdio_buffer *buf) argument
3429 qeth_check_qdio_errors(struct qeth_card *card, struct qdio_buffer *buf, unsigned int qdio_error, const char *dbftext) argument
3601 struct qeth_qdio_out_buffer *buf = queue->bufs[index]; local
4055 qeth_fill_buffer(struct qeth_qdio_out_buffer *buf, struct sk_buff *skb, struct qeth_hdr *hdr, unsigned int offset, unsigned int hd_len) argument
5750 qeth_extract_skbs(struct qeth_card *card, int budget, struct qeth_qdio_buffer *buf, bool *done) argument
6486 group_store(struct device_driver *ddrv, const char *buf, size_t count) argument
[all...]
/linux-master/drivers/s390/crypto/
H A Dzcrypt_ep11misc.c586 size_t buflen, u8 *buf)
667 memcpy(buf, ((u8 *)rep_pl) + sizeof(*rep_pl), rep_pl->data_len);
585 ep11_query_info(u16 cardnr, u16 domain, u32 query_type, size_t buflen, u8 *buf) argument
/linux-master/drivers/s390/cio/
H A Dcio_inject.c85 static ssize_t crw_inject_write(struct file *file, const char __user *buf, argument
98 buffer = memdup_user_nul(buf, lbuf);
128 static ssize_t enable_inject_write(struct file *file, const char __user *buf, argument
134 rc = kstrtoul_from_user(buf, lbuf, 10, &en);
/linux-master/drivers/s390/char/
H A Draw3270.c1125 char *buf)
1127 return sysfs_emit(buf, "%i\n",
1133 char *buf)
1135 return sysfs_emit(buf, "%i\n",
1142 char *buf)
1144 return sysfs_emit(buf, "%i\n",
1124 model_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1132 rows_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1141 columns_show(struct device *dev, struct device_attribute *attr, char *buf) argument
/linux-master/drivers/nvme/target/
H A Dnvmet.h530 u16 nvmet_copy_to_sgl(struct nvmet_req *req, off_t off, const void *buf,
532 u16 nvmet_copy_from_sgl(struct nvmet_req *req, off_t off, void *buf,
732 u8 *buf, int buf_size);
734 u8 *buf, int buf_size);
H A Dcore.c95 u16 nvmet_copy_to_sgl(struct nvmet_req *req, off_t off, const void *buf, argument
98 if (sg_pcopy_from_buffer(req->sg, req->sg_cnt, buf, len, off) != len) {
105 u16 nvmet_copy_from_sgl(struct nvmet_req *req, off_t off, void *buf, size_t len) argument
107 if (sg_pcopy_to_buffer(req->sg, req->sg_cnt, buf, len, off) != len) {

Completed in 416 milliseconds

1234567891011>>