Home
last modified time | relevance | path

Searched refs:size_add (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.15/net/devlink/
H A Dnetlink.c52 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-6.15/include/linux/
H A Doverflow.h285 static inline size_t __must_check size_add(size_t addend1, size_t addend2) in size_add() function
373 size_add(sizeof(*(p)), flex_array_size(p, member, count)))
/linux-6.15/drivers/accel/qaic/
H A Dsahara.c374 if (size_add(data_offset, data_len) > context->firmware->size) { in sahara_read_data()
554 dump_length = size_add(dump_length, le64_to_cpu(dev_table[i].length)); in sahara_parse_dump_table()
571 dump_length = size_add(dump_length, sizeof(*dump_meta)); in sahara_parse_dump_table()
577 dump_length = size_add(dump_length, size_mul(sizeof(*image_out_table), table_nents)); in sahara_parse_dump_table()
H A Dqaic_control.c370 if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_EXT_MSG_LENGTH) in encode_passthrough()
578 if (size_add(msg_hdr_len, sizeof(*out_trans) + sizeof(struct wire_addr_size_pair)) > in encode_dma()
648 if (size_add(msg_hdr_len, sizeof(*out_trans)) > QAIC_MANAGE_MAX_MSG_LENGTH) in encode_activate()
732 if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_MAX_MSG_LENGTH) in encode_status()
786 size_add(user_len, trans_hdr->len) > user_msg->len) { in encode_message()
985 size_add(msg_len, hdr_len) > msg_hdr_len) in decode_message()
H A Dqaic_debugfs.c161 if (size_add(size, sizeof(*page)) > page->size) in bootlog_get_space()
/linux-6.15/lib/tests/
H A Doverflow_kunit.c739 check_one_size_helper(9, size_add, var++, 5); in overflow_size_helpers_test()
740 check_one_size_helper(9, size_add, 4, var++); in overflow_size_helpers_test()
741 check_one_size_helper(9, size_add, 9, 0); in overflow_size_helpers_test()
742 check_one_size_helper(9, size_add, 0, 9); in overflow_size_helpers_test()
743 check_one_size_helper(5, size_add, 2, 3); in overflow_size_helpers_test()
744 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1); in overflow_size_helpers_test()
745 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3); in overflow_size_helpers_test()
746 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3); in overflow_size_helpers_test()
/linux-6.15/drivers/net/wireless/marvell/mwifiex/
H A D11n_rxreorder.c919 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-6.15/drivers/misc/vmw_vmci/
H A Dvmci_handle_array.c49 size_add(array->capacity, capacity_bump)); in vmci_handle_arr_append_entry()
/linux-6.15/crypto/
H A Dscompress.c220 size_add(soff, slen) > PAGE_SIZE) in scomp_acomp_comp_decomp()
248 size_add(doff, dlen) > PAGE_SIZE) in scomp_acomp_comp_decomp()
/linux-6.15/arch/arm64/include/asm/
H A Dkvm_pkvm.h162 return size_add(sizeof(struct cpu_sve_state), in pkvm_host_sve_state_size()
/linux-6.15/drivers/net/dsa/realtek/
H A Drtl83xx.c152 priv = devm_kzalloc(dev, size_add(sizeof(*priv), var->chip_data_sz), in rtl83xx_probe()
/linux-6.15/drivers/net/wireless/ath/ath12k/
H A Dwow.c189 if (size_add(eth_pkt_ofs, eth_pat_len) < ETH_ALEN) { in ath12k_wow_convert_8023_to_80211()
194 } else if (size_add(eth_pkt_ofs, eth_pat_len) < prot_ofs) { in ath12k_wow_convert_8023_to_80211()
231 if (size_add(eth_pkt_ofs, eth_pat_len) < prot_ofs) { in ath12k_wow_convert_8023_to_80211()
/linux-6.15/drivers/misc/mei/
H A Dplatform-vsc.c343 mei_dev = devm_kzalloc(dev, size_add(sizeof(*mei_dev), sizeof(*hw)), in mei_vsc_probe()
/linux-6.15/drivers/infiniband/core/
H A Dsysfs.c898 data = kzalloc(struct_size(data, attrs, size_add(stats->num_counters, 1)), in alloc_hw_stats_device()
1005 data = kzalloc(struct_size(data, attrs, size_add(stats->num_counters, 1)), in alloc_hw_stats_port()
1201 size_add(attr->gid_tbl_len, attr->pkey_tbl_len)), in setup_port()
/linux-6.15/arch/arm64/kvm/
H A Dpkvm.c170 hyp_vm_sz = PAGE_ALIGN(size_add(PKVM_HYP_VM_SIZE, in __pkvm_create_hyp_vm()
/linux-6.15/drivers/i2c/
H A Di2c-mux.c236 muxc = devm_kzalloc(dev, size_add(mux_size, sizeof_priv), GFP_KERNEL); in i2c_mux_alloc()
/linux-6.15/arch/s390/boot/
H A Dstartup.c307 return size_add(vsize, vmalloc_size); in get_vmem_size()
/linux-6.15/drivers/cxl/
H A Dpmem.c233 if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len) in cxl_pmem_set_config_data()
/linux-6.15/arch/arm64/kvm/hyp/nvhe/
H A Dpkvm.c503 return size_add(sizeof(struct pkvm_hyp_vm), in pkvm_get_hyp_vm_size()
/linux-6.15/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.c461 if (size_add(pkt_size, data_size) > INT_MAX || in nfp_bpf_event_output()
/linux-6.15/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_main.c349 skb = alloc_skb(size_add(gl->tot_len, in copy_gl_to_skb_pkt()
/linux-6.15/Documentation/translations/it_IT/process/
H A Ddeprecated.rst106 Per altri calcoli, usate le funzioni size_mul(), size_add(), e size_sub(). Per
113 foo = krealloc(size_add(current_size,
/linux-6.15/Documentation/process/
H A Ddeprecated.rst98 size_add(), and size_sub() helpers. For example, in the case of::
104 foo = krealloc(size_add(current_size,
/linux-6.15/drivers/gpu/drm/gud/
H A Dgud_pipe.c512 size_add(GUD_PROPERTIES_MAX_NUM, GUD_CONNECTOR_PROPERTIES_MAX_NUM)); in gud_pipe_check()
/linux-6.15/drivers/pinctrl/
H A Dpinctrl-zynqmp.c617 fgroups = devm_kcalloc(dev, size_add(func->ngroups, npins), in zynqmp_pinctrl_prepare_func_groups()

12