/linux-master/tools/include/tools/ |
H A D | libc_compat.h | 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes)))
|
/linux-master/tools/include/linux/ |
H A D | overflow.h | 62 #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 D | amiga.c | 95 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 D | drm_managed.h | 85 if (unlikely(check_mul_overflow(n, size, &bytes)))
|
/linux-master/include/linux/ |
H A D | slab.h | 661 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 D | overflow.h | 149 * 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 D | string.h | 12 #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 D | device.h | 320 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 D | power_supply_hwmon.c | 236 if (check_mul_overflow(pspval.intval, 100, 272 if (check_mul_overflow(pspval.intval, 1000,
|
/linux-master/kernel/bpf/ |
H A D | bloom_filter.c | 127 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 D | nft_limit.c | 73 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 D | kernel.h | 122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes)))
|
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_drv.h | 195 if (unlikely(check_mul_overflow(nmemb, size, &bytes)))
|
/linux-master/security/selinux/ss/ |
H A D | policydb.h | 371 if (unlikely(check_mul_overflow(bytes, num, &len)))
|
/linux-master/drivers/gpu/drm/tegra/ |
H A D | submit.c | 166 if (check_mul_overflow(count, size, ©_len)) 191 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, ©_len)) {
|
/linux-master/drivers/iio/afe/ |
H A D | iio-rescale.c | 44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && 45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) {
|
/linux-master/drivers/video/fbdev/core/ |
H A D | fbmem.c | 279 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 D | aperfmperf.c | 360 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt)
|
/linux-master/init/ |
H A D | do_mounts.c | 90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) {
|
/linux-master/drivers/iio/light/ |
H A D | rohm-bu27034.c | 859 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 D | mlx5_core.h | 178 if (check_mul_overflow((int)item_size, (int)num_items, &inlen)) {
|
/linux-master/tools/perf/util/ |
H A D | util.c | 521 if (check_mul_overflow(new_sz, (size_t)2, &new_sz))
|
/linux-master/drivers/hwmon/ |
H A D | ltc4282.c | 511 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 D | mipi-disco-img.c | 212 if (check_mul_overflow(sizeof(*swnodes->ports) +
|
/linux-master/mm/ |
H A D | util.c | 727 if (unlikely(check_mul_overflow(n, size, &bytes)))
|