Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/net/core/
H 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()
/OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb/
H 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()
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 …]
/OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb-v2/
H 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 …]
/OK3568_Linux_fs/kernel/include/net/
H A Dhwbm.h11 int buf_num; member
22 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num);
30 unsigned int buf_num) in hwbm_pool_add() argument
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dsubdev-itf.c250 ret = rkcif_init_rx_buf(&cif_dev->stream[0], priv->buf_num); in sditf_init_buf()
253 ret |= rkcif_init_rx_buf(&cif_dev->stream[1], priv->buf_num); in sditf_init_buf()
255 ret = rkcif_init_rx_buf(&cif_dev->stream[0], priv->buf_num); in sditf_init_buf()
261 ret = rkcif_init_rx_buf(&cif_dev->stream[0], priv->buf_num); in sditf_init_buf()
264 ret |= rkcif_init_rx_buf(&cif_dev->stream[1], priv->buf_num); in sditf_init_buf()
267 ret |= rkcif_init_rx_buf(&cif_dev->stream[2], priv->buf_num); in sditf_init_buf()
269 ret = rkcif_init_rx_buf(&cif_dev->stream[0], priv->buf_num); in sditf_init_buf()
270 ret |= rkcif_init_rx_buf(&cif_dev->stream[1], priv->buf_num); in sditf_init_buf()
274 ret = rkcif_init_rx_buf(&cif_dev->stream[0], priv->buf_num); in sditf_init_buf()
286 rkcif_free_rx_buf(&cif_dev->stream[0], priv->buf_num); in sditf_free_buf()
[all …]
H A Dsubdev-itf.h77 int buf_num; member
/OK3568_Linux_fs/kernel/drivers/media/usb/airspy/
H 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()
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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns/
H A Dhns_enet.c39 int buf_num, enum hns_desc_type type, int mtu) in fill_v2_desc_hw() argument
65 hnae_set_field(bn_pid, HNSV2_TXD_BUFNUM_M, 0, buf_num - 1); in fill_v2_desc_hw()
132 int buf_num, enum hns_desc_type type, int mtu) in fill_v2_desc() argument
135 buf_num, type, mtu); in fill_v2_desc()
147 int buf_num, enum hns_desc_type type, int mtu) in fill_desc() argument
168 asid_bufnum_pid |= buf_num << HNS_TXD_BUFNUM_S; in fill_desc()
216 int buf_num; in hns_nic_maybe_stop_tx() local
219 buf_num = skb_shinfo(skb)->nr_frags + 1; in hns_nic_maybe_stop_tx()
221 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tx()
231 buf_num = 1; in hns_nic_maybe_stop_tx()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/usb/hackrf/
H 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()
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 …]
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/
H 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()
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 …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hci/
H A Dphl_trx_pcie.c468 u16 i = 0, buf_num = 0; in _phl_free_h2c_work_ring() local
470 buf_num = hal_spec->txbd_multi_tag; in _phl_free_h2c_work_ring()
473 for (i = 0; i < buf_num; i++) { in _phl_free_h2c_work_ring()
482 buf_num * sizeof(*h2c_work->cmd)); in _phl_free_h2c_work_ring()
485 for (i = 0; i < buf_num; i++) { in _phl_free_h2c_work_ring()
494 buf_num * sizeof(*h2c_work->data)); in _phl_free_h2c_work_ring()
497 for (i = 0; i < buf_num; i++) { in _phl_free_h2c_work_ring()
506 buf_num * sizeof(*h2c_work->ldata)); in _phl_free_h2c_work_ring()
511 buf_num * sizeof(struct rtw_h2c_pkt *)); in _phl_free_h2c_work_ring()
515 buf_num * sizeof(struct rtw_h2c_pkt *)); in _phl_free_h2c_work_ring()
[all …]
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dcompression.c1404 u64 buf_num; in radix_sort() local
1418 buf_num = array[i].count; in radix_sort()
1419 if (buf_num > max_num) in radix_sort()
1420 max_num = buf_num; in radix_sort()
1423 buf_num = ilog2(max_num); in radix_sort()
1424 bitlen = ALIGN(buf_num, RADIX_BASE * 2); in radix_sort()
1431 buf_num = array[i].count; in radix_sort()
1432 addr = get4bits(buf_num, shift); in radix_sort()
1440 buf_num = array[i].count; in radix_sort()
1441 addr = get4bits(buf_num, shift); in radix_sort()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/hwi/isp20/
H A DTnrStatsStream.cpp129 LOGD("tnr buf_num=%d",isppbuf_fd.buf_num); in init_tnrbuf()
130 for (uint32_t i=0; i<isppbuf_fd.buf_num; i++) { in init_tnrbuf()
141 _buf_num = isppbuf_fd.buf_num; in init_tnrbuf()
H A DNrStatsStream.cpp136 LOGD("%s: buf_num=%d",__FUNCTION__, isppbuf_fd.buf_num); in init_nrbuf_fd()
137 _buf_num = isppbuf_fd.buf_num; in init_nrbuf_fd()
138 for (uint32_t i=0; i<isppbuf_fd.buf_num; i++) { in init_nrbuf_fd()
H A DSPStreamProcUnit.cpp237 LOGD(" fbc buf num=%d",ispbuf_fd.buf_num); in init_fbcbuf_fd()
238 for (uint32_t i = 0; i < ispbuf_fd.buf_num; i++) { in init_fbcbuf_fd()
/OK3568_Linux_fs/kernel/drivers/staging/media/imx/
H A Dimx7-media-csi.c186 int buf_num; member
541 int buf_num) in imx7_csi_update_buf() argument
543 if (buf_num == 1) in imx7_csi_update_buf()
597 done = csi->active_vb2_buf[csi->buf_num]; in imx7_csi_vb2_buf_done()
611 csi->active_vb2_buf[csi->buf_num] = next; in imx7_csi_vb2_buf_done()
614 csi->active_vb2_buf[csi->buf_num] = NULL; in imx7_csi_vb2_buf_done()
617 imx7_csi_update_buf(csi, phys, csi->buf_num); in imx7_csi_vb2_buf_done()
658 csi->buf_num = 0; in imx7_csi_irq_handler()
660 csi->buf_num = 1; in imx7_csi_irq_handler()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c55 int buf_num; member
420 bm_pool->buf_num = 0; in mvpp2_bm_pool_create()
470 struct mvpp2_bm_pool *bm_pool, int buf_num) in mvpp2_bm_bufs_free() argument
475 if (buf_num > bm_pool->buf_num) { in mvpp2_bm_bufs_free()
477 bm_pool->id, buf_num); in mvpp2_bm_bufs_free()
478 buf_num = bm_pool->buf_num; in mvpp2_bm_bufs_free()
484 for (i = 0; i < buf_num; i++) { in mvpp2_bm_bufs_free()
504 bm_pool->buf_num -= i; in mvpp2_bm_bufs_free()
510 int buf_num = 0; in mvpp2_check_hw_buf_num() local
512 buf_num += mvpp2_read(priv, MVPP2_BM_POOL_PTRS_NUM_REG(bm_pool->id)) & in mvpp2_check_hw_buf_num()
[all …]
/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dfsl_elbc_nand.c161 int buf_num; in set_addr() local
170 buf_num = (page_addr & 1) << 2; in set_addr()
176 buf_num = page_addr & 7; in set_addr()
179 ctrl->addr = priv->vbase + buf_num * 1024; in set_addr()
188 buf_num, ctrl->addr, priv->vbase, ctrl->index, in set_addr()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/algos/aorb/
H A Drk_aiq_types_orb_algo.h29 int buf_num; member
/OK3568_Linux_fs/kernel/include/video/
H A Dimx-ipu-v3.h225 bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num);
226 void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num);
227 void ipu_idmac_clear_buffer(struct ipuv3_channel *channel, u32 buf_num);
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/
H 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()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/vehicle/
H A Dvehicle_cfg.h137 unsigned int buf_num; member
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Dfsl_elbc_nand.c159 int buf_num; in set_addr() local
172 buf_num = (page_addr & 1) << 2; in set_addr()
182 buf_num = page_addr & 7; in set_addr()
185 elbc_fcm_ctrl->addr = priv->vbase + buf_num * 1024; in set_addr()
195 buf_num, elbc_fcm_ctrl->addr, priv->vbase, in set_addr()
/OK3568_Linux_fs/kernel/drivers/s390/scsi/
H 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()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Dbridge.c107 for (i = 0; i < dev->buf_num; i++) { in init_buf()
214 dev->work_mode, dev->buf_num); in config_mode()
460 dev->buf_num = mode->buf_num; in bridge_ioctl()

123