Home
last modified time | relevance | path

Searched refs:desc_count (Results 1 – 46 of 46) sorted by relevance

/linux-4.1.27/drivers/scsi/fnic/
Dvnic_wq_copy.h43 return wq->ring.desc_count - 1 - wq->ring.desc_avail; in vnic_wq_copy_desc_in_use()
55 ((wq->to_use_index + 1) == wq->ring.desc_count) ? in vnic_wq_copy_post()
76 cnt = wq->ring.desc_count - wq->to_clean_index + index + 1; in vnic_wq_copy_desc_process()
78 wq->to_clean_index = ((index + 1) % wq->ring.desc_count); in vnic_wq_copy_desc_process()
103 ((wq->to_clean_index + 1) == wq->ring.desc_count) ? in vnic_wq_copy_service()
120 unsigned int index, unsigned int desc_count, unsigned int desc_size);
Dvnic_cq.c32 unsigned int desc_count, unsigned int desc_size) in vnic_cq_alloc() argument
45 err = vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in vnic_cq_alloc()
62 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
Dvnic_wq.c31 unsigned int i, j, count = wq->ring.desc_count; in vnic_wq_alloc_bufs()
86 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc() argument
101 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc()
122 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_init()
Dvnic_wq_copy.c79 unsigned int index, unsigned int desc_count, in vnic_wq_copy_alloc() argument
95 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_copy_alloc()
110 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_copy_init()
Dvnic_rq.c31 unsigned int i, j, count = rq->ring.desc_count; in vnic_rq_alloc_bufs()
86 unsigned int desc_count, unsigned int desc_size) in vnic_rq_alloc() argument
101 err = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size); in vnic_rq_alloc()
123 iowrite32(rq->ring.desc_count, &rq->ctrl->ring_size); in vnic_rq_init()
Dvnic_dev.c161 unsigned int desc_count, in vnic_dev_desc_ring_size() argument
175 if (desc_count == 0) in vnic_dev_desc_ring_size()
176 desc_count = 4096; in vnic_dev_desc_ring_size()
178 ring->desc_count = ALIGN(desc_count, count_align); in vnic_dev_desc_ring_size()
182 ring->size = ring->desc_count * ring->desc_size; in vnic_dev_desc_ring_size()
194 unsigned int desc_count, unsigned int desc_size) in vnic_dev_alloc_desc_ring() argument
196 vnic_dev_desc_ring_size(ring, desc_count, desc_size); in vnic_dev_alloc_desc_ring()
216 ring->desc_avail = ring->desc_count - 1; in vnic_dev_alloc_desc_ring()
Dvnic_dev.h104 unsigned int desc_count; member
117 unsigned int desc_count,
121 unsigned int desc_count, unsigned int desc_size);
Dvnic_cq.h93 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service()
113 unsigned int desc_count, unsigned int desc_size);
Dvnic_wq.h105 return wq->ring.desc_count - wq->ring.desc_avail - 1; in vnic_wq_desc_used()
165 unsigned int desc_count, unsigned int desc_size);
Dvnic_rq.h114 return rq->ring.desc_count - rq->ring.desc_avail - 1; in vnic_rq_desc_used()
225 unsigned int desc_count, unsigned int desc_size);
Dvnic_cq_copy.h45 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_copy_service()
Dfnic_scsi.c157 wq->ring.desc_avail += (wq->ring.desc_count in free_wq_copy_descs()
167 (fnic->fw_ack_index[0] + 1) % wq->ring.desc_count; in free_wq_copy_descs()
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
Dvnic_rq.c33 unsigned int i, j, count = rq->ring.desc_count; in vnic_rq_alloc_bufs()
85 unsigned int desc_count, unsigned int desc_size) in vnic_rq_alloc() argument
100 err = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size); in vnic_rq_alloc()
119 unsigned int count = rq->ring.desc_count; in vnic_rq_init_start()
190 unsigned int count = rq->ring.desc_count; in vnic_rq_clean()
195 for (i = 0; i < rq->ring.desc_count; i++) { in vnic_rq_clean()
199 rq->ring.desc_avail = rq->ring.desc_count - 1; in vnic_rq_clean()
Dvnic_cq.c36 unsigned int desc_count, unsigned int desc_size) in vnic_cq_alloc() argument
49 err = vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in vnic_cq_alloc()
66 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
Dvnic_wq.c33 unsigned int i, j, count = wq->ring.desc_count; in vnic_wq_alloc_bufs()
88 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc() argument
103 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc()
122 unsigned int count = wq->ring.desc_count; in vnic_wq_init_start()
Dvnic_cq.h95 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service()
115 unsigned int desc_count, unsigned int desc_size);
Dvnic_dev.c200 unsigned int desc_count, unsigned int desc_size) in vnic_dev_desc_ring_size() argument
213 if (desc_count == 0) in vnic_dev_desc_ring_size()
214 desc_count = 4096; in vnic_dev_desc_ring_size()
216 ring->desc_count = ALIGN(desc_count, count_align); in vnic_dev_desc_ring_size()
220 ring->size = ring->desc_count * ring->desc_size; in vnic_dev_desc_ring_size()
232 unsigned int desc_count, unsigned int desc_size) in vnic_dev_alloc_desc_ring() argument
234 vnic_dev_desc_ring_size(ring, desc_count, desc_size); in vnic_dev_alloc_desc_ring()
253 ring->desc_avail = ring->desc_count - 1; in vnic_dev_alloc_desc_ring()
Dvnic_wq.h100 return wq->ring.desc_count - wq->ring.desc_avail - 1; in vnic_wq_desc_used()
168 unsigned int desc_count, unsigned int desc_size);
Dvnic_dev.h69 unsigned int desc_count; member
83 unsigned int desc_count, unsigned int desc_size);
Dvnic_rq.h114 return rq->ring.desc_count - rq->ring.desc_avail - 1; in vnic_rq_desc_used()
324 unsigned int desc_count, unsigned int desc_size);
/linux-4.1.27/fs/ext3/
Dialloc.c648 unsigned long desc_count; in ext3_count_free_inodes() local
657 desc_count = 0; in ext3_count_free_inodes()
664 desc_count += le16_to_cpu(gdp->bg_free_inodes_count); in ext3_count_free_inodes()
677 le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count); in ext3_count_free_inodes()
678 return desc_count; in ext3_count_free_inodes()
680 desc_count = 0; in ext3_count_free_inodes()
685 desc_count += le16_to_cpu(gdp->bg_free_inodes_count); in ext3_count_free_inodes()
688 return desc_count; in ext3_count_free_inodes()
Dballoc.c1779 ext3_fsblk_t desc_count; in ext3_count_free_blocks() local
1790 desc_count = 0; in ext3_count_free_blocks()
1799 desc_count += le16_to_cpu(gdp->bg_free_blocks_count); in ext3_count_free_blocks()
1814 desc_count, bitmap_count); in ext3_count_free_blocks()
1817 desc_count = 0; in ext3_count_free_blocks()
1823 desc_count += le16_to_cpu(gdp->bg_free_blocks_count); in ext3_count_free_blocks()
1826 return desc_count; in ext3_count_free_blocks()
/linux-4.1.27/fs/ext2/
Dialloc.c618 unsigned long desc_count = 0; in ext2_count_free_inodes() local
633 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes()
648 desc_count, bitmap_count); in ext2_count_free_inodes()
649 return desc_count; in ext2_count_free_inodes()
655 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes()
657 return desc_count; in ext2_count_free_inodes()
Dballoc.c1449 unsigned long desc_count = 0; in ext2_count_free_blocks() local
1456 desc_count = 0; in ext2_count_free_blocks()
1464 desc_count += le16_to_cpu(desc->bg_free_blocks_count); in ext2_count_free_blocks()
1477 desc_count, bitmap_count); in ext2_count_free_blocks()
1484 desc_count += le16_to_cpu(desc->bg_free_blocks_count); in ext2_count_free_blocks()
1486 return desc_count; in ext2_count_free_blocks()
/linux-4.1.27/fs/ext4/
Dballoc.c657 ext4_fsblk_t desc_count; in ext4_count_free_clusters() local
669 desc_count = 0; in ext4_count_free_clusters()
681 desc_count += ext4_free_group_clusters(sb, gdp); in ext4_count_free_clusters()
697 desc_count, bitmap_count); in ext4_count_free_clusters()
700 desc_count = 0; in ext4_count_free_clusters()
709 desc_count += ext4_free_group_clusters(sb, gdp); in ext4_count_free_clusters()
712 return desc_count; in ext4_count_free_clusters()
Dialloc.c1185 unsigned long desc_count; in ext4_count_free_inodes() local
1194 desc_count = 0; in ext4_count_free_inodes()
1201 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1216 le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count); in ext4_count_free_inodes()
1217 return desc_count; in ext4_count_free_inodes()
1219 desc_count = 0; in ext4_count_free_inodes()
1224 desc_count += ext4_free_inodes_count(sb, gdp); in ext4_count_free_inodes()
1227 return desc_count; in ext4_count_free_inodes()
/linux-4.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-p2m.c91 p2m_dev->desc_count = p2m_dev->desc_idx = 0; in solo_p2m_dma_desc()
100 p2m_dev->desc_count = desc_cnt; in solo_p2m_dma_desc()
175 if (p2m_dev->desc_count <= p2m_dev->desc_idx) { in solo_p2m_isr()
Dsolo6x10-v4l2-enc.c329 solo_enc->desc_count = 1; in solo_send_desc()
337 desc = &solo_enc->desc_items[solo_enc->desc_count++]; in solo_send_desc()
373 solo_enc->desc_count--; in solo_send_desc()
385 if (solo_enc->desc_count >= (solo_enc->desc_nelts - 1)) { in solo_send_desc()
388 solo_enc->desc_count - 1); in solo_send_desc()
391 solo_enc->desc_count = 1; in solo_send_desc()
395 if (solo_enc->desc_count <= 1) in solo_send_desc()
399 solo_enc->desc_dma, solo_enc->desc_count - 1); in solo_send_desc()
Dsolo6x10.h129 int desc_count; member
182 int desc_count; member
/linux-4.1.27/drivers/dma/
Dmxs-dma.c119 int desc_count; member
511 int idx = append ? mxs_chan->desc_count : 0; in mxs_dma_prep_slave_sg()
588 mxs_chan->desc_count = idx; in mxs_dma_prep_slave_sg()
653 mxs_chan->desc_count = i; in mxs_dma_prep_dma_cyclic()
682 last_ccw = &mxs_chan->ccw[mxs_chan->desc_count - 1]; in mxs_dma_tx_status()
/linux-4.1.27/drivers/dma/ppc4xx/
Dadma.h117 int desc_count; member
Dadma.c3248 cursor->desc_count++; in ppc440spe_adma_dma2rxor_inc_addr()
3265 for (i = 0; i < cursor->desc_count; i++) { in ppc440spe_adma_dma2rxor_prep_src()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c3505 static struct be_nic_res_desc *be_get_nic_desc(u8 *buf, u32 desc_count, in be_get_nic_desc() argument
3512 for (i = 0; i < desc_count; i++) { in be_get_nic_desc()
3528 static struct be_nic_res_desc *be_get_vft_desc(u8 *buf, u32 desc_count) in be_get_vft_desc() argument
3530 return be_get_nic_desc(buf, desc_count, VFT_DESC); in be_get_vft_desc()
3533 static struct be_nic_res_desc *be_get_func_nic_desc(u8 *buf, u32 desc_count) in be_get_func_nic_desc() argument
3535 return be_get_nic_desc(buf, desc_count, FUNC_DESC); in be_get_func_nic_desc()
3539 u32 desc_count) in be_get_pcie_desc() argument
3545 for (i = 0; i < desc_count; i++) { in be_get_pcie_desc()
3559 static struct be_port_res_desc *be_get_port_desc(u8 *buf, u32 desc_count) in be_get_port_desc() argument
3564 for (i = 0; i < desc_count; i++) { in be_get_port_desc()
[all …]
Dbe_cmds.h2132 u32 desc_count; member
2152 __le16 desc_count; member
2161 u32 desc_count; member
/linux-4.1.27/drivers/soc/ti/
Dknav_qmss_acc.c81 if (!enabled || atomic_read(&kq->desc_count) <= 0) in knav_acc_set_notify()
179 if (atomic_inc_return(&kq->desc_count) >= ACC_DESCS_MAX) { in knav_acc_int_handler()
180 atomic_dec(&kq->desc_count); in knav_acc_int_handler()
Dknav_qmss.h257 atomic_t desc_head, desc_tail, desc_count; member
Dknav_qmss_queue.c409 atomic_read(&inst->desc_count); in knav_queue_get_count()
492 atomic_set(&inst->desc_count, 0); in knav_queue_flush()
647 if (unlikely(atomic_dec_return(&inst->desc_count) < 0)) { in knav_queue_pop()
648 atomic_inc(&inst->desc_count); in knav_queue_pop()
/linux-4.1.27/sound/mips/
Dhal2.c76 int desc_count; member
483 codec->desc_count = count; in hal2_alloc_dmabuf()
489 dma_free_noncoherent(NULL, codec->desc_count * sizeof(struct hal2_desc), in hal2_free_dmabuf()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbcmsysport.c699 ring->desc_count++; in __bcm_sysport_tx_reclaim()
951 if (unlikely(ring->desc_count == 0)) { in bcm_sysport_xmit()
1011 ring->desc_count--; in bcm_sysport_xmit()
1025 if (ring->desc_count == 0) in bcm_sysport_xmit()
1029 ring->index, ring->desc_count, ring->curr_desc); in bcm_sysport_xmit()
1145 ring->desc_count = ring->size; in bcm_sysport_init_tx_ring()
Dbcmsysport.h638 unsigned int desc_count; /* Number of descriptors */ member
/linux-4.1.27/drivers/tty/
Dsynclink_gt.c217 #define desc_count(a) (le16_to_cpu((a).count)) macro
1870 count = desc_count(bufs[end]) - info->rbuf_index; in rx_async()
2286 if (!desc_count(info->tbufs[i])) in unsent_tbufs()
4056 if (desc_count(info->tbufs[info->tbuf_start])) { in tx_start()
4678 framesize += desc_count(info->rbufs[end]); in rx_get_frame()
4794 count = desc_count(info->rbufs[i]); in rx_get_buf()
4833 if (desc_count(info->tbufs[i])) in free_tbuf_count()
4871 count = desc_count(info->tbufs[i]); in tbuf_bytes()
5038 count = desc_count(info->rbufs[0]); in loopback_test_rx()
/linux-4.1.27/drivers/net/ethernet/ti/
Dnetcp_core.c1185 int desc_count, ret = 0; in netcp_ndo_start_xmit() local
1218 desc_count = knav_pool_count(netcp->tx_pool); in netcp_ndo_start_xmit()
1219 if (desc_count < netcp->tx_pause_threshold) { in netcp_ndo_start_xmit()
1220 dev_dbg(netcp->ndev_dev, "pausing tx, count(%d)\n", desc_count); in netcp_ndo_start_xmit()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmvneta.c1624 int desc_count = 0; in mvneta_tx_tso() local
1648 desc_count++; in mvneta_tx_tso()
1658 desc_count++; in mvneta_tx_tso()
1673 return desc_count; in mvneta_tx_tso()
1679 for (i = desc_count - 1; i >= 0; i--) { in mvneta_tx_tso()
Dmv643xx_eth.c819 int desc_count = 0; in txq_submit_tso() local
838 desc_count++; in txq_submit_tso()
847 desc_count++; in txq_submit_tso()
869 txq->tx_desc_count += desc_count; in txq_submit_tso()
Dmvpp2.c4203 int req, cpu, desc_count; in mvpp2_txq_reserved_desc_num_proc() local
4212 desc_count = 0; in mvpp2_txq_reserved_desc_num_proc()
4218 desc_count += txq_pcpu_aux->count; in mvpp2_txq_reserved_desc_num_proc()
4219 desc_count += txq_pcpu_aux->reserved_num; in mvpp2_txq_reserved_desc_num_proc()
4223 desc_count += req; in mvpp2_txq_reserved_desc_num_proc()
4225 if (desc_count > in mvpp2_txq_reserved_desc_num_proc()
/linux-4.1.27/drivers/scsi/
Dsd.c2559 unsigned int lba_count, desc_count; in sd_read_block_limits() local
2567 desc_count = get_unaligned_be32(&buffer[24]); in sd_read_block_limits()
2569 if (lba_count && desc_count) in sd_read_block_limits()