/linux-6.6.21/drivers/gpu/drm/ |
D | drm_dma.c | 68 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() 115 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_legacy_dma_takedown() [all …]
|
/linux-6.6.21/sound/core/oss/ |
D | io.c | 50 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()
|
/linux-6.6.21/drivers/net/ethernet/cisco/enic/ |
D | vnic_rq.c | 25 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 …]
|
D | vnic_wq.c | 25 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 …]
|
/linux-6.6.21/drivers/scsi/fnic/ |
D | vnic_rq.c | 22 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()
|
D | vnic_wq.c | 42 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()
|
/linux-6.6.21/drivers/scsi/snic/ |
D | vnic_wq.c | 36 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()
|
/linux-6.6.21/drivers/media/v4l2-core/ |
D | videobuf-core.c | 204 if (NULL == q->bufs[i]) in videobuf_queue_is_busy() 206 if (q->bufs[i]->map) { in videobuf_queue_is_busy() 210 if (q->bufs[i]->state == VIDEOBUF_QUEUED) { in videobuf_queue_is_busy() 214 if (q->bufs[i]->state == VIDEOBUF_ACTIVE) { 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() 254 q->ops->buf_release(q, 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() [all …]
|
D | videobuf-dma-sg.c | 405 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() 601 size = PAGE_ALIGN(q->bufs[first]->bsize); in __videobuf_mmap_mapper() 623 if (NULL == q->bufs[i]) in __videobuf_mmap_mapper() 625 q->bufs[i]->map = map; in __videobuf_mmap_mapper() [all …]
|
D | videobuf-vmalloc.c | 82 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()
|
/linux-6.6.21/tools/virtio/ringtest/ |
D | main.c | 111 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()
|
/linux-6.6.21/drivers/scsi/arm/ |
D | arm_scsi.h | 35 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()
|
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/ |
D | prestera_rxtx.c | 81 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() 349 struct prestera_sdma_buf *buf = &ring->bufs[b]; in prestera_sdma_rx_fini() 382 ring->bufs = kmalloc_array(bnum, sizeof(*head), GFP_KERNEL); in prestera_sdma_rx_init() 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() 503 struct prestera_sdma_buf *buf = &tx_ring->bufs[b]; in prestera_sdma_tx_recycle_work_fn() [all …]
|
/linux-6.6.21/drivers/soc/fsl/qbman/ |
D | bman.c | 113 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()
|
/linux-6.6.21/fs/ |
D | pipe.c | 286 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read() 458 struct pipe_buffer *buf = &pipe->bufs[(head - 1) & mask]; in pipe_write() 520 buf = &pipe->bufs[head & mask]; in pipe_write() 620 count += pipe->bufs[tail & mask].len; in pipe_ioctl() 806 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), in alloc_pipe_info() 809 if (pipe->bufs) { in alloc_pipe_info() 841 struct pipe_buffer *buf = pipe->bufs + i; in free_pipe_info() 851 kfree(pipe->bufs); in free_pipe_info() 1257 struct pipe_buffer *bufs; in pipe_resize_ring() local 1260 bufs = kcalloc(nr_slots, sizeof(*bufs), in pipe_resize_ring() [all …]
|
/linux-6.6.21/drivers/net/ethernet/fungible/funeth/ |
D | funeth_rx.c | 55 c->bufs[c->prod_cnt & c->mask] = *buf; in cache_offer() 75 buf = &c->bufs[c->cons_cnt & c->mask]; in cache_get() 281 return &q->bufs[q->rq_cons & q->rq_mask]; in get_buf() 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() 577 struct funeth_rxbuf *b = q->cache.bufs; in fun_rxq_free_cache() 583 kvfree(q->cache.bufs); in fun_rxq_free_cache() [all …]
|
/linux-6.6.21/drivers/media/common/videobuf2/ |
D | videobuf2-core.c | 362 struct vb2_buffer *prev = q->bufs[vb->index - 1]; in __setup_offsets() 440 q->bufs[vb->index] = vb; in __vb2_queue_alloc() 448 q->bufs[vb->index] = NULL; in __vb2_queue_alloc() 463 q->bufs[vb->index] = NULL; in __vb2_queue_alloc() 486 vb = q->bufs[buffer]; in __vb2_free_mem() 514 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free() 554 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free() 594 kfree(q->bufs[buffer]); in __vb2_queue_free() 595 q->bufs[buffer] = NULL; in __vb2_queue_free() 631 if (vb2_buffer_in_use(q, q->bufs[buffer])) in __buffers_in_use() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.c | 122 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() 301 conn->qp.sq.bufs[ix] = NULL; in mlx5_fpga_conn_sq_cqe() 536 conn->qp.rq.bufs = kvcalloc(conn->qp.rq.size, in mlx5_fpga_conn_create_qp() 537 sizeof(conn->qp.rq.bufs[0]), in mlx5_fpga_conn_create_qp() 539 if (!conn->qp.rq.bufs) { in mlx5_fpga_conn_create_qp() 544 conn->qp.sq.bufs = kvcalloc(conn->qp.sq.size, in mlx5_fpga_conn_create_qp() [all …]
|
D | conn.h | 74 struct mlx5_fpga_dma_buf **bufs; member 81 struct mlx5_fpga_dma_buf **bufs; member
|
/linux-6.6.21/arch/mips/include/asm/octeon/ |
D | cvmx-wqe.h | 62 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;
|
/linux-6.6.21/drivers/infiniband/hw/hns/ |
D | hns_roce_alloc.c | 132 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()
|
/linux-6.6.21/drivers/md/ |
D | dm-verity-fec.c | 108 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 …]
|
/linux-6.6.21/sound/core/ |
D | pcm_compat.c | 325 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()
|
/linux-6.6.21/tools/virtio/ |
D | virtio_test.c | 170 bool delayed, int batch, int reset_n, int bufs) in run_test() argument 195 while (started < bufs && in run_test() 218 if (started >= bufs) in run_test() 258 assert(completed <= bufs); in run_test() 259 assert(started <= bufs); in run_test() 260 if (completed == bufs) in run_test()
|
/linux-6.6.21/fs/jbd2/ |
D | commit.c | 355 int bufs; in jbd2_journal_commit_transaction() local 575 bufs = 0; in jbd2_journal_commit_transaction() 607 J_ASSERT (bufs == 0); in jbd2_journal_commit_transaction() 628 wbuf[bufs++] = descriptor; in jbd2_journal_commit_transaction() 665 jh, &wbuf[bufs], blocknr); in jbd2_journal_commit_transaction() 670 jbd2_file_log_bh(&io_bufs, wbuf[bufs]); in jbd2_journal_commit_transaction() 684 jbd2_block_tag_csum_set(journal, tag, wbuf[bufs], in jbd2_journal_commit_transaction() 688 bufs++; in jbd2_journal_commit_transaction() 700 if (bufs == journal->j_wbufsize || in jbd2_journal_commit_transaction() 704 jbd2_debug(4, "JBD2: Submit %d IOs\n", bufs); in jbd2_journal_commit_transaction() [all …]
|