/linux-6.6.21/net/core/ |
D | hwbm.c | 46 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num) in hwbm_pool_add() argument 51 if (bm_pool->buf_num == bm_pool->size) { in hwbm_pool_add() 54 return bm_pool->buf_num; in hwbm_pool_add() 57 if (buf_num + bm_pool->buf_num > bm_pool->size) { in hwbm_pool_add() 59 buf_num); in hwbm_pool_add() 64 if ((buf_num + bm_pool->buf_num) < bm_pool->buf_num) { in hwbm_pool_add() 66 buf_num, bm_pool->buf_num); in hwbm_pool_add() 71 for (i = 0; i < buf_num; i++) { in hwbm_pool_add() 78 bm_pool->buf_num += i; in hwbm_pool_add() 80 pr_debug("hwpm pool: %d of %d buffers added\n", i, buf_num); in hwbm_pool_add()
|
/linux-6.6.21/drivers/media/usb/dvb-usb/ |
D | usb-urb.c | 97 while (stream->buf_num) { in usb_free_stream_buffers() 98 stream->buf_num--; in usb_free_stream_buffers() 99 deb_mem("freeing buffer %d\n",stream->buf_num); in usb_free_stream_buffers() 101 stream->buf_list[stream->buf_num], in usb_free_stream_buffers() 102 stream->dma_addr[stream->buf_num]); in usb_free_stream_buffers() 113 stream->buf_num = 0; in usb_allocate_stream_buffers() 118 for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) { in usb_allocate_stream_buffers() 119 deb_mem("allocating buffer %d\n",stream->buf_num); in usb_allocate_stream_buffers() 120 if (( stream->buf_list[stream->buf_num] = in usb_allocate_stream_buffers() 122 &stream->dma_addr[stream->buf_num]) ) == NULL) { in usb_allocate_stream_buffers() [all …]
|
D | dvb-usb.h | 351 int buf_num; member
|
/linux-6.6.21/drivers/media/usb/dvb-usb-v2/ |
D | usb_urb.c | 210 while (stream->buf_num) { in usb_free_stream_buffers() 211 stream->buf_num--; in usb_free_stream_buffers() 212 kfree(stream->buf_list[stream->buf_num]); in usb_free_stream_buffers() 224 stream->buf_num = 0; in usb_alloc_stream_buffers() 231 for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) { in usb_alloc_stream_buffers() 232 stream->buf_list[stream->buf_num] = kzalloc(size, GFP_ATOMIC); in usb_alloc_stream_buffers() 233 if (!stream->buf_list[stream->buf_num]) { in usb_alloc_stream_buffers() 235 __func__, stream->buf_num); in usb_alloc_stream_buffers() 241 __func__, stream->buf_num, in usb_alloc_stream_buffers() 242 stream->buf_list[stream->buf_num], in usb_alloc_stream_buffers() [all …]
|
D | dvb_usb.h | 298 int buf_num; member
|
/linux-6.6.21/include/net/ |
D | hwbm.h | 13 int buf_num; member 24 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num); 32 unsigned int buf_num) in hwbm_pool_add() argument
|
/linux-6.6.21/drivers/media/usb/airspy/ |
D | airspy.c | 117 int buf_num; member 351 while (s->buf_num) { in airspy_free_stream_bufs() 352 s->buf_num--; in airspy_free_stream_bufs() 353 dev_dbg(s->dev, "free buf=%d\n", s->buf_num); in airspy_free_stream_bufs() 355 s->buf_list[s->buf_num], in airspy_free_stream_bufs() 356 s->dma_addr[s->buf_num]); in airspy_free_stream_bufs() 366 s->buf_num = 0; in airspy_alloc_stream_bufs() 372 for (s->buf_num = 0; s->buf_num < MAX_BULK_BUFS; s->buf_num++) { in airspy_alloc_stream_bufs() 373 s->buf_list[s->buf_num] = usb_alloc_coherent(s->udev, in airspy_alloc_stream_bufs() 375 &s->dma_addr[s->buf_num]); in airspy_alloc_stream_bufs() [all …]
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/ |
D | hns_enet.c | 37 int buf_num, enum hns_desc_type type, int mtu) in fill_v2_desc_hw() argument 63 hnae_set_field(bn_pid, HNSV2_TXD_BUFNUM_M, 0, buf_num - 1); in fill_v2_desc_hw() 130 int buf_num, enum hns_desc_type type, int mtu) in fill_v2_desc() argument 133 buf_num, type, mtu); in fill_v2_desc() 145 int buf_num, enum hns_desc_type type, int mtu, in fill_desc() argument 167 asid_bufnum_pid |= buf_num << HNS_TXD_BUFNUM_S; in fill_desc() 215 int buf_num; in hns_nic_maybe_stop_tx() local 218 buf_num = skb_shinfo(skb)->nr_frags + 1; in hns_nic_maybe_stop_tx() 220 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tx() 230 buf_num = 1; in hns_nic_maybe_stop_tx() [all …]
|
D | hns_enet.h | 47 int buf_num, enum hns_desc_type type, int mtu,
|
D | hnae.h | 579 #define hnae_queue_xmit(q, buf_num) writel_relaxed(buf_num, \ argument
|
/linux-6.6.21/fs/btrfs/ |
D | compression.c | 1136 u64 buf_num; in radix_sort() local 1150 buf_num = array[i].count; in radix_sort() 1151 if (buf_num > max_num) in radix_sort() 1152 max_num = buf_num; in radix_sort() 1155 buf_num = ilog2(max_num); in radix_sort() 1156 bitlen = ALIGN(buf_num, RADIX_BASE * 2); in radix_sort() 1163 buf_num = array[i].count; in radix_sort() 1164 addr = get4bits(buf_num, shift); in radix_sort() 1172 buf_num = array[i].count; in radix_sort() 1173 addr = get4bits(buf_num, shift); in radix_sort() [all …]
|
/linux-6.6.21/drivers/media/usb/hackrf/ |
D | hackrf.c | 132 int buf_num; member 607 while (dev->buf_num) { in hackrf_free_stream_bufs() 608 dev->buf_num--; in hackrf_free_stream_bufs() 609 dev_dbg(dev->dev, "free buf=%d\n", dev->buf_num); in hackrf_free_stream_bufs() 611 dev->buf_list[dev->buf_num], in hackrf_free_stream_bufs() 612 dev->dma_addr[dev->buf_num]); in hackrf_free_stream_bufs() 622 dev->buf_num = 0; in hackrf_alloc_stream_bufs() 628 for (dev->buf_num = 0; dev->buf_num < MAX_BULK_BUFS; dev->buf_num++) { in hackrf_alloc_stream_bufs() 629 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in hackrf_alloc_stream_bufs() 631 &dev->dma_addr[dev->buf_num]); in hackrf_alloc_stream_bufs() [all …]
|
/linux-6.6.21/drivers/media/dvb-frontends/ |
D | rtl2832_sdr.c | 129 int buf_num; member 307 while (dev->buf_num) { in rtl2832_sdr_free_stream_bufs() 308 dev->buf_num--; in rtl2832_sdr_free_stream_bufs() 309 dev_dbg(&pdev->dev, "free buf=%d\n", dev->buf_num); in rtl2832_sdr_free_stream_bufs() 311 dev->buf_list[dev->buf_num], in rtl2832_sdr_free_stream_bufs() 312 dev->dma_addr[dev->buf_num]); in rtl2832_sdr_free_stream_bufs() 324 dev->buf_num = 0; in rtl2832_sdr_alloc_stream_bufs() 330 for (dev->buf_num = 0; dev->buf_num < MAX_BULK_BUFS; dev->buf_num++) { in rtl2832_sdr_alloc_stream_bufs() 331 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in rtl2832_sdr_alloc_stream_bufs() 333 &dev->dma_addr[dev->buf_num]); in rtl2832_sdr_alloc_stream_bufs() [all …]
|
/linux-6.6.21/drivers/media/platform/nxp/ |
D | imx7-media-csi.c | 250 int buf_num; member 385 int buf_num) in imx7_csi_update_buf() argument 387 if (buf_num == 1) in imx7_csi_update_buf() 725 done = csi->active_vb2_buf[csi->buf_num]; in imx7_csi_vb2_buf_done() 739 csi->active_vb2_buf[csi->buf_num] = next; in imx7_csi_vb2_buf_done() 742 csi->active_vb2_buf[csi->buf_num] = NULL; in imx7_csi_vb2_buf_done() 745 imx7_csi_update_buf(csi, dma_addr, csi->buf_num); in imx7_csi_vb2_buf_done() 786 csi->buf_num = 0; in imx7_csi_irq_handler() 788 csi->buf_num = 1; in imx7_csi_irq_handler() 1305 int buf_num; in imx7_csi_fast_track_buffer() local [all …]
|
/linux-6.6.21/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 55 int buf_num; member 443 bm_pool->buf_num = 0; in mvpp2_bm_pool_create() 493 struct mvpp2_bm_pool *bm_pool, int buf_num) in mvpp2_bm_bufs_free() argument 498 if (buf_num > bm_pool->buf_num) { in mvpp2_bm_bufs_free() 500 bm_pool->id, buf_num); in mvpp2_bm_bufs_free() 501 buf_num = bm_pool->buf_num; in mvpp2_bm_bufs_free() 507 for (i = 0; i < buf_num; i++) { in mvpp2_bm_bufs_free() 527 bm_pool->buf_num -= i; in mvpp2_bm_bufs_free() 533 int buf_num = 0; in mvpp2_check_hw_buf_num() local 535 buf_num += mvpp2_read(priv, MVPP2_BM_POOL_PTRS_NUM_REG(bm_pool->id)) & in mvpp2_check_hw_buf_num() [all …]
|
/linux-6.6.21/include/video/ |
D | imx-ipu-v3.h | 226 bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num); 227 void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num); 228 void ipu_idmac_clear_buffer(struct ipuv3_channel *channel, u32 buf_num);
|
/linux-6.6.21/drivers/net/ethernet/marvell/ |
D | mvneta_bm.c | 228 for (i = 0; i < bm_pool->hwbm_pool.buf_num; i++) { in mvneta_bm_bufs_free() 253 bm_pool->hwbm_pool.buf_num -= i; in mvneta_bm_bufs_free() 269 if (hwbm_pool->buf_num) in mvneta_bm_pool_destroy()
|
/linux-6.6.21/drivers/mtd/nand/raw/ |
D | fsl_elbc_nand.c | 158 int buf_num; in set_addr() local 171 buf_num = (page_addr & 1) << 2; in set_addr() 181 buf_num = page_addr & 7; in set_addr() 184 elbc_fcm_ctrl->addr = priv->vbase + buf_num * 1024; in set_addr() 194 buf_num, elbc_fcm_ctrl->addr, priv->vbase, in set_addr()
|
D | fsl_ifc_nand.c | 145 int buf_num; in set_addr() local 152 buf_num = page_addr & priv->bufnum_mask; in set_addr() 154 ifc_nand_ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2); in set_addr()
|
/linux-6.6.21/drivers/s390/scsi/ |
D | zfcp_fc.c | 673 static struct zfcp_fc_req *zfcp_fc_alloc_sg_env(int buf_num) in zfcp_fc_alloc_sg_env() argument 681 if (zfcp_fc_sg_setup_table(&fc_req->sg_rsp, buf_num)) { in zfcp_fc_alloc_sg_env() 809 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local 814 buf_num = chain ? ZFCP_FC_GPN_FT_NUM_BUFS : 1; in zfcp_fc_scan_ports() 825 fc_req = zfcp_fc_alloc_sg_env(buf_num); in zfcp_fc_scan_ports() 839 zfcp_fc_sg_free_table(&fc_req->sg_rsp, buf_num); in zfcp_fc_scan_ports()
|
/linux-6.6.21/drivers/staging/media/meson/vdec/ |
D | codec_hevc_common.c | 62 u32 buf_num = v4l2_m2m_num_dst_bufs_ready(sess->m2m_ctx); in codec_hevc_setup_buffers_gxbb() local 102 for (i = buf_num; i < MAX_REF_PIC_NUM; ++i) in codec_hevc_setup_buffers_gxbb()
|
/linux-6.6.21/drivers/dma/ |
D | xgene-dma.c | 217 u8 buf_num; member 1102 XGENE_DMA_RING_NE_INT_MODE_SET(val, ring->buf_num); in xgene_dma_setup_ring() 1114 XGENE_DMA_RING_NE_INT_MODE_RESET(val, ring->buf_num); in xgene_dma_clear_ring() 1194 ring->id = XGENE_DMA_RING_ID_GET(ring->owner, ring->buf_num); in xgene_dma_create_ring_one() 1224 rx_ring->buf_num = XGENE_DMA_CPU_BUFNUM + chan->id; in xgene_dma_create_chan_rings() 1236 tx_ring->buf_num = XGENE_DMA_BUFNUM + chan->id; in xgene_dma_create_chan_rings()
|
/linux-6.6.21/drivers/gpu/ipu-v3/ |
D | ipu-common.c | 431 bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_buffer_is_ready() argument 438 switch (buf_num) { in ipu_idmac_buffer_is_ready() 455 void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_select_buffer() argument 464 if (buf_num == 0) in ipu_idmac_select_buffer() 473 void ipu_idmac_clear_buffer(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_clear_buffer() argument 482 switch (buf_num) { in ipu_idmac_clear_buffer()
|
/linux-6.6.21/drivers/gpu/drm/exynos/ |
D | exynos_drm_gsc.c | 909 u32 cfg, i, buf_num = GSC_REG_SZ; in gsc_dst_get_buf_seq() local 916 buf_num--; in gsc_dst_get_buf_seq() 918 DRM_DEV_DEBUG_KMS(ctx->dev, "buf_num[%d]\n", buf_num); in gsc_dst_get_buf_seq() 920 return buf_num; in gsc_dst_get_buf_seq()
|
D | exynos_drm_fimc.c | 908 u32 buf_num; in fimc_dst_set_buf_seq() local 924 buf_num = hweight32(cfg); in fimc_dst_set_buf_seq() 926 if (enqueue && buf_num >= FIMC_BUF_START) in fimc_dst_set_buf_seq() 928 else if (!enqueue && buf_num <= FIMC_BUF_STOP) in fimc_dst_set_buf_seq()
|