/linux-6.6.21/drivers/scsi/fnic/ |
D | vnic_wq_copy.h | 31 return wq->ring.desc_count - 1 - wq->ring.desc_avail; in vnic_wq_copy_desc_in_use() 43 ((wq->to_use_index + 1) == wq->ring.desc_count) ? in vnic_wq_copy_post() 64 cnt = wq->ring.desc_count - wq->to_clean_index + index + 1; in vnic_wq_copy_desc_process() 66 wq->to_clean_index = ((index + 1) % wq->ring.desc_count); in vnic_wq_copy_desc_process() 91 ((wq->to_clean_index + 1) == wq->ring.desc_count) ? in vnic_wq_copy_service() 108 unsigned int index, unsigned int desc_count, unsigned int desc_size);
|
D | vnic_wq.c | 29 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc_ring() argument 31 return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc_ring() 38 unsigned int i, j, count = wq->ring.desc_count; in vnic_wq_alloc_bufs() 91 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc() argument 106 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc() 121 unsigned int desc_count, unsigned int desc_size) in vnic_wq_devcmd2_alloc() argument 135 err = vnic_wq_alloc_ring(vdev, wq, desc_count, desc_size); in vnic_wq_devcmd2_alloc() 147 unsigned int count = wq->ring.desc_count; in vnic_wq_init_start() 173 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_init()
|
D | vnic_cq.c | 20 unsigned int desc_count, unsigned int desc_size) in vnic_cq_alloc() argument 33 err = vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in vnic_cq_alloc() 50 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
|
D | vnic_wq_copy.c | 67 unsigned int index, unsigned int desc_count, in vnic_wq_copy_alloc() argument 81 return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_copy_alloc() 92 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_copy_init()
|
D | vnic_rq.c | 18 unsigned int i, j, count = rq->ring.desc_count; in vnic_rq_alloc_bufs() 71 unsigned int desc_count, unsigned int desc_size) in vnic_rq_alloc() argument 86 err = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size); in vnic_rq_alloc() 108 iowrite32(rq->ring.desc_count, &rq->ctrl->ring_size); in vnic_rq_init()
|
D | vnic_wq.h | 95 return wq->ring.desc_count - wq->ring.desc_avail - 1; in vnic_wq_desc_used() 155 unsigned int desc_count, unsigned int desc_size); 157 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_dev.h | 93 unsigned int desc_count; member 106 unsigned int desc_count, 110 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_dev.c | 174 unsigned int desc_count, in vnic_dev_desc_ring_size() argument 188 if (desc_count == 0) in vnic_dev_desc_ring_size() 189 desc_count = 4096; in vnic_dev_desc_ring_size() 191 ring->desc_count = ALIGN(desc_count, count_align); in vnic_dev_desc_ring_size() 195 ring->size = ring->desc_count * ring->desc_size; in vnic_dev_desc_ring_size() 207 unsigned int desc_count, unsigned int desc_size) in vnic_dev_alloc_desc_ring() argument 209 vnic_dev_desc_ring_size(ring, desc_count, desc_size); in vnic_dev_alloc_desc_ring() 229 ring->desc_avail = ring->desc_count - 1; in vnic_dev_alloc_desc_ring()
|
D | vnic_cq.h | 81 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service() 101 unsigned int desc_count, unsigned int desc_size);
|
/linux-6.6.21/drivers/scsi/snic/ |
D | vnic_wq.c | 23 unsigned int index, unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc_ring() argument 25 return svnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, in vnic_wq_alloc_ring() 32 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_devcmd2_alloc() argument 102 err = vnic_wq_alloc_ring(vdev, wq, 0, desc_count, desc_size); in vnic_wq_devcmd2_alloc() 110 unsigned int index, unsigned int desc_count, unsigned int desc_size) in svnic_wq_alloc() argument 126 err = vnic_wq_alloc_ring(vdev, wq, index, desc_count, desc_size); in svnic_wq_alloc() 146 unsigned int count = wq->ring.desc_count; in vnic_wq_init_start()
|
D | vnic_cq.c | 18 unsigned int index, unsigned int desc_count, unsigned int desc_size) in svnic_cq_alloc() argument 30 return svnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in svnic_cq_alloc() 43 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in svnic_cq_init()
|
D | vnic_dev.h | 49 unsigned int desc_count; member 62 unsigned int desc_count, 66 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_dev.c | 177 unsigned int desc_count, in svnic_dev_desc_ring_size() argument 191 if (desc_count == 0) in svnic_dev_desc_ring_size() 192 desc_count = 4096; in svnic_dev_desc_ring_size() 194 ring->desc_count = ALIGN(desc_count, count_align); in svnic_dev_desc_ring_size() 198 ring->size = ring->desc_count * ring->desc_size; in svnic_dev_desc_ring_size() 210 unsigned int desc_count, unsigned int desc_size) in svnic_dev_alloc_desc_ring() argument 212 svnic_dev_desc_ring_size(ring, desc_count, desc_size); in svnic_dev_alloc_desc_ring() 231 ring->desc_avail = ring->desc_count - 1; in svnic_dev_alloc_desc_ring()
|
D | vnic_wq.h | 80 return wq->ring.desc_count - wq->ring.desc_avail - 1; in svnic_wq_desc_used() 140 unsigned int index, unsigned int desc_count, unsigned int desc_size); 142 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_cq.h | 69 if (cq->to_clean == cq->ring.desc_count) { in svnic_cq_service() 89 unsigned int index, unsigned int desc_count, unsigned int desc_size);
|
/linux-6.6.21/drivers/net/ethernet/cisco/enic/ |
D | vnic_rq.c | 21 unsigned int i, j, count = rq->ring.desc_count; in vnic_rq_alloc_bufs() 73 unsigned int desc_count, unsigned int desc_size) in vnic_rq_alloc() argument 88 err = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size); in vnic_rq_alloc() 107 unsigned int count = rq->ring.desc_count; in vnic_rq_init_start() 176 unsigned int count = rq->ring.desc_count; in vnic_rq_clean() 181 for (i = 0; i < rq->ring.desc_count; i++) { in vnic_rq_clean() 185 rq->ring.desc_avail = rq->ring.desc_count - 1; in vnic_rq_clean()
|
D | vnic_wq.c | 21 unsigned int i, j, count = wq->ring.desc_count; in vnic_wq_alloc_bufs() 76 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc() argument 91 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc() 105 unsigned int desc_count, unsigned int desc_size) in enic_wq_devcmd2_alloc() argument 116 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in enic_wq_devcmd2_alloc() 127 unsigned int count = wq->ring.desc_count; in enic_wq_init_start()
|
D | vnic_cq.c | 24 unsigned int desc_count, unsigned int desc_size) in vnic_cq_alloc() argument 35 return vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in vnic_cq_alloc() 48 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
|
D | vnic_wq.h | 99 return wq->ring.desc_count - wq->ring.desc_avail - 1; in vnic_wq_desc_used() 167 unsigned int desc_count, unsigned int desc_size); 177 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_cq.h | 82 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service() 102 unsigned int desc_count, unsigned int desc_size);
|
D | vnic_rq.h | 93 return rq->ring.desc_count - rq->ring.desc_avail - 1; in vnic_rq_desc_used() 196 unsigned int desc_count, unsigned int desc_size);
|
/linux-6.6.21/sound/soc/sof/amd/ |
D | acp.c | 143 unsigned int desc_count, index; in configure_and_run_dma() local 146 for (desc_count = 0; desc_count < ACP_MAX_DESC && dsp_data_size >= 0; in configure_and_run_dma() 147 desc_count++, dsp_data_size -= ACP_PAGE_SIZE) { in configure_and_run_dma() 148 adata->dscr_info[desc_count].src_addr = src_addr + desc_count * ACP_PAGE_SIZE; in configure_and_run_dma() 149 adata->dscr_info[desc_count].dest_addr = dest_addr + desc_count * ACP_PAGE_SIZE; in configure_and_run_dma() 150 adata->dscr_info[desc_count].tx_cnt.bits.count = ACP_PAGE_SIZE; in configure_and_run_dma() 152 adata->dscr_info[desc_count].tx_cnt.bits.count = dsp_data_size; in configure_and_run_dma() 155 ret = acpbus_dma_start(adata, 0, desc_count, adata->dscr_info); in configure_and_run_dma() 160 for (index = 0; index < desc_count; index++) in configure_and_run_dma()
|
/linux-6.6.21/fs/orangefs/ |
D | orangefs-bufmap.c | 150 int desc_count; member 225 bufmap->desc_count = user_desc->count; in orangefs_bufmap_alloc() 229 bufmap->buffer_index_array = bitmap_zalloc(bufmap->desc_count, GFP_KERNEL); in orangefs_bufmap_alloc() 234 kcalloc(bufmap->desc_count, sizeof(struct orangefs_bufmap_desc), in orangefs_bufmap_alloc() 294 for (offset = 0, i = 0; i < bufmap->desc_count; i++) { in orangefs_bufmap_map() 381 bufmap->desc_count, in orangefs_bufmap_initialize()
|
/linux-6.6.21/fs/ext2/ |
D | ialloc.c | 615 unsigned long desc_count = 0; in ext2_count_free_inodes() local 630 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes() 645 desc_count, bitmap_count); in ext2_count_free_inodes() 646 return desc_count; in ext2_count_free_inodes() 652 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes() 654 return desc_count; in ext2_count_free_inodes()
|
/linux-6.6.21/fs/ext4/ |
D | balloc.c | 764 ext4_fsblk_t desc_count; in ext4_count_free_clusters() local 776 desc_count = 0; in ext4_count_free_clusters() 788 desc_count += ext4_free_group_clusters(sb, gdp); in ext4_count_free_clusters() 806 desc_count, bitmap_count); in ext4_count_free_clusters() 809 desc_count = 0; in ext4_count_free_clusters() 818 desc_count += ext4_free_group_clusters(sb, gdp); in ext4_count_free_clusters() 821 return desc_count; in ext4_count_free_clusters()
|