| /linux/net/core/ |
| H A D | hwbm.c | 46 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 D | usb-urb.c | 97 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 …]
|
| /linux/drivers/media/usb/dvb-usb-v2/ |
| H A D | usb_urb.c | 210 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 …]
|
| /linux/include/net/ |
| H A D | hwbm.h | 13 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/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_enet.c | 37 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 167 asid_bufnum_pid |= buf_num << HNS_TXD_BUFNUM_S; in fill_desc() 215 int buf_num; in hns_nic_maybe_stop_tx() local 218 buf_num = skb_shinfo(skb)->nr_frags + 1; in hns_nic_maybe_stop_tx() 220 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { in hns_nic_maybe_stop_tx() 230 buf_num = 1; in hns_nic_maybe_stop_tx() [all …]
|
| H A D | hns_enet.h | 47 int buf_num, enum hns_desc_type type, int mtu,
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | rtl2832_sdr.c | 129 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/fs/btrfs/ |
| H A D | compression.c | 1353 u64 buf_num; in radix_sort() local 1367 buf_num = array[i].count; in radix_sort() 1368 if (buf_num > max_num) in radix_sort() 1369 max_num = buf_num; in radix_sort() 1372 buf_num = ilog2(max_num); in radix_sort() 1373 bitlen = ALIGN(buf_num, RADIX_BASE * 2); in radix_sort() 1380 buf_num = array[i].count; in radix_sort() 1381 addr = get4bits(buf_num, shift); in radix_sort() 1389 buf_num = array[i].count; in radix_sort() 1390 addr = get4bits(buf_num, shift); in radix_sort() [all …]
|
| /linux/include/video/ |
| H A D | imx-ipu-v3.h | 226 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 D | fsl_elbc_nand.c | 158 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 D | fsl_ifc_nand.c | 145 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/staging/media/meson/vdec/ |
| H A D | codec_hevc_common.c | 62 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 D | ipu-common.c | 399 bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_buffer_is_ready() argument 406 switch (buf_num) { in ipu_idmac_buffer_is_ready() 423 void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_select_buffer() argument 432 if (buf_num == 0) in ipu_idmac_select_buffer() 441 void ipu_idmac_clear_buffer(struct ipuv3_channel *channel, u32 buf_num) in ipu_idmac_clear_buffer() argument 450 switch (buf_num) { in ipu_idmac_clear_buffer()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_gsc.c | 910 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 D | exynos_drm_fimc.c | 908 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 D | am65-cpsw-qos.c | 494 int buf_num) in am65_cpsw_port_est_assign_buf_num() argument 500 if (buf_num) in am65_cpsw_port_est_assign_buf_num()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_cmd.h | 87 __le16 buf_num[HCLGE_MAX_TC_NUM]; member
|
| H A D | hclge_debugfs.c | 1753 le16_to_cpu(rx_buf_cmd->buf_num[i])); in hclge_dbg_dump_rx_priv_buf_cfg()
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| H A D | mvpp2.h | 1511 int buf_num; member
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-mio-defs.h | 812 uint64_t buf_num:1; member 816 uint64_t buf_num:1;
|