Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/net/core/
A 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-6.3-rc2/drivers/media/usb/dvb-usb/
A 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()
120 if (( stream->buf_list[stream->buf_num] = in usb_allocate_stream_buffers()
128 stream->buf_num, in usb_allocate_stream_buffers()
129 stream->buf_list[stream->buf_num], (long long)stream->dma_addr[stream->buf_num]); in usb_allocate_stream_buffers()
[all …]
A Ddvb-usb.h351 int buf_num; member
/linux-6.3-rc2/drivers/media/usb/dvb-usb-v2/
A 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 …]
A Ddvb_usb.h298 int buf_num; member
/linux-6.3-rc2/include/net/
A 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-6.3-rc2/drivers/media/usb/airspy/
A 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()
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()
375 &s->dma_addr[s->buf_num]); in airspy_alloc_stream_bufs()
376 if (!s->buf_list[s->buf_num]) { in airspy_alloc_stream_bufs()
383 s->buf_list[s->buf_num], in airspy_alloc_stream_bufs()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns/
A Dhns_enet.c133 buf_num, type, mtu); in fill_v2_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()
229 buf_num = 1; in hns_nic_maybe_stop_tx()
230 } else if (buf_num > ring_space(ring)) { in hns_nic_maybe_stop_tx()
234 *bnum = buf_num; in hns_nic_maybe_stop_tx()
243 int buf_num; in hns_nic_maybe_stop_tso() local
261 if (ring_space(ring) < buf_num) in hns_nic_maybe_stop_tso()
274 *bnum = buf_num; in hns_nic_maybe_stop_tso()
297 buf_num, in fill_tso_desc()
[all …]
A Dhns_enet.h47 int buf_num, enum hns_desc_type type, int mtu);
A Dhnae.h579 #define hnae_queue_xmit(q, buf_num) writel_relaxed(buf_num, \ argument
/linux-6.3-rc2/fs/btrfs/
A Dcompression.c1237 u64 buf_num; in radix_sort() local
1251 buf_num = array[i].count; in radix_sort()
1252 if (buf_num > max_num) in radix_sort()
1253 max_num = buf_num; in radix_sort()
1256 buf_num = ilog2(max_num); in radix_sort()
1264 buf_num = array[i].count; in radix_sort()
1265 addr = get4bits(buf_num, shift); in radix_sort()
1273 buf_num = array[i].count; in radix_sort()
1274 addr = get4bits(buf_num, shift); in radix_sort()
1291 buf_num = array_buf[i].count; in radix_sort()
[all …]
/linux-6.3-rc2/drivers/media/dvb-frontends/
A 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()
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()
333 &dev->dma_addr[dev->buf_num]); in rtl2832_sdr_alloc_stream_bufs()
334 if (!dev->buf_list[dev->buf_num]) { in rtl2832_sdr_alloc_stream_bufs()
336 dev->buf_num); in rtl2832_sdr_alloc_stream_bufs()
[all …]
/linux-6.3-rc2/drivers/media/usb/hackrf/
A 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()
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()
631 &dev->dma_addr[dev->buf_num]); in hackrf_alloc_stream_bufs()
632 if (!dev->buf_list[dev->buf_num]) { in hackrf_alloc_stream_bufs()
634 dev->buf_num); in hackrf_alloc_stream_bufs()
[all …]
/linux-6.3-rc2/drivers/media/platform/nxp/
A Dimx7-media-csi.c248 int buf_num; member
383 int buf_num) in imx7_csi_update_buf() argument
385 if (buf_num == 1) in imx7_csi_update_buf()
723 done = csi->active_vb2_buf[csi->buf_num]; in imx7_csi_vb2_buf_done()
737 csi->active_vb2_buf[csi->buf_num] = next; in imx7_csi_vb2_buf_done()
784 csi->buf_num = 0; in imx7_csi_irq_handler()
786 csi->buf_num = 1; in imx7_csi_irq_handler()
1333 int buf_num; in imx7_csi_fast_track_buffer() local
1372 buf_num = csi->buf_num; in imx7_csi_fast_track_buffer()
1373 if (csi->active_vb2_buf[buf_num]) { in imx7_csi_fast_track_buffer()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_main.c55 int buf_num; member
498 if (buf_num > bm_pool->buf_num) { in mvpp2_bm_bufs_free()
501 buf_num = bm_pool->buf_num; in mvpp2_bm_bufs_free()
533 int buf_num = 0; in mvpp2_check_hw_buf_num() local
541 if (buf_num) in mvpp2_check_hw_buf_num()
542 buf_num += 1; in mvpp2_check_hw_buf_num()
544 return buf_num; in mvpp2_check_hw_buf_num()
551 int buf_num; in mvpp2_bm_pool_destroy() local
559 if (buf_num) { in mvpp2_bm_pool_destroy()
1037 if (buf_num < 0 || in mvpp2_bm_bufs_add()
[all …]
/linux-6.3-rc2/include/video/
A 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-6.3-rc2/drivers/net/ethernet/marvell/
A 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-6.3-rc2/drivers/mtd/nand/raw/
A 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()
A 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-6.3-rc2/drivers/s390/scsi/
A 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-6.3-rc2/drivers/staging/media/meson/vdec/
A 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-6.3-rc2/drivers/gpu/ipu-v3/
A 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-6.3-rc2/drivers/dma/
A 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-6.3-rc2/drivers/gpu/drm/exynos/
A 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()
A 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()

Completed in 75 milliseconds

12