Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 25 of 143) sorted by relevance

123456

/openbmc/linux/drivers/gpu/drm/
H A Ddrm_dma.c68 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_legacy_dma_setup()
96 if (dma->bufs[i].seg_count) { in drm_legacy_dma_takedown()
100 dma->bufs[i].buf_count, in drm_legacy_dma_takedown()
101 dma->bufs[i].seg_count); in drm_legacy_dma_takedown()
102 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_legacy_dma_takedown()
103 if (dma->bufs[i].seglist[j]) { in drm_legacy_dma_takedown()
104 dmah = dma->bufs[i].seglist[j]; in drm_legacy_dma_takedown()
112 kfree(dma->bufs[i].seglist); in drm_legacy_dma_takedown()
114 if (dma->bufs[i].buf_count) { in drm_legacy_dma_takedown()
116 kfree(dma->bufs[i].buflist[j].dev_private); in drm_legacy_dma_takedown()
[all …]
/openbmc/u-boot/drivers/net/
H A Dlpc32xx_eth.c203 struct lpc32xx_eth_buffers *bufs; member
360 struct lpc32xx_eth_buffers *bufs = lpc32xx_eth_device->bufs; in lpc32xx_eth_send() local
378 &bufs->tx_desc[tx_index].control); in lpc32xx_eth_send()
396 struct lpc32xx_eth_buffers *bufs = lpc32xx_eth_device->bufs; in lpc32xx_eth_recv() local
413 (bufs->rx_stat[rx_index].statusinfo in lpc32xx_eth_recv()
447 struct lpc32xx_eth_buffers *bufs = lpc32xx_eth_device->bufs; in lpc32xx_eth_init() local
492 bufs->tx_desc[index].control = 0; in lpc32xx_eth_init()
493 bufs->tx_stat[index].statusinfo = 0; in lpc32xx_eth_init()
501 bufs->rx_desc[index].packet = in lpc32xx_eth_init()
504 bufs->rx_stat[index].statusinfo = 0; in lpc32xx_eth_init()
[all …]
/openbmc/linux/sound/core/oss/
H A Dio.c50 void **bufs = (void**)plugin->extra_data; in io_playback_transfer() local
51 if (snd_BUG_ON(!bufs)) in io_playback_transfer()
55 bufs[channel] = src_channels[channel].area.addr; in io_playback_transfer()
57 bufs[channel] = NULL; in io_playback_transfer()
59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer()
76 void **bufs = (void**)plugin->extra_data; in io_capture_transfer() local
77 if (snd_BUG_ON(!bufs)) in io_capture_transfer()
81 bufs[channel] = dst_channels[channel].area.addr; in io_capture_transfer()
83 bufs[channel] = NULL; in io_capture_transfer()
85 return pcm_readv(plugin->plug, bufs, frames); in io_capture_transfer()
/openbmc/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_rq.c25 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ(count), GFP_KERNEL); in vnic_rq_alloc_bufs()
26 if (!rq->bufs[i]) in vnic_rq_alloc_bufs()
31 buf = rq->bufs[i]; in vnic_rq_alloc_bufs()
37 buf->next = rq->bufs[0]; in vnic_rq_alloc_bufs()
40 buf->next = rq->bufs[i + 1]; in vnic_rq_alloc_bufs()
48 rq->to_use = rq->to_clean = rq->bufs[0]; in vnic_rq_alloc_bufs()
63 if (rq->bufs[i]) { in vnic_rq_free()
64 kfree(rq->bufs[i]); in vnic_rq_free()
65 rq->bufs[i] = NULL; in vnic_rq_free()
121 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] in vnic_rq_init_start()
[all …]
H A Dvnic_wq.c25 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ(count), GFP_KERNEL); in vnic_wq_alloc_bufs()
26 if (!wq->bufs[i]) in vnic_wq_alloc_bufs()
31 buf = wq->bufs[i]; in vnic_wq_alloc_bufs()
37 buf->next = wq->bufs[0]; in vnic_wq_alloc_bufs()
41 buf->next = wq->bufs[i + 1]; in vnic_wq_alloc_bufs()
51 wq->to_use = wq->to_clean = wq->bufs[0]; in vnic_wq_alloc_bufs()
66 if (wq->bufs[i]) { in vnic_wq_free()
67 kfree(wq->bufs[i]); in vnic_wq_free()
68 wq->bufs[i] = NULL; in vnic_wq_free()
140 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] in enic_wq_init_start()
[all …]
/openbmc/linux/drivers/scsi/fnic/
H A Dvnic_rq.c22 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ, GFP_ATOMIC); in vnic_rq_alloc_bufs()
23 if (!rq->bufs[i]) { in vnic_rq_alloc_bufs()
30 buf = rq->bufs[i]; in vnic_rq_alloc_bufs()
36 buf->next = rq->bufs[0]; in vnic_rq_alloc_bufs()
39 buf->next = rq->bufs[i + 1]; in vnic_rq_alloc_bufs()
47 rq->to_use = rq->to_clean = rq->bufs[0]; in vnic_rq_alloc_bufs()
63 kfree(rq->bufs[i]); in vnic_rq_free()
64 rq->bufs[i] = NULL; in vnic_rq_free()
118 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] in vnic_rq_init()
174 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] in vnic_rq_clean()
H A Dvnic_wq.c42 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); in vnic_wq_alloc_bufs()
43 if (!wq->bufs[i]) { in vnic_wq_alloc_bufs()
50 buf = wq->bufs[i]; in vnic_wq_alloc_bufs()
56 buf->next = wq->bufs[0]; in vnic_wq_alloc_bufs()
59 buf->next = wq->bufs[i + 1]; in vnic_wq_alloc_bufs()
67 wq->to_use = wq->to_clean = wq->bufs[0]; in vnic_wq_alloc_bufs()
82 kfree(wq->bufs[i]); in vnic_wq_free()
83 wq->bufs[i] = NULL; in vnic_wq_free()
160 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES] in vnic_wq_init_start()
227 wq->to_use = wq->to_clean = wq->bufs[0]; in vnic_wq_clean()
/openbmc/linux/drivers/scsi/snic/
H A Dvnic_wq.c36 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); in vnic_wq_alloc_bufs()
37 if (!wq->bufs[i]) { in vnic_wq_alloc_bufs()
45 buf = wq->bufs[i]; in vnic_wq_alloc_bufs()
51 buf->next = wq->bufs[0]; in vnic_wq_alloc_bufs()
54 buf->next = wq->bufs[i + 1]; in vnic_wq_alloc_bufs()
62 wq->to_use = wq->to_clean = wq->bufs[0]; in vnic_wq_alloc_bufs()
77 kfree(wq->bufs[i]); in svnic_wq_free()
78 wq->bufs[i] = NULL; in svnic_wq_free()
159 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] in vnic_wq_init_start()
216 wq->to_use = wq->to_clean = wq->bufs[0]; in svnic_wq_clean()
/openbmc/linux/tools/virtio/ringtest/
H A Dmain.c111 int bufs = runcycles; in run_guest() local
123 if (started < bufs && in run_guest()
141 if (__builtin_expect(completed == bufs, false)) in run_guest()
148 assert(completed <= bufs); in run_guest()
149 assert(started <= bufs); in run_guest()
170 int bufs = runcycles; in run_host() local
188 if (__builtin_expect(completed == bufs, false)) in run_host()
193 assert(completed <= bufs); in run_host()
194 if (completed == bufs) in run_host()
/openbmc/linux/drivers/media/v4l2-core/
H A Dvideobuf-core.c204 if (NULL == q->bufs[i]) in videobuf_queue_is_busy()
206 if (q->bufs[i]->map) { in videobuf_queue_is_busy()
246 if (q->bufs[i] && q->bufs[i]->map) { in __videobuf_free()
252 if (NULL == q->bufs[i]) in __videobuf_free()
255 kfree(q->bufs[i]); in __videobuf_free()
256 q->bufs[i] = NULL; in __videobuf_free()
275 if (NULL == q->bufs[i]) in videobuf_queue_cancel()
287 if (NULL == q->bufs[i]) in videobuf_queue_cancel()
401 if (NULL == q->bufs[i]) in __videobuf_mmap_setup()
1006 kfree(q->bufs[i]); in __videobuf_read_stop()
[all …]
H A Dvideobuf-dma-sg.c405 if (NULL == q->bufs[i]) in videobuf_vm_close()
407 mem = q->bufs[i]->priv; in videobuf_vm_close()
413 if (q->bufs[i]->map != map) in videobuf_vm_close()
415 q->bufs[i]->map = NULL; in videobuf_vm_close()
416 q->bufs[i]->baddr = 0; in videobuf_vm_close()
417 q->ops->buf_release(q, q->bufs[i]); in videobuf_vm_close()
600 if (buf == q->bufs[first]) { in __videobuf_mmap_mapper()
623 if (NULL == q->bufs[i]) in __videobuf_mmap_mapper()
625 q->bufs[i]->map = map; in __videobuf_mmap_mapper()
626 q->bufs[i]->baddr = vma->vm_start + size; in __videobuf_mmap_mapper()
[all …]
H A Dvideobuf-vmalloc.c82 if (NULL == q->bufs[i]) in videobuf_vm_close()
85 if (q->bufs[i]->map != map) in videobuf_vm_close()
88 mem = q->bufs[i]->priv; in videobuf_vm_close()
108 q->bufs[i]->map = NULL; in videobuf_vm_close()
109 q->bufs[i]->baddr = 0; in videobuf_vm_close()
/openbmc/linux/drivers/scsi/arm/
H A Darm_scsi.h35 int bufs = SCp->buffers_residual; in copy_SCp_to_sg() local
40 BUG_ON(bufs + 1 > max); in copy_SCp_to_sg()
44 if (bufs) { in copy_SCp_to_sg()
48 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) in copy_SCp_to_sg()
53 return bufs + 1; in copy_SCp_to_sg()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_rxtx.c81 struct prestera_sdma_buf *bufs; member
86 struct prestera_sdma_buf *bufs; member
297 buf = &ring->bufs[buf_idx]; in prestera_sdma_rx_poll()
345 if (!ring->bufs) in prestera_sdma_rx_fini()
383 if (!ring->bufs) in prestera_sdma_rx_init()
388 tail = &ring->bufs[bnum - 1]; in prestera_sdma_rx_init()
389 head = &ring->bufs[0]; in prestera_sdma_rx_init()
533 if (!tx_ring->bufs) in prestera_sdma_tx_init()
536 tail = &tx_ring->bufs[bnum - 1]; in prestera_sdma_tx_init()
537 head = &tx_ring->bufs[0]; in prestera_sdma_tx_init()
[all …]
/openbmc/linux/drivers/soc/fsl/qbman/
H A Dbman.c113 struct bm_buffer bufs[8]; member
151 struct bm_buffer bufs[8]; member
738 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num) in bman_release() argument
772 bm_buffer_set64(r->bufs, bm_buffer_get64(bufs)); in bman_release()
773 bm_buffer_set_bpid(r->bufs, pool->bpid); in bman_release()
775 memcpy(&r->bufs[1], &bufs[1], i * sizeof(bufs[0])); in bman_release()
786 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num) in bman_acquire() argument
805 if (bufs) in bman_acquire()
806 memcpy(&bufs[0], &mcr->bufs[0], num * sizeof(bufs[0])); in bman_acquire()
/openbmc/linux/fs/
H A Dpipe.c816 if (pipe->bufs) { in alloc_pipe_info()
858 kfree(pipe->bufs); in free_pipe_info()
1264 struct pipe_buffer *bufs; in pipe_resize_ring() local
1267 bufs = kcalloc(nr_slots, sizeof(*bufs), in pipe_resize_ring()
1269 if (unlikely(!bufs)) in pipe_resize_ring()
1280 kfree(bufs); in pipe_resize_ring()
1292 memcpy(bufs, pipe->bufs + t, in pipe_resize_ring()
1297 memcpy(bufs + tsize, pipe->bufs, in pipe_resize_ring()
1299 memcpy(bufs, pipe->bufs + t, in pipe_resize_ring()
1307 kfree(pipe->bufs); in pipe_resize_ring()
[all …]
/openbmc/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_rx.c55 c->bufs[c->prod_cnt & c->mask] = *buf; in cache_offer()
75 buf = &c->bufs[c->cons_cnt & c->mask]; in cache_get()
538 struct funeth_rxbuf *b = q->bufs; in fun_rxq_free_bufs()
551 struct funeth_rxbuf *b = q->bufs; in fun_rxq_alloc_bufs()
561 q->cur_buf = q->bufs; in fun_rxq_alloc_bufs()
570 c->bufs = kvzalloc_node(depth * sizeof(*c->bufs), GFP_KERNEL, node); in fun_rxq_init_cache()
571 return c->bufs ? 0 : -ENOMEM; in fun_rxq_init_cache()
583 kvfree(q->cache.bufs); in fun_rxq_free_cache()
584 q->cache.bufs = NULL; in fun_rxq_free_cache()
669 q->rq_dma_addr, q->bufs); in fun_rxq_create_sw()
[all …]
/openbmc/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-core.c490 vb = q->bufs[buffer]; in __vb2_free_mem()
1550 vb = q->bufs[index]; in vb2_core_prepare_buf()
1621 vb = q->bufs[i]; in vb2_start_streaming()
1649 vb = q->bufs[index]; in vb2_core_qbuf()
2028 q->bufs[i]); in __vb2_queue_cancel()
2265 vb = q->bufs[index]; in vb2_core_expbuf()
2342 vb = q->bufs[buffer]; in vb2_mmap()
2399 vb = q->bufs[buffer]; in vb2_get_unmapped_area()
2696 fileio->bufs[i].vaddr = vb2_plane_vaddr(q->bufs[i], 0); in __vb2_init_fileio()
2701 fileio->bufs[i].size = vb2_plane_size(q->bufs[i], 0); in __vb2_init_fileio()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dconn.c122 conn->qp.rq.bufs[ix] = buf; in mlx5_fpga_conn_post_recv()
171 conn->qp.sq.bufs[ix] = buf; in mlx5_fpga_conn_post_send()
257 buf = conn->qp.rq.bufs[ix]; in mlx5_fpga_conn_rq_cqe()
258 conn->qp.rq.bufs[ix] = NULL; in mlx5_fpga_conn_rq_cqe()
300 buf = conn->qp.sq.bufs[ix]; in mlx5_fpga_conn_sq_cqe()
539 if (!conn->qp.rq.bufs) { in mlx5_fpga_conn_create_qp()
547 if (!conn->qp.sq.bufs) { in mlx5_fpga_conn_create_qp()
595 kvfree(conn->qp.sq.bufs); in mlx5_fpga_conn_create_qp()
597 kvfree(conn->qp.rq.bufs); in mlx5_fpga_conn_create_qp()
652 kvfree(conn->qp.sq.bufs); in mlx5_fpga_conn_destroy_qp()
[all …]
H A Dconn.h74 struct mlx5_fpga_dma_buf **bufs; member
81 struct mlx5_fpga_dma_buf **bufs; member
/openbmc/linux/arch/mips/include/asm/octeon/
H A Dcvmx-wqe.h62 uint64_t bufs:8; member
193 uint64_t bufs:8;
198 uint64_t bufs:8; member
240 uint64_t bufs:8;
268 uint64_t bufs:8; member
399 uint64_t bufs:8;
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_alloc.c132 int hns_roce_get_kmem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs, in hns_roce_get_kmem_bufs() argument
149 bufs[total++] = hns_roce_buf_dma_addr(buf, offset); in hns_roce_get_kmem_bufs()
156 int hns_roce_get_umem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs, in hns_roce_get_umem_bufs() argument
165 bufs[total++] = rdma_block_iter_dma_address(&biter); in hns_roce_get_umem_bufs()
/openbmc/linux/drivers/md/
H A Ddm-verity-fec.c108 return &fio->bufs[i][j * v->fec->rsn]; in fec_buffer_rs_block()
314 if (fio->bufs[n]) in fec_alloc_bufs()
317 fio->bufs[n] = mempool_alloc(&v->fec->prealloc_pool, GFP_NOWAIT); in fec_alloc_bufs()
318 if (unlikely(!fio->bufs[n])) { in fec_alloc_bufs()
326 if (fio->bufs[n]) in fec_alloc_bufs()
329 fio->bufs[n] = mempool_alloc(&v->fec->extra_pool, GFP_NOWAIT); in fec_alloc_bufs()
331 if (unlikely(!fio->bufs[n])) in fec_alloc_bufs()
351 memset(fio->bufs[n], 0, v->fec->rsn << DM_VERITY_FEC_BUF_RS_BITS); in fec_init_bufs()
498 mempool_free(fio->bufs[n], &f->prealloc_pool); in verity_fec_finish_io()
501 mempool_free(fio->bufs[n], &f->extra_pool); in verity_fec_finish_io()
[all …]
/openbmc/linux/sound/core/
H A Dpcm_compat.c325 u32 bufs; /* this is void **; */ member
341 void __user **bufs; in snd_pcm_ioctl_xfern_compat() local
354 if (get_user(buf, &data32->bufs) || in snd_pcm_ioctl_xfern_compat()
358 bufs = kmalloc_array(ch, sizeof(void __user *), GFP_KERNEL); in snd_pcm_ioctl_xfern_compat()
359 if (bufs == NULL) in snd_pcm_ioctl_xfern_compat()
364 kfree(bufs); in snd_pcm_ioctl_xfern_compat()
367 bufs[i] = compat_ptr(ptr); in snd_pcm_ioctl_xfern_compat()
371 err = snd_pcm_lib_writev(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat()
373 err = snd_pcm_lib_readv(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat()
378 kfree(bufs); in snd_pcm_ioctl_xfern_compat()
/openbmc/linux/include/soc/fsl/
H A Dbman.h114 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num);
127 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num);

123456