Home
last modified time | relevance | path

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

12345678910>>...40

/freebsd/contrib/lib9p/pytest/
H A Dnumalloc.py262 def _free_multi(self, how, values): argument
277 self._free_range(how, val, highval)
279 def _maybe_increase_max(self, how, val): argument
290 raise ValueError('{0}: {1} is outside range limit'.format(how, val))
292 def _maybe_decrease_min(self, how, val): argument
303 raise ValueError('{0}: {1} is outside range limit'.format(how, val))
305 def _free_range(self, how, val, highval): argument
316 raise ValueError('{0}: {1} already available'.format(how, val))
322 'available'.format(how, val, highval))
348 self._maybe_increase_max(how, highval)
[all …]
/freebsd/sys/kern/
H A Dkern_mbuf.c640 mb_ctor_mbuf(void *mem, int size, void *arg, int how) in mb_ctor_mbuf() argument
662 error = m_init(m, how, type, flags); in mb_ctor_mbuf()
729 mb_ctor_clust(void *mem, int size, void *arg, int how) in mb_ctor_clust() argument
755 mb_zinit_pack(void *mem, int size, int how) in mb_zinit_pack() argument
760 if (uma_zalloc_arg(zone_clust, m, how) == NULL || in mb_zinit_pack()
765 trash_init(m->m_ext.ext_buf, MCLBYTES, how); in mb_zinit_pack()
793 mb_ctor_pack(void *mem, int size, void *arg, int how) in mb_ctor_pack() argument
807 trash_ctor(m->m_ext.ext_buf, MCLBYTES, zone_clust, how); in mb_ctor_pack()
810 error = m_init(m, how, type, flags); in mb_ctor_pack()
1123 mb_alloc_ext_pgs(int how, m_ext_free_t ext_free, int flags) in mb_alloc_ext_pgs() argument
[all …]
H A Dsubr_memdesc.c341 vaddr_ext_mbuf(memdesc_alloc_ext_mbuf_t *ext_alloc, void *cb_arg, int how, in vaddr_ext_mbuf() argument
345 return (ext_alloc(cb_arg, how, buf, len)); in vaddr_ext_mbuf()
423 paddr_ext_mbuf(memdesc_alloc_extpg_mbuf_t *extpg_alloc, void *cb_arg, int how, in paddr_ext_mbuf() argument
442 m = tail = extpg_alloc(cb_arg, how); in paddr_ext_mbuf()
448 tail->m_next = extpg_alloc(cb_arg, how); in paddr_ext_mbuf()
470 vlist_ext_mbuf(memdesc_alloc_ext_mbuf_t *ext_alloc, void *cb_arg, int how, in vlist_ext_mbuf() argument
495 n = ext_alloc(cb_arg, how, (char *)(uintptr_t)vlist->ds_addr + in vlist_ext_mbuf()
521 plist_ext_mbuf(memdesc_alloc_extpg_mbuf_t *extpg_alloc, void *cb_arg, int how, in plist_ext_mbuf() argument
538 m = tail = extpg_alloc(cb_arg, how); in plist_ext_mbuf()
579 tail->m_next = extpg_alloc(cb_arg, how); in plist_ext_mbuf()
[all …]
H A Duipc_mbuf.c403 m_pkthdr_init(struct mbuf *m, int how) in m_pkthdr_init() argument
415 error = mac_mbuf_init(m, how); in m_pkthdr_init()
464 m_dup_pkthdr(struct mbuf *to, const struct mbuf *from, int how) in m_dup_pkthdr() argument
479 MBUF_CHECKSLEEP(how); in m_dup_pkthdr()
492 return (m_tag_copy_chain(to, from, how)); in m_dup_pkthdr()
501 m_prepend(struct mbuf *m, int len, int how) in m_prepend() argument
506 mn = m_gethdr(how, m->m_type); in m_prepend()
508 mn = m_get(how, m->m_type); in m_prepend()
604 m_copypacket(struct mbuf *m, int how) in m_copypacket() argument
608 MBUF_CHECKSLEEP(how); in m_copypacket()
[all …]
H A Duipc_mbuf2.c394 m_tag_copy(struct m_tag *t, int how) in m_tag_copy() argument
398 MBUF_CHECKSLEEP(how); in m_tag_copy()
400 p = m_tag_alloc(t->m_tag_cookie, t->m_tag_id, t->m_tag_len, how); in m_tag_copy()
410 if (mac_mbuf_tag_init(p, how) != 0) { in m_tag_copy()
428 m_tag_copy_chain(struct mbuf *to, const struct mbuf *from, int how) in m_tag_copy_chain() argument
432 MBUF_CHECKSLEEP(how); in m_tag_copy_chain()
437 t = m_tag_copy(p, how); in m_tag_copy_chain()
/freebsd/sys/dev/smbus/
H A Dsmbconf.c87 smbus_poll(struct smbus_softc *sc, int how) in smbus_poll() argument
91 switch (how) { in smbus_poll()
116 smbus_request_bus(device_t bus, device_t dev, int how) in smbus_request_bus() argument
127 error = SMBUS_CALLBACK(parent, SMB_REQUEST_BUS, &how); in smbus_request_bus()
131 error = smbus_poll(sc, how); in smbus_request_bus()
136 error = smbus_poll(sc, how); in smbus_request_bus()
145 SMBUS_CALLBACK(parent, SMB_RELEASE_BUS, &how); in smbus_request_bus()
/freebsd/usr.sbin/bhyve/aarch64/
H A Dvmexit.c107 enum vm_suspend_how how; in vmexit_suspend() local
111 how = vme->u.suspended.how; in vmexit_suspend()
115 switch (how) { in vmexit_suspend()
125 fprintf(stderr, "vmexit_suspend: invalid reason %d\n", how); in vmexit_suspend()
197 enum vm_suspend_how how; in vmexit_smccc() local
249 how = VM_SUSPEND_POWEROFF; in vmexit_smccc()
251 how = VM_SUSPEND_RESET; in vmexit_smccc()
252 error = vm_suspend(ctx, how); in vmexit_smccc()
/freebsd/lib/libc/gen/
H A Dgetgrent.c842 enum nss_lookup_type how; in files_group() local
854 how = (enum nss_lookup_type)(uintptr_t)mdata; in files_group()
855 switch (how) { in files_group()
882 stayopen = (how == nss_lt_all || !fresh) ? 1 : st->stayopen; in files_group()
885 if (how != nss_lt_all && !fresh) in files_group()
891 rv = __gr_match_entry(line, linesize, how, name, gid); in files_group()
909 if (how == nss_lt_all) in files_group()
916 if (st->fp != NULL && how != nss_lt_all) in files_group()
963 enum nss_lookup_type how; in dns_group() local
970 how = (enum nss_lookup_type)(uintptr_t)mdata; in dns_group()
[all …]
H A Dgetpwent.c798 enum nss_lookup_type how; in files_passwd() local
809 how = (enum nss_lookup_type)(uintptr_t)mdata; in files_passwd()
810 switch (how) { in files_passwd()
833 if (how == nss_lt_all && st->keynum < 0) { in files_passwd()
843 if (how == nss_lt_all) in files_passwd()
849 switch (how) { in files_passwd()
892 if (how == nss_lt_all) in files_passwd()
898 how, name, uid); in files_passwd()
909 } while (how == nss_lt_all && !(rv & NS_TERMINATE)); in files_passwd()
926 pwdb_match_entry_v3(char *entry, size_t entrysize, enum nss_lookup_type how, in pwdb_match_entry_v3() argument
[all …]
H A Ddup3.c42 int how; in __dup3() local
54 how = (flags & O_CLOEXEC) ? F_DUP2FD_CLOEXEC : F_DUP2FD; in __dup3()
56 return (_fcntl(oldfd, how, newfd)); in __dup3()
/freebsd/contrib/bmake/unit-tests/
H A Dsuff-add-later.exp11 make: don't know how to make issue5a.d (continuing)
12 make: don't know how to make issue5b.c (continuing)
13 make: don't know how to make issue5c (continuing)
15 make: don't know how to make issue5d.e (continuing)
16 make: don't know how to make issue5e.d (continuing)
H A Dsuff-clear-regular.exp1 make: don't know how to make .a (continuing)
2 make: don't know how to make .a.b (continuing)
3 make: don't know how to make .b.a (continuing)
/freebsd/usr.sbin/ppp/
H A Dsystems.c317 struct prompt *prompt, struct datalink *cx, int how) in ReadSystem() argument
359 n = ReadSystem(bundle, name, arg, prompt, cx, how); in ReadSystem()
378 if (how == SYSTEM_EXISTS) { in ReadSystem()
391 if (*cp != '!' && how == SYSTEM_EXEC) in ReadSystem()
401 if ((how != SYSTEM_EXEC && allowcmd) || in ReadSystem()
402 (how == SYSTEM_EXEC && !allowcmd)) { in ReadSystem()
433 int def, how, rs; in system_IsValid() local
437 how = ID0realuid() == 0 ? SYSTEM_EXISTS : SYSTEM_VALIDATE; in system_IsValid()
442 rs = ReadSystem(NULL, "default", CONFFILE, prompt, NULL, how); in system_IsValid()
452 rs = ReadSystem(NULL, name, CONFFILE, prompt, NULL, how); in system_IsValid()
[all …]
/freebsd/sys/sys/
H A Dmbuf.h788 #define MBUF_CHECKSLEEP(how) do { \ argument
789 if (how == M_WAITOK) \
825 int m_clget(struct mbuf *m, int how);
826 void *m_cljget(struct mbuf *m, int how, int size);
960 m_init(struct mbuf *m, int how, short type, int flags) in m_init() argument
971 error = m_pkthdr_init(m, how); in m_init()
975 MBUF_PROBE5(m__init, m, how, type, flags, error); in m_init()
980 m_get_raw(int how, short type) in m_get_raw() argument
987 m = uma_zalloc_arg(zone_mbuf, &args, how); in m_get_raw()
988 MBUF_PROBE3(m__get_raw, how, type, m); in m_get_raw()
[all …]
/freebsd/usr.sbin/bhyve/riscv/
H A Dvmexit.c106 enum vm_suspend_how how; in vmexit_suspend() local
110 how = vme->u.suspended.how; in vmexit_suspend()
114 switch (how) { in vmexit_suspend()
124 fprintf(stderr, "vmexit_suspend: invalid reason %d\n", how); in vmexit_suspend()
289 enum vm_suspend_how how; in vmexit_ecall_srst() local
302 how = VM_SUSPEND_POWEROFF; in vmexit_ecall_srst()
303 vm_suspend(ctx, how); in vmexit_ecall_srst()
/freebsd/sys/dev/nvme/
H A Dnvme_private.h489 _nvme_allocate_request(const int how, nvme_cb_fn_t cb_fn, void *cb_arg) in _nvme_allocate_request() argument
493 KASSERT(how == M_WAITOK || how == M_NOWAIT, in _nvme_allocate_request()
494 ("nvme_allocate_request: invalid how %d", how)); in _nvme_allocate_request()
496 req = malloc(sizeof(*req), M_NVME, how | M_ZERO); in _nvme_allocate_request()
507 const int how, nvme_cb_fn_t cb_fn, void *cb_arg) in nvme_allocate_request_vaddr() argument
511 req = _nvme_allocate_request(how, cb_fn, cb_arg); in nvme_allocate_request_vaddr()
520 nvme_allocate_request_null(const int how, nvme_cb_fn_t cb_fn, void *cb_arg) in nvme_allocate_request_null() argument
524 req = _nvme_allocate_request(how, cb_fn, cb_arg); in nvme_allocate_request_null()
529 nvme_allocate_request_bio(struct bio *bio, const int how, nvme_cb_fn_t cb_fn, in nvme_allocate_request_bio() argument
534 req = _nvme_allocate_request(how, cb_fn, cb_arg); in nvme_allocate_request_bio()
[all …]
/freebsd/sys/dev/ppbus/
H A Dppb_base.c56 uint8_t mask, uint8_t status, int how) in ppb_poll_bus() argument
65 for (j = 0; j < ((how & PPB_POLL) ? max : 1); j++) { in ppb_poll_bus()
74 if (!(how & PPB_POLL)) { in ppb_poll_bus()
81 (how == PPB_NOINTR ? 0 : PCATCH), "ppbpoll", hz/100); in ppb_poll_bus()
147 ppb_write(device_t bus, char *buf, int len, int how) in ppb_write() argument
151 return (PPBUS_WRITE(device_get_parent(bus), buf, len, how)); in ppb_write()
/freebsd/sys/dev/nvmf/host/
H A Dnvmf_var.h174 uint8_t size, nvmf_request_complete_t *cb, void *cb_arg, int how);
177 int how);
179 void *cb_arg, int how);
182 void *req_cb_arg, nvmf_io_complete_t *io_cb, void *io_cb_arg, int how);
185 void *req_cb_arg, nvmf_io_complete_t *io_cb, void *io_cb_arg, int how);
188 void *req_cb_arg, nvmf_io_complete_t *io_cb, void *io_cb_arg, int how);
211 void *sqe, nvmf_request_complete_t *cb, void *cb_arg, int how);
/freebsd/bin/sh/
H A Dmiscbltin.c496 printlimit(enum limithow how, const struct rlimit *limit, in printlimit() argument
501 if (how & SOFT) in printlimit()
503 else if (how & HARD) in printlimit()
518 enum limithow how = SOFT | HARD; in ulimitcmd() local
528 how = HARD; in ulimitcmd()
531 how = SOFT; in ulimitcmd()
585 printlimit(how, &limit, l); in ulimitcmd()
593 if (how & SOFT) in ulimitcmd()
595 if (how & HARD) in ulimitcmd()
600 printlimit(how, &limit, l); in ulimitcmd()
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Drwlock.h72 #define rw_enter(lock, how) do { \ argument
73 if ((how) == RW_READER) \
79 #define rw_tryenter(lock, how) \ argument
80 ((how) == RW_READER ? sx_try_slock(lock) : sx_try_xlock(lock))
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Drwlock.h74 #define rw_enter(lock, how) do { \ argument
75 if ((how) == RW_READER) \
80 #define rw_tryenter(lock, how) ((how) == RW_READER ? sx_try_slock(lock) : sx_try_xlock(lock)) argument
/freebsd/sys/dev/nvmf/
H A Dnvmf_transport.c95 nvmf_allocate_command(struct nvmf_qpair *qp, const void *sqe, int how) in nvmf_allocate_command() argument
99 KASSERT(how == M_WAITOK || how == M_NOWAIT, in nvmf_allocate_command()
101 nc = qp->nq_ops->allocate_capsule(qp, how); in nvmf_allocate_command()
116 nvmf_allocate_response(struct nvmf_qpair *qp, const void *cqe, int how) in nvmf_allocate_response() argument
120 KASSERT(how == M_WAITOK || how == M_NOWAIT, in nvmf_allocate_response()
122 nc = qp->nq_ops->allocate_capsule(qp, how); in nvmf_allocate_response()
/freebsd/lib/libc/net/
H A Dgetservent.c69 enum nss_lookup_type how; member
277 (void *)((struct servent_mdata *)mdata)->how }, in files_servent()
280 (void *)((struct servent_mdata *)mdata)->how }, in files_servent()
306 switch (serv_mdata->how) { in files_servent()
338 if (serv_mdata->how == nss_lt_all) in files_servent()
359 switch (serv_mdata->how) { in files_servent()
380 serv_mdata->how != nss_lt_all) in files_servent()
394 switch (serv_mdata->how) { in files_servent()
494 enum nss_lookup_type how; in db_servent() local
506 how = (enum nss_lookup_type)(uintptr_t)mdata; in db_servent()
[all …]
/freebsd/sys/netgraph/
H A Dng_message.h380 #define NG_MKMESSAGE(msg, cookie, cmdid, len, how) \ argument
383 + (len), M_NETGRAPH_MSG, (how) | M_ZERO); \
398 #define NG_MKRESPONSE(rsp, msg, len, how) \ argument
401 + (len), M_NETGRAPH_MSG, (how) | M_ZERO); \
417 #define NG_COPYMESSAGE(copy, msg, how) \ argument
420 + (msg)->header.arglen, M_NETGRAPH_MSG, (how) | M_ZERO); \
/freebsd/sys/dev/iicbus/
H A Diiconf.c106 iicbus_poll(struct iicbus_softc *sc, int how) in iicbus_poll() argument
111 switch (how & IIC_INTRWAIT) { in iicbus_poll()
135 iicbus_request_bus(device_t bus, device_t dev, int how) in iicbus_request_bus() argument
146 if ((how & IIC_RECURSIVE) && sc->owner == dev) in iicbus_request_bus()
148 if ((error = iicbus_poll(sc, how)) != 0) in iicbus_request_bus()
178 reqdata.flags = how | IIC_REQBUS_DEV; in iicbus_request_bus()
447 int how) in iicbus_transfer_excl() argument
453 error = iicbus_request_bus(bus, dev, how); in iicbus_transfer_excl()

12345678910>>...40