/linux/drivers/firmware/efi/ |
A D | memmap.c | 50 efi.memmap.desc_size * efi.memmap.nr_map, in efi_memmap_free() 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() 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() 347 new += old_memmap->desc_size; in efi_memmap_insert() 355 new += old_memmap->desc_size; in efi_memmap_insert() [all …]
|
/linux/scripts/ |
A D | get_feat.pl | 346 my $desc_size = shift; 363 print $fill x $desc_size; 379 my $desc_size = $max_size_kconfig + 4; 381 $desc_size = $max_size_description if ($max_size_description > $desc_size); 383 $desc_size = $description_size if ($description_size > $desc_size); 385 $desc_size = $max_description_word if ($max_description_word > $desc_size); 387 $desc_size = length($desc_title) if (length($desc_title) > $desc_size); 417 printf "|%-${desc_size}s", $desc_title; 483 printf "|%-${desc_size}s", shift @descs; 486 printf "|%-${desc_size}s", ""; [all …]
|
/linux/fs/ext4/ |
A D | verity.c | 173 size_t desc_size, u64 merkle_tree_size) in ext4_write_verity_descriptor() argument 177 const u64 desc_end = desc_pos + desc_size; in ext4_write_verity_descriptor() 178 const __le32 desc_size_disk = cpu_to_le32(desc_size); in ext4_write_verity_descriptor() 193 size_t desc_size, u64 merkle_tree_size) in ext4_end_enable_verity() argument 279 u32 desc_size; in ext4_get_verity_descriptor_location() local 319 desc_size = le32_to_cpu(desc_size_disk); in ext4_get_verity_descriptor_location() 326 if (desc_size > INT_MAX || desc_size > desc_size_pos) in ext4_get_verity_descriptor_location() 333 *desc_size_ret = desc_size; in ext4_get_verity_descriptor_location() 345 size_t desc_size = 0; in ext4_get_verity_descriptor() local 354 if (desc_size > buf_size) in ext4_get_verity_descriptor() [all …]
|
/linux/drivers/firmware/efi/libstub/ |
A D | mem.c | 10 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()
|
A D | relocate.c | 26 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()
|
A D | randomalloc.c | 58 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()
|
A D | fdt.c | 185 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() 246 unsigned long map_size, desc_size, buff_size; in allocate_new_fdt_and_exit_boot() local 257 map.desc_size = &desc_size; in allocate_new_fdt_and_exit_boot() 315 status = svam(runtime_entry_count * desc_size, desc_size, in allocate_new_fdt_and_exit_boot() 332 for (l = 0; l < map_size; l += desc_size) { in allocate_new_fdt_and_exit_boot()
|
A D | arm64-stub.c | 45 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()
|
/linux/arch/x86/platform/efi/ |
A D | efi.c | 234 data.desc_size = e->efi_memdesc_size; in efi_memblock_x86_reserve_range() 309 in = (void *)in + efi.memmap.desc_size; in efi_clean_memmap() 316 .desc_size = efi.memmap.desc_size, in efi_clean_memmap() 565 entry -= efi.memmap.desc_size; in efi_map_next_entry_reverse() 610 entry += efi.memmap.desc_size; in efi_map_next_entry() 674 unsigned long desc_size; in efi_map_regions() local 677 desc_size = efi.memmap.desc_size; in efi_map_regions() 688 if (left < desc_size) { in efi_map_regions() 697 memcpy(new_memmap + (*count * desc_size), md, desc_size); in efi_map_regions() 699 left -= desc_size; in efi_map_regions() [all …]
|
/linux/drivers/net/ethernet/ti/ |
A D | k3-cppi-desc-pool.c | 21 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()
|
A D | k3-cppi-desc-pool.h | 18 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)
|
/linux/drivers/greybus/ |
A D | manifest.c | 103 size_t desc_size; in identify_descriptor() local 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() 157 expected_size, desc_size); in identify_descriptor() 164 descriptor->size = desc_size; in identify_descriptor() 171 return desc_size; in identify_descriptor() 496 int desc_size; in gb_manifest_parse() local 499 if (desc_size < 0) { in gb_manifest_parse() [all …]
|
/linux/drivers/hid/ |
A D | hid-uclogic-params.h | 54 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, \
|
A D | hid-uclogic-params.c | 411 size_t desc_size, in uclogic_params_frame_init_with_desc() argument 425 frame->desc_size = desc_size; in uclogic_params_frame_init_with_desc() 559 size += params->desc_size; in uclogic_params_get_desc() 561 size += params->pen.desc_size; in uclogic_params_get_desc() 575 params->desc_size); in uclogic_params_get_desc() 576 p += params->desc_size; in uclogic_params_get_desc() 580 params->pen.desc_size); in uclogic_params_get_desc() 581 p += params->pen.desc_size; in uclogic_params_get_desc() 585 params->frame.desc_size); in uclogic_params_get_desc() 586 p += params->frame.desc_size; in uclogic_params_get_desc() [all …]
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | srq.c | 198 size_t desc_size; in mlx5_ib_create_srq() local 222 desc_size = sizeof(struct mlx5_wqe_srq_next_seg) + in mlx5_ib_create_srq() 224 if (desc_size == 0 || srq->msrq.max_gs > desc_size) in mlx5_ib_create_srq() 227 desc_size = roundup_pow_of_two(desc_size); in mlx5_ib_create_srq() 228 desc_size = max_t(size_t, 32, desc_size); in mlx5_ib_create_srq() 229 if (desc_size < sizeof(struct mlx5_wqe_srq_next_seg)) in mlx5_ib_create_srq() 232 srq->msrq.max_avail_gather = (desc_size - sizeof(struct mlx5_wqe_srq_next_seg)) / in mlx5_ib_create_srq() 234 srq->msrq.wqe_shift = ilog2(desc_size); in mlx5_ib_create_srq() 235 buf_size = srq->msrq.max * desc_size; in mlx5_ib_create_srq() 236 if (buf_size < desc_size) in mlx5_ib_create_srq()
|
/linux/fs/verity/ |
A D | read_metadata.c | 101 size_t desc_size; in fsverity_read_descriptor() local 104 res = fsverity_get_descriptor(inode, &desc, &desc_size); in fsverity_read_descriptor() 109 desc_size = offsetof(struct fsverity_descriptor, signature); in fsverity_read_descriptor() 112 res = fsverity_read_buffer(buf, offset, length, desc, desc_size); in fsverity_read_descriptor() 122 size_t desc_size; in fsverity_read_signature() local 125 res = fsverity_get_descriptor(inode, &desc, &desc_size); in fsverity_read_signature()
|
A D | open.c | 151 size_t desc_size) in fsverity_create_info() argument 223 size_t desc_size) in validate_fsverity_descriptor() argument 225 if (desc_size < sizeof(*desc)) { in validate_fsverity_descriptor() 227 desc_size); in validate_fsverity_descriptor() 254 if (le32_to_cpu(desc->sig_size) > desc_size - sizeof(*desc)) { in validate_fsverity_descriptor() 309 size_t desc_size; in ensure_verity_info() local 315 err = fsverity_get_descriptor(inode, &desc, &desc_size); in ensure_verity_info() 319 vi = fsverity_create_info(inode, desc, desc_size); in ensure_verity_info()
|
/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 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()
|
A D | vnic_cq.h | 72 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);
|
A D | vnic_dev.h | 62 unsigned int desc_size; member 77 unsigned int desc_size); 80 unsigned int desc_count, unsigned int desc_size);
|
/linux/drivers/scsi/fnic/ |
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() 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()
|
A D | vnic_cq.h | 82 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);
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
A D | rt2x00mmio.c | 69 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()
|
/linux/samples/hidraw/ |
A D | hid-example.c | 46 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()
|
/linux/drivers/net/ethernet/cisco/enic/ |
A D | vnic_wq.c | 48 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()
|