/linux-4.1.27/drivers/scsi/fnic/ |
D | vnic_wq_copy.h | 43 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);
|
D | vnic_cq.c | 32 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()
|
D | vnic_wq.c | 31 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()
|
D | vnic_wq_copy.c | 79 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()
|
D | vnic_rq.c | 31 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()
|
D | vnic_dev.c | 161 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()
|
D | vnic_dev.h | 104 unsigned int desc_count; member 117 unsigned int desc_count, 121 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_cq.h | 93 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service() 113 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_wq.h | 105 return wq->ring.desc_count - wq->ring.desc_avail - 1; in vnic_wq_desc_used() 165 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_rq.h | 114 return rq->ring.desc_count - rq->ring.desc_avail - 1; in vnic_rq_desc_used() 225 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_cq_copy.h | 45 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_copy_service()
|
D | fnic_scsi.c | 157 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/ |
D | vnic_rq.c | 33 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()
|
D | vnic_cq.c | 36 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()
|
D | vnic_wq.c | 33 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()
|
D | vnic_cq.h | 95 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service() 115 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_dev.c | 200 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()
|
D | vnic_wq.h | 100 return wq->ring.desc_count - wq->ring.desc_avail - 1; in vnic_wq_desc_used() 168 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_dev.h | 69 unsigned int desc_count; member 83 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_rq.h | 114 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/ |
D | ialloc.c | 648 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()
|
D | balloc.c | 1779 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/ |
D | ialloc.c | 618 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()
|
D | balloc.c | 1449 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/ |
D | balloc.c | 657 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()
|
D | ialloc.c | 1185 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/ |
D | solo6x10-p2m.c | 91 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()
|
D | solo6x10-v4l2-enc.c | 329 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()
|
D | solo6x10.h | 129 int desc_count; member 182 int desc_count; member
|
/linux-4.1.27/drivers/dma/ |
D | mxs-dma.c | 119 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/ |
D | adma.h | 117 int desc_count; member
|
D | adma.c | 3248 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/ |
D | be_cmds.c | 3505 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 …]
|
D | be_cmds.h | 2132 u32 desc_count; member 2152 __le16 desc_count; member 2161 u32 desc_count; member
|
/linux-4.1.27/drivers/soc/ti/ |
D | knav_qmss_acc.c | 81 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()
|
D | knav_qmss.h | 257 atomic_t desc_head, desc_tail, desc_count; member
|
D | knav_qmss_queue.c | 409 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/ |
D | hal2.c | 76 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/ |
D | bcmsysport.c | 699 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()
|
D | bcmsysport.h | 638 unsigned int desc_count; /* Number of descriptors */ member
|
/linux-4.1.27/drivers/tty/ |
D | synclink_gt.c | 217 #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/ |
D | netcp_core.c | 1185 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/ |
D | mvneta.c | 1624 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()
|
D | mv643xx_eth.c | 819 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()
|
D | mvpp2.c | 4203 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/ |
D | sd.c | 2559 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()
|