Home
last modified time | relevance | path

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

/linux-4.4.14/scripts/dtc/libfdt/
Dfdt_rw.c97 static int _fdt_splice(void *fdt, void *splicepoint, int oldlen, int newlen) in _fdt_splice() argument
104 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) in _fdt_splice()
106 memmove(p + newlen, p + oldlen, end - p - oldlen); in _fdt_splice()
124 int oldlen, int newlen) in _fdt_splice_struct() argument
126 int delta = newlen - oldlen; in _fdt_splice_struct()
129 if ((err = _fdt_splice(fdt, p, oldlen, newlen))) in _fdt_splice_struct()
137 static int _fdt_splice_string(void *fdt, int newlen) in _fdt_splice_string() argument
143 if ((err = _fdt_splice(fdt, p, 0, newlen))) in _fdt_splice_string()
146 fdt_set_size_dt_strings(fdt, fdt_size_dt_strings(fdt) + newlen); in _fdt_splice_string()
254 int oldlen, newlen; in fdt_set_name() local
[all …]
/linux-4.4.14/arch/m68k/sun3/
Dsun3dvma.c168 unsigned long newlen; in get_baddr() local
173 newlen = len + ((hole->end - len) & (align-1)); in get_baddr()
175 newlen = len; in get_baddr()
177 if(hole->size > newlen) { in get_baddr()
178 hole->end -= newlen; in get_baddr()
179 hole->size -= newlen; in get_baddr()
180 dvma_entry_use(hole->end) = newlen; in get_baddr()
183 dvma_alloc_bytes += newlen; in get_baddr()
186 } else if(hole->size == newlen) { in get_baddr()
188 dvma_entry_use(hole->start) = newlen; in get_baddr()
[all …]
/linux-4.4.14/kernel/
Dsysctl_binary.c23 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen);
922 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_dir() argument
929 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_string() argument
958 if (newval && newlen) { in bin_string()
961 result = vfs_write(file, newval, newlen, &pos); in bin_string()
972 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_intvec() argument
1013 if (newval && newlen) { in bin_intvec()
1015 size_t length = newlen / sizeof(*vec); in bin_intvec()
1043 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_ulongvec() argument
1084 if (newval && newlen) { in bin_ulongvec()
[all …]
/linux-4.4.14/net/netfilter/
Dnf_conntrack_extend.c76 int i, newlen, newoff; in __nf_ct_ext_add_length() local
94 newlen = newoff + t->len + var_alloc_len; in __nf_ct_ext_add_length()
97 new = __krealloc(old, newlen, gfp); in __nf_ct_ext_add_length()
118 new->len = newlen; in __nf_ct_ext_add_length()
119 memset((void *)new + newoff, 0, newlen - newoff); in __nf_ct_ext_add_length()
Dxt_TCPMSS.c207 __be16 newlen; in tcpmss_tg4() local
218 newlen = htons(ntohs(iph->tot_len) + ret); in tcpmss_tg4()
219 csum_replace2(&iph->check, iph->tot_len, newlen); in tcpmss_tg4()
220 iph->tot_len = newlen; in tcpmss_tg4()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_user_sdma.c308 u16 newlen, pbclen, lastdesc, dma_mapped; in qib_user_sdma_page_to_frags() local
344 newlen = pkt->tidsm[pkt->tidsmidx].length; in qib_user_sdma_page_to_frags()
346 newlen = len; in qib_user_sdma_page_to_frags()
356 if ((pkt->payload_size + newlen) >= pkt->frag_size) { in qib_user_sdma_page_to_frags()
357 newlen = pkt->frag_size - pkt->payload_size; in qib_user_sdma_page_to_frags()
360 if (newlen == pkt->tidsm[pkt->tidsmidx].length) in qib_user_sdma_page_to_frags()
363 if (newlen == pkt->bytes_togo) in qib_user_sdma_page_to_frags()
369 offset, newlen, /* offset, len */ in qib_user_sdma_page_to_frags()
374 pkt->bytes_togo -= newlen; in qib_user_sdma_page_to_frags()
375 pkt->payload_size += newlen; in qib_user_sdma_page_to_frags()
[all …]
/linux-4.4.14/sound/core/seq/
Dseq_memory.c147 int len, newlen; in snd_seq_expand_var_event() local
152 newlen = len; in snd_seq_expand_var_event()
154 newlen = roundup(len, size_aligned); in snd_seq_expand_var_event()
155 if (count < newlen) in snd_seq_expand_var_event()
163 return newlen; in snd_seq_expand_var_event()
169 return err < 0 ? err : newlen; in snd_seq_expand_var_event()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_ialloc.c164 xfs_agino_t newlen, in xfs_inobt_insert() argument
177 thisino < newino + newlen; in xfs_inobt_insert()
605 xfs_agino_t newlen; /* new number of inodes */ in xfs_ialloc_ag_alloc() local
629 newlen = args.mp->m_ialloc_inos; in xfs_ialloc_ag_alloc()
631 percpu_counter_read_positive(&args.mp->m_icount) + newlen > in xfs_ialloc_ag_alloc()
772 newlen = args.len << args.mp->m_sb.sb_inopblog; in xfs_ialloc_ag_alloc()
773 ASSERT(newlen <= XFS_INODES_PER_CHUNK); in xfs_ialloc_ag_alloc()
774 allocmask = (1 << (newlen / XFS_INODES_PER_HOLEMASK_BIT)) - 1; in xfs_ialloc_ag_alloc()
792 error = xfs_ialloc_inode_init(args.mp, tp, NULL, newlen, agno, in xfs_ialloc_ag_alloc()
810 rec.ir_count = newlen; in xfs_ialloc_ag_alloc()
[all …]
Dxfs_bmap.c2791 xfs_filblks_t newlen=0; /* new indirect size */ in xfs_bmap_add_extent_hole_delay() local
2860 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
2862 nullstartblock((int)newlen)); in xfs_bmap_add_extent_hole_delay()
2881 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
2883 nullstartblock((int)newlen)); in xfs_bmap_add_extent_hole_delay()
2897 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
2900 nullstartblock((int)newlen), temp, right.br_state); in xfs_bmap_add_extent_hole_delay()
2910 oldlen = newlen = 0; in xfs_bmap_add_extent_hole_delay()
2914 if (oldlen != newlen) { in xfs_bmap_add_extent_hole_delay()
2915 ASSERT(oldlen > newlen); in xfs_bmap_add_extent_hole_delay()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/mdc/
Dmdc_internal.h68 const char *old, int oldlen, const char *new, int newlen);
129 const char *old, int oldlen, const char *new, int newlen,
Dmdc_reint.c401 const char *old, int oldlen, const char *new, int newlen, in mdc_rename() argument
438 req_capsule_set_size(&req->rq_pill, &RMF_SYMTGT, RCL_CLIENT, newlen+1); in mdc_rename()
449 mdc_rename_pack(req, op_data, old, oldlen, new, newlen); in mdc_rename()
Dmdc_lib.c394 const char *old, int oldlen, const char *new, int newlen) in mdc_rename_pack() argument
420 LOGL0(new, newlen, tmp); in mdc_rename_pack()
/linux-4.4.14/scripts/dtc/
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()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_proto_udp.c123 __be16 oldlen, __be16 newlen) in udp_partial_csum_update() argument
129 ip_vs_check_diff2(oldlen, newlen, in udp_partial_csum_update()
135 ip_vs_check_diff2(oldlen, newlen, in udp_partial_csum_update()
Dip_vs_proto_tcp.c133 __be16 oldlen, __be16 newlen) in tcp_partial_csum_update() argument
139 ip_vs_check_diff2(oldlen, newlen, in tcp_partial_csum_update()
145 ip_vs_check_diff2(oldlen, newlen, in tcp_partial_csum_update()
/linux-4.4.14/drivers/usb/storage/
Duas.c161 int newlen = min(len + 16, urb->actual_length) - 16; in uas_sense() local
162 if (newlen < 0) in uas_sense()
163 newlen = 0; in uas_sense()
167 urb->actual_length, len, newlen); in uas_sense()
168 len = newlen; in uas_sense()
/linux-4.4.14/include/net/
Dndisc.h215 void __user *newval, size_t newlen);
/linux-4.4.14/net/ipv4/
Dudp_offload.c382 __be16 newlen = htons(skb->len - nhoff); in udp_gro_complete() local
386 uh->len = newlen; in udp_gro_complete()
Daf_inet.c1399 __be16 newlen = htons(skb->len - nhoff); in inet_gro_complete() local
1408 csum_replace2(&iph->check, iph->tot_len, newlen); in inet_gro_complete()
1409 iph->tot_len = newlen; in inet_gro_complete()
/linux-4.4.14/drivers/scsi/aic7xxx/aicasm/
Daicasm_gram.y1964 int newlen; in add_version() local
1967 newlen = strlen(verstring) + strlen(prefix); in add_version()
1971 versions = realloc(versions, newlen + oldlen + 2); in add_version()
1976 versions[newlen + oldlen] = '\n'; in add_version()
1977 versions[newlen + oldlen + 1] = '\0'; in add_version()
/linux-4.4.14/arch/tile/include/asm/
Dcompat.h81 unsigned int newlen; member
/linux-4.4.14/scripts/kconfig/
Dsymbol.c884 size_t newlen; in sym_expand_string_value() local
900 newlen = strlen(res) + strlen(symval) + strlen(src) + 1; in sym_expand_string_value()
901 if (newlen > reslen) { in sym_expand_string_value()
902 reslen = newlen; in sym_expand_string_value()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dlayout.c2283 unsigned int newlen, in req_capsule_shrink() argument
2301 LASSERTF(newlen <= len, "%s:%s, oldlen=%d, newlen=%d\n", in req_capsule_shrink()
2302 fmt->rf_name, field->rmf_name, len, newlen); in req_capsule_shrink()
2305 pill->rc_req->rq_reqlen = lustre_shrink_msg(msg, offset, newlen, in req_capsule_shrink()
2308 pill->rc_req->rq_replen = lustre_shrink_msg(msg, offset, newlen, in req_capsule_shrink()
Dpack_generic.c425 unsigned int newlen, int move_data) in lustre_shrink_msg_v2() argument
432 LASSERT(msg->lm_buflens[segment] >= newlen); in lustre_shrink_msg_v2()
434 if (msg->lm_buflens[segment] == newlen) in lustre_shrink_msg_v2()
443 msg->lm_buflens[segment] = newlen; in lustre_shrink_msg_v2()
472 unsigned int newlen, int move_data) in lustre_shrink_msg() argument
476 return lustre_shrink_msg_v2(msg, segment, newlen, move_data); in lustre_shrink_msg()
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlustre_req_layout.h122 unsigned int newlen,
Dlustre_net.h2555 unsigned int newlen, int move_data);
2610 unsigned int newlen, int move_data) in lustre_shrink_reply() argument
2615 newlen, move_data); in lustre_shrink_reply()
Dobd_class.h1515 int newlen, struct ptlrpc_request **request) in md_rename() argument
1522 newlen, request); in md_rename()
/linux-4.4.14/net/sunrpc/
Dsvcsock.c1531 int newlen; in svc_create_socket() local
1580 newlen = len; in svc_create_socket()
1581 error = kernel_getsockname(sock, newsin, &newlen); in svc_create_socket()
1595 svc_xprt_set_local(&svsk->sk_xprt, newsin, newlen); in svc_create_socket()
/linux-4.4.14/include/uapi/linux/
Dsysctl.h42 size_t newlen; member
/linux-4.4.14/drivers/net/wireless/
Drndis_wlan.c1764 int i, newlen, err; in remove_pmkid() local
1789 newlen = sizeof(*pmkids) + count * sizeof(pmkids->bssid_info[0]); in remove_pmkid()
1791 pmkids->length = cpu_to_le32(newlen); in remove_pmkid()
1806 int i, err, newlen; in update_pmkid() local
1834 newlen = sizeof(*pmkids) + (count + 1) * sizeof(pmkids->bssid_info[0]); in update_pmkid()
1836 new_pmkids = krealloc(pmkids, newlen, GFP_KERNEL); in update_pmkid()
1843 pmkids->length = cpu_to_le32(newlen); in update_pmkid()
/linux-4.4.14/kernel/trace/
Dtrace_events_filter.c651 int newlen; in append_filter_string() local
655 newlen = strlen(filter->filter_string) + strlen(string) + 1; in append_filter_string()
656 new_filter_string = kmalloc(newlen, GFP_KERNEL); in append_filter_string()
/linux-4.4.14/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c1921 const char *old, int oldlen, const char *new, int newlen, in lmv_rename() argument
1934 newlen, new, PFID(&op_data->op_fid2)); in lmv_rename()
1983 new, newlen, request); in lmv_rename()
/linux-4.4.14/drivers/md/
Dmd.c8707 int newlen = lolen + hilen - (s - a); in md_set_badblocks() local
8708 if (s >= a && newlen < BB_MAX_LEN) { in md_set_badblocks()
8711 p[lo] = BB_MAKE(BB_OFFSET(p[lo]), newlen, ack); in md_set_badblocks()