/linux-master/net/core/ |
H A D | hwbm.c | 46 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num) argument 51 if (bm_pool->buf_num == bm_pool->size) { 54 return bm_pool->buf_num; 57 if (buf_num + bm_pool->buf_num > bm_pool->size) { 59 buf_num); 64 if ((buf_num + bm_pool->buf_num) < bm_pool->buf_num) { 66 buf_num, bm_poo [all...] |
/linux-master/include/net/ |
H A D | hwbm.h | 13 int buf_num; member in struct:hwbm_pool 24 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num); 32 unsigned int buf_num) 31 hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num) argument
|
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | usb-urb.c | 97 while (stream->buf_num) { 98 stream->buf_num--; 99 deb_mem("freeing buffer %d\n",stream->buf_num); 101 stream->buf_list[stream->buf_num], 102 stream->dma_addr[stream->buf_num]); 113 stream->buf_num = 0; 118 for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) { 119 deb_mem("allocating buffer %d\n",stream->buf_num); [all...] |
H A D | dvb-usb.h | 328 * @buf_num: number of buffer allocated. 349 int buf_num; member in struct:usb_data_stream
|
/linux-master/drivers/media/usb/dvb-usb-v2/ |
H A D | usb_urb.c | 210 while (stream->buf_num) { 211 stream->buf_num--; 212 kfree(stream->buf_list[stream->buf_num]); 224 stream->buf_num = 0; 231 for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) { 232 stream->buf_list[stream->buf_num] = kzalloc(size, GFP_ATOMIC); 233 if (!stream->buf_list[stream->buf_num]) { 235 __func__, stream->buf_num); [all...] |
H A D | dvb_usb.h | 277 * @buf_num: number of buffer allocated 298 int buf_num; member in struct:usb_data_stream
|
/linux-master/drivers/media/usb/airspy/ |
H A D | airspy.c | 117 int buf_num; member in struct:airspy 351 while (s->buf_num) { 352 s->buf_num--; 353 dev_dbg(s->dev, "free buf=%d\n", s->buf_num); 355 s->buf_list[s->buf_num], 356 s->dma_addr[s->buf_num]); 366 s->buf_num = 0; 372 for (s->buf_num = 0; s->buf_num < MAX_BULK_BUFS; s->buf_num [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_enet.h | 47 int buf_num, enum hns_desc_type type, int mtu,
|
H A D | hns_enet.c | 37 int buf_num, enum hns_desc_type type, int mtu) 63 hnae_set_field(bn_pid, HNSV2_TXD_BUFNUM_M, 0, buf_num - 1); 130 int buf_num, enum hns_desc_type type, int mtu) 133 buf_num, type, mtu); 145 int buf_num, enum hns_desc_type type, int mtu, 167 asid_bufnum_pid |= buf_num << HNS_TXD_BUFNUM_S; 215 int buf_num; local 218 buf_num = skb_shinfo(skb)->nr_frags + 1; 220 if (unlikely(buf_num > ring->max_desc_num_per_pkt)) { 230 buf_num 35 fill_v2_desc_hw(struct hnae_ring *ring, void *priv, int size, int send_sz, dma_addr_t dma, int frag_end, int buf_num, enum hns_desc_type type, int mtu) argument 128 fill_v2_desc(struct hnae_ring *ring, void *priv, int size, dma_addr_t dma, int frag_end, int buf_num, enum hns_desc_type type, int mtu) argument 143 fill_desc(struct hnae_ring *ring, void *priv, int size, dma_addr_t dma, int frag_end, int buf_num, enum hns_desc_type type, int mtu, bool is_gso) argument 244 int buf_num; local 288 fill_tso_desc(struct hnae_ring *ring, void *priv, int size, dma_addr_t dma, int frag_end, int buf_num, enum hns_desc_type type, int mtu) argument 313 fill_desc_v2(struct hnae_ring *ring, void *priv, int size, dma_addr_t dma, int frag_end, int buf_num, enum hns_desc_type type, int mtu, bool is_gso) argument 335 int buf_num; local [all...] |
H A D | hnae.h | 579 #define hnae_queue_xmit(q, buf_num) writel_relaxed(buf_num, \
|
/linux-master/fs/btrfs/ |
H A D | compression.c | 1259 u64 buf_num; local 1273 buf_num = array[i].count; 1274 if (buf_num > max_num) 1275 max_num = buf_num; 1278 buf_num = ilog2(max_num); 1279 bitlen = ALIGN(buf_num, RADIX_BASE * 2); 1286 buf_num = array[i].count; 1287 addr = get4bits(buf_num, shift); 1295 buf_num = array[i].count; 1296 addr = get4bits(buf_num, shif [all...] |
/linux-master/drivers/media/usb/hackrf/ |
H A D | hackrf.c | 132 int buf_num; member in struct:hackrf_dev 607 while (dev->buf_num) { 608 dev->buf_num--; 609 dev_dbg(dev->dev, "free buf=%d\n", dev->buf_num); 611 dev->buf_list[dev->buf_num], 612 dev->dma_addr[dev->buf_num]); 622 dev->buf_num = 0; 628 for (dev->buf_num = 0; dev->buf_num < MAX_BULK_BUFS; dev->buf_num [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | rtl2832_sdr.c | 129 int buf_num; member in struct:rtl2832_sdr_dev 307 while (dev->buf_num) { 308 dev->buf_num--; 309 dev_dbg(&pdev->dev, "free buf=%d\n", dev->buf_num); 311 dev->buf_list[dev->buf_num], 312 dev->dma_addr[dev->buf_num]); 324 dev->buf_num = 0; 330 for (dev->buf_num = 0; dev->buf_num < MAX_BULK_BUFS; dev->buf_num [all...] |
/linux-master/drivers/media/platform/nxp/ |
H A D | imx7-media-csi.c | 265 int buf_num; member in struct:imx7_csi 400 int buf_num) 402 if (buf_num == 1) 740 done = csi->active_vb2_buf[csi->buf_num]; 754 csi->active_vb2_buf[csi->buf_num] = next; 757 csi->active_vb2_buf[csi->buf_num] = NULL; 760 imx7_csi_update_buf(csi, dma_addr, csi->buf_num); 801 csi->buf_num = 0; 803 csi->buf_num = 1; 1321 int buf_num; local 399 imx7_csi_update_buf(struct imx7_csi *csi, dma_addr_t dma_addr, int buf_num) argument [all...] |
/linux-master/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-master/drivers/net/ethernet/marvell/ |
H A D | mvneta_bm.c | 228 for (i = 0; i < bm_pool->hwbm_pool.buf_num; i++) { 253 bm_pool->hwbm_pool.buf_num -= i; 269 if (hwbm_pool->buf_num)
|
/linux-master/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); local 102 for (i = buf_num; i < MAX_REF_PIC_NUM; ++i)
|
/linux-master/drivers/s390/scsi/ |
H A D | zfcp_fc.c | 673 static struct zfcp_fc_req *zfcp_fc_alloc_sg_env(int buf_num) argument 681 if (zfcp_fc_sg_setup_table(&fc_req->sg_rsp, buf_num)) { 809 int chain, max_entries, buf_num, max_bytes; local 814 buf_num = chain ? ZFCP_FC_GPN_FT_NUM_BUFS : 1; 825 fc_req = zfcp_fc_alloc_sg_env(buf_num); 839 zfcp_fc_sg_free_table(&fc_req->sg_rsp, buf_num);
|
/linux-master/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 55 int buf_num; member in struct:__anon127 443 bm_pool->buf_num = 0; 493 struct mvpp2_bm_pool *bm_pool, int buf_num) 498 if (buf_num > bm_pool->buf_num) { 500 bm_pool->id, buf_num); 501 buf_num = bm_pool->buf_num; 507 for (i = 0; i < buf_num; i++) { 527 bm_pool->buf_num 492 mvpp2_bm_bufs_free(struct device *dev, struct mvpp2 *priv, struct mvpp2_bm_pool *bm_pool, int buf_num) argument 533 int buf_num = 0; local 551 int buf_num; local 1043 mvpp2_bm_bufs_add(struct mvpp2_port *port, struct mvpp2_bm_pool *bm_pool, int buf_num) argument [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | fsl_elbc_nand.c | 158 int buf_num; local 171 buf_num = (page_addr & 1) << 2; 181 buf_num = page_addr & 7; 184 elbc_fcm_ctrl->addr = priv->vbase + buf_num * 1024; 194 buf_num, elbc_fcm_ctrl->addr, priv->vbase,
|
H A D | fsl_ifc_nand.c | 145 int buf_num; local 152 buf_num = page_addr & priv->bufnum_mask; 154 ifc_nand_ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2);
|
/linux-master/drivers/gpu/ipu-v3/ |
H A D | ipu-common.c | 431 bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num) argument 438 switch (buf_num) { 455 void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num) argument 464 if (buf_num == 0) 473 void ipu_idmac_clear_buffer(struct ipuv3_channel *channel, u32 buf_num) argument 482 switch (buf_num) {
|
/linux-master/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gsc.c | 910 u32 cfg, i, buf_num = GSC_REG_SZ; local 917 buf_num--; 919 DRM_DEV_DEBUG_KMS(ctx->dev, "buf_num[%d]\n", buf_num); 921 return buf_num;
|
H A D | exynos_drm_fimc.c | 908 u32 buf_num; local 924 buf_num = hweight32(cfg); 926 if (enqueue && buf_num >= FIMC_BUF_START) 928 else if (!enqueue && buf_num <= FIMC_BUF_STOP)
|
/linux-master/drivers/dma/ |
H A D | xgene-dma.c | 217 u8 buf_num; member in struct:xgene_dma_ring 1102 XGENE_DMA_RING_NE_INT_MODE_SET(val, ring->buf_num); 1114 XGENE_DMA_RING_NE_INT_MODE_RESET(val, ring->buf_num); 1194 ring->id = XGENE_DMA_RING_ID_GET(ring->owner, ring->buf_num); 1224 rx_ring->buf_num = XGENE_DMA_CPU_BUFNUM + chan->id; 1236 tx_ring->buf_num = XGENE_DMA_BUFNUM + chan->id;
|