/linux-master/sound/core/oss/ |
H A D | io.c | 50 void **bufs = (void**)plugin->extra_data; local 51 if (snd_BUG_ON(!bufs)) 55 bufs[channel] = src_channels[channel].area.addr; 57 bufs[channel] = NULL; 59 return pcm_writev(plugin->plug, bufs, frames); 76 void **bufs = (void**)plugin->extra_data; local 77 if (snd_BUG_ON(!bufs)) 81 bufs[channel] = dst_channels[channel].area.addr; 83 bufs[channel] = NULL; 85 return pcm_readv(plugin->plug, bufs, frame [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | unaligned_access_speed.c | 221 struct page **bufs = kcalloc(cpu_count, sizeof(*bufs), GFP_KERNEL); local 223 if (!bufs) { 233 bufs[cpu] = alloc_pages(GFP_KERNEL, MISALIGNED_BUFFER_ORDER); 234 if (!bufs[cpu]) { 241 on_each_cpu(check_unaligned_access_nonboot_cpu, bufs, 1); 244 smp_call_on_cpu(0, check_unaligned_access, bufs[0], true); 255 if (bufs[cpu]) 256 __free_pages(bufs[cpu], MISALIGNED_BUFFER_ORDER); 259 kfree(bufs); [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
H A D | conn.h | 74 struct mlx5_fpga_dma_buf **bufs; member in struct:mlx5_fpga_conn::__anon1228::__anon1229 81 struct mlx5_fpga_dma_buf **bufs; member in struct:mlx5_fpga_conn::__anon1228::__anon1230
|
H A D | conn.c | 122 conn->qp.rq.bufs[ix] = buf; 171 conn->qp.sq.bufs[ix] = buf; 257 buf = conn->qp.rq.bufs[ix]; 258 conn->qp.rq.bufs[ix] = NULL; 300 buf = conn->qp.sq.bufs[ix]; 301 conn->qp.sq.bufs[ix] = NULL; 536 conn->qp.rq.bufs = kvcalloc(conn->qp.rq.size, 537 sizeof(conn->qp.rq.bufs[0]), 539 if (!conn->qp.rq.bufs) { 544 conn->qp.sq.bufs [all...] |
/linux-master/drivers/scsi/arm/ |
H A D | arm_scsi.h | 35 int bufs = SCp->buffers_residual; local 40 BUG_ON(bufs + 1 > max); 44 if (bufs) { 48 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) 53 return bufs + 1;
|
/linux-master/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_rq.c | 25 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ(count), GFP_KERNEL); 26 if (!rq->bufs[i]) 31 buf = rq->bufs[i]; 37 buf->next = rq->bufs[0]; 40 buf->next = rq->bufs[i + 1]; 48 rq->to_use = rq->to_clean = rq->bufs[0]; 63 if (rq->bufs[i]) { 64 kfree(rq->bufs[i]); 65 rq->bufs[i] = NULL; 121 &rq->bufs[fetch_inde [all...] |
H A D | vnic_wq.c | 25 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ(count), GFP_KERNEL); 26 if (!wq->bufs[i]) 31 buf = wq->bufs[i]; 37 buf->next = wq->bufs[0]; 41 buf->next = wq->bufs[i + 1]; 51 wq->to_use = wq->to_clean = wq->bufs[0]; 66 if (wq->bufs[i]) { 67 kfree(wq->bufs[i]); 68 wq->bufs[i] = NULL; 140 &wq->bufs[fetch_inde [all...] |
/linux-master/drivers/scsi/fnic/ |
H A D | vnic_rq.c | 22 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ, GFP_ATOMIC); 23 if (!rq->bufs[i]) { 30 buf = rq->bufs[i]; 36 buf->next = rq->bufs[0]; 39 buf->next = rq->bufs[i + 1]; 47 rq->to_use = rq->to_clean = rq->bufs[0]; 63 kfree(rq->bufs[i]); 64 rq->bufs[i] = NULL; 118 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] 174 &rq->bufs[fetch_inde [all...] |
H A D | vnic_wq.c | 42 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); 43 if (!wq->bufs[i]) { 50 buf = wq->bufs[i]; 56 buf->next = wq->bufs[0]; 59 buf->next = wq->bufs[i + 1]; 67 wq->to_use = wq->to_clean = wq->bufs[0]; 82 kfree(wq->bufs[i]); 83 wq->bufs[i] = NULL; 160 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES] 227 wq->to_use = wq->to_clean = wq->bufs[ [all...] |
/linux-master/drivers/scsi/snic/ |
H A D | vnic_wq.c | 36 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); 37 if (!wq->bufs[i]) { 45 buf = wq->bufs[i]; 51 buf->next = wq->bufs[0]; 54 buf->next = wq->bufs[i + 1]; 62 wq->to_use = wq->to_clean = wq->bufs[0]; 77 kfree(wq->bufs[i]); 78 wq->bufs[i] = NULL; 159 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] 216 wq->to_use = wq->to_clean = wq->bufs[ [all...] |
/linux-master/tools/virtio/ringtest/ |
H A D | main.c | 111 int bufs = runcycles; local 123 if (started < bufs && 138 /* Flush out completed bufs if any */ 141 if (__builtin_expect(completed == bufs, false)) 148 assert(completed <= bufs); 149 assert(started <= bufs); 170 int bufs = runcycles; local 188 if (__builtin_expect(completed == bufs, false)) 193 assert(completed <= bufs); 194 if (completed == bufs) [all...] |
/linux-master/include/soc/fsl/ |
H A D | bman.h | 108 * @bufs: an array of buffers to release 109 * @num: the number of buffers in @bufs (1-8) 114 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num); 119 * @bufs: array for storing the acquired buffers 120 * @num: the number of buffers desired (@bufs is at least this big) 125 * the latter case, the content of @bufs is undefined. 127 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num);
|
/linux-master/drivers/net/ethernet/atheros/alx/ |
H A D | alx.h | 63 struct alx_buffer *bufs; member in struct:alx_rx_queue 79 struct alx_buffer *bufs; member in struct:alx_tx_queue
|
/linux-master/tools/testing/selftests/powerpc/papr_vpd/ |
H A D | papr_vpd.c | 198 char *bufs[2]; local 200 for (size_t i = 0; i < ARRAY_SIZE(bufs); ++i) { 201 bufs[i] = malloc(size); 202 FAIL_IF(!bufs[i]); 203 ssize_t consumed = pread(fd, bufs[i], size, 0); 207 FAIL_IF(memcmp(bufs[0], bufs[1], size));
|
/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_alloc.c | 132 int hns_roce_get_kmem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs, argument 149 bufs[total++] = hns_roce_buf_dma_addr(buf, offset); 156 int hns_roce_get_umem_bufs(dma_addr_t *bufs, int buf_cnt, struct ib_umem *umem, argument 164 bufs[total++] = rdma_block_iter_dma_address(&biter);
|
/linux-master/drivers/soc/fsl/qbman/ |
H A D | bman.c | 113 struct bm_buffer bufs[8]; member in union:bm_rcr_entry::__anon426 151 struct bm_buffer bufs[8]; member in union:bm_mc_result 738 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num) argument 772 bm_buffer_set64(r->bufs, bm_buffer_get64(bufs)); 773 bm_buffer_set_bpid(r->bufs, pool->bpid); 775 memcpy(&r->bufs[1], &bufs[1], i * sizeof(bufs[0])); 786 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u argument [all...] |
/linux-master/drivers/staging/rtl8723bs/os_dep/ |
H A D | osdep_service.c | 192 cbuf->bufs[cbuf->write] = buf; 211 buf = cbuf->bufs[cbuf->read]; 227 cbuf = rtw_malloc(struct_size(cbuf, bufs, size));
|
/linux-master/include/linux/ |
H A D | pipe_fs_i.h | 54 * @bufs: the circular array of pipe buffers 78 struct pipe_buffer *bufs; member in struct:pipe_inode_info 183 return &pipe->bufs[slot & (pipe->ring_size - 1)]; 254 pipe_buf_release(pipe, &pipe->bufs[--pipe->head & mask]);
|
/linux-master/tools/virtio/ |
H A D | vhost_net_test.c | 276 bool delayed, int bufs) 289 while (vq->started < bufs && 306 if (vq->started >= bufs) 309 /* Flush out completed bufs if any */ 325 assert(vq->completed <= bufs); 326 assert(vq->started <= bufs); 327 if (vq->completed == bufs) 343 bool delayed, int bufs) 355 while (vq->started < bufs && 375 if (vq->started >= bufs) 275 run_tx_test(struct vdev_info *dev, struct vq_info *vq, bool delayed, int bufs) argument 342 run_rx_test(struct vdev_info *dev, struct vq_info *vq, bool delayed, int bufs) argument [all...] |
/linux-master/arch/mips/include/asm/octeon/ |
H A D | cvmx-wqe.h | 62 uint64_t bufs:8; member in struct:__anon46::__anon47 193 uint64_t bufs:8; 198 uint64_t bufs:8; member in struct:__anon46::__anon48 240 uint64_t bufs:8; 268 uint64_t bufs:8; member in struct:__anon46::__anon50 399 uint64_t bufs:8;
|
H A D | cvmx-helper-util.h | 133 number_buffers = work->word2.s.bufs;
|
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot_fdma.h | 86 * @bufs: List of TX buffer associated to the DCBs 94 struct ocelot_fdma_tx_buf bufs[OCELOT_FDMA_TX_RING_SIZE]; member in struct:ocelot_fdma_tx_ring 118 * @bufs: List of RX buffer associated to the DCBs 127 struct ocelot_fdma_rx_buf bufs[OCELOT_FDMA_RX_RING_SIZE]; member in struct:ocelot_fdma_rx_ring
|
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_rxtx.c | 81 struct prestera_sdma_buf *bufs; member in struct:prestera_rx_ring 86 struct prestera_sdma_buf *bufs; member in struct:prestera_tx_ring 297 buf = &ring->bufs[buf_idx]; 345 if (!ring->bufs) 349 struct prestera_sdma_buf *buf = &ring->bufs[b]; 382 ring->bufs = kmalloc_array(bnum, sizeof(*head), GFP_KERNEL); 383 if (!ring->bufs) 388 tail = &ring->bufs[bnum - 1]; 389 head = &ring->bufs[0]; 503 struct prestera_sdma_buf *buf = &tx_ring->bufs[ [all...] |
/linux-master/fs/ |
H A D | pipe.c | 306 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; 476 struct pipe_buffer *buf = &pipe->bufs[(head - 1) & mask]; 529 buf = &pipe->bufs[head & mask]; 629 count += pipe->bufs[tail & mask].len; 815 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), 818 if (pipe->bufs) { 851 struct pipe_buffer *buf = pipe->bufs + i; 861 kfree(pipe->bufs); 1267 struct pipe_buffer *bufs; local 1270 bufs [all...] |
/linux-master/include/xen/arm/ |
H A D | hypercall.h | 58 struct xen_dm_op_buf *bufs);
|