Home
last modified time | relevance | path

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

/drivers/media/usb/dvb-usb/
Dusb-urb.c96 while (stream->buf_num) { in usb_free_stream_buffers()
97 stream->buf_num--; in usb_free_stream_buffers()
98 deb_mem("freeing buffer %d\n",stream->buf_num); in usb_free_stream_buffers()
100 stream->buf_list[stream->buf_num], in usb_free_stream_buffers()
101 stream->dma_addr[stream->buf_num]); in usb_free_stream_buffers()
112 stream->buf_num = 0; in usb_allocate_stream_buffers()
117 for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) { in usb_allocate_stream_buffers()
118 deb_mem("allocating buffer %d\n",stream->buf_num); in usb_allocate_stream_buffers()
119 if (( stream->buf_list[stream->buf_num] = in usb_allocate_stream_buffers()
121 &stream->dma_addr[stream->buf_num]) ) == NULL) { in usb_allocate_stream_buffers()
[all …]
Ddvb-usb.h322 int buf_num; member
/drivers/media/usb/dvb-usb-v2/
Dusb_urb.c212 while (stream->buf_num) { in usb_free_stream_buffers()
213 stream->buf_num--; in usb_free_stream_buffers()
215 __func__, stream->buf_num); in usb_free_stream_buffers()
217 stream->buf_list[stream->buf_num], in usb_free_stream_buffers()
218 stream->dma_addr[stream->buf_num]); in usb_free_stream_buffers()
230 stream->buf_num = 0; in usb_alloc_stream_buffers()
237 for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) { in usb_alloc_stream_buffers()
238 stream->buf_list[stream->buf_num] = usb_alloc_coherent( in usb_alloc_stream_buffers()
240 &stream->dma_addr[stream->buf_num]); in usb_alloc_stream_buffers()
241 if (!stream->buf_list[stream->buf_num]) { in usb_alloc_stream_buffers()
[all …]
Ddvb_usb.h296 int buf_num; member
/drivers/media/usb/airspy/
Dairspy.c128 int buf_num; member
362 while (s->buf_num) { in airspy_free_stream_bufs()
363 s->buf_num--; in airspy_free_stream_bufs()
364 dev_dbg(s->dev, "free buf=%d\n", s->buf_num); in airspy_free_stream_bufs()
366 s->buf_list[s->buf_num], in airspy_free_stream_bufs()
367 s->dma_addr[s->buf_num]); in airspy_free_stream_bufs()
377 s->buf_num = 0; in airspy_alloc_stream_bufs()
383 for (s->buf_num = 0; s->buf_num < MAX_BULK_BUFS; s->buf_num++) { in airspy_alloc_stream_bufs()
384 s->buf_list[s->buf_num] = usb_alloc_coherent(s->udev, in airspy_alloc_stream_bufs()
386 &s->dma_addr[s->buf_num]); in airspy_alloc_stream_bufs()
[all …]
/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c44 int buf_num, enum hns_desc_type type, int mtu) in fill_v2_desc() argument
70 hnae_set_field(bn_pid, HNSV2_TXD_BUFNUM_M, 0, buf_num - 1); in fill_v2_desc()
144 int buf_num, enum hns_desc_type type, int mtu) in fill_desc() argument
165 asid_bufnum_pid |= buf_num << HNS_TXD_BUFNUM_S; in fill_desc()
213 int buf_num; in hns_nic_maybe_stop_tx() local
216 buf_num = skb_shinfo(skb)->nr_frags + 1; in hns_nic_maybe_stop_tx()
218 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tx()
228 buf_num = 1; in hns_nic_maybe_stop_tx()
229 } else if (buf_num > ring_space(ring)) { in hns_nic_maybe_stop_tx()
233 *bnum = buf_num; in hns_nic_maybe_stop_tx()
[all …]
Dhns_enet.h50 int buf_num, enum hns_desc_type type, int mtu);
Dhnae.h557 #define hnae_queue_xmit(q, buf_num) writel_relaxed(buf_num, \ argument
/drivers/media/usb/hackrf/
Dhackrf.c141 int buf_num; member
616 while (dev->buf_num) { in hackrf_free_stream_bufs()
617 dev->buf_num--; in hackrf_free_stream_bufs()
618 dev_dbg(dev->dev, "free buf=%d\n", dev->buf_num); in hackrf_free_stream_bufs()
620 dev->buf_list[dev->buf_num], in hackrf_free_stream_bufs()
621 dev->dma_addr[dev->buf_num]); in hackrf_free_stream_bufs()
631 dev->buf_num = 0; in hackrf_alloc_stream_bufs()
637 for (dev->buf_num = 0; dev->buf_num < MAX_BULK_BUFS; dev->buf_num++) { in hackrf_alloc_stream_bufs()
638 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in hackrf_alloc_stream_bufs()
640 &dev->dma_addr[dev->buf_num]); in hackrf_alloc_stream_bufs()
[all …]
/drivers/media/dvb-frontends/
Drtl2832_sdr.c145 int buf_num; member
323 while (dev->buf_num) { in rtl2832_sdr_free_stream_bufs()
324 dev->buf_num--; in rtl2832_sdr_free_stream_bufs()
325 dev_dbg(&pdev->dev, "free buf=%d\n", dev->buf_num); in rtl2832_sdr_free_stream_bufs()
327 dev->buf_list[dev->buf_num], in rtl2832_sdr_free_stream_bufs()
328 dev->dma_addr[dev->buf_num]); in rtl2832_sdr_free_stream_bufs()
340 dev->buf_num = 0; in rtl2832_sdr_alloc_stream_bufs()
346 for (dev->buf_num = 0; dev->buf_num < MAX_BULK_BUFS; dev->buf_num++) { in rtl2832_sdr_alloc_stream_bufs()
347 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in rtl2832_sdr_alloc_stream_bufs()
349 &dev->dma_addr[dev->buf_num]); in rtl2832_sdr_alloc_stream_bufs()
[all …]
/drivers/s390/scsi/
Dzfcp_fc.c596 static struct zfcp_fc_req *zfcp_alloc_sg_env(int buf_num) in zfcp_alloc_sg_env() argument
604 if (zfcp_sg_setup_table(&fc_req->sg_rsp, buf_num)) { in zfcp_alloc_sg_env()
731 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local
736 buf_num = chain ? ZFCP_FC_GPN_FT_NUM_BUFS : 1; in zfcp_fc_scan_ports()
747 fc_req = zfcp_alloc_sg_env(buf_num); in zfcp_fc_scan_ports()
761 zfcp_sg_free_table(&fc_req->sg_rsp, buf_num); in zfcp_fc_scan_ports()
/drivers/net/ethernet/marvell/
Dmvneta_bm.c227 for (i = 0; i < bm_pool->hwbm_pool.buf_num; i++) { in mvneta_bm_bufs_free()
252 bm_pool->hwbm_pool.buf_num -= i; in mvneta_bm_bufs_free()
268 if (hwbm_pool->buf_num) in mvneta_bm_pool_destroy()
Dmvpp2.c922 int buf_num; member
3403 bm_pool->buf_num = 0; in mvpp2_bm_pool_create()
3428 for (i = 0; i < bm_pool->buf_num; i++) { in mvpp2_bm_bufs_free()
3446 bm_pool->buf_num -= i; in mvpp2_bm_bufs_free()
3457 if (bm_pool->buf_num) { in mvpp2_bm_pool_destroy()
3632 struct mvpp2_bm_pool *bm_pool, int buf_num) in mvpp2_bm_bufs_add() argument
3642 if (buf_num < 0 || in mvpp2_bm_bufs_add()
3643 (buf_num + bm_pool->buf_num > bm_pool->size)) { in mvpp2_bm_bufs_add()
3646 buf_num, bm_pool->id); in mvpp2_bm_bufs_add()
3651 for (i = 0; i < buf_num; i++) { in mvpp2_bm_bufs_add()
[all …]
Dmvneta.c1037 if (hwbm_pool->buf_num) { in mvneta_bm_update_mtu()
/drivers/mtd/nand/
Dfsl_elbc_nand.c172 int buf_num; in set_addr() local
185 buf_num = (page_addr & 1) << 2; in set_addr()
195 buf_num = page_addr & 7; in set_addr()
198 elbc_fcm_ctrl->addr = priv->vbase + buf_num * 1024; in set_addr()
208 buf_num, elbc_fcm_ctrl->addr, priv->vbase, in set_addr()
Dfsl_ifc_nand.c157 int buf_num; in set_addr() local
164 buf_num = page_addr & priv->bufnum_mask; in set_addr()
166 ifc_nand_ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2); in set_addr()
/drivers/gpu/ipu-v3/
Dipu-common.c471 bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_buffer_is_ready() argument
478 switch (buf_num) { in ipu_idmac_buffer_is_ready()
495 void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_select_buffer() argument
504 if (buf_num == 0) in ipu_idmac_select_buffer()
513 void ipu_idmac_clear_buffer(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_clear_buffer() argument
522 switch (buf_num) { in ipu_idmac_clear_buffer()
/drivers/dma/
Dxgene-dma.c228 u8 buf_num; member
1266 XGENE_DMA_RING_NE_INT_MODE_SET(val, ring->buf_num); in xgene_dma_setup_ring()
1278 XGENE_DMA_RING_NE_INT_MODE_RESET(val, ring->buf_num); in xgene_dma_clear_ring()
1358 ring->id = XGENE_DMA_RING_ID_GET(ring->owner, ring->buf_num); in xgene_dma_create_ring_one()
1388 rx_ring->buf_num = XGENE_DMA_CPU_BUFNUM + chan->id; in xgene_dma_create_chan_rings()
1400 tx_ring->buf_num = XGENE_DMA_BUFNUM + chan->id; in xgene_dma_create_chan_rings()
/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c1100 u32 cfg, i, buf_num = GSC_REG_SZ; in gsc_dst_get_buf_seq() local
1107 buf_num--; in gsc_dst_get_buf_seq()
1109 DRM_DEBUG_KMS("buf_num[%d]\n", buf_num); in gsc_dst_get_buf_seq()
1111 return buf_num; in gsc_dst_get_buf_seq()
Dexynos_drm_fimc.c1089 u32 buf_num; in fimc_dst_set_buf_seq() local
1105 buf_num = hweight32(cfg); in fimc_dst_set_buf_seq()
1107 if (buf_type == IPP_BUF_ENQUEUE && buf_num >= FIMC_BUF_START) in fimc_dst_set_buf_seq()
1109 else if (buf_type == IPP_BUF_DEQUEUE && buf_num <= FIMC_BUF_STOP) in fimc_dst_set_buf_seq()