Home
last modified time | relevance | path

Searched refs:oldlen (Results 1 – 24 of 24) sorted by relevance

/f-stack/freebsd/contrib/libfdt/
H A Dfdt_rw.c102 if (((p + oldlen) < p) || ((p + oldlen) > end)) in fdt_splice_()
108 memmove(p + newlen, p + oldlen, end - p - oldlen); in fdt_splice_()
126 int oldlen, int newlen) in fdt_splice_struct_() argument
128 int delta = newlen - oldlen; in fdt_splice_struct_()
206 int oldlen; in fdt_resize_property_() local
211 return oldlen; in fdt_resize_property_()
252 int oldlen, newlen; in fdt_set_name() local
259 return oldlen; in fdt_set_name()
309 int err, oldlen, newlen; in fdt_appendprop() local
315 newlen = len + oldlen; in fdt_appendprop()
[all …]
/f-stack/tools/compat/
H A Dsysctl.c52 size_t oldlen = 0; in sysctl() local
54 oldlen = *oldlenp; in sysctl()
57 total_len = namelen * sizeof(int) + sizeof(size_t) + oldlen + newlen; in sysctl()
/f-stack/freebsd/kern/
H A Dkern_mib.c157 if (sizeof(int) == sizeof(u_long) || req->oldlen >= sizeof(u_long)) in sysctl_maxphys()
188 len = MIN(req->oldlen, sizeof(buf)); in sysctl_kern_arnd()
270 if (len > req->oldlen && req->oldptr != NULL) in sysctl_hw_pagesizes()
271 len = req->oldlen; in sysctl_hw_pagesizes()
277 if (len > req->oldlen && req->oldptr != NULL) in sysctl_hw_pagesizes()
278 len = req->oldlen; in sysctl_hw_pagesizes()
H A Dkern_sysctl.c1926 if (req->oldlen <= req->oldidx) in sysctl_old_kernel()
1929 if (i > req->oldlen - req->oldidx) in sysctl_old_kernel()
1930 i = req->oldlen - req->oldidx; in sysctl_old_kernel()
1965 req.oldlen = *oldlenp; in kernel_sysctl()
1967 req.validlen = req.oldlen; in kernel_sysctl()
2088 wiredlen = (len > 0 && len < req->oldlen) ? len : req->oldlen; in sysctl_wire_old_buffer()
2378 req.oldlen = *oldlenp; in userland_sysctl()
2385 req.validlen = req.oldlen; in userland_sysctl()
2402 if (req.oldptr && req.oldlen > 4 * PAGE_SIZE) { in userland_sysctl()
2691 req.oldlen = *oldlenp; in db_sysctl()
[all …]
H A Dimgact_binmisc.c509 if (!req->oldlen) in sysctl_kern_binmisc()
H A Duipc_shm.c1935 kif.kf_structsize + curlen > req->oldlen) in sysctl_posix_shm_list()
H A Dkern_umtx.c2604 int oldlen = uq->uq_cur_queue->length; in do_cv_wait() local
2606 if (oldlen == 1) { in do_cv_wait()
H A Dkern_descrip.c4492 maxlen = req->oldptr != NULL ? req->oldlen : -1; in sysctl_kern_proc_filedesc()
4718 maxlen = req->oldptr != NULL ? req->oldlen : -1; in sysctl_kern_proc_cwd()
H A Dvfs_bio.c480 if (sizeof(int) == sizeof(long) || req->oldlen >= sizeof(long)) in sysctl_bufspace()
/f-stack/app/redis-5.0.5/deps/hiredis/
H A Dsds.c318 unsigned char oldlen = SDS_TYPE_5_LEN(flags); in sdsIncrLen() local
319 assert((incr > 0 && oldlen+incr < 32) || (incr < 0 && oldlen >= (unsigned int)(-incr))); in sdsIncrLen()
320 *fp = SDS_TYPE_5 | ((oldlen+incr) << SDS_TYPE_BITS); in sdsIncrLen()
321 len = oldlen+incr; in sdsIncrLen()
1241 int oldlen = sdslen(x); in sdsTest() local
1245 test_cond("sdsMakeRoomFor() len", sdslen(x) == oldlen); in sdsTest()
1250 p = x+oldlen; in sdsTest()
/f-stack/app/redis-5.0.5/src/
H A Dsds.c339 unsigned char oldlen = SDS_TYPE_5_LEN(flags); in sdsIncrLen() local
340 assert((incr > 0 && oldlen+incr < 32) || (incr < 0 && oldlen >= (unsigned int)(-incr))); in sdsIncrLen()
341 *fp = SDS_TYPE_5 | ((oldlen+incr) << SDS_TYPE_BITS); in sdsIncrLen()
342 len = oldlen+incr; in sdsIncrLen()
1265 int oldlen = sdslen(x); in sdsTest() local
1269 test_cond("sdsMakeRoomFor() len", sdslen(x) == oldlen); in sdsTest()
1274 p = x+oldlen; in sdsTest()
H A Dhyperloglog.c828 int oldlen = is_xzero ? 2 : 1; in hllSparseSet() local
829 int deltalen = seqlen-oldlen; in hllSparseSet()
/f-stack/freebsd/vm/
H A Dvm_meter.c290 if (curproc->p_osrel < P_OSREL_VMTOTAL64 && (req->oldlen == in vmtotal()
291 sizeof(total11) || req->oldlen == 2 * sizeof(total11))) { in vmtotal()
335 if (req->oldlen == sizeof(val32)) { in sysctl_handle_vmstat()
H A Dswap_pager.c2652 if (req->oldlen == sizeof(xs32)) { in sysctl_vm_swap_info()
2664 if (req->oldlen == sizeof(xs11)) { in sysctl_vm_swap_info()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vfsops.c2293 size_t oldlen; in zfsvfs_update_fromname() local
2295 oldlen = strlen(oldname); in zfsvfs_update_fromname()
2305 if (strncmp(fromname, oldname, oldlen) == 0 && in zfsvfs_update_fromname()
2306 (fromname[oldlen] == '/' || fromname[oldlen] == '@')) { in zfsvfs_update_fromname()
2308 newname, fromname + oldlen); in zfsvfs_update_fromname()
/f-stack/freebsd/contrib/libnv/
H A Dbsd_nvpair.c151 size_t oldlen; in nvpair_append() local
153 oldlen = nvp->nvp_nitems * valsize; in nvpair_append()
155 data = nv_realloc(olddata, oldlen + valsize); in nvpair_append()
160 valp = (unsigned char *)data + oldlen; in nvpair_append()
/f-stack/freebsd/netinet/
H A Dtcp_fastopen.c763 if (req->oldptr != NULL || req->oldlen != 0) in sysctl_net_inet_tcp_fastopen_setkey()
786 if (req->oldptr != NULL || req->oldlen != 0) in sysctl_net_inet_tcp_fastopen_setpsk()
H A Dtcp_subr.c3087 if (req->oldptr != NULL || req->oldlen != 0) in sysctl_drop()
3203 if (req->oldptr != NULL || req->oldlen != 0) in sysctl_switch_tls()
H A Digmp.c355 if (req->oldlen < sizeof(struct igmpstat)) in sysctl_igmp_stat()
/f-stack/freebsd/net/
H A Dnetmap_user.h1106 u_int oldlen = slot->len; in nm_dispatch() local
1112 oldlen == ring->nr_buf_size) { in nm_dispatch()
H A Dbpf.c2976 xbdbuf = malloc(req->oldlen, M_BPF, M_WAITOK); in bpf_stats_sysctl()
2978 if (req->oldlen < (bpf_bpfd_cnt * sizeof(*xbd))) { in bpf_stats_sysctl()
/f-stack/freebsd/netinet6/
H A Dsctp6_usrreq.c417 if (req->oldlen != sizeof(struct ucred)) { in sctp6_getcred()
H A Dudp6_usrreq.c663 if (req->oldlen != sizeof(struct xucred)) in udp6_getcred()
/f-stack/freebsd/sys/
H A Dsysctl.h171 size_t oldlen; member