Home
last modified time | relevance | path

Searched refs:buf_num (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v6.1/net/core/
Dhwbm.c46 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-v6.1/drivers/media/usb/dvb-usb/
Dusb-urb.c97 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 …]
Ddvb-usb.h351 int buf_num; member
/Linux-v6.1/drivers/media/usb/dvb-usb-v2/
Dusb_urb.c210 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 …]
Ddvb_usb.h298 int buf_num; member
/Linux-v6.1/include/net/
Dhwbm.h13 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-v6.1/drivers/media/usb/airspy/
Dairspy.c117 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-v6.1/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c37 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
166 asid_bufnum_pid |= buf_num << HNS_TXD_BUFNUM_S; in fill_desc()
214 int buf_num; in hns_nic_maybe_stop_tx() local
217 buf_num = skb_shinfo(skb)->nr_frags + 1; in hns_nic_maybe_stop_tx()
219 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tx()
229 buf_num = 1; in hns_nic_maybe_stop_tx()
[all …]
Dhns_enet.h47 int buf_num, enum hns_desc_type type, int mtu);
Dhnae.h579 #define hnae_queue_xmit(q, buf_num) writel_relaxed(buf_num, \ argument
/Linux-v6.1/drivers/media/dvb-frontends/
Drtl2832_sdr.c129 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-v6.1/drivers/media/usb/hackrf/
Dhackrf.c132 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-v6.1/fs/btrfs/
Dcompression.c1419 u64 buf_num; in radix_sort() local
1433 buf_num = array[i].count; in radix_sort()
1434 if (buf_num > max_num) in radix_sort()
1435 max_num = buf_num; in radix_sort()
1438 buf_num = ilog2(max_num); in radix_sort()
1439 bitlen = ALIGN(buf_num, RADIX_BASE * 2); in radix_sort()
1446 buf_num = array[i].count; in radix_sort()
1447 addr = get4bits(buf_num, shift); in radix_sort()
1455 buf_num = array[i].count; in radix_sort()
1456 addr = get4bits(buf_num, shift); in radix_sort()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c55 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-v6.1/drivers/net/ethernet/marvell/
Dmvneta_bm.c228 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-v6.1/include/video/
Dimx-ipu-v3.h226 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-v6.1/drivers/mtd/nand/raw/
Dfsl_elbc_nand.c158 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()
Dfsl_ifc_nand.c144 int buf_num; in set_addr() local
151 buf_num = page_addr & priv->bufnum_mask; in set_addr()
153 ifc_nand_ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2); in set_addr()
/Linux-v6.1/drivers/s390/scsi/
Dzfcp_fc.c677 static struct zfcp_fc_req *zfcp_fc_alloc_sg_env(int buf_num) in zfcp_fc_alloc_sg_env() argument
685 if (zfcp_fc_sg_setup_table(&fc_req->sg_rsp, buf_num)) { in zfcp_fc_alloc_sg_env()
813 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local
818 buf_num = chain ? ZFCP_FC_GPN_FT_NUM_BUFS : 1; in zfcp_fc_scan_ports()
829 fc_req = zfcp_fc_alloc_sg_env(buf_num); in zfcp_fc_scan_ports()
843 zfcp_fc_sg_free_table(&fc_req->sg_rsp, buf_num); in zfcp_fc_scan_ports()
/Linux-v6.1/drivers/staging/media/meson/vdec/
Dcodec_hevc_common.c62 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-v6.1/drivers/staging/media/imx/
Dimx7-media-csi.c253 int buf_num; member
388 int buf_num) in imx7_csi_update_buf() argument
390 if (buf_num == 1) in imx7_csi_update_buf()
718 done = csi->active_vb2_buf[csi->buf_num]; in imx7_csi_vb2_buf_done()
732 csi->active_vb2_buf[csi->buf_num] = next; in imx7_csi_vb2_buf_done()
735 csi->active_vb2_buf[csi->buf_num] = NULL; in imx7_csi_vb2_buf_done()
738 imx7_csi_update_buf(csi, phys, csi->buf_num); in imx7_csi_vb2_buf_done()
779 csi->buf_num = 0; in imx7_csi_irq_handler()
781 csi->buf_num = 1; in imx7_csi_irq_handler()
/Linux-v6.1/drivers/gpu/ipu-v3/
Dipu-common.c431 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-v6.1/drivers/dma/
Dxgene-dma.c216 u8 buf_num; member
1101 XGENE_DMA_RING_NE_INT_MODE_SET(val, ring->buf_num); in xgene_dma_setup_ring()
1113 XGENE_DMA_RING_NE_INT_MODE_RESET(val, ring->buf_num); in xgene_dma_clear_ring()
1193 ring->id = XGENE_DMA_RING_ID_GET(ring->owner, ring->buf_num); in xgene_dma_create_ring_one()
1223 rx_ring->buf_num = XGENE_DMA_CPU_BUFNUM + chan->id; in xgene_dma_create_chan_rings()
1235 tx_ring->buf_num = XGENE_DMA_BUFNUM + chan->id; in xgene_dma_create_chan_rings()
/Linux-v6.1/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c909 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()
Dexynos_drm_fimc.c908 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()

12