Home
last modified time | relevance | path

Searched refs:size_mul (Results 1 – 24 of 24) sorted by relevance

/linux/include/linux/
H A Doverflow.h258 * size_mul() - Calculate size_t multiplication with saturation at SIZE_MAX
266 static inline size_t __must_check size_mul(size_t factor1, size_t factor2) in size_mul() function
302 * composition with the size_add() and size_mul() helpers, neither
327 #define array_size(a, b) size_mul(a, b)
340 #define array3_size(a, b, c) size_mul(size_mul(a, b), c)
357 size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
/linux/drivers/media/pci/intel/ipu6/
H A Dipu6-fw-com.c189 inq_size = size_mul(cfg->num_input_queues, in ipu6_fw_com_prepare()
191 outq_size = size_mul(cfg->num_output_queues, in ipu6_fw_com_prepare()
199 sizeinput += size_mul(cfg->input[i].queue_size + 1, in ipu6_fw_com_prepare()
203 sizeoutput += size_mul(cfg->output[i].queue_size + 1, in ipu6_fw_com_prepare()
/linux/drivers/platform/x86/intel/
H A Dtpmi_power_domains.c224 tpmi_power_domain_mask = kcalloc(size_mul(topology_max_packages(), MAX_POWER_DOMAINS), in tpmi_init()
229 domain_die_map = kcalloc(size_mul(topology_max_packages(), MAX_POWER_DOMAINS), in tpmi_init()
/linux/lib/tests/
H A Doverflow_kunit.c729 check_one_size_helper(20, size_mul, var++, 5); in overflow_size_helpers_test()
730 check_one_size_helper(20, size_mul, 4, var++); in overflow_size_helpers_test()
731 check_one_size_helper(0, size_mul, 0, 3); in overflow_size_helpers_test()
732 check_one_size_helper(0, size_mul, 3, 0); in overflow_size_helpers_test()
733 check_one_size_helper(6, size_mul, 2, 3); in overflow_size_helpers_test()
734 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1); in overflow_size_helpers_test()
735 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3); in overflow_size_helpers_test()
736 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3); in overflow_size_helpers_test()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_userq_fence.c432 size_mul(sizeof(u32), num_syncobj_handles)); in amdgpu_userq_signal_ioctl()
614 size_mul(sizeof(u32), num_read_bo_handles)); in amdgpu_userq_wait_ioctl()
620 size_mul(sizeof(u32), num_write_bo_handles)); in amdgpu_userq_wait_ioctl()
628 size_mul(sizeof(u32), num_syncobj)); in amdgpu_userq_wait_ioctl()
H A Damdgpu_gem.c61 size_mul(sizeof(uint32_t), num_syncobj_handles)); in amdgpu_gem_add_input_fence()
/linux/drivers/soc/qcom/
H A Dmdt_loader.c38 phend = size_add(size_mul(sizeof(struct elf32_phdr), ehdr->e_phnum), ehdr->e_phoff); in mdt_header_valid()
45 shend = size_add(size_mul(sizeof(struct elf32_shdr), ehdr->e_shnum), ehdr->e_shoff); in mdt_header_valid()
/linux/include/linux/device/
H A Ddevres.h86 return devm_kmemdup(dev, src, size_mul(size, n), flags); in devm_kmemdup_array()
/linux/arch/arm64/kvm/
H A Dpkvm.c154 size_mul(sizeof(void *), in __pkvm_create_hyp_vm()
H A Dnested.c93 size_mul(sizeof(*kvm->arch.nested_mmus), num_mmus), in kvm_vcpu_init_nested()
/linux/drivers/net/ipa/
H A Dgsi_trans.c107 alloc_size = size_mul(count + max_alloc - 1, size); in gsi_trans_pool_init()
/linux/Documentation/translations/it_IT/process/
H A Ddeprecated.rst106 Per altri calcoli, usate le funzioni size_mul(), size_add(), e size_sub(). Per
114 size_mul(chunk_size,
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpkvm.c545 size_mul(sizeof(struct pkvm_hyp_vcpu *), nr_vcpus)); in pkvm_get_hyp_vm_size()
/linux/Documentation/translations/sp_SP/process/
H A Ddeprecated.rst104 Para otros cálculos, por favor use las funciones de ayuda: size_mul(),
112 size_mul(chunk_size,
/linux/drivers/accel/qaic/
H A Dsahara.c577 dump_length = size_add(dump_length, size_mul(sizeof(*image_out_table), table_nents)); in sahara_parse_dump_table()
/linux/mm/
H A Dutil.c158 return kmemdup(src, size_mul(element_size, count), gfp); in kmemdup_array()
/linux/drivers/gpu/drm/
H A Ddrm_panic.c122 size_mul(DIV_ROUND_UP(logo->width, BITS_PER_BYTE), logo->height), in drm_panic_setup_logo()
/linux/drivers/infiniband/core/
H A Duverbs_cmd.c2039 wqes = uverbs_request_next_ptr(&iter, size_mul(cmd.wqe_size, in ib_uverbs_post_send()
2044 size_mul(cmd.sge_count, in ib_uverbs_post_send()
2231 wqes = uverbs_request_next_ptr(iter, size_mul(wqe_size, wr_count)); in ib_uverbs_unmarshall_recv()
2234 sgls = uverbs_request_next_ptr(iter, size_mul(sge_count, in ib_uverbs_unmarshall_recv()
H A Dsysfs.c1136 size_mul(attr->gid_tbl_len, 2)), in setup_gid_attrs()
/linux/drivers/tee/
H A Dtee_core.c23 #define TEE_IOCTL_PARAM_SIZE(x) (size_mul(sizeof(struct tee_param), (x)))
/linux/fs/proc/
H A Dtask_mmu.c2830 size_mul(arg->vec_len, sizeof(struct page_region)))) in pagemap_scan_get_args()
/linux/drivers/staging/media/atomisp/pci/
H A Dsh_css_params.c101 return size_mul(sizeof(unsigned short), in sctbl_bytes()
/linux/drivers/usb/gadget/function/
H A Df_fs.c3062 size_mul(lang_count, (needed_count + 1))); in __ffs_data_got_strings()
/linux/kernel/bpf/
H A Dverifier.c1412 alloc_size = kmalloc_size_roundup(size_mul(new_n, size)); in realloc_array()
3983 alloc_size = kmalloc_size_roundup(size_mul(cnt, sizeof(*p))); in push_jmp_history()