Home
last modified time | relevance | path

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

/linux/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()
/linux/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 …]
H A Ddvb-usb.h349 int buf_num; member
/linux/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 …]
H A Ddvb_usb.h298 int buf_num; member
/linux/include/net/
H 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/fs/btrfs/
H A Dcompression.c1289 u64 buf_num; in radix_sort() local
1303 buf_num = array[i].count; in radix_sort()
1304 if (buf_num > max_num) in radix_sort()
1305 max_num = buf_num; in radix_sort()
1308 buf_num = ilog2(max_num); in radix_sort()
1309 bitlen = ALIGN(buf_num, RADIX_BASE * 2); in radix_sort()
1316 buf_num = array[i].count; in radix_sort()
1317 addr = get4bits(buf_num, shift); in radix_sort()
1325 buf_num = array[i].count; in radix_sort()
1326 addr = get4bits(buf_num, shift); in radix_sort()
[all …]
/linux/drivers/net/ethernet/marvell/mvpp2/
H A 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 …]
H A Dmvpp2.h1503 int buf_num; member
/linux/include/video/
H 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/drivers/mtd/nand/raw/
H 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()
H A Dfsl_ifc_nand.c145 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/drivers/s390/scsi/
H A Dzfcp_fc.c673 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/drivers/net/ethernet/hisilicon/hns/
H A Dhns_enet.h47 int buf_num, enum hns_desc_type type, int mtu,
/linux/drivers/staging/media/meson/vdec/
H 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/drivers/gpu/ipu-v3/
H 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/drivers/gpu/drm/exynos/
H A Dexynos_drm_gsc.c910 u32 cfg, i, buf_num = GSC_REG_SZ; in gsc_dst_get_buf_seq() local
917 buf_num--; in gsc_dst_get_buf_seq()
919 DRM_DEV_DEBUG_KMS(ctx->dev, "buf_num[%d]\n", buf_num); in gsc_dst_get_buf_seq()
921 return buf_num; in gsc_dst_get_buf_seq()
H 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()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-qos.c471 int buf_num) in am65_cpsw_port_est_assign_buf_num() argument
477 if (buf_num) in am65_cpsw_port_est_assign_buf_num()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_cmd.h87 __le16 buf_num[HCLGE_MAX_TC_NUM]; member
H A Dhclge_debugfs.c1921 le16_to_cpu(rx_buf_cmd->buf_num[i])); in hclge_dbg_dump_rx_priv_buf_cfg()
H A Dhclge_main.c2286 req->buf_num[i] = in hclge_rx_priv_buf_alloc()
2288 req->buf_num[i] |= in hclge_rx_priv_buf_alloc()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-mio-defs.h812 uint64_t buf_num:1; member
816 uint64_t buf_num:1;
/linux/drivers/net/ethernet/marvell/
H A Dmvneta.c1219 if (hwbm_pool->buf_num) { in mvneta_bm_update_mtu()