Home
last modified time | relevance | path

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

/linux-2.6.39/arch/m68k/sun3/
Dsun3dvma.c166 unsigned long newlen; in get_baddr() local
171 newlen = len + ((hole->end - len) & (align-1)); in get_baddr()
173 newlen = len; in get_baddr()
175 if(hole->size > newlen) { in get_baddr()
176 hole->end -= newlen; in get_baddr()
177 hole->size -= newlen; in get_baddr()
178 dvma_entry_use(hole->end) = newlen; in get_baddr()
181 dvma_alloc_bytes += newlen; in get_baddr()
184 } else if(hole->size == newlen) { in get_baddr()
186 dvma_entry_use(hole->start) = newlen; in get_baddr()
[all …]
/linux-2.6.39/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-2.6.39/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
1017 if (newval && newlen) { in bin_intvec()
1019 size_t length = newlen / sizeof(*vec); in bin_intvec()
1050 void __user *oldval, size_t oldlen, void __user *newval, size_t newlen) in bin_ulongvec() argument
1095 if (newval && newlen) { in bin_ulongvec()
[all …]
/linux-2.6.39/net/netfilter/
Dnf_conntrack_extend.c80 int i, newlen, newoff; in __nf_ct_ext_add() local
98 newlen = newoff + t->len; in __nf_ct_ext_add()
101 new = __krealloc(old, newlen, gfp); in __nf_ct_ext_add()
122 new->len = newlen; in __nf_ct_ext_add()
123 memset((void *)new + newoff, 0, newlen - newoff); in __nf_ct_ext_add()
Dxt_TCPMSS.c183 __be16 newlen; in tcpmss_tg4() local
194 newlen = htons(ntohs(iph->tot_len) + ret); in tcpmss_tg4()
195 csum_replace2(&iph->check, iph->tot_len, newlen); in tcpmss_tg4()
196 iph->tot_len = newlen; in tcpmss_tg4()
/linux-2.6.39/crypto/
Dalgif_hash.c68 int newlen; in hash_sendmsg() local
70 newlen = af_alg_make_sg(&ctx->sgl, from, len, 0); in hash_sendmsg()
71 if (newlen < 0) in hash_sendmsg()
75 newlen); in hash_sendmsg()
86 seglen -= newlen; in hash_sendmsg()
87 from += newlen; in hash_sendmsg()
88 copied += newlen; in hash_sendmsg()
/linux-2.6.39/drivers/usb/storage/
Duas.c158 int newlen = min(len + 16, urb->actual_length) - 16; in uas_sense() local
159 if (newlen < 0) in uas_sense()
160 newlen = 0; in uas_sense()
164 urb->actual_length, len, newlen); in uas_sense()
165 len = newlen; in uas_sense()
185 int newlen = min(len + 8, urb->actual_length) - 8; in uas_sense_old() local
186 if (newlen < 0) in uas_sense_old()
187 newlen = 0; in uas_sense_old()
191 urb->actual_length, len, newlen); in uas_sense_old()
192 len = newlen; in uas_sense_old()
/linux-2.6.39/sound/core/seq/
Dseq_memory.c146 int len, newlen; in snd_seq_expand_var_event() local
151 newlen = len; in snd_seq_expand_var_event()
153 newlen = roundup(len, size_aligned); in snd_seq_expand_var_event()
154 if (count < newlen) in snd_seq_expand_var_event()
162 return newlen; in snd_seq_expand_var_event()
168 return err < 0 ? err : newlen; in snd_seq_expand_var_event()
/linux-2.6.39/fs/nfs/
Dpagelist.c281 size_t newlen = req->wb_bytes; in nfs_pageio_do_add_request() local
295 newlen += desc->pg_count; in nfs_pageio_do_add_request()
296 if (newlen > desc->pg_bsize) in nfs_pageio_do_add_request()
305 desc->pg_count = newlen; in nfs_pageio_do_add_request()
/linux-2.6.39/drivers/staging/comedi/drivers/
Dcomedi_bond.c357 static void *Realloc(const void *oldmem, size_t newlen, size_t oldlen) in Realloc() argument
359 void *newmem = kmalloc(newlen, GFP_KERNEL); in Realloc()
362 memcpy(newmem, oldmem, min(oldlen, newlen)); in Realloc()
/linux-2.6.39/fs/xfs/
Dxfs_ialloc.c248 xfs_agino_t newlen; /* new number of inodes */ in xfs_ialloc_ag_alloc() local
261 newlen = XFS_IALLOC_INODES(args.mp); in xfs_ialloc_ag_alloc()
263 args.mp->m_sb.sb_icount + newlen > args.mp->m_maxicount) in xfs_ialloc_ag_alloc()
380 be32_add_cpu(&agi->agi_count, newlen); in xfs_ialloc_ag_alloc()
381 be32_add_cpu(&agi->agi_freecount, newlen); in xfs_ialloc_ag_alloc()
383 pag->pagi_freecount += newlen; in xfs_ialloc_ag_alloc()
392 thisino < newino + newlen; in xfs_ialloc_ag_alloc()
419 xfs_trans_mod_sb(tp, XFS_TRANS_SB_ICOUNT, (long)newlen); in xfs_ialloc_ag_alloc()
420 xfs_trans_mod_sb(tp, XFS_TRANS_SB_IFREE, (long)newlen); in xfs_ialloc_ag_alloc()
Dxfs_bmap.c1661 xfs_filblks_t newlen=0; /* new indirect size */ in xfs_bmap_add_extent_hole_delay() local
1730 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
1732 nullstartblock((int)newlen)); in xfs_bmap_add_extent_hole_delay()
1750 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
1752 nullstartblock((int)newlen)); in xfs_bmap_add_extent_hole_delay()
1768 newlen = xfs_bmap_worst_indlen(ip, temp); in xfs_bmap_add_extent_hole_delay()
1770 nullstartblock((int)newlen), temp, right.br_state); in xfs_bmap_add_extent_hole_delay()
1782 oldlen = newlen = 0; in xfs_bmap_add_extent_hole_delay()
1787 if (oldlen != newlen) { in xfs_bmap_add_extent_hole_delay()
1788 ASSERT(oldlen > newlen); in xfs_bmap_add_extent_hole_delay()
[all …]
/linux-2.6.39/drivers/media/video/
Dw9966.c426 int newlen = w9966_findlen(len, size, maxlen); in w9966_calcscale() local
427 int err = newlen - len; in w9966_calcscale()
430 if (newlen > maxlen || newlen < size) in w9966_calcscale()
434 *factor = (64 * size) / newlen; in w9966_calcscale()
/linux-2.6.39/net/netfilter/ipvs/
Dip_vs_proto_udp.c110 __be16 oldlen, __be16 newlen) in udp_partial_csum_update() argument
116 ip_vs_check_diff2(oldlen, newlen, in udp_partial_csum_update()
122 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-2.6.39/scripts/dtc/
Ddata.c288 int newlen = ALIGN(d.len, align); in data_append_align() local
289 return data_append_zeroes(d, newlen - d.len); in data_append_align()
/linux-2.6.39/include/net/
Dndisc.h143 void __user *newval, size_t newlen);
/linux-2.6.39/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-2.6.39/scripts/kconfig/
Dsymbol.c866 size_t newlen; in sym_expand_string_value() local
882 newlen = strlen(res) + strlen(symval) + strlen(src) + 1; in sym_expand_string_value()
883 if (newlen > reslen) { in sym_expand_string_value()
884 reslen = newlen; in sym_expand_string_value()
/linux-2.6.39/arch/tile/include/asm/
Dcompat.h82 unsigned int newlen; member
/linux-2.6.39/net/sunrpc/
Dsvcsock.c1462 int newlen; in svc_create_socket() local
1511 newlen = len; in svc_create_socket()
1512 error = kernel_getsockname(sock, newsin, &newlen); in svc_create_socket()
1522 svc_xprt_set_local(&svsk->sk_xprt, newsin, newlen); in svc_create_socket()
/linux-2.6.39/drivers/net/wireless/
Drndis_wlan.c1763 int i, len, count, newlen, err; in remove_pmkid() local
1788 newlen = sizeof(*pmkids) + count * sizeof(pmkids->bssid_info[0]); in remove_pmkid()
1790 pmkids->length = cpu_to_le32(newlen); in remove_pmkid()
1804 int i, err, len, count, newlen; in update_pmkid() local
1832 newlen = sizeof(*pmkids) + (count + 1) * sizeof(pmkids->bssid_info[0]); in update_pmkid()
1834 pmkids = krealloc(pmkids, newlen, GFP_KERNEL); in update_pmkid()
1840 pmkids->length = cpu_to_le32(newlen); in update_pmkid()
/linux-2.6.39/net/ipv4/
Daf_inet.c1374 __be16 newlen = htons(skb->len - skb_network_offset(skb)); in inet_gro_complete() local
1376 csum_replace2(&iph->check, iph->tot_len, newlen); in inet_gro_complete()
1377 iph->tot_len = newlen; in inet_gro_complete()
/linux-2.6.39/kernel/trace/
Dtrace_events_filter.c538 int newlen; in append_filter_string() local
542 newlen = strlen(filter->filter_string) + strlen(string) + 1; in append_filter_string()
543 new_filter_string = kmalloc(newlen, GFP_KERNEL); in append_filter_string()
/linux-2.6.39/include/linux/
Dsysctl.h42 size_t newlen; member