/linux-6.12.1/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.12.1/arch/riscv/kernel/ |
D | unaligned_access_speed.c | 221 struct page **bufs = kcalloc(cpu_count, sizeof(*bufs), GFP_KERNEL); in check_unaligned_access_speed_all_cpus() local 223 if (!bufs) { in check_unaligned_access_speed_all_cpus() 233 bufs[cpu] = alloc_pages(GFP_KERNEL, MISALIGNED_BUFFER_ORDER); in check_unaligned_access_speed_all_cpus() 234 if (!bufs[cpu]) { in check_unaligned_access_speed_all_cpus() 241 on_each_cpu(check_unaligned_access_nonboot_cpu, bufs, 1); in check_unaligned_access_speed_all_cpus() 244 smp_call_on_cpu(0, check_unaligned_access, bufs[0], true); in check_unaligned_access_speed_all_cpus() 255 if (bufs[cpu]) in check_unaligned_access_speed_all_cpus() 256 __free_pages(bufs[cpu], MISALIGNED_BUFFER_ORDER); in check_unaligned_access_speed_all_cpus() 259 kfree(bufs); in check_unaligned_access_speed_all_cpus()
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/tools/virtio/ |
D | vhost_net_test.c | 276 bool delayed, int bufs) in run_tx_test() argument 289 while (vq->started < bufs && in run_tx_test() 306 if (vq->started >= bufs) in run_tx_test() 325 assert(vq->completed <= bufs); in run_tx_test() 326 assert(vq->started <= bufs); in run_tx_test() 327 if (vq->completed == bufs) in run_tx_test() 343 bool delayed, int bufs) in run_rx_test() argument 355 while (vq->started < bufs && in run_rx_test() 375 if (vq->started >= bufs) in run_rx_test() 400 assert(vq->completed <= bufs); in run_rx_test() [all …]
|
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.12.1/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.12.1/fs/ |
D | pipe.c | 306 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read() 476 struct pipe_buffer *buf = &pipe->bufs[(head - 1) & mask]; in pipe_write() 529 buf = &pipe->bufs[head & mask]; in pipe_write() 629 count += pipe->bufs[tail & mask].len; in pipe_ioctl() 815 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), in alloc_pipe_info() 818 if (pipe->bufs) { in alloc_pipe_info() 851 struct pipe_buffer *buf = pipe->bufs + i; in free_pipe_info() 861 kfree(pipe->bufs); in free_pipe_info() 1268 struct pipe_buffer *bufs; in pipe_resize_ring() local 1271 bufs = kcalloc(nr_slots, sizeof(*bufs), in pipe_resize_ring() [all …]
|
/linux-6.12.1/tools/testing/selftests/powerpc/papr_vpd/ |
D | papr_vpd.c | 198 char *bufs[2]; in papr_vpd_reread() local 200 for (size_t i = 0; i < ARRAY_SIZE(bufs); ++i) { in papr_vpd_reread() 201 bufs[i] = malloc(size); in papr_vpd_reread() 202 FAIL_IF(!bufs[i]); in papr_vpd_reread() 203 ssize_t consumed = pread(fd, bufs[i], size, 0); in papr_vpd_reread() 207 FAIL_IF(memcmp(bufs[0], bufs[1], size)); in papr_vpd_reread()
|
/linux-6.12.1/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.12.1/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.12.1/drivers/md/ |
D | dm-verity-fec.c | 109 return &fio->bufs[i][j * v->fec->rsn]; in fec_buffer_rs_block() 316 if (fio->bufs[n]) in fec_alloc_bufs() 319 fio->bufs[n] = mempool_alloc(&v->fec->prealloc_pool, GFP_NOWAIT); in fec_alloc_bufs() 320 if (unlikely(!fio->bufs[n])) { in fec_alloc_bufs() 328 if (fio->bufs[n]) in fec_alloc_bufs() 331 fio->bufs[n] = mempool_alloc(&v->fec->extra_pool, GFP_NOWAIT); in fec_alloc_bufs() 333 if (unlikely(!fio->bufs[n])) in fec_alloc_bufs() 353 memset(fio->bufs[n], 0, v->fec->rsn << DM_VERITY_FEC_BUF_RS_BITS); in fec_init_bufs() 479 mempool_free(fio->bufs[n], &f->prealloc_pool); in verity_fec_finish_io() 482 mempool_free(fio->bufs[n], &f->extra_pool); in verity_fec_finish_io() [all …]
|
/linux-6.12.1/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.12.1/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(dma_addr_t *bufs, int buf_cnt, struct ib_umem *umem, in hns_roce_get_umem_bufs() argument 164 bufs[total++] = rdma_block_iter_dma_address(&biter); in hns_roce_get_umem_bufs()
|
/linux-6.12.1/fs/jbd2/ |
D | commit.c | 355 int bufs; in jbd2_journal_commit_transaction() local 574 bufs = 0; in jbd2_journal_commit_transaction() 606 J_ASSERT (bufs == 0); in jbd2_journal_commit_transaction() 627 wbuf[bufs++] = descriptor; in jbd2_journal_commit_transaction() 664 jh, &wbuf[bufs], blocknr); in jbd2_journal_commit_transaction() 669 jbd2_file_log_bh(&io_bufs, wbuf[bufs]); in jbd2_journal_commit_transaction() 683 jbd2_block_tag_csum_set(journal, tag, wbuf[bufs], in jbd2_journal_commit_transaction() 687 bufs++; in jbd2_journal_commit_transaction() 699 if (bufs == journal->j_wbufsize || in jbd2_journal_commit_transaction() 703 jbd2_debug(4, "JBD2: Submit %d IOs\n", bufs); in jbd2_journal_commit_transaction() [all …]
|
/linux-6.12.1/include/linux/ |
D | pipe_fs_i.h | 78 struct pipe_buffer *bufs; member 183 return &pipe->bufs[slot & (pipe->ring_size - 1)]; in pipe_buf() 254 pipe_buf_release(pipe, &pipe->bufs[--pipe->head & mask]); in pipe_discard_from()
|
/linux-6.12.1/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);
|
/linux-6.12.1/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 191 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push() 210 buf = cbuf->bufs[cbuf->read]; in rtw_cbuf_pop() 226 cbuf = rtw_malloc(struct_size(cbuf, bufs, size)); in rtw_cbuf_alloc()
|