/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_dma.c | 68 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_legacy_dma_setup() 95 if (dma->bufs[i].seg_count) { in drm_legacy_dma_takedown() 99 dma->bufs[i].buf_count, in drm_legacy_dma_takedown() 100 dma->bufs[i].seg_count); in drm_legacy_dma_takedown() 101 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_legacy_dma_takedown() 102 if (dma->bufs[i].seglist[j]) { in drm_legacy_dma_takedown() 103 drm_pci_free(dev, dma->bufs[i].seglist[j]); in drm_legacy_dma_takedown() 106 kfree(dma->bufs[i].seglist); in drm_legacy_dma_takedown() 108 if (dma->bufs[i].buf_count) { in drm_legacy_dma_takedown() 109 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_legacy_dma_takedown() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
D | vnic_wq.c | 38 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ(count), GFP_KERNEL); in vnic_wq_alloc_bufs() 39 if (!wq->bufs[i]) in vnic_wq_alloc_bufs() 44 buf = wq->bufs[i]; in vnic_wq_alloc_bufs() 50 buf->next = wq->bufs[0]; in vnic_wq_alloc_bufs() 54 buf->next = wq->bufs[i + 1]; in vnic_wq_alloc_bufs() 64 wq->to_use = wq->to_clean = wq->bufs[0]; in vnic_wq_alloc_bufs() 79 if (wq->bufs[i]) { in vnic_wq_free() 80 kfree(wq->bufs[i]); in vnic_wq_free() 81 wq->bufs[i] = NULL; in vnic_wq_free() 153 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] in enic_wq_init_start() [all …]
|
D | vnic_rq.c | 38 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ(count), GFP_KERNEL); in vnic_rq_alloc_bufs() 39 if (!rq->bufs[i]) in vnic_rq_alloc_bufs() 44 buf = rq->bufs[i]; in vnic_rq_alloc_bufs() 50 buf->next = rq->bufs[0]; in vnic_rq_alloc_bufs() 53 buf->next = rq->bufs[i + 1]; in vnic_rq_alloc_bufs() 61 rq->to_use = rq->to_clean = rq->bufs[0]; in vnic_rq_alloc_bufs() 76 if (rq->bufs[i]) { in vnic_rq_free() 77 kfree(rq->bufs[i]); in vnic_rq_free() 78 rq->bufs[i] = NULL; in vnic_rq_free() 134 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES(count)] in vnic_rq_init_start() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
D | vnic_rq.c | 34 rq->bufs[i] = kzalloc(VNIC_RQ_BUF_BLK_SZ, GFP_ATOMIC); in vnic_rq_alloc_bufs() 35 if (!rq->bufs[i]) { in vnic_rq_alloc_bufs() 42 buf = rq->bufs[i]; in vnic_rq_alloc_bufs() 48 buf->next = rq->bufs[0]; in vnic_rq_alloc_bufs() 51 buf->next = rq->bufs[i + 1]; in vnic_rq_alloc_bufs() 59 rq->to_use = rq->to_clean = rq->bufs[0]; in vnic_rq_alloc_bufs() 75 kfree(rq->bufs[i]); in vnic_rq_free() 76 rq->bufs[i] = NULL; in vnic_rq_free() 130 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] in vnic_rq_init() 186 &rq->bufs[fetch_index / VNIC_RQ_BUF_BLK_ENTRIES] in vnic_rq_clean()
|
D | vnic_wq.c | 54 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); in vnic_wq_alloc_bufs() 55 if (!wq->bufs[i]) { in vnic_wq_alloc_bufs() 62 buf = wq->bufs[i]; in vnic_wq_alloc_bufs() 68 buf->next = wq->bufs[0]; in vnic_wq_alloc_bufs() 71 buf->next = wq->bufs[i + 1]; in vnic_wq_alloc_bufs() 79 wq->to_use = wq->to_clean = wq->bufs[0]; in vnic_wq_alloc_bufs() 94 kfree(wq->bufs[i]); in vnic_wq_free() 95 wq->bufs[i] = NULL; in vnic_wq_free() 172 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES] in vnic_wq_init_start() 239 wq->to_use = wq->to_clean = wq->bufs[0]; in vnic_wq_clean()
|
/kernel/linux/linux-5.10/drivers/scsi/snic/ |
D | vnic_wq.c | 50 wq->bufs[i] = kzalloc(VNIC_WQ_BUF_BLK_SZ, GFP_ATOMIC); in vnic_wq_alloc_bufs() 51 if (!wq->bufs[i]) { in vnic_wq_alloc_bufs() 59 buf = wq->bufs[i]; in vnic_wq_alloc_bufs() 65 buf->next = wq->bufs[0]; in vnic_wq_alloc_bufs() 68 buf->next = wq->bufs[i + 1]; in vnic_wq_alloc_bufs() 76 wq->to_use = wq->to_clean = wq->bufs[0]; in vnic_wq_alloc_bufs() 91 kfree(wq->bufs[i]); in svnic_wq_free() 92 wq->bufs[i] = NULL; in svnic_wq_free() 173 &wq->bufs[fetch_index / VNIC_WQ_BUF_BLK_ENTRIES(count)] in vnic_wq_init_start() 230 wq->to_use = wq->to_clean = wq->bufs[0]; in svnic_wq_clean()
|
/kernel/linux/linux-5.10/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 | 409 if (NULL == q->bufs[i]) in videobuf_vm_close() 411 mem = q->bufs[i]->priv; in videobuf_vm_close() 417 if (q->bufs[i]->map != map) in videobuf_vm_close() 419 q->bufs[i]->map = NULL; in videobuf_vm_close() 420 q->bufs[i]->baddr = 0; in videobuf_vm_close() 421 q->ops->buf_release(q, q->bufs[i]); in videobuf_vm_close() 605 if (buf == q->bufs[first]) { in __videobuf_mmap_mapper() 606 size = PAGE_ALIGN(q->bufs[first]->bsize); in __videobuf_mmap_mapper() 628 if (NULL == q->bufs[i]) in __videobuf_mmap_mapper() 630 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()
|
D | videobuf-dma-contig.c | 93 if (NULL == q->bufs[i]) in videobuf_vm_close() 96 if (q->bufs[i]->map != map) in videobuf_vm_close() 99 mem = q->bufs[i]->priv; in videobuf_vm_close() 119 q->bufs[i]->map = NULL; in videobuf_vm_close() 120 q->bufs[i]->baddr = 0; in videobuf_vm_close()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/scsi/arm/ |
D | scsi.h | 26 int bufs = SCp->buffers_residual; in copy_SCp_to_sg() local 31 BUG_ON(bufs + 1 > max); in copy_SCp_to_sg() 35 if (bufs) { in copy_SCp_to_sg() 39 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) in copy_SCp_to_sg() 44 return bufs + 1; in copy_SCp_to_sg()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_rxtx.c | 83 struct prestera_sdma_buf *bufs; member 88 struct prestera_sdma_buf *bufs; member 295 buf = &ring->bufs[buf_idx]; in prestera_sdma_rx_poll() 343 if (!ring->bufs) in prestera_sdma_rx_fini() 347 struct prestera_sdma_buf *buf = &ring->bufs[b]; in prestera_sdma_rx_fini() 380 ring->bufs = kmalloc_array(bnum, sizeof(*head), GFP_KERNEL); in prestera_sdma_rx_init() 381 if (!ring->bufs) in prestera_sdma_rx_init() 386 tail = &ring->bufs[bnum - 1]; in prestera_sdma_rx_init() 387 head = &ring->bufs[0]; in prestera_sdma_rx_init() 501 struct prestera_sdma_buf *buf = &tx_ring->bufs[b]; in prestera_sdma_tx_recycle_work_fn() [all …]
|
/kernel/linux/linux-5.10/drivers/soc/fsl/qbman/ |
D | bman.c | 113 struct bm_buffer bufs[8]; member 151 struct bm_buffer bufs[8]; member 739 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num) in bman_release() argument 773 bm_buffer_set64(r->bufs, bm_buffer_get64(bufs)); in bman_release() 774 bm_buffer_set_bpid(r->bufs, pool->bpid); in bman_release() 776 memcpy(&r->bufs[1], &bufs[1], i * sizeof(bufs[0])); in bman_release() 787 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num) in bman_acquire() argument 806 if (bufs) in bman_acquire() 807 memcpy(&bufs[0], &mcr->bufs[0], num * sizeof(bufs[0])); in bman_acquire()
|
/kernel/linux/linux-5.10/fs/ |
D | pipe.c | 285 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read() 458 struct pipe_buffer *buf = &pipe->bufs[(head - 1) & mask]; in pipe_write() 490 struct pipe_buffer *buf = &pipe->bufs[head & 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() 1254 struct pipe_buffer *bufs; in pipe_resize_ring() local [all …]
|
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
D | videobuf2-core.c | 367 struct vb2_buffer *prev = q->bufs[vb->index - 1]; in __setup_offsets() 434 q->bufs[vb->index] = vb; in __vb2_queue_alloc() 442 q->bufs[vb->index] = NULL; in __vb2_queue_alloc() 457 q->bufs[vb->index] = NULL; in __vb2_queue_alloc() 480 vb = q->bufs[buffer]; in __vb2_free_mem() 513 if (q->bufs[buffer] == NULL) in __vb2_queue_free() 515 if (q->bufs[buffer]->state == VB2_BUF_STATE_PREPARING) { in __vb2_queue_free() 524 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free() 559 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free() 599 kfree(q->bufs[buffer]); in __vb2_queue_free() [all …]
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/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;
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-verity-fec.c | 107 return &fio->bufs[i][j * v->fec->rsn]; in fec_buffer_rs_block() 313 if (fio->bufs[n]) in fec_alloc_bufs() 316 fio->bufs[n] = mempool_alloc(&v->fec->prealloc_pool, GFP_NOWAIT); in fec_alloc_bufs() 317 if (unlikely(!fio->bufs[n])) { in fec_alloc_bufs() 325 if (fio->bufs[n]) in fec_alloc_bufs() 328 fio->bufs[n] = mempool_alloc(&v->fec->extra_pool, GFP_NOWAIT); in fec_alloc_bufs() 330 if (unlikely(!fio->bufs[n])) in fec_alloc_bufs() 350 memset(fio->bufs[n], 0, v->fec->rsn << DM_VERITY_FEC_BUF_RS_BITS); in fec_init_bufs() 497 mempool_free(fio->bufs[n], &f->prealloc_pool); in verity_fec_finish_io() 500 mempool_free(fio->bufs[n], &f->extra_pool); in verity_fec_finish_io() [all …]
|
/kernel/linux/linux-5.10/sound/core/ |
D | pcm_compat.c | 320 u32 bufs; /* this is void **; */ member 336 void __user **bufs; in snd_pcm_ioctl_xfern_compat() local 348 if (get_user(buf, &data32->bufs) || in snd_pcm_ioctl_xfern_compat() 352 bufs = kmalloc_array(ch, sizeof(void __user *), GFP_KERNEL); in snd_pcm_ioctl_xfern_compat() 353 if (bufs == NULL) in snd_pcm_ioctl_xfern_compat() 358 kfree(bufs); in snd_pcm_ioctl_xfern_compat() 361 bufs[i] = compat_ptr(ptr); in snd_pcm_ioctl_xfern_compat() 365 err = snd_pcm_lib_writev(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat() 367 err = snd_pcm_lib_readv(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat() 372 kfree(bufs); in snd_pcm_ioctl_xfern_compat()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/soc/fsl/ |
D | bman.h | 114 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);
|
/kernel/linux/linux-5.10/fs/jbd2/ |
D | commit.c | 388 int bufs; in jbd2_journal_commit_transaction() local 622 bufs = 0; in jbd2_journal_commit_transaction() 654 J_ASSERT (bufs == 0); in jbd2_journal_commit_transaction() 675 wbuf[bufs++] = descriptor; in jbd2_journal_commit_transaction() 712 jh, &wbuf[bufs], blocknr); in jbd2_journal_commit_transaction() 717 jbd2_file_log_bh(&io_bufs, wbuf[bufs]); in jbd2_journal_commit_transaction() 731 jbd2_block_tag_csum_set(journal, tag, wbuf[bufs], in jbd2_journal_commit_transaction() 735 bufs++; in jbd2_journal_commit_transaction() 747 if (bufs == journal->j_wbufsize || in jbd2_journal_commit_transaction() 751 jbd_debug(4, "JBD2: Submit %d IOs\n", bufs); in jbd2_journal_commit_transaction() [all …]
|