Home
last modified time | relevance | path

Searched refs:desc_size (Results 1 – 25 of 61) sorted by relevance

123

/drivers/firmware/efi/libstub/
Dfdt.c24 unsigned long map_size, unsigned long desc_size, in update_fdt() argument
138 fdt_val32 = cpu_to_fdt32(desc_size); in update_fdt()
195 unsigned long map_size, desc_size; in allocate_new_fdt_and_exit_boot() local
210 &desc_size, &desc_ver, &mmap_key); in allocate_new_fdt_and_exit_boot()
239 &desc_size, &desc_ver, &mmap_key); in allocate_new_fdt_and_exit_boot()
247 memory_map, map_size, desc_size, desc_ver); in allocate_new_fdt_and_exit_boot()
275 efi_get_virtmap(memory_map, map_size, desc_size, runtime_map, in allocate_new_fdt_and_exit_boot()
286 status = svam(runtime_entry_count * desc_size, desc_size, in allocate_new_fdt_and_exit_boot()
303 for (l = 0; l < map_size; l += desc_size) { in allocate_new_fdt_and_exit_boot()
Defi-stub-helper.c69 unsigned long *desc_size, in efi_get_memory_map() argument
90 *desc_size = 0; in efi_get_memory_map()
93 &key, desc_size, &desc_version); in efi_get_memory_map()
122 &map_size, &map.desc_size, NULL, NULL); in get_dram_base()
145 unsigned long map_size, desc_size; in efi_high_alloc() local
152 status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size, in efi_high_alloc()
167 for (i = 0; i < map_size / desc_size; i++) { in efi_high_alloc()
172 desc = (efi_memory_desc_t *)(m + (i * desc_size)); in efi_high_alloc()
231 unsigned long map_size, desc_size; in efi_low_alloc() local
237 status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size, in efi_low_alloc()
[all …]
Darm-stub.c317 unsigned long desc_size, efi_memory_desc_t *runtime_map, in efi_get_virtmap() argument
324 for (l = 0; l < map_size; l += desc_size) { in efi_get_virtmap()
352 memcpy(out, in, desc_size); in efi_get_virtmap()
353 out = (void *)out + desc_size; in efi_get_virtmap()
Defistub.h28 unsigned long map_size, unsigned long desc_size,
43 unsigned long desc_size, efi_memory_desc_t *runtime_map,
/drivers/net/wireless/rt2x00/
Drt2x00mmio.c80 skbdesc->desc_len = entry->queue->desc_size; in rt2x00mmio_rxdone()
123 queue->limit * queue->desc_size, &dma, in rt2x00mmio_alloc_queue_dma()
133 entry_priv->desc = addr + i * queue->desc_size; in rt2x00mmio_alloc_queue_dma()
134 entry_priv->desc_dma = dma + i * queue->desc_size; in rt2x00mmio_alloc_queue_dma()
148 queue->limit * queue->desc_size, in rt2x00mmio_free_queue_dma()
/drivers/infiniband/hw/mlx5/
Dsrq.c243 int desc_size; in mlx5_ib_create_srq() local
269 desc_size = sizeof(struct mlx5_wqe_srq_next_seg) + in mlx5_ib_create_srq()
271 desc_size = roundup_pow_of_two(desc_size); in mlx5_ib_create_srq()
272 desc_size = max_t(int, 32, desc_size); in mlx5_ib_create_srq()
273 srq->msrq.max_avail_gather = (desc_size - sizeof(struct mlx5_wqe_srq_next_seg)) / in mlx5_ib_create_srq()
275 srq->msrq.wqe_shift = ilog2(desc_size); in mlx5_ib_create_srq()
276 buf_size = srq->msrq.max * desc_size; in mlx5_ib_create_srq()
278 desc_size, init_attr->attr.max_wr, srq->msrq.max, srq->msrq.max_gs, in mlx5_ib_create_srq()
/drivers/usb/wusbcore/
Ddevconnect.c704 struct usb_bos_descriptor *bos, size_t desc_size) in wusb_dev_bos_grok() argument
712 top = itr + desc_size - sizeof(*bos); in wusb_dev_bos_grok()
779 size_t alloc_size = 32, desc_size = 4; in wusb_dev_bos_add() local
784 result = usb_get_descriptor(usb_dev, USB_DT_BOS, 0, bos, desc_size); in wusb_dev_bos_add()
790 desc_size = le16_to_cpu(bos->wTotalLength); in wusb_dev_bos_add()
791 if (desc_size >= alloc_size) { in wusb_dev_bos_add()
793 alloc_size = desc_size; in wusb_dev_bos_add()
798 result = usb_get_descriptor(usb_dev, USB_DT_BOS, 0, bos, desc_size); in wusb_dev_bos_add()
799 if (result < 0 || result != desc_size) { in wusb_dev_bos_add()
801 "%zu bytes): %zd\n", desc_size, result); in wusb_dev_bos_add()
[all …]
/drivers/crypto/caam/
Djr.c195 jrp->entinfo[sw_idx].desc_size, in caam_jr_dequeue()
326 int head, tail, desc_size; in caam_jr_enqueue() local
329 desc_size = (*desc & HDR_JD_LENGTH_MASK) * sizeof(u32); in caam_jr_enqueue()
330 desc_dma = dma_map_single(dev, desc, desc_size, DMA_TO_DEVICE); in caam_jr_enqueue()
344 dma_unmap_single(dev, desc_dma, desc_size, DMA_TO_DEVICE); in caam_jr_enqueue()
350 head_entry->desc_size = desc_size; in caam_jr_enqueue()
/drivers/net/ethernet/cisco/enic/
Dvnic_cq.h84 cq->ring.desc_size * cq->to_clean); in vnic_cq_service()
101 cq->ring.desc_size * cq->to_clean); in vnic_cq_service()
115 unsigned int desc_count, unsigned int desc_size);
Dvnic_wq.c47 wq->ring.desc_size * buf->index; in vnic_wq_alloc_bufs()
85 unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc() argument
100 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc()
Dvnic_rq.c47 rq->ring.desc_size * buf->index; 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()
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()
/drivers/scsi/fnic/
Dvnic_cq.h82 cq->ring.desc_size * cq->to_clean); in vnic_cq_service()
99 cq->ring.desc_size * cq->to_clean); in vnic_cq_service()
113 unsigned int desc_count, unsigned int desc_size);
Dvnic_cq_copy.h36 cq->ring.desc_size * cq->to_clean); in vnic_cq_copy_service()
51 cq->ring.desc_size * cq->to_clean); in vnic_cq_copy_service()
Dvnic_dev.h103 unsigned int desc_size; member
118 unsigned int desc_size);
121 unsigned int desc_count, unsigned int desc_size);
Dvnic_wq.c49 wq->ring.desc_size * buf->index; 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()
Dvnic_rq.c49 rq->ring.desc_size * buf->index; 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()
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()
Dvnic_dev.c162 unsigned int desc_size) in vnic_dev_desc_ring_size() argument
180 ring->desc_size = ALIGN(desc_size, desc_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()
Dvnic_wq_copy.c80 unsigned int desc_size) 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()
/drivers/dma/bestcomm/
Dbestcomm.c164 if (hdr->desc_size != bcom_task_num_descs(task)) { in bcom_load_image()
169 hdr->desc_size, in bcom_load_image()
176 desc = bcom_sram_alloc(hdr->desc_size * sizeof(u32), 4, &start_pa); in bcom_load_image()
181 tdt->stop = start_pa + ((hdr->desc_size-1) * sizeof(u32)); in bcom_load_image()
192 var_src = desc_src + hdr->desc_size; in bcom_load_image()
195 memcpy(desc, desc_src, hdr->desc_size * sizeof(u32)); in bcom_load_image()
/drivers/infiniband/hw/mlx4/
Dsrq.c81 int desc_size; in mlx4_ib_create_srq() local
100 desc_size = max(32UL, in mlx4_ib_create_srq()
104 srq->msrq.wqe_shift = ilog2(desc_size); in mlx4_ib_create_srq()
106 buf_size = srq->msrq.max * desc_size; in mlx4_ib_create_srq()
159 (void *) scatter < (void *) next + desc_size; in mlx4_ib_create_srq()
/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c518 unsigned int desc_size) in mlx4_en_bounce_to_desc() argument
523 for (i = desc_size - copy - 4; i >= 0; i -= 4) { in mlx4_en_bounce_to_desc()
709 int desc_size; in mlx4_en_xmit() local
738 desc_size = ALIGN(real_size, TXBB_SIZE); in mlx4_en_xmit()
739 nr_txbb = desc_size / TXBB_SIZE; in mlx4_en_xmit()
918 tx_desc = mlx4_en_bounce_to_desc(priv, ring, index, desc_size); in mlx4_en_xmit()
932 if (ring->bf_enabled && desc_size <= MAX_BF && !bounce && in mlx4_en_xmit()
947 desc_size); in mlx4_en_xmit()
/drivers/lguest/
Dlguest_device.c88 static unsigned desc_size(const struct lguest_device_desc *desc) in desc_size() function
482 for (i = 0; i < PAGE_SIZE; i += desc_size(d)) { in scan_devices()
489 printk("Device at %i has size %u\n", i, desc_size(d)); in scan_devices()
/drivers/soc/ti/
Dknav_qmss_queue.c674 pool->desc_size = region->desc_size; in kdesc_fill_pool()
679 dma_addr = region->dma_start + (region->desc_size * index); in kdesc_fill_pool()
680 dma_size = ALIGN(pool->desc_size, SMP_CACHE_BYTES); in kdesc_fill_pool()
890 knav_queue_push(pool->queue, dma, pool->region->desc_size, 0); in knav_pool_desc_put()
908 size = min(size, pool->region->desc_size); in knav_pool_desc_map()
934 desc_sz = min(dma_sz, pool->region->desc_size); in knav_pool_desc_unmap()
979 size = region->num_desc * region->desc_size; in knav_queue_setup_region()
1011 region->name, id, region->desc_size, region->num_desc, in knav_queue_setup_region()
1015 hw_desc_size = (region->desc_size / 16) - 1; in knav_queue_setup_region()
1069 region->desc_size = temp[1]; in knav_queue_setup_regions()

123