| /linux-6.15/tools/perf/arch/arm64/util/ |
| H A D | perf_regs.c | 97 int ret, new_len; in arch_sdt_arg_parse_op() local 106 new_len = 2; /* % NULL */ in arch_sdt_arg_parse_op() 107 new_len += (int)(rm[1].rm_eo - rm[1].rm_so); in arch_sdt_arg_parse_op() 109 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 113 scnprintf(*new_op, new_len, "%%%.*s", in arch_sdt_arg_parse_op() 117 new_len = 7; /* + ( % s p ) NULL */ in arch_sdt_arg_parse_op() 121 new_len += 1; in arch_sdt_arg_parse_op() 123 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op() 125 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 130 scnprintf(*new_op, new_len, "+0(%%sp)"); in arch_sdt_arg_parse_op() [all …]
|
| /linux-6.15/tools/perf/arch/powerpc/util/ |
| H A D | perf_regs.c | 138 int ret, new_len; in arch_sdt_arg_parse_op() local 155 new_len = 5; /* % g p r NULL */ in arch_sdt_arg_parse_op() 156 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op() 158 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 162 scnprintf(*new_op, new_len, "%%gpr%.*s", in arch_sdt_arg_parse_op() 171 new_len = 8; /* +/- ( % g p r ) NULL */ in arch_sdt_arg_parse_op() 172 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op() 173 new_len += (int)(rm[4].rm_eo - rm[4].rm_so); in arch_sdt_arg_parse_op() 175 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 179 scnprintf(*new_op, new_len, "%c%.*s(%%gpr%.*s)", prefix, in arch_sdt_arg_parse_op()
|
| /linux-6.15/mm/ |
| H A D | mremap.c | 854 if (vrm->old_len > vrm->new_len) in vrm_remap_type() 1185 vrm->old_len = vrm->new_len; in copy_vma_and_data() 1293 unsigned long new_len = vrm->new_len; in resize_is_valid() local 1318 if (new_len == old_len) in resize_is_valid() 1389 if (vrm->new_len > TASK_SIZE || in mremap_to() 1423 vrm->old_len = vrm->new_len; in mremap_to() 1500 if (!PAGE_ALIGN(vrm->new_len)) in check_mremap_params() 1580 vrm->new_len = ALIGN(vrm->new_len, huge_page_size(h)); in align_hugetlb() 1592 if (vrm->new_len > vrm->old_len) in align_hugetlb() 1699 vrm->new_len = PAGE_ALIGN(vrm->new_len); in do_mremap() [all …]
|
| /linux-6.15/tools/objtool/ |
| H A D | special.c | 24 unsigned char orig_len, new_len; /* group only */ member 37 .new_len = ALT_NEW_LEN_OFFSET, 83 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 84 entry->new_len); in get_alt_entry() 97 if (!entry->group || alt->new_len) { in get_alt_entry()
|
| /linux-6.15/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | omapdss-boot-init.c | 85 int new_len; in omapdss_omapify_node() local 101 new_len = prop->length + strlen(prefix) * num_strs; in omapdss_omapify_node() 102 new_compat = kmalloc(new_len, GFP_KERNEL); in omapdss_omapify_node() 106 omapdss_prefix_strcpy(new_compat, new_len, prop->value, prop->length); in omapdss_omapify_node() 108 omapdss_update_prop(node, new_compat, new_len); in omapdss_omapify_node()
|
| /linux-6.15/drivers/crypto/ |
| H A D | omap-crypto.c | 60 int new_len; in omap_crypto_copy_sgs() local 62 new_len = ALIGN(total, bs); in omap_crypto_copy_sgs() 63 pages = get_order(new_len); in omap_crypto_copy_sgs() 75 memset(buf + total, 0, new_len - total); in omap_crypto_copy_sgs() 81 sg_set_buf(new_sg, buf, new_len); in omap_crypto_copy_sgs()
|
| H A D | omap-sham.c | 632 ctx->total = new_len; in omap_sham_copy_sg_lists() 663 if (new_len < len) in omap_sham_copy_sg_lists() 664 len = new_len; in omap_sham_copy_sg_lists() 667 new_len -= len; in omap_sham_copy_sg_lists() 672 if (new_len <= 0) in omap_sham_copy_sg_lists() 718 ctx->total = new_len; in omap_sham_copy_sgs() 731 int new_len; in omap_sham_align_sgs() local 747 new_len = nbytes; in omap_sham_align_sgs() 753 new_len = DIV_ROUND_UP(new_len, bs) * bs; in omap_sham_align_sgs() 755 new_len = (new_len - 1) / bs * bs; in omap_sham_align_sgs() [all …]
|
| H A D | s5p-sss.c | 1012 len = new_len + ctx->bufcnt; in s5p_hash_copy_sgs() 1052 struct scatterlist *sg, unsigned int new_len) in s5p_hash_copy_sg_lists() argument 1084 while (sg && new_len) { in s5p_hash_copy_sg_lists() 1086 if (new_len < len) in s5p_hash_copy_sg_lists() 1087 len = new_len; in s5p_hash_copy_sg_lists() 1089 new_len -= len; in s5p_hash_copy_sg_lists() 1092 if (new_len <= 0) in s5p_hash_copy_sg_lists() 1123 unsigned int new_len, bool final) in s5p_hash_prepare_sgs() argument 1129 if (!sg || !sg->length || !new_len) in s5p_hash_prepare_sgs() 1162 return s5p_hash_copy_sgs(ctx, sg, new_len); in s5p_hash_prepare_sgs() [all …]
|
| /linux-6.15/drivers/crypto/qce/ |
| H A D | dma.c | 58 unsigned int new_len; in qce_sgtable_add() local 70 new_len = new_sgl->length > max_len ? max_len : new_sgl->length; in qce_sgtable_add() 71 sg_set_page(sg, sg_page(new_sgl), new_len, new_sgl->offset); in qce_sgtable_add() 75 max_len -= new_len; in qce_sgtable_add()
|
| /linux-6.15/net/core/ |
| H A D | netprio_cgroup.c | 44 size_t new_sz, new_len; in extend_netdev_table() local 58 new_len = (new_sz - offsetof(struct netprio_map, priomap)) / in extend_netdev_table() 60 if (new_len > target_idx) in extend_netdev_table() 77 new->priomap_len = new_len; in extend_netdev_table()
|
| H A D | dev_api.c | 151 int dev_change_tx_queue_len(struct net_device *dev, unsigned long new_len) in dev_change_tx_queue_len() argument 156 ret = netif_change_tx_queue_len(dev, new_len); in dev_change_tx_queue_len()
|
| /linux-6.15/fs/hpfs/ |
| H A D | namei.c | 504 unsigned new_len = new_dentry->d_name.len; in hpfs_rename() local 519 if ((err = hpfs_chk_name(new_name, &new_len))) return err; in hpfs_rename() 543 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename() 546 memcpy(nde->name, new_name, new_len); in hpfs_rename() 561 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename() 589 fnode->len = new_len; in hpfs_rename() 590 memcpy(fnode->name, new_name, new_len>15?15:new_len); in hpfs_rename() 591 if (new_len < 15) memset(&fnode->name[new_len], 0, 15 - new_len); in hpfs_rename()
|
| /linux-6.15/tools/perf/arch/x86/util/ |
| H A D | perf_regs.c | 198 int new_len = 0, ret; in arch_sdt_arg_parse_op() local 258 new_len = strlen(prefix) + in arch_sdt_arg_parse_op() 265 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 269 scnprintf(*new_op, new_len, "%.*s%.*s%.*s%.*s%.*s", in arch_sdt_arg_parse_op()
|
| /linux-6.15/drivers/platform/x86/hp/hp-bioscfg/ |
| H A D | bioscfg.c | 431 int new_len = 0; in hp_convert_hexstr_to_str() local 460 new_str[new_len++] = '\\'; in hp_convert_hexstr_to_str() 462 new_str[new_len++] = ch; in hp_convert_hexstr_to_str() 468 if (new_len) { in hp_convert_hexstr_to_str() 469 new_str[new_len] = '\0'; in hp_convert_hexstr_to_str() 470 *str = krealloc(new_str, (new_len + 1) * sizeof(char), in hp_convert_hexstr_to_str() 473 *len = new_len; in hp_convert_hexstr_to_str()
|
| /linux-6.15/fs/ocfs2/ |
| H A D | move_extents.c | 204 u32 new_phys_cpos, new_len; in ocfs2_defrag_extent() local 280 &new_phys_cpos, &new_len); in ocfs2_defrag_extent() 292 if (new_len != *len) { in ocfs2_defrag_extent() 293 mlog(0, "len_claimed: %u, len: %u\n", new_len, *len); in ocfs2_defrag_extent() 305 ret = __ocfs2_move_extent(handle, context, cpos, new_len, phys_cpos, in ocfs2_defrag_extent() 310 if (partial && (new_len != *len)) in ocfs2_defrag_extent() 311 *len = new_len; in ocfs2_defrag_extent() 327 new_phys_cpos, new_len); in ocfs2_defrag_extent() 333 new_len); in ocfs2_defrag_extent()
|
| H A D | refcounttree.h | 80 u32 new_cluster, u32 new_len); 84 u32 new_cluster, u32 new_len);
|
| /linux-6.15/drivers/crypto/stm32/ |
| H A D | stm32-hash.c | 1130 rctx->total = new_len; in stm32_hash_copy_sgs() 1143 int new_len; in stm32_hash_align_sgs() local 1161 new_len = nbytes; in stm32_hash_align_sgs() 1167 new_len = DIV_ROUND_UP(new_len, bs) * bs; in stm32_hash_align_sgs() 1169 new_len = (new_len - 1) / bs * bs; // return n block - 1 block in stm32_hash_align_sgs() 1177 new_len += sizeof(u32); in stm32_hash_align_sgs() 1179 new_len -= bs; in stm32_hash_align_sgs() 1183 if (!new_len) in stm32_hash_align_sgs() 1186 if (nbytes != new_len) in stm32_hash_align_sgs() 1238 rctx->total = new_len; in stm32_hash_align_sgs() [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | testing_helpers.c | 17 int i, set_len = 0, new_len, num, start = 0, end = -1; in parse_num_list() local 52 new_len = end + 1; in parse_num_list() 53 tmp = realloc(set, new_len); in parse_num_list() 61 set_len = new_len; in parse_num_list()
|
| /linux-6.15/arch/powerpc/platforms/pseries/ |
| H A D | papr-vpd.c | 154 const size_t new_len = blob->len + len; in vpd_blob_extend() local 159 new_ptr = kvrealloc(old_ptr, new_len, GFP_KERNEL_ACCOUNT); in vpd_blob_extend() 165 blob->len = new_len; in vpd_blob_extend()
|
| /linux-6.15/fs/nfs/blocklayout/ |
| H A D | extent_tree.c | 285 sector_t new_len = ext_f_end(new) - ext_f_end(be); in ext_tree_insert() local 286 sector_t diff = new->be_length - new_len; in ext_tree_insert() 290 new->be_length = new_len; in ext_tree_insert() 298 sector_t new_len = ext_f_end(new) - ext_f_end(be); in ext_tree_insert() local 299 sector_t diff = new->be_length - new_len; in ext_tree_insert() 313 new->be_length = new_len; in ext_tree_insert()
|
| /linux-6.15/arch/riscv/include/asm/ |
| H A D | alternative-macros.h | 9 .macro ALT_ENTRY oldptr newptr vendor_id patch_id new_len 13 .2byte \new_len
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A D | pnvm.c | 242 size_t new_len; in iwl_pnvm_get_from_fs() local 254 new_len = pnvm->size; in iwl_pnvm_get_from_fs() 261 *len = new_len; in iwl_pnvm_get_from_fs()
|
| /linux-6.15/fs/ |
| H A D | remap_range.c | 140 loff_t new_len = *len; in generic_remap_check_len() local 146 new_len &= ~blkmask; in generic_remap_check_len() 148 if (new_len == *len) in generic_remap_check_len() 152 *len = new_len; in generic_remap_check_len()
|
| /linux-6.15/tools/objtool/include/objtool/ |
| H A D | special.h | 28 unsigned int orig_len, new_len; /* group only */ member
|
| /linux-6.15/drivers/usb/serial/ |
| H A D | digi_acceleport.c | 887 int ret, data_len, new_len; in digi_write() local 908 new_len = 1; in digi_write() 910 new_len = 0; in digi_write() 913 return new_len; in digi_write() 918 new_len = min(count, port->bulk_out_size-2-priv->dp_out_buf_len); in digi_write() 919 data_len = new_len + priv->dp_out_buf_len; in digi_write() 936 memcpy(data, buf, new_len); in digi_write() 941 ret = new_len; in digi_write()
|