Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/drivers/firmware/efi/
Dmemmap.c50 efi.memmap.desc_size * efi.memmap.nr_map, in efi_memmap_free()
71 data->size = num_entries * efi.memmap.desc_size; in efi_memmap_alloc()
73 data->desc_size = efi.memmap.desc_size; in efi_memmap_alloc()
129 map.nr_map = data->size / data->desc_size; in __efi_memmap_init()
133 map.desc_size = data->desc_size; in __efi_memmap_init()
167 size = efi.memmap.desc_size * efi.memmap.nr_map; in efi_memmap_unmap()
220 data.desc_size = efi.memmap.desc_size; in efi_memmap_init_late()
316 old += old_memmap->desc_size, new += old_memmap->desc_size) { in efi_memmap_insert()
319 memcpy(new, old, old_memmap->desc_size); in efi_memmap_insert()
334 new += old_memmap->desc_size; in efi_memmap_insert()
[all …]
/kernel/linux/linux-5.10/fs/ext4/
Dverity.c176 size_t desc_size, u64 merkle_tree_size) in ext4_write_verity_descriptor() argument
180 const u64 desc_end = desc_pos + desc_size; in ext4_write_verity_descriptor()
181 const __le32 desc_size_disk = cpu_to_le32(desc_size); in ext4_write_verity_descriptor()
187 err = pagecache_write(inode, desc, desc_size, desc_pos); in ext4_write_verity_descriptor()
196 size_t desc_size, u64 merkle_tree_size) in ext4_end_enable_verity() argument
212 err = ext4_write_verity_descriptor(inode, desc, desc_size, in ext4_end_enable_verity()
282 u32 desc_size; in ext4_get_verity_descriptor_location() local
322 desc_size = le32_to_cpu(desc_size_disk); in ext4_get_verity_descriptor_location()
329 if (desc_size > INT_MAX || desc_size > desc_size_pos) in ext4_get_verity_descriptor_location()
332 desc_pos = round_down(desc_size_pos - desc_size, i_blocksize(inode)); in ext4_get_verity_descriptor_location()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
Dmem.c10 unsigned long desc_size) in mmap_has_headroom() argument
14 return slack / desc_size >= EFI_MMAP_NR_SLACK_SLOTS; in mmap_has_headroom()
33 *map->desc_size = sizeof(*m); in efi_get_memory_map()
34 *map->map_size = *map->desc_size * 32; in efi_get_memory_map()
42 *map->desc_size = 0; in efi_get_memory_map()
45 &key, map->desc_size, &desc_version); in efi_get_memory_map()
48 *map->desc_size)) { in efi_get_memory_map()
57 *map->map_size += *map->desc_size * EFI_MMAP_NR_SLACK_SLOTS; in efi_get_memory_map()
Drelocate.c26 unsigned long map_size, desc_size, buff_size; in efi_low_alloc_above() local
35 boot_map.desc_size = &desc_size; in efi_low_alloc_above()
55 for (i = 0; i < map_size / desc_size; i++) { in efi_low_alloc_above()
60 desc = efi_early_memdesc_ptr(m, desc_size, i); in efi_low_alloc_above()
90 if (i == map_size / desc_size) in efi_low_alloc_above()
Drandomalloc.c58 unsigned long map_size, desc_size, total_slots = 0, target_slot; in efi_random_alloc() local
67 map.desc_size = &desc_size; in efi_random_alloc()
82 for (map_offset = 0; map_offset < map_size; map_offset += desc_size) { in efi_random_alloc()
105 for (map_offset = 0; map_offset < map_size; map_offset += desc_size) { in efi_random_alloc()
Dfdt.c185 fdt_val32 = cpu_to_fdt32(*map->desc_size); in update_fdt_memmap()
215 efi_get_virtmap(*map->map, *map->map_size, *map->desc_size, in exit_boot_func()
247 unsigned long map_size, desc_size, buff_size; in allocate_new_fdt_and_exit_boot() local
258 map.desc_size = &desc_size; in allocate_new_fdt_and_exit_boot()
308 status = svam(runtime_entry_count * desc_size, desc_size, in allocate_new_fdt_and_exit_boot()
325 for (l = 0; l < map_size; l += desc_size) { in allocate_new_fdt_and_exit_boot()
Darm64-stub.c45 unsigned long map_size, desc_size, buff_size; in check_image_region() local
54 map.desc_size = &desc_size; in check_image_region()
63 for (map_offset = 0; map_offset < map_size; map_offset += desc_size) { in check_image_region()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dk3-cppi-desc-pool.c21 size_t desc_size; member
45 size_t desc_size, in k3_cppi_desc_pool_create_name() argument
57 pool->desc_size = roundup_pow_of_two(desc_size); in k3_cppi_desc_pool_create_name()
59 pool->mem_size = pool->num_desc * pool->desc_size; in k3_cppi_desc_pool_create_name()
66 pool->gen_pool = gen_pool_create(ilog2(pool->desc_size), -1); in k3_cppi_desc_pool_create_name()
115 return (void *)gen_pool_alloc(pool->gen_pool, pool->desc_size); in k3_cppi_desc_pool_alloc()
120 gen_pool_free(pool->gen_pool, (unsigned long)addr, pool->desc_size); in k3_cppi_desc_pool_free()
125 return gen_pool_avail(pool->gen_pool) / pool->desc_size; in k3_cppi_desc_pool_avail()
Dk3-cppi-desc-pool.h18 size_t desc_size,
20 #define k3_cppi_desc_pool_create(dev, size, desc_size) \ argument
21 k3_cppi_desc_pool_create_name(dev, size, desc_size, NULL)
/kernel/linux/linux-5.10/drivers/hid/
Dhid-uclogic-params.h54 unsigned int desc_size; member
85 unsigned int desc_size; member
134 unsigned int desc_size; member
185 (_params)->desc_size, \
188 (_params)->pen.desc_size, \
193 (_params)->frame.desc_size, \
Dhid-uclogic-params.c223 pen->desc_size = uclogic_rdesc_pen_v1_template_size; in uclogic_params_pen_init_v1()
367 pen->desc_size = uclogic_rdesc_pen_v2_template_size; in uclogic_params_pen_init_v2()
412 size_t desc_size, in uclogic_params_frame_init_with_desc() argument
417 if (frame == NULL || (desc_ptr == NULL && desc_size != 0)) in uclogic_params_frame_init_with_desc()
420 copy_desc_ptr = kmemdup(desc_ptr, desc_size, GFP_KERNEL); in uclogic_params_frame_init_with_desc()
426 frame->desc_size = desc_size; in uclogic_params_frame_init_with_desc()
561 size += params->desc_size; in uclogic_params_get_desc()
563 size += params->pen.desc_size; in uclogic_params_get_desc()
565 size += params->frame.desc_size; in uclogic_params_get_desc()
577 params->desc_size); in uclogic_params_get_desc()
[all …]
/kernel/linux/linux-5.10/arch/x86/platform/efi/
Defi.c234 data.desc_size = e->efi_memdesc_size; in efi_memblock_x86_reserve_range()
250 memblock_reserve(pmap, efi.memmap.nr_map * efi.memmap.desc_size); in efi_memblock_x86_reserve_range()
304 memcpy(out, in, efi.memmap.desc_size); in efi_clean_memmap()
305 out = (void *)out + efi.memmap.desc_size; in efi_clean_memmap()
309 in = (void *)in + efi.memmap.desc_size; in efi_clean_memmap()
316 .desc_size = efi.memmap.desc_size, in efi_clean_memmap()
317 .size = efi.memmap.desc_size * (efi.memmap.nr_map - n_removal), in efi_clean_memmap()
563 return efi.memmap.map_end - efi.memmap.desc_size; in efi_map_next_entry_reverse()
565 entry -= efi.memmap.desc_size; in efi_map_next_entry_reverse()
610 entry += efi.memmap.desc_size; in efi_map_next_entry()
[all …]
/kernel/linux/linux-5.10/drivers/greybus/
Dmanifest.c103 size_t desc_size; in identify_descriptor() local
112 desc_size = le16_to_cpu(desc_header->size); in identify_descriptor()
113 if (desc_size > size) { in identify_descriptor()
115 desc_size, size); in identify_descriptor()
146 if (desc_size < expected_size) { in identify_descriptor()
149 desc_size, expected_size); in identify_descriptor()
154 if (desc_size > expected_size) { in identify_descriptor()
157 expected_size, desc_size); in identify_descriptor()
164 descriptor->size = desc_size; in identify_descriptor()
171 return desc_size; in identify_descriptor()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/snic/
Dvnic_wq.c37 unsigned int index, unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc_ring() argument
40 desc_size); in vnic_wq_alloc_ring()
63 wq->ring.desc_size * buf->index; 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()
Dvnic_dev.h62 unsigned int desc_size; member
77 unsigned int desc_size);
80 unsigned int desc_count, unsigned int desc_size);
Dvnic_cq.h72 cq->ring.desc_size * cq->to_clean); in svnic_cq_service()
89 cq->ring.desc_size * cq->to_clean); in svnic_cq_service()
103 unsigned int index, unsigned int desc_count, unsigned int desc_size);
/kernel/linux/linux-5.10/drivers/scsi/fnic/
Dvnic_wq.c41 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()
66 wq->ring.desc_size * buf->index; 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()
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);
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/
Drt2x00mmio.c69 skbdesc->desc_len = entry->queue->desc_size; in rt2x00mmio_rxdone()
112 queue->limit * queue->desc_size, &dma, in rt2x00mmio_alloc_queue_dma()
122 entry_priv->desc = addr + i * queue->desc_size; in rt2x00mmio_alloc_queue_dma()
123 entry_priv->desc_dma = dma + i * queue->desc_size; in rt2x00mmio_alloc_queue_dma()
137 queue->limit * queue->desc_size, in rt2x00mmio_free_queue_dma()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dsrq.c223 size_t desc_size; in mlx5_ib_create_srq() local
242 desc_size = sizeof(struct mlx5_wqe_srq_next_seg) + in mlx5_ib_create_srq()
244 if (desc_size == 0 || srq->msrq.max_gs > desc_size) in mlx5_ib_create_srq()
247 desc_size = roundup_pow_of_two(desc_size); in mlx5_ib_create_srq()
248 desc_size = max_t(size_t, 32, desc_size); in mlx5_ib_create_srq()
249 if (desc_size < sizeof(struct mlx5_wqe_srq_next_seg)) in mlx5_ib_create_srq()
252 srq->msrq.max_avail_gather = (desc_size - sizeof(struct mlx5_wqe_srq_next_seg)) / in mlx5_ib_create_srq()
254 srq->msrq.wqe_shift = ilog2(desc_size); in mlx5_ib_create_srq()
255 buf_size = srq->msrq.max * desc_size; in mlx5_ib_create_srq()
256 if (buf_size < desc_size) in mlx5_ib_create_srq()
/kernel/linux/linux-5.10/samples/hidraw/
Dhid-example.c46 int i, res, desc_size = 0; in main() local
69 res = ioctl(fd, HIDIOCGRDESCSIZE, &desc_size); in main()
73 printf("Report Descriptor Size: %d\n", desc_size); in main()
76 rpt_desc.size = desc_size; in main()
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/
Dvnic_wq.c48 wq->ring.desc_size * buf->index; 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()
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);
/kernel/linux/linux-5.10/fs/verity/
Dfsverity_private.h155 void *desc, size_t desc_size);
169 size_t desc_size);
176 size_t desc_size) in fsverity_verify_signature() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_dev.c466 unsigned int num_descs, size_t desc_size) in ionic_cq_init() argument
470 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_cq_init()
480 cq->desc_size = desc_size; in ionic_cq_init()
496 cur->cq_desc = base + (i * cq->desc_size); in ionic_cq_map()
534 unsigned int num_descs, size_t desc_size, in ionic_q_init() argument
539 if (desc_size == 0 || !is_power_of_2(num_descs)) in ionic_q_init()
550 q->desc_size = desc_size; in ionic_q_init()
570 cur->desc = base + (i * q->desc_size); in ionic_q_map()

123456