Home
last modified time | relevance | path

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

/linux/tools/include/linux/
A 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/include/linux/
A Doverflow.h80 #define check_mul_overflow(a, b, d) __must_check_overflow(({ \ macro
135 if (check_mul_overflow(a, b, &bytes)) in array_size()
157 if (check_mul_overflow(a, b, &bytes)) in array3_size()
159 if (check_mul_overflow(bytes, c, &bytes)) in array3_size()
173 if (check_mul_overflow(a, b, &bytes)) in __ab_c_size()
A Dslab.h626 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array()
647 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
682 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node()
756 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array()
A Ddevice.h215 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array()
/linux/kernel/bpf/
A Dbloom_filter.c120 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc()
121 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc()
A Dverifier.c767 if (unlikely(check_mul_overflow(n, size, &bytes))) in copy_array()
/linux/tools/include/tools/
A Dlibc_compat.h15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
/linux/drivers/power/supply/
A 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/include/drm/
A Ddrm_managed.h80 if (unlikely(check_mul_overflow(n, size, &bytes))) in drmm_kmalloc_array()
/linux/tools/virtio/linux/
A Dkernel.h125 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
/linux/drivers/gpu/drm/tegra/
A Dsubmit.c137 if (check_mul_overflow(count, size, &copy_len)) in alloc_copy_user_array()
167 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, &copy_len)) { in submit_copy_gather_data()
/linux/drivers/gpu/drm/i915/
A Di915_utils.h133 if (check_mul_overflow(count, arr, &sz)) in __check_struct_size()
/linux/drivers/gpu/drm/qxl/
A Dqxl_display.c206 if (check_mul_overflow(width, 4u, &stride)) in qxl_check_mode()
208 if (check_mul_overflow(stride, height, &size)) in qxl_check_mode()
/linux/include/rdma/
A Duverbs_ioctl.h874 if (unlikely(check_mul_overflow(n, size, &bytes))) in uverbs_kcalloc()
/linux/drivers/video/fbdev/core/
A Dfbmem.c1013 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var()
1014 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
/linux/drivers/iio/adc/
A Dxilinx-xadc-core.c619 if (check_mul_overflow(n, sizeof(*xadc->data), &new_size)) in xadc_update_scan_mode()
/linux/arch/x86/kernel/
A Dsmpboot.c2250 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt) in arch_scale_freq_tick()
/linux/Documentation/process/
A Ddeprecated.rst96 check_mul_overflow() family of functions.
/linux/Documentation/translations/it_IT/process/
A Ddeprecated.rst105 funzioni check_add_overflow() e check_mul_overflow().
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Ddr_action.c870 if (unlikely(check_mul_overflow(num_of_dests, 2u, &ref_act_cnt))) in mlx5dr_action_create_mult_dest_tbl()
/linux/arch/x86/kvm/svm/
A Dsev.c2838 if (unlikely(check_mul_overflow(count, size, &bytes))) in sev_es_string_io()
/linux/fs/
A Dio_uring.c4424 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()

Completed in 99 milliseconds