| /linux/net/devlink/ |
| H A D | netlink.c | 52 data_size = size_add(data_size, in devlink_nl_notify_filter_set_doit() 55 data_size = size_add(data_size, in devlink_nl_notify_filter_set_doit() 58 flt = kzalloc(size_add(sizeof(*flt), data_size), GFP_KERNEL); in devlink_nl_notify_filter_set_doit()
|
| /linux/drivers/nvdimm/ |
| H A D | ramdax.c | 146 if (size_add(cmd->in_offset, cmd->in_length) > LABEL_AREA_SIZE) in ramdax_get_config_data() 163 if (size_add(cmd->in_offset, cmd->in_length) > LABEL_AREA_SIZE) in ramdax_set_config_data()
|
| /linux/include/linux/ |
| H A D | overflow.h | 355 static inline size_t __must_check size_add(size_t addend1, size_t addend2) in size_add() function 443 size_add(sizeof(*(p)), flex_array_size(p, member, count)))
|
| /linux/crypto/ |
| H A D | scompress.c | 207 size_add(doff, dlen) > PAGE_SIZE) in scomp_acomp_comp_decomp() 229 size_add(soff, slen) > PAGE_SIZE) in scomp_acomp_comp_decomp()
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | 11n_rxreorder.c | 919 if (size_add(sizeof(tlv_rxba->header), tlv_len) > tlv_buf_left) { in mwifiex_11n_rxba_sync_event() 922 size_add(sizeof(tlv_rxba->header), tlv_len), in mwifiex_11n_rxba_sync_event() 935 if (size_add(sizeof(*tlv_rxba), tlv_bitmap_len) > tlv_buf_left) { in mwifiex_11n_rxba_sync_event() 938 size_add(sizeof(*tlv_rxba), tlv_bitmap_len), in mwifiex_11n_rxba_sync_event()
|
| /linux/drivers/misc/vmw_vmci/ |
| H A D | vmci_handle_array.c | 49 size_add(array->capacity, capacity_bump)); in vmci_handle_arr_append_entry()
|
| /linux/drivers/soc/qcom/ |
| H A D | mdt_loader.c | 38 phend = size_add(size_mul(sizeof(struct elf32_phdr), ehdr->e_phnum), ehdr->e_phoff); in mdt_header_valid() 46 shend = size_add(size_mul(sizeof(struct elf32_shdr), ehdr->e_shnum), ehdr->e_shoff); in mdt_header_valid()
|
| /linux/arch/arm64/include/asm/ |
| H A D | kvm_pkvm.h | 169 return size_add(sizeof(struct cpu_sve_state), in pkvm_host_sve_state_size()
|
| /linux/drivers/accel/qaic/ |
| H A D | qaic_control.c | 372 if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_WIRE_MSG_LENGTH) in encode_passthrough() 580 if (size_add(msg_hdr_len, sizeof(*out_trans) + sizeof(struct wire_addr_size_pair)) > in encode_dma() 650 if (size_add(msg_hdr_len, sizeof(*out_trans)) > QAIC_MANAGE_WIRE_MSG_LENGTH) in encode_activate() 735 if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_WIRE_MSG_LENGTH) in encode_status() 789 size_add(user_len, trans_hdr->len) > user_msg->len) { in encode_message() 989 size_add(msg_len, hdr_len) > msg_hdr_len) in decode_message()
|
| H A D | qaic_debugfs.c | 161 if (size_add(size, sizeof(*page)) > page->size) in bootlog_get_space()
|
| /linux/drivers/net/dsa/realtek/ |
| H A D | rtl83xx.c | 152 priv = devm_kzalloc(dev, size_add(sizeof(*priv), var->chip_data_sz), in rtl83xx_probe()
|
| /linux/drivers/misc/mei/ |
| H A D | platform-vsc.c | 346 mei_dev = kzalloc(size_add(sizeof(*mei_dev), sizeof(*hw)), GFP_KERNEL); in mei_vsc_probe()
|
| /linux/drivers/mux/ |
| H A D | core.c | 101 mux_chip = kzalloc(size_add(struct_size(mux_chip, mux, controllers), in mux_chip_alloc()
|
| /linux/arch/arm64/kvm/ |
| H A D | pkvm.c | 160 hyp_vm_sz = PAGE_ALIGN(size_add(PKVM_HYP_VM_SIZE, in __pkvm_create_hyp_vm()
|
| /linux/drivers/cxl/ |
| H A D | pmem.c | 233 if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len) in cxl_pmem_set_config_data()
|
| /linux/net/ethtool/ |
| H A D | common.c | 852 key_off = size_add(priv_bytes, indir_bytes); in ethtool_rxfh_ctx_alloc() 853 flex_len = size_add(key_off, key_max); in ethtool_rxfh_ctx_alloc()
|
| /linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
| H A D | chtls_main.c | 349 skb = alloc_skb(size_add(gl->tot_len, in copy_gl_to_skb_pkt()
|
| /linux/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A D | offload.c | 461 if (size_add(pkt_size, data_size) > INT_MAX || in nfp_bpf_event_output()
|
| /linux/Documentation/process/ |
| H A D | deprecated.rst | 98 size_add(), and size_sub() helpers. For example, in the case of:: 104 foo = krealloc(size_add(current_size,
|
| /linux/Documentation/translations/it_IT/process/ |
| H A D | deprecated.rst | 106 Per altri calcoli, usate le funzioni size_mul(), size_add(), e size_sub(). Per 113 foo = krealloc(size_add(current_size,
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-zynqmp.c | 616 fgroups = devm_kcalloc(dev, size_add(func->ngroups, npins), in zynqmp_pinctrl_prepare_func_groups()
|
| /linux/arch/arm64/kvm/hyp/nvhe/ |
| H A D | pkvm.c | 603 return size_add(sizeof(struct pkvm_hyp_vm), in pkvm_get_hyp_vm_size()
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_pipe.c | 530 size_add(GUD_PROPERTIES_MAX_NUM, GUD_CONNECTOR_PROPERTIES_MAX_NUM)); in gud_plane_atomic_check()
|
| /linux/Documentation/translations/sp_SP/process/ |
| H A D | deprecated.rst | 105 size_add(), and size_sub(). Por ejemplo, en el caso de:: 111 foo = krealloc(size_add(current_size,
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gem_submit.c | 698 (size_add(submit->cmd[i].size, submit->cmd[i].offset) > obj->size / 4)) { in msm_ioctl_gem_submit()
|