Home
last modified time | relevance | path

Searched refs:newlen (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/scripts/dtc/libfdt/
H A Dfdt_rw.c84 int oldlen, int newlen) in fdt_splice_struct_() argument
86 int delta = newlen - oldlen; in fdt_splice_struct_()
100 int newlen = strlen(s) + 1; in fdt_del_last_string_() local
238 int oldlen, newlen; in fdt_set_name() local
247 newlen = strlen(name); in fdt_set_name()
250 FDT_TAGALIGN(newlen+1)); in fdt_set_name()
254 memcpy(namep, name, newlen+1); in fdt_set_name()
295 int err, oldlen, newlen; in fdt_appendprop() local
301 newlen = len + oldlen; in fdt_appendprop()
304 FDT_TAGALIGN(newlen)); in fdt_appendprop()
[all …]
/openbmc/u-boot/scripts/dtc/libfdt/
H A Dfdt_rw.c126 int oldlen, int newlen) in fdt_splice_struct_() argument
128 int delta = newlen - oldlen; in fdt_splice_struct_()
145 if ((err = fdt_splice_(fdt, p, 0, newlen))) in fdt_splice_string_()
252 int oldlen, newlen; in fdt_set_name() local
261 newlen = strlen(name); in fdt_set_name()
264 FDT_TAGALIGN(newlen+1)); in fdt_set_name()
268 memcpy(namep, name, newlen+1); in fdt_set_name()
309 int err, oldlen, newlen; in fdt_appendprop() local
315 newlen = len + oldlen; in fdt_appendprop()
318 FDT_TAGALIGN(newlen)); in fdt_appendprop()
[all …]
/openbmc/linux/arch/m68k/sun3/
H A Dsun3dvma.c167 unsigned long newlen; in get_baddr() local
172 newlen = len + ((hole->end - len) & (align-1)); in get_baddr()
174 newlen = len; in get_baddr()
176 if(hole->size > newlen) { in get_baddr()
177 hole->end -= newlen; in get_baddr()
178 hole->size -= newlen; in get_baddr()
179 dvma_entry_use(hole->end) = newlen; in get_baddr()
182 dvma_alloc_bytes += newlen; in get_baddr()
185 } else if(hole->size == newlen) { in get_baddr()
187 dvma_entry_use(hole->start) = newlen; in get_baddr()
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_extend.c94 unsigned int newlen, newoff, oldlen, alloc; in nf_ct_ext_add() local
114 newlen = newoff + nf_ct_ext_type_len[id]; in nf_ct_ext_add()
116 alloc = max(newlen, NF_CT_EXT_PREALLOC); in nf_ct_ext_add()
127 new->len = newlen; in nf_ct_ext_add()
128 memset((void *)new + newoff, 0, newlen - newoff); in nf_ct_ext_add()
H A Dxt_TCPMSS.c199 __be16 newlen; in tcpmss_tg4() local
210 newlen = htons(ntohs(iph->tot_len) + ret); in tcpmss_tg4()
211 csum_replace2(&iph->check, iph->tot_len, newlen); in tcpmss_tg4()
212 iph->tot_len = newlen; in tcpmss_tg4()
223 __be16 frag_off, oldlen, newlen; in tcpmss_tg6() local
240 newlen = htons(ntohs(oldlen) + ret); in tcpmss_tg6()
243 (__force __wsum)newlen); in tcpmss_tg6()
244 ipv6h->payload_len = newlen; in tcpmss_tg6()
/openbmc/qemu/bsd-user/freebsd/
H A Dos-sys.c253 size_t newlen) in do_freebsd_sysctl_oid() argument
422 ret = get_errno(sysctl(snamep, namelen, holdp, &holdlen, hnewp, newlen)); in do_freebsd_sysctl_oid()
483 abi_ulong newlen) in do_freebsd_sysctlbyname() argument
504 hnewp = lock_user(VERIFY_READ, newp, newlen, 1); in do_freebsd_sysctlbyname()
524 newlen); in do_freebsd_sysctlbyname()
542 abi_ulong oldp, abi_ulong oldlenp, abi_ulong newp, abi_ulong newlen) in do_freebsd_sysctl() argument
562 hnewp = lock_user(VERIFY_READ, newp, newlen, 1); in do_freebsd_sysctl()
579 newlen); in do_freebsd_sysctl()
/openbmc/linux/sound/core/seq/
H A Dseq_memory.c177 int len, newlen, err; in snd_seq_expand_var_event() local
182 newlen = len; in snd_seq_expand_var_event()
184 newlen = roundup(len, size_aligned); in snd_seq_expand_var_event()
185 if (count < newlen) in snd_seq_expand_var_event()
190 if (len != newlen) { in snd_seq_expand_var_event()
192 memset(buf + len, 0, newlen - len); in snd_seq_expand_var_event()
194 newlen - len)) in snd_seq_expand_var_event()
197 return newlen; in snd_seq_expand_var_event()
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.c304 u16 newlen, pbclen, lastdesc, dma_mapped; in qib_user_sdma_page_to_frags() local
339 newlen = pkt->tidsm[pkt->tidsmidx].length; in qib_user_sdma_page_to_frags()
341 newlen = len; in qib_user_sdma_page_to_frags()
358 if (newlen == pkt->bytes_togo) in qib_user_sdma_page_to_frags()
364 offset, newlen, /* offset, len */ in qib_user_sdma_page_to_frags()
369 pkt->bytes_togo -= newlen; in qib_user_sdma_page_to_frags()
370 pkt->payload_size += newlen; in qib_user_sdma_page_to_frags()
400 pkt->tidsm[pkt->tidsmidx].length -= newlen; in qib_user_sdma_page_to_frags()
538 if (newlen != len) { in qib_user_sdma_page_to_frags()
545 len -= newlen; in qib_user_sdma_page_to_frags()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_reflink.c1061 xfs_off_t newlen, in xfs_reflink_update_dest() argument
1079 if (newlen > i_size_read(VFS_I(dest))) { in xfs_reflink_update_dest()
1080 trace_xfs_reflink_update_inode_size(dest, newlen); in xfs_reflink_update_dest()
1081 i_size_write(VFS_I(dest), newlen); in xfs_reflink_update_dest()
1082 dest->i_disk_size = newlen; in xfs_reflink_update_dest()
1140 xfs_off_t newlen; in xfs_reflink_remap_extent() local
1307 newlen = min_t(xfs_off_t, newlen, new_isize); in xfs_reflink_remap_extent()
1308 if (newlen > i_size_read(VFS_I(ip))) { in xfs_reflink_remap_extent()
1309 trace_xfs_reflink_update_inode_size(ip, newlen); in xfs_reflink_remap_extent()
1310 i_size_write(VFS_I(ip), newlen); in xfs_reflink_remap_extent()
[all …]
H A Dxfs_reflink.h53 extern int xfs_reflink_update_dest(struct xfs_inode *dest, xfs_off_t newlen,
/openbmc/linux/net/ipv4/
H A Dudp_offload.c275 __be16 newlen; in __udp_gso_segment() local
344 newlen = htons(sizeof(*uh) + mss); in __udp_gso_segment()
345 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment()
357 uh->len = newlen; in __udp_gso_segment()
371 newlen = htons(skb_tail_pointer(seg) - skb_transport_header(seg) + in __udp_gso_segment()
373 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment()
375 uh->len = newlen; in __udp_gso_segment()
717 __be16 newlen = htons(skb->len - nhoff); in udp_gro_complete() local
722 uh->len = newlen; in udp_gro_complete()
/openbmc/linux/fs/xfs/scrub/
H A Ddir.c307 int newlen; in xchk_directory_data_bestfree() local
374 newlen = xfs_dir2_data_entsize(mp, dep->namelen); in xchk_directory_data_bestfree()
375 if (newlen <= 0) { in xchk_directory_data_bestfree()
380 offset += newlen; in xchk_directory_data_bestfree()
400 newlen = be16_to_cpu(dup->length); in xchk_directory_data_bestfree()
401 if (newlen <= 0) { in xchk_directory_data_bestfree()
405 offset += newlen; in xchk_directory_data_bestfree()
/openbmc/linux/arch/riscv/include/asm/
H A Dalternative-macros.h61 #define ALT_ENTRY(oldptr, newptr, vendor_id, patch_id, newlen) \ argument
65 ".2byte " newlen "\n" \
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_ialloc.c202 xfs_agino_t newlen, in xfs_inobt_insert() argument
213 thisino < newino + newlen; in xfs_inobt_insert()
672 newlen = igeo->ialloc_inos; in xfs_ialloc_ag_alloc()
810 ASSERT(newlen <= XFS_INODES_PER_CHUNK); in xfs_ialloc_ag_alloc()
846 rec.ir_count = newlen; in xfs_ialloc_ag_alloc()
847 rec.ir_freecount = newlen; in xfs_ialloc_ag_alloc()
894 newlen, XFS_BTNUM_FINO); in xfs_ialloc_ag_alloc()
903 be32_add_cpu(&agi->agi_count, newlen); in xfs_ialloc_ag_alloc()
904 be32_add_cpu(&agi->agi_freecount, newlen); in xfs_ialloc_ag_alloc()
905 pag->pagi_freecount += newlen; in xfs_ialloc_ag_alloc()
[all …]
/openbmc/u-boot/scripts/dtc/
H A Ddata.c236 int newlen = ALIGN(d.len, align); in data_append_align() local
237 return data_append_zeroes(d, newlen - d.len); in data_append_align()
/openbmc/linux/scripts/dtc/
H A Ddata.c223 int newlen = ALIGN(d.len, align); in data_append_align() local
224 return data_append_zeroes(d, newlen - d.len); in data_append_align()
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_proto_udp.c118 __be16 oldlen, __be16 newlen) in udp_partial_csum_update() argument
124 ip_vs_check_diff2(oldlen, newlen, in udp_partial_csum_update()
130 ip_vs_check_diff2(oldlen, newlen, in udp_partial_csum_update()
H A Dip_vs_proto_tcp.c129 __be16 oldlen, __be16 newlen) in tcp_partial_csum_update() argument
135 ip_vs_check_diff2(oldlen, newlen, in tcp_partial_csum_update()
141 ip_vs_check_diff2(oldlen, newlen, in tcp_partial_csum_update()
/openbmc/linux/block/
H A Dbadblocks.c270 int newlen = lolen + hilen - (s - a); in badblocks_set() local
272 if (s >= a && newlen < BB_MAX_LEN) { in badblocks_set()
276 p[lo] = BB_MAKE(BB_OFFSET(p[lo]), newlen, ack); in badblocks_set()
/openbmc/linux/fs/ocfs2/
H A Drefcounttree.h125 loff_t newlen);
/openbmc/linux/drivers/usb/storage/
H A Duas.c184 int newlen = min(len + 16, urb->actual_length) - 16; in uas_sense() local
185 if (newlen < 0) in uas_sense()
186 newlen = 0; in uas_sense()
190 urb->actual_length, len, newlen); in uas_sense()
191 len = newlen; in uas_sense()
/openbmc/qemu/bsd-user/
H A Dqemu.h272 abi_ulong oldp, abi_ulong oldlenp, abi_ulong newp, abi_ulong newlen);
275 abi_ulong newlen);
/openbmc/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_gram.y1959 int newlen; in add_version() local
1962 newlen = strlen(verstring) + strlen(prefix); in add_version()
1966 versions = realloc(versions, newlen + oldlen + 2); in add_version()
1971 versions[newlen + oldlen] = '\n'; in add_version()
1972 versions[newlen + oldlen + 1] = '\0'; in add_version()
/openbmc/u-boot/scripts/kconfig/
H A Dsymbol.c932 size_t newlen; in sym_expand_string_value() local
948 newlen = strlen(res) + strlen(symval) + strlen(src) + 1; in sym_expand_string_value()
949 if (newlen > reslen) { in sym_expand_string_value()
950 reslen = newlen; in sym_expand_string_value()
/openbmc/u-boot/common/
H A Dfdt_support.c715 int newlen; in fdt_increase_size() local
717 newlen = fdt_totalsize(fdt) + add_len; in fdt_increase_size()
720 return fdt_open_into(fdt, fdt, newlen); in fdt_increase_size()

12