Home
last modified time | relevance | path

Searched refs:check_mul_overflow (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.1.9/tools/include/linux/
Doverflow.h62 #define check_mul_overflow(a, b, d) ({ \ macro
86 if (check_mul_overflow(a, b, &bytes)) in array_size()
108 if (check_mul_overflow(a, b, &bytes)) in array3_size()
110 if (check_mul_overflow(bytes, c, &bytes)) in array3_size()
120 if (check_mul_overflow(n, size, &bytes)) in __ab_c_size()
/linux-6.1.9/include/linux/
Doverflow.h96 #define check_mul_overflow(a, b, d) \ macro
144 if (check_mul_overflow(factor1, factor2, &bytes)) in size_mul()
Dslab.h601 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array()
622 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
662 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node()
721 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array()
Ddevice.h216 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array()
/linux-6.1.9/tools/include/tools/
Dlibc_compat.h15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
/linux-6.1.9/kernel/bpf/
Dbloom_filter.c126 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc()
127 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc()
/linux-6.1.9/drivers/power/supply/
Dpower_supply_hwmon.c236 if (check_mul_overflow(pspval.intval, 100, in power_supply_hwmon_read()
272 if (check_mul_overflow(pspval.intval, 1000, in power_supply_hwmon_write()
/linux-6.1.9/include/drm/
Ddrm_managed.h81 if (unlikely(check_mul_overflow(n, size, &bytes))) in drmm_kmalloc_array()
/linux-6.1.9/tools/virtio/linux/
Dkernel.h124 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
/linux-6.1.9/drivers/iio/afe/
Diio-rescale.c44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale()
45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale()
/linux-6.1.9/arch/x86/kernel/cpu/
Daperfmperf.c351 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt) in scale_freq_tick()
/linux-6.1.9/drivers/gpu/drm/tegra/
Dsubmit.c166 if (check_mul_overflow(count, size, &copy_len)) in alloc_copy_user_array()
196 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, &copy_len)) { in submit_copy_gather_data()
/linux-6.1.9/tools/perf/util/
Dutil.c519 if (check_mul_overflow(new_sz, (size_t)2, &new_sz)) in do_realloc_array_as_needed()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dmlx5_core.h158 if (check_mul_overflow((int)item_size, (int)num_items, &inlen)) { in mlx5_flexible_inlen()
/linux-6.1.9/io_uring/
Dkbuf.c335 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
/linux-6.1.9/drivers/gpu/drm/qxl/
Dqxl_display.c209 if (check_mul_overflow(width, 4u, &stride)) in qxl_check_mode()
211 if (check_mul_overflow(stride, height, &size)) in qxl_check_mode()
/linux-6.1.9/mm/
Dutil.c674 if (unlikely(check_mul_overflow(n, size, &bytes))) in __vmalloc_array()
/linux-6.1.9/include/rdma/
Duverbs_ioctl.h880 if (unlikely(check_mul_overflow(n, size, &bytes))) in uverbs_kcalloc()
/linux-6.1.9/drivers/video/fbdev/core/
Dfbmem.c1012 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var()
1013 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
/linux-6.1.9/drivers/acpi/
Dproperty.c398 if (check_mul_overflow((size_t)properties->package.count, in acpi_data_add_buffer_props()
/linux-6.1.9/drivers/iio/adc/
Dxilinx-xadc-core.c621 if (check_mul_overflow(n, sizeof(*xadc->data), &new_size)) in xadc_update_scan_mode()
/linux-6.1.9/Documentation/process/
Ddeprecated.rst109 as well as the related check_mul_overflow(), check_add_overflow(),
/linux-6.1.9/Documentation/translations/it_IT/process/
Ddeprecated.rst118 anche le funzioni della famiglia check_mul_overflow(), check_add_overflow(),
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_action.c961 if (unlikely(check_mul_overflow(num_of_dests, 2u, &ref_act_cnt))) in mlx5dr_action_create_mult_dest_tbl()
/linux-6.1.9/arch/x86/kvm/svm/
Dsev.c2929 if (unlikely(check_mul_overflow(count, size, &bytes))) in sev_es_string_io()

12