/linux/drivers/scsi/fnic/ |
A 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);
|
A D | vnic_wq.c | 41 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc_ring() argument 43 return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc_ring() 50 unsigned int i, j, count = wq->ring.desc_count; in vnic_wq_alloc_bufs() 103 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc() argument 118 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc() 133 unsigned int desc_count, unsigned int desc_size) in vnic_wq_devcmd2_alloc() argument 147 err = vnic_wq_alloc_ring(vdev, wq, desc_count, desc_size); in vnic_wq_devcmd2_alloc() 159 unsigned int count = wq->ring.desc_count; in vnic_wq_init_start() 185 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_init()
|
A 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()
|
A D | vnic_rq.c | 30 unsigned int i, j, count = rq->ring.desc_count; in vnic_rq_alloc_bufs() 83 unsigned int desc_count, unsigned int desc_size) in vnic_rq_alloc() argument 98 err = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size); in vnic_rq_alloc() 120 iowrite32(rq->ring.desc_count, &rq->ctrl->ring_size); in vnic_rq_init()
|
A D | vnic_wq_copy.c | 79 unsigned int index, unsigned int desc_count, in vnic_wq_copy_alloc() argument 93 return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_copy_alloc() 104 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_copy_init()
|
A D | vnic_wq.h | 107 return wq->ring.desc_count - wq->ring.desc_avail - 1; in vnic_wq_desc_used() 167 unsigned int desc_count, unsigned int desc_size); 169 unsigned int desc_count, unsigned int desc_size);
|
A D | vnic_dev.h | 105 unsigned int desc_count; member 118 unsigned int desc_count, 122 unsigned int desc_count, unsigned int desc_size);
|
A D | vnic_dev.c | 186 unsigned int desc_count, in vnic_dev_desc_ring_size() argument 200 if (desc_count == 0) in vnic_dev_desc_ring_size() 201 desc_count = 4096; in vnic_dev_desc_ring_size() 203 ring->desc_count = ALIGN(desc_count, count_align); in vnic_dev_desc_ring_size() 207 ring->size = ring->desc_count * ring->desc_size; in vnic_dev_desc_ring_size() 219 unsigned int desc_count, unsigned int desc_size) in vnic_dev_alloc_desc_ring() argument 221 vnic_dev_desc_ring_size(ring, desc_count, desc_size); in vnic_dev_alloc_desc_ring() 241 ring->desc_avail = ring->desc_count - 1; in vnic_dev_alloc_desc_ring()
|
A 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);
|
/linux/drivers/scsi/snic/ |
A D | vnic_wq.c | 37 unsigned int index, unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc_ring() argument 39 return svnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, in vnic_wq_alloc_ring() 46 unsigned int i, j, count = wq->ring.desc_count; in vnic_wq_alloc_bufs() 100 unsigned int desc_count, unsigned int desc_size) in vnic_wq_devcmd2_alloc() argument 116 err = vnic_wq_alloc_ring(vdev, wq, 0, desc_count, desc_size); in vnic_wq_devcmd2_alloc() 124 unsigned int index, unsigned int desc_count, unsigned int desc_size) in svnic_wq_alloc() argument 140 err = vnic_wq_alloc_ring(vdev, wq, index, desc_count, desc_size); in svnic_wq_alloc() 160 unsigned int count = wq->ring.desc_count; in vnic_wq_init_start()
|
A D | vnic_cq.c | 32 unsigned int index, unsigned int desc_count, unsigned int desc_size) in svnic_cq_alloc() argument 44 return svnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in svnic_cq_alloc() 57 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in svnic_cq_init()
|
A D | vnic_dev.c | 191 unsigned int desc_count, in svnic_dev_desc_ring_size() argument 205 if (desc_count == 0) in svnic_dev_desc_ring_size() 206 desc_count = 4096; in svnic_dev_desc_ring_size() 208 ring->desc_count = ALIGN(desc_count, count_align); in svnic_dev_desc_ring_size() 212 ring->size = ring->desc_count * ring->desc_size; in svnic_dev_desc_ring_size() 224 unsigned int desc_count, unsigned int desc_size) in svnic_dev_alloc_desc_ring() argument 226 svnic_dev_desc_ring_size(ring, desc_count, desc_size); in svnic_dev_alloc_desc_ring() 245 ring->desc_avail = ring->desc_count - 1; in svnic_dev_alloc_desc_ring()
|
A D | vnic_dev.h | 63 unsigned int desc_count; member 76 unsigned int desc_count, 80 unsigned int desc_count, unsigned int desc_size);
|
A D | vnic_wq.h | 94 return wq->ring.desc_count - wq->ring.desc_avail - 1; in svnic_wq_desc_used() 154 unsigned int index, unsigned int desc_count, unsigned int desc_size); 156 unsigned int desc_count, unsigned int desc_size);
|
A D | vnic_cq.h | 83 if (cq->to_clean == cq->ring.desc_count) { in svnic_cq_service() 103 unsigned int index, unsigned int desc_count, unsigned int desc_size);
|
/linux/drivers/net/ethernet/cisco/enic/ |
A D | vnic_rq.c | 34 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() 120 unsigned int count = rq->ring.desc_count; in vnic_rq_init_start() 189 unsigned int count = rq->ring.desc_count; in vnic_rq_clean() 194 for (i = 0; i < rq->ring.desc_count; i++) { in vnic_rq_clean() 198 rq->ring.desc_avail = rq->ring.desc_count - 1; in vnic_rq_clean()
|
A D | vnic_wq.c | 34 unsigned int i, j, count = wq->ring.desc_count; in vnic_wq_alloc_bufs() 89 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc() argument 104 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc() 118 unsigned int desc_count, unsigned int desc_size) in enic_wq_devcmd2_alloc() argument 129 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in enic_wq_devcmd2_alloc() 140 unsigned int count = wq->ring.desc_count; in enic_wq_init_start()
|
A D | vnic_cq.c | 37 unsigned int desc_count, unsigned int desc_size) in vnic_cq_alloc() argument 48 return vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in vnic_cq_alloc() 61 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
|
A D | vnic_wq.h | 112 return wq->ring.desc_count - wq->ring.desc_avail - 1; in vnic_wq_desc_used() 180 unsigned int desc_count, unsigned int desc_size); 190 unsigned int desc_count, unsigned int desc_size);
|
A 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);
|
A D | vnic_dev.c | 160 unsigned int desc_count, unsigned int desc_size) in vnic_dev_desc_ring_size() argument 173 if (desc_count == 0) in vnic_dev_desc_ring_size() 174 desc_count = 4096; in vnic_dev_desc_ring_size() 176 ring->desc_count = ALIGN(desc_count, count_align); in vnic_dev_desc_ring_size() 180 ring->size = ring->desc_count * ring->desc_size; in vnic_dev_desc_ring_size() 192 unsigned int desc_count, unsigned int desc_size) in vnic_dev_alloc_desc_ring() argument 194 vnic_dev_desc_ring_size(ring, desc_count, desc_size); in vnic_dev_alloc_desc_ring() 214 ring->desc_avail = ring->desc_count - 1; in vnic_dev_alloc_desc_ring()
|
/linux/fs/orangefs/ |
A D | orangefs-bufmap.c | 150 int desc_count; member 225 bufmap->desc_count = user_desc->count; in orangefs_bufmap_alloc() 230 kzalloc(DIV_ROUND_UP(bufmap->desc_count, BITS_PER_LONG), GFP_KERNEL); in orangefs_bufmap_alloc() 235 kcalloc(bufmap->desc_count, sizeof(struct orangefs_bufmap_desc), in orangefs_bufmap_alloc() 295 for (offset = 0, i = 0; i < bufmap->desc_count; i++) { in orangefs_bufmap_map() 382 bufmap->desc_count, in orangefs_bufmap_initialize()
|
/linux/fs/ext2/ |
A D | ialloc.c | 624 unsigned long desc_count = 0; in ext2_count_free_inodes() local 639 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes() 654 desc_count, bitmap_count); in ext2_count_free_inodes() 655 return desc_count; in ext2_count_free_inodes() 661 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes() 663 return desc_count; in ext2_count_free_inodes()
|
/linux/fs/ext4/ |
A D | balloc.c | 721 ext4_fsblk_t desc_count; in ext4_count_free_clusters() local 733 desc_count = 0; in ext4_count_free_clusters() 745 desc_count += ext4_free_group_clusters(sb, gdp); in ext4_count_free_clusters() 763 desc_count, bitmap_count); in ext4_count_free_clusters() 766 desc_count = 0; in ext4_count_free_clusters() 775 desc_count += ext4_free_group_clusters(sb, gdp); in ext4_count_free_clusters() 778 return desc_count; in ext4_count_free_clusters()
|
/linux/sound/firewire/motu/ |
A D | motu-command-dsp-message-parser.c | 84 unsigned int desc_count, unsigned int data_block_quadlets) in snd_motu_command_dsp_message_parser_parse() argument 93 for (i = 0; i < desc_count; ++i) { in snd_motu_command_dsp_message_parser_parse()
|