Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/fs/xfs/libxfs/
Dxfs_ialloc.c135 xfs_agino_t newlen, in xfs_inobt_insert() argument
148 thisino < newino + newlen; in xfs_inobt_insert()
364 xfs_agino_t newlen; /* new number of inodes */ in xfs_ialloc_ag_alloc() local
377 newlen = args.mp->m_ialloc_inos; in xfs_ialloc_ag_alloc()
379 percpu_counter_read_positive(&args.mp->m_icount) + newlen > in xfs_ialloc_ag_alloc()
507 be32_add_cpu(&agi->agi_count, newlen); in xfs_ialloc_ag_alloc()
508 be32_add_cpu(&agi->agi_freecount, newlen); in xfs_ialloc_ag_alloc()
510 pag->pagi_freecount += newlen; in xfs_ialloc_ag_alloc()
517 error = xfs_inobt_insert(args.mp, tp, agbp, newino, newlen, in xfs_ialloc_ag_alloc()
523 error = xfs_inobt_insert(args.mp, tp, agbp, newino, newlen, in xfs_ialloc_ag_alloc()
[all …]
Dxfs_bmap.c2792 xfs_filblks_t newlen=0; /* new indirect size */ in xfs_bmap_add_extent_hole_delay() local
2861 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
2863 nullstartblock((int)newlen)); in xfs_bmap_add_extent_hole_delay()
2882 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
2884 nullstartblock((int)newlen)); in xfs_bmap_add_extent_hole_delay()
2898 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
2901 nullstartblock((int)newlen), temp, right.br_state); in xfs_bmap_add_extent_hole_delay()
2911 oldlen = newlen = 0; in xfs_bmap_add_extent_hole_delay()
2915 if (oldlen != newlen) { in xfs_bmap_add_extent_hole_delay()
2916 ASSERT(oldlen > newlen); in xfs_bmap_add_extent_hole_delay()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_internal.h78 const char *old, int oldlen, const char *new, int newlen);
139 const char *old, int oldlen, const char *new, int newlen,
Dmdc_reint.c419 const char *old, int oldlen, const char *new, int newlen, in mdc_rename() argument
458 req_capsule_set_size(&req->rq_pill, &RMF_SYMTGT, RCL_CLIENT, newlen+1); in mdc_rename()
469 mdc_rename_pack(req, op_data, old, oldlen, new, newlen); in mdc_rename()
Dmdc_lib.c434 const char *old, int oldlen, const char *new, int newlen) in mdc_rename_pack() argument
463 LOGL0(new, newlen, tmp); in mdc_rename_pack()
/linux-4.1.27/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.1.27/net/netfilter/ipvs/
Dip_vs_proto_udp.c109 __be16 oldlen, __be16 newlen) in udp_partial_csum_update() argument
115 ip_vs_check_diff2(oldlen, newlen, in udp_partial_csum_update()
121 ip_vs_check_diff2(oldlen, newlen, in udp_partial_csum_update()
Dip_vs_proto_tcp.c113 __be16 oldlen, __be16 newlen) in tcp_partial_csum_update() argument
119 ip_vs_check_diff2(oldlen, newlen, in tcp_partial_csum_update()
125 ip_vs_check_diff2(oldlen, newlen, in tcp_partial_csum_update()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_req_layout.h130 unsigned int newlen,
134 unsigned int newlen);
Dlustre_net.h2586 unsigned int newlen, int move_data);
2651 unsigned int newlen, int move_data) in lustre_shrink_reply() argument
2656 newlen, move_data); in lustre_shrink_reply()
Dobd_class.h1614 int newlen, struct ptlrpc_request **request) in md_rename() argument
1621 newlen, request); in md_rename()
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dlayout.c2349 unsigned int newlen, in req_capsule_shrink() argument
2367 LASSERTF(newlen <= len, "%s:%s, oldlen=%d, newlen=%d\n", in req_capsule_shrink()
2368 fmt->rf_name, field->rmf_name, len, newlen); in req_capsule_shrink()
2371 pill->rc_req->rq_reqlen = lustre_shrink_msg(msg, offset, newlen, in req_capsule_shrink()
2374 pill->rc_req->rq_replen = lustre_shrink_msg(msg, offset, newlen, in req_capsule_shrink()
2381 unsigned int newlen) in req_capsule_server_grow() argument
2395 lustre_packed_msg_size(pill->rc_req->rq_repmsg) - len + newlen) in req_capsule_server_grow()
2399 req_capsule_set_size(pill, field, RCL_SERVER, newlen); in req_capsule_server_grow()
Dpack_generic.c441 unsigned int newlen, int move_data) in lustre_shrink_msg_v2() argument
448 LASSERT(msg->lm_buflens[segment] >= newlen); in lustre_shrink_msg_v2()
450 if (msg->lm_buflens[segment] == newlen) in lustre_shrink_msg_v2()
459 msg->lm_buflens[segment] = newlen; in lustre_shrink_msg_v2()
488 unsigned int newlen, int move_data) in lustre_shrink_msg() argument
492 return lustre_shrink_msg_v2(msg, segment, newlen, move_data); in lustre_shrink_msg()
/linux-4.1.27/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.1.27/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.c1404 __be16 newlen = htons(skb->len - nhoff); in inet_gro_complete() local
1413 csum_replace2(&iph->check, iph->tot_len, newlen); in inet_gro_complete()
1414 iph->tot_len = newlen; in inet_gro_complete()
/linux-4.1.27/include/net/
Dndisc.h217 void __user *newval, size_t newlen);
/linux-4.1.27/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.1.27/arch/tile/include/asm/
Dcompat.h81 unsigned int newlen; member
/linux-4.1.27/scripts/kconfig/
Dsymbol.c885 size_t newlen; in sym_expand_string_value() local
901 newlen = strlen(res) + strlen(symval) + strlen(src) + 1; in sym_expand_string_value()
902 if (newlen > reslen) { in sym_expand_string_value()
903 reslen = newlen; in sym_expand_string_value()
/linux-4.1.27/net/sunrpc/
Dsvcsock.c1507 int newlen; in svc_create_socket() local
1556 newlen = len; in svc_create_socket()
1557 error = kernel_getsockname(sock, newsin, &newlen); in svc_create_socket()
1571 svc_xprt_set_local(&svsk->sk_xprt, newsin, newlen); in svc_create_socket()
/linux-4.1.27/include/uapi/linux/
Dsysctl.h42 size_t newlen; member
/linux-4.1.27/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.1.27/kernel/trace/
Dtrace_events_filter.c607 int newlen; in append_filter_string() local
611 newlen = strlen(filter->filter_string) + strlen(string) + 1; in append_filter_string()
612 new_filter_string = kmalloc(newlen, GFP_KERNEL); in append_filter_string()
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c1962 const char *old, int oldlen, const char *new, int newlen, in lmv_rename() argument
1975 newlen, new, PFID(&op_data->op_fid2)); in lmv_rename()
2024 new, newlen, request); in lmv_rename()
/linux-4.1.27/drivers/md/
Dmd.c8523 int newlen = lolen + hilen - (s - a); in md_set_badblocks() local
8524 if (s >= a && newlen < BB_MAX_LEN) { in md_set_badblocks()
8527 p[lo] = BB_MAKE(BB_OFFSET(p[lo]), newlen, ack); in md_set_badblocks()