Home
last modified time | relevance | path

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

12

/linux/net/devlink/
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/include/linux/
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/arch/arm64/include/asm/
A Dkvm_pkvm.h136 return size_add(sizeof(struct cpu_sve_state), in pkvm_host_sve_state_size()
/linux/lib/
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/drivers/net/wireless/marvell/mwifiex/
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/drivers/misc/vmw_vmci/
A Dvmci_handle_array.c49 size_add(array->capacity, capacity_bump)); in vmci_handle_arr_append_entry()
/linux/arch/arm64/kvm/
A Dpkvm.c149 hyp_vm_sz = PAGE_ALIGN(size_add(PKVM_HYP_VM_SIZE, in __pkvm_create_hyp_vm()
/linux/drivers/accel/qaic/
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()
A Dqaic_debugfs.c194 if (size_add(size, sizeof(*page)) > page->size) in bootlog_get_space()
A Dsahara.c260 if (size_add(data_offset, data_len) > context->firmware->size) { in sahara_read_data()
/linux/drivers/net/dsa/realtek/
A Drtl83xx.c152 priv = devm_kzalloc(dev, size_add(sizeof(*priv), var->chip_data_sz), in rtl83xx_probe()
/linux/drivers/misc/mei/
A Dplatform-vsc.c345 mei_dev = devm_kzalloc(dev, size_add(sizeof(*mei_dev), sizeof(*hw)), in mei_vsc_probe()
/linux/arch/s390/boot/
A Dstartup.c234 return size_add(vsize, vmalloc_size); in get_vmem_size()
/linux/drivers/infiniband/core/
A Dsysfs.c910 data = kzalloc(struct_size(data, attrs, size_add(stats->num_counters, 1)), in alloc_hw_stats_device()
1016 data = kzalloc(struct_size(data, attrs, size_add(stats->num_counters, 1)), in alloc_hw_stats_port()
1212 size_add(attr->gid_tbl_len, attr->pkey_tbl_len)), in setup_port()
/linux/drivers/cxl/
A Dpmem.c164 if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len) in cxl_pmem_set_config_data()
/linux/drivers/i2c/
A Di2c-mux.c236 muxc = devm_kzalloc(dev, size_add(mux_size, sizeof_priv), GFP_KERNEL); in i2c_mux_alloc()
/linux/drivers/net/wireless/ath/ath12k/
A Dwow.c189 if (size_add(eth_pkt_ofs, eth_pat_len) < ETH_ALEN) { 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/arch/arm64/kvm/hyp/nvhe/
A Dpkvm.c405 return size_add(sizeof(struct pkvm_hyp_vm), in pkvm_get_hyp_vm_size()
/linux/drivers/pinctrl/
A Dpinctrl-zynqmp.c605 fgroups = devm_kcalloc(dev, size_add(func->ngroups, npins), in zynqmp_pinctrl_prepare_func_groups()
/linux/Documentation/process/
A Ddeprecated.rst98 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/
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/drivers/gpu/drm/gud/
A Dgud_pipe.c512 size_add(GUD_PROPERTIES_MAX_NUM, GUD_CONNECTOR_PROPERTIES_MAX_NUM)); in gud_pipe_check()
/linux/Documentation/translations/sp_SP/process/
A Ddeprecated.rst105 size_add(), and size_sub(). Por ejemplo, en el caso de::
111 foo = krealloc(size_add(current_size,
/linux/kernel/
A Dparams.c52 p = kmalloc(size_add(sizeof(*p), size), GFP_KERNEL); in kmalloc_parameter()
/linux/fs/ntfs3/
A Dxattr.c118 ea_p = kmalloc(size_add(size, add_bytes), GFP_NOFS); in ntfs_read_ea()

Completed in 62 milliseconds

12