Searched refs:check_mul_overflow (Results 1 - 25 of 38) sorted by relevance

12

/linux-master/tools/include/tools/
H A Dlibc_compat.h15 if (unlikely(check_mul_overflow(nmemb, size, &bytes)))
/linux-master/tools/include/linux/
H A Doverflow.h62 #define check_mul_overflow(a, b, d) ({ \ macro
86 if (check_mul_overflow(a, b, &bytes))
108 if (check_mul_overflow(a, b, &bytes))
110 if (check_mul_overflow(bytes, c, &bytes))
120 if (check_mul_overflow(n, size, &bytes))
/linux-master/block/partitions/
H A Damiga.c95 if (check_mul_overflow(blk, (sector_t) blksize, &blk)) {
125 if (check_mul_overflow(nr_hd, nr_sect, &cylblk)) {
142 if (check_mul_overflow(cylblk, blksize, &cylblk)) {
/linux-master/include/drm/
H A Ddrm_managed.h85 if (unlikely(check_mul_overflow(n, size, &bytes)))
/linux-master/include/linux/
H A Dslab.h661 if (unlikely(check_mul_overflow(n, size, &bytes)))
682 if (unlikely(check_mul_overflow(new_n, new_size, &bytes)))
722 if (unlikely(check_mul_overflow(n, size, &bytes)))
781 if (unlikely(check_mul_overflow(n, size, &bytes)))
H A Doverflow.h149 * check_mul_overflow() - Calculate multiplication with overflow checking
159 #define check_mul_overflow(a, b, d) \ macro
270 if (check_mul_overflow(factor1, factor2, &bytes))
H A Dstring.h12 #include <linux/overflow.h> /* for check_mul_overflow() */
34 if (check_mul_overflow(n, size, &nbytes))
53 if (check_mul_overflow(n, size, &nbytes))
H A Ddevice.h320 if (unlikely(check_mul_overflow(n, size, &bytes)))
335 if (unlikely(check_mul_overflow(new_n, new_size, &bytes)))
/linux-master/drivers/power/supply/
H A Dpower_supply_hwmon.c236 if (check_mul_overflow(pspval.intval, 100,
272 if (check_mul_overflow(pspval.intval, 1000,
/linux-master/kernel/bpf/
H A Dbloom_filter.c127 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) ||
128 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) ||
/linux-master/net/netfilter/
H A Dnft_limit.c73 if (check_mul_overflow(unit, NSEC_PER_SEC, &priv->nsecs))
88 if (check_mul_overflow(tmp, priv->burst, &tokens))
97 if (check_mul_overflow(priv->nsecs, rate_with_burst, &tmp))
/linux-master/tools/virtio/linux/
H A Dkernel.h122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes)))
/linux-master/drivers/gpu/drm/nouveau/
H A Dnouveau_drv.h195 if (unlikely(check_mul_overflow(nmemb, size, &bytes)))
/linux-master/security/selinux/ss/
H A Dpolicydb.h371 if (unlikely(check_mul_overflow(bytes, num, &len)))
/linux-master/drivers/gpu/drm/tegra/
H A Dsubmit.c166 if (check_mul_overflow(count, size, &copy_len))
191 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, &copy_len)) {
/linux-master/drivers/iio/afe/
H A Diio-rescale.c44 if (!check_mul_overflow(*val, rescale->numerator, &_val) &&
45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) {
/linux-master/drivers/video/fbdev/core/
H A Dfbmem.c279 if (check_mul_overflow(var->xres, var->yres, &unused) ||
280 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused))
/linux-master/arch/x86/kernel/cpu/
H A Daperfmperf.c360 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt)
/linux-master/init/
H A Ddo_mounts.c90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) {
/linux-master/drivers/iio/light/
H A Drohm-bu27034.c859 if (check_mul_overflow(helper, coeff, &helper))
862 if (check_mul_overflow(helper, gain0, &tmp))
875 if (!check_mul_overflow(coeff, ch, &helper))
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dmlx5_core.h178 if (check_mul_overflow((int)item_size, (int)num_items, &inlen)) {
/linux-master/tools/perf/util/
H A Dutil.c521 if (check_mul_overflow(new_sz, (size_t)2, &new_sz))
/linux-master/drivers/hwmon/
H A Dltc4282.c511 if (check_mul_overflow(power * temp, MICRO, &temp_2)) {
565 if (check_mul_overflow(DECA * st->vfs_out * 40 * BIT(8), energy, &temp)) {
646 if (check_mul_overflow(temp, val, &temp_2)) {
/linux-master/drivers/acpi/
H A Dmipi-disco-img.c212 if (check_mul_overflow(sizeof(*swnodes->ports) +
/linux-master/mm/
H A Dutil.c727 if (unlikely(check_mul_overflow(n, size, &bytes)))

Completed in 232 milliseconds

12