Home
last modified time | relevance | path

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

/Linux-v6.6/include/linux/
Doverflow.h206 static inline size_t __must_check size_add(size_t addend1, size_t addend2) in size_add() function
294 size_add(sizeof(*(p)), flex_array_size(p, member, count)))
/Linux-v6.6/lib/
Doverflow_kunit.c682 check_one_size_helper(9, size_add, var++, 5); in overflow_size_helpers_test()
683 check_one_size_helper(9, size_add, 4, var++); in overflow_size_helpers_test()
684 check_one_size_helper(9, size_add, 9, 0); in overflow_size_helpers_test()
685 check_one_size_helper(9, size_add, 0, 9); in overflow_size_helpers_test()
686 check_one_size_helper(5, size_add, 2, 3); in overflow_size_helpers_test()
687 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1); in overflow_size_helpers_test()
688 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3); in overflow_size_helpers_test()
689 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3); in overflow_size_helpers_test()
/Linux-v6.6/drivers/net/wireless/marvell/mwifiex/
D11n_rxreorder.c924 if (size_add(sizeof(tlv_rxba->header), tlv_len) > tlv_buf_left) { in mwifiex_11n_rxba_sync_event()
927 size_add(sizeof(tlv_rxba->header), tlv_len), in mwifiex_11n_rxba_sync_event()
940 if (size_add(sizeof(*tlv_rxba), tlv_bitmap_len) > tlv_buf_left) { in mwifiex_11n_rxba_sync_event()
943 size_add(sizeof(*tlv_rxba), tlv_bitmap_len), in mwifiex_11n_rxba_sync_event()
/Linux-v6.6/arch/arm64/kvm/
Dpkvm.c138 hyp_vm_sz = PAGE_ALIGN(size_add(PKVM_HYP_VM_SIZE, in __pkvm_create_hyp_vm()
/Linux-v6.6/drivers/accel/qaic/
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()
/Linux-v6.6/drivers/net/dsa/realtek/
Drealtek-mdio.c157 size_add(sizeof(*priv), var->chip_data_sz), in realtek_mdio_probe()
/Linux-v6.6/arch/s390/boot/
Dstartup.c188 vsize = size_add(vsize, vmalloc_size); in setup_kernel_memory_layout()
/Linux-v6.6/drivers/cxl/
Dpmem.c162 if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len) in cxl_pmem_set_config_data()
/Linux-v6.6/drivers/i2c/
Di2c-mux.c249 muxc = devm_kzalloc(dev, size_add(mux_size, sizeof_priv), GFP_KERNEL); in i2c_mux_alloc()
/Linux-v6.6/drivers/regulator/
Dtps6594-regulator.c490 reg_irq_nb = size_mul(REGS_INT_NB, (size_add(BUCK_NB, LDO_NB))); in tps6594_regulator_probe()
/Linux-v6.6/arch/arm64/kvm/hyp/nvhe/
Dpkvm.c399 return size_add(sizeof(struct pkvm_hyp_vm), in pkvm_get_hyp_vm_size()
/Linux-v6.6/Documentation/translations/it_IT/process/
Ddeprecated.rst106 Per altri calcoli, usate le funzioni size_mul(), size_add(), e size_sub(). Per
113 foo = krealloc(size_add(current_size,
/Linux-v6.6/Documentation/process/
Ddeprecated.rst98 size_add(), and size_sub() helpers. For example, in the case of::
104 foo = krealloc(size_add(current_size,
/Linux-v6.6/fs/overlayfs/
Dparams.c389 (append && (size_add(ctx->nr, nr_lower) > OVL_MAX_STACK))) { in ovl_parse_param_lowerdir()
/Linux-v6.6/Documentation/translations/sp_SP/process/
Ddeprecated.rst105 size_add(), and size_sub(). Por ejemplo, en el caso de::
111 foo = krealloc(size_add(current_size,
/Linux-v6.6/fs/ntfs3/
Dxattr.c118 ea_p = kmalloc(size_add(size, add_bytes), GFP_NOFS); in ntfs_read_ea()
/Linux-v6.6/drivers/vhost/
Dvhost.c485 return size_add(struct_size(vq->avail, ring, num), event); in vhost_get_avail_size()
494 return size_add(struct_size(vq->used, ring, num), event); in vhost_get_used_size()
/Linux-v6.6/drivers/remoteproc/
Dremoteproc_core.c487 if (size_add(rsc_size, rsc->config_len) > avail) { in rproc_handle_vdev()
/Linux-v6.6/net/wireless/
Dnl80211.c9198 size = size_add(size, array_size(sizeof(*request->ssids), n_ssids)); in nl80211_trigger_scan()
9199 size = size_add(size, ie_len); in nl80211_trigger_scan()
9643 size = size_add(size, array_size(sizeof(*request->ssids), n_ssids)); in nl80211_parse_sched_scan()
9644 size = size_add(size, array_size(sizeof(*request->match_sets), in nl80211_parse_sched_scan()
9646 size = size_add(size, array_size(sizeof(*request->scan_plans), in nl80211_parse_sched_scan()
9648 size = size_add(size, ie_len); in nl80211_parse_sched_scan()
/Linux-v6.6/drivers/usb/gadget/function/
Df_fs.c2580 size_add(lang_count, 1)); in __ffs_data_got_strings()
/Linux-v6.6/drivers/net/wireless/intel/ipw2x00/
Dipw2200.c1221 error = kmalloc(size_add(struct_size(error, elem, elem_len), in ipw_alloc_error_log()