/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdcache.c | 277 #define NETFAMILY(rp) \ argument 278 (((rp)->rc_flag & RC_INETIPV6) ? AF_INET6 : AF_INET) 283 static void nfsrc_lock(struct nfsrvcache *rp); 284 static void nfsrc_unlock(struct nfsrvcache *rp); 285 static void nfsrc_wanted(struct nfsrvcache *rp); 286 static void nfsrc_freecache(struct nfsrvcache *rp); 294 nfsrc_cachemutex(struct nfsrvcache *rp) in nfsrc_cachemutex() argument 297 if ((rp->rc_flag & RC_UDP) != 0) in nfsrc_cachemutex() 299 return (&NFSD_VNET(nfsrchash_table)[nfsrc_hash(rp->rc_xid)].mtx); in nfsrc_cachemutex() 377 struct nfsrvcache *rp; in nfsrc_getudp() local [all …]
|
/freebsd/usr.sbin/bluetooth/hccontrol/ |
H A D | host_controller_baseband.c | 94 ng_hci_status_rp rp; in hci_reset() local 97 n = sizeof(rp); in hci_reset() 99 NG_HCI_OCF_RESET), (char *) &rp, &n) == ERROR) in hci_reset() 102 if (rp.status != 0x00) { in hci_reset() 104 hci_status2str(rp.status), rp.status); in hci_reset() 115 ng_hci_read_pin_type_rp rp; in hci_read_pin_type() local 118 n = sizeof(rp); in hci_read_pin_type() 121 (char *) &rp, &n) == ERROR) in hci_read_pin_type() 124 if (rp.status != 0x00) { in hci_read_pin_type() 126 hci_status2str(rp.status), rp.status); in hci_read_pin_type() [all …]
|
H A D | info.c | 44 ng_hci_read_local_ver_rp rp; in hci_read_local_version_information() local 47 n = sizeof(rp); in hci_read_local_version_information() 49 NG_HCI_OCF_READ_LOCAL_VER), (char *) &rp, &n) == ERROR) in hci_read_local_version_information() 52 if (rp.status != 0x00) { in hci_read_local_version_information() 54 hci_status2str(rp.status), rp.status); in hci_read_local_version_information() 58 rp.manufacturer = le16toh(rp.manufacturer); in hci_read_local_version_information() 61 hci_ver2str(rp.hci_version), rp.hci_version); in hci_read_local_version_information() 63 le16toh(rp.hci_revision)); in hci_read_local_version_information() 65 hci_lmpver2str(rp.lmp_version), rp.lmp_version); in hci_read_local_version_information() 67 le16toh(rp.lmp_subversion)); in hci_read_local_version_information() [all …]
|
H A D | le.c | 86 ng_hci_le_set_scan_parameters_rp rp; in le_set_scan_param() local 122 n = sizeof(rp); in le_set_scan_param() 126 (void *)&cp, sizeof(cp), (void *)&rp, &n) == ERROR) in le_set_scan_param() 129 if (rp.status != 0x00) { in le_set_scan_param() 131 hci_status2str(rp.status), rp.status); in le_set_scan_param() 142 ng_hci_le_set_scan_enable_rp rp; in le_set_scan_enable() local 153 n = sizeof(rp); in le_set_scan_enable() 159 (void *)&rp, &n) == ERROR) in le_set_scan_enable() 162 if (rp.status != 0x00) { in le_set_scan_enable() 164 hci_status2str(rp.status), rp.status); in le_set_scan_enable() [all …]
|
H A D | status.c | 45 ng_hci_read_failed_contact_cntr_rp rp; in hci_read_failed_contact_counter() local 63 n = sizeof(rp); in hci_read_failed_contact_counter() 67 (char *) &rp, &n) == ERROR) in hci_read_failed_contact_counter() 70 if (rp.status != 0x00) { in hci_read_failed_contact_counter() 72 hci_status2str(rp.status), rp.status); in hci_read_failed_contact_counter() 76 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_read_failed_contact_counter() 77 fprintf(stdout, "Failed contact counter: %d\n", le16toh(rp.counter)); in hci_read_failed_contact_counter() 87 ng_hci_reset_failed_contact_cntr_rp rp; in hci_reset_failed_contact_counter() local 105 n = sizeof(rp); in hci_reset_failed_contact_counter() 109 (char *) &rp, &n) == ERROR) in hci_reset_failed_contact_counter() [all …]
|
H A D | link_policy.c | 45 ng_hci_role_discovery_rp rp; in hci_role_discovery() local 64 n = sizeof(rp); in hci_role_discovery() 68 (char *) &rp, &n) == ERROR) in hci_role_discovery() 71 if (rp.status != 0x00) { in hci_role_discovery() 73 hci_status2str(rp.status), rp.status); in hci_role_discovery() 77 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_role_discovery() 79 (rp.role == NG_HCI_ROLE_MASTER)? "Master" : "Slave", rp.role); in hci_role_discovery() 161 ng_hci_read_link_policy_settings_rp rp; in hci_read_link_policy_settings() local 180 n = sizeof(rp); in hci_read_link_policy_settings() 184 (char *) &rp, &n) == ERROR) in hci_read_link_policy_settings() [all …]
|
/freebsd/sys/net/altq/ |
H A D | altq_red.c | 176 red_t *rp; in red_alloc() local 180 rp = malloc(sizeof(red_t), M_DEVBUF, M_NOWAIT | M_ZERO); in red_alloc() 181 if (rp == NULL) in red_alloc() 185 rp->red_weight = W_WEIGHT; in red_alloc() 187 rp->red_weight = weight; in red_alloc() 190 rp->red_wtab = wtab_alloc(rp->red_weight); in red_alloc() 191 if (rp->red_wtab == NULL) { in red_alloc() 192 free(rp, M_DEVBUF); in red_alloc() 196 rp->red_avg = 0; in red_alloc() 197 rp->red_idle = 1; in red_alloc() [all …]
|
H A D | altq_rio.c | 181 rio_t *rp; in rio_alloc() local 185 rp = malloc(sizeof(rio_t), M_DEVBUF, M_NOWAIT | M_ZERO); in rio_alloc() 186 if (rp == NULL) in rio_alloc() 189 rp->rio_flags = flags; in rio_alloc() 192 rp->rio_pkttime = 800; in rio_alloc() 194 rp->rio_pkttime = pkttime; in rio_alloc() 197 rp->rio_weight = weight; in rio_alloc() 200 rp->rio_weight = W_WEIGHT; in rio_alloc() 203 npkts_per_sec = 1000000 / rp->rio_pkttime; in rio_alloc() 206 rp->rio_weight = W_WEIGHT_2; in rio_alloc() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | tbl_layout.c | 207 cell(struct tbl_node *tbl, struct tbl_row *rp, in cell() argument 217 if (rp->vert < 2) in cell() 218 rp->vert++; in cell() 250 if (rp->last == NULL) in cell() 252 else if (rp->last->pos == TBL_CELL_HORIZ || in cell() 253 rp->last->pos == TBL_CELL_DHORIZ) in cell() 254 c = rp->last->pos; in cell() 255 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) in cell() 262 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell() 268 struct tbl_row *rp; in tbl_layout() local [all …]
|
/freebsd/libexec/talkd/ |
H A D | process.c | 57 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) in process_request() argument 62 rp->vers = TALK_VERSION; in process_request() 63 rp->type = mp->type; in process_request() 64 rp->id_num = htonl(0); in process_request() 67 rp->answer = BADVERSION; in process_request() 75 rp->answer = BADADDR; in process_request() 82 rp->answer = BADCTLADDR; in process_request() 88 rp->answer = FAILED; in process_request() 97 do_announce(mp, rp); in process_request() 103 rp->id_num = htonl(ptr->id_num); in process_request() [all …]
|
/freebsd/usr.sbin/lpr/common_source/ |
H A D | request.c | 47 init_request(struct request *rp) in init_request() argument 51 *rp = zero; in init_request() 52 TAILQ_INIT(&rp->users); in init_request() 53 TAILQ_INIT(&rp->jobids); in init_request() 57 free_request(struct request *rp) in free_request() argument 62 if (rp->logname) in free_request() 63 free(rp->logname); in free_request() 64 if (rp->authname) in free_request() 65 free(rp->authname); in free_request() 66 if (rp->prettyname) in free_request() [all …]
|
/freebsd/sys/cddl/contrib/opensolaris/uts/intel/dtrace/ |
H A D | fasttrap_isa.c | 208 fasttrap_anarg(struct reg *rp, int function_entry, int argno) in fasttrap_anarg() argument 224 return (rp->r_rdi); in fasttrap_anarg() 226 return (rp->r_rsi); in fasttrap_anarg() 228 return (rp->r_rdx); in fasttrap_anarg() 230 return (rp->r_rcx); in fasttrap_anarg() 232 return (rp->r_r8); in fasttrap_anarg() 234 return (rp->r_r9); in fasttrap_anarg() 237 stack = (uintptr_t *)rp->r_rsp; in fasttrap_anarg() 243 uint32_t *stack = (uint32_t *)rp->r_rsp; in fasttrap_anarg() 686 fasttrap_return_common(struct reg *rp, uintptr_ argument 749 fasttrap_usdt_args64(fasttrap_probe_t * probe,struct reg * rp,int argc,uintptr_t * argv) fasttrap_usdt_args64() argument 771 fasttrap_usdt_args32(fasttrap_probe_t * probe,struct reg * rp,int argc,uint32_t * argv) fasttrap_usdt_args32() argument 789 fasttrap_do_seg(fasttrap_tracepoint_t * tp,struct reg * rp,uintptr_t * addr) fasttrap_do_seg() argument 921 struct reg reg, *rp; fasttrap_pid_probe() local 1735 struct reg reg, *rp; fasttrap_return_probe() local 1796 fasttrap_getreg(struct reg * rp,uint_t reg) fasttrap_getreg() argument [all...] |
/freebsd/contrib/libfido2/src/ |
H A D | credman.c | 499 struct fido_credman_single_rp *rp = arg; in credman_parse_rp() local 509 return (cbor_decode_rp_entity(val, &rp->rp_entity)); in credman_parse_rp() 511 return (fido_blob_decode(val, &rp->rp_id_hash)); in credman_parse_rp() 519 credman_reset_rp(fido_credman_rp_t *rp) in credman_reset_rp() argument 521 for (size_t i = 0; i < rp->n_alloc; i++) { in credman_reset_rp() 522 free(rp->ptr[i].rp_entity.id); in credman_reset_rp() 523 free(rp->ptr[i].rp_entity.name); in credman_reset_rp() 524 rp->ptr[i].rp_entity.id = NULL; in credman_reset_rp() 525 rp->ptr[i].rp_entity.name = NULL; in credman_reset_rp() 526 fido_blob_reset(&rp->ptr[i].rp_id_hash); in credman_reset_rp() [all …]
|
/freebsd/lib/libbluetooth/ |
H A D | hci.c | 610 } rp; in bt_devinfo() local 631 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STATE, &rp.r0, sizeof(rp.r0)) < 0) in bt_devinfo() 633 di->state = rp.r0.state; in bt_devinfo() 635 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BDADDR, &rp.r1, sizeof(rp.r1)) < 0) in bt_devinfo() 637 bdaddr_copy(&di->bdaddr, &rp.r1.bdaddr); in bt_devinfo() 639 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_FEATURES, &rp.r2, sizeof(rp.r2)) < 0) in bt_devinfo() 641 memcpy(di->features, rp.r2.features, sizeof(di->features)); in bt_devinfo() 643 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BUFFER, &rp.r3, sizeof(rp.r3)) < 0) in bt_devinfo() 645 di->cmd_free = rp.r3.buffer.cmd_free; in bt_devinfo() 646 di->sco_size = rp.r3.buffer.sco_size; in bt_devinfo() [all …]
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_powerres.c | 127 struct acpi_powerresource *rp, *srp; in acpi_pwr_register_resource() local 132 rp = NULL; in acpi_pwr_register_resource() 140 if ((rp = malloc(sizeof(*rp), M_ACPIPWR, M_NOWAIT | M_ZERO)) == NULL) { in acpi_pwr_register_resource() 144 TAILQ_INIT(&rp->ap_references); in acpi_pwr_register_resource() 145 rp->ap_resource = res; in acpi_pwr_register_resource() 161 rp->ap_systemlevel = obj->PowerResource.SystemLevel; in acpi_pwr_register_resource() 162 rp->ap_order = obj->PowerResource.ResourceOrder; in acpi_pwr_register_resource() 167 if (srp == NULL || rp->ap_order < srp->ap_order) { in acpi_pwr_register_resource() 168 TAILQ_INSERT_HEAD(&acpi_powerresources, rp, ap_link); in acpi_pwr_register_resource() 172 if (rp->ap_order < srp->ap_order) { in acpi_pwr_register_resource() [all …]
|
/freebsd/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/ |
H A D | fasttrap_isa.c | 191 fasttrap_anarg(struct reg *rp, int argno) in fasttrap_anarg() argument 198 return rp->fixreg[argno + 3]; in fasttrap_anarg() 203 value = dtrace_fuword32((void *)(rp->fixreg[1] + 8 + in fasttrap_anarg() 208 value = dtrace_fuword64((void *)(rp->fixreg[1] + 48 + in fasttrap_anarg() 238 fasttrap_usdt_args(fasttrap_probe_t *probe, struct reg *rp, int argc, in fasttrap_usdt_args() argument 247 argv[i] = rp->fixreg[x]; in fasttrap_usdt_args() 252 argv[i] = fuword32((void *)(rp->fixreg[1] + 8 + in fasttrap_usdt_args() 256 argv[i] = fuword64((void *)(rp->fixreg[1] + 48 + in fasttrap_usdt_args() 267 fasttrap_return_common(struct reg *rp, uintptr_t pc, pid_t pid, in fasttrap_return_common() argument 306 rp->fixreg[3], rp->fixreg[4], 0, 0); in fasttrap_return_common() [all …]
|
/freebsd/usr.sbin/traceroute/ |
H A D | findsaddr-socket.c | 89 register struct rt_msghdr *rp; in findsaddr() local 107 rp = &rtmsg.rtmsg; in findsaddr() 108 rp->rtm_seq = ++seq; in findsaddr() 109 cp = (u_char *)(rp + 1); in findsaddr() 115 size = cp - (u_char *)rp; in findsaddr() 116 rp->rtm_msglen = size; in findsaddr() 118 cc = write(s, (char *)rp, size); in findsaddr() 132 memset(rp, 0, size); in findsaddr() 133 cc = read(s, (char *)rp, size); in findsaddr() 140 } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq || in findsaddr() [all …]
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_sparc.c | 16 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, in bn_mul_mont() argument 19 int bn_mul_mont_vis3(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, in bn_mul_mont() 21 int bn_mul_mont_fpu(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, in bn_mul_mont() 23 int bn_mul_mont_int(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, in bn_mul_mont() 30 typedef int (*bn_mul_mont_f) (BN_ULONG *rp, const BN_ULONG *ap, in bn_mul_mont() 34 int bn_mul_mont_t4_8(BN_ULONG *rp, const BN_ULONG *ap, in bn_mul_mont() 37 int bn_mul_mont_t4_16(BN_ULONG *rp, const BN_ULONG *ap, in bn_mul_mont() 40 int bn_mul_mont_t4_24(BN_ULONG *rp, const BN_ULONG *ap, in bn_mul_mont() 43 int bn_mul_mont_t4_32(BN_ULONG *rp, const BN_ULONG *ap, in bn_mul_mont() 52 if ((*worker) (rp, ap, bp, np, n0)) in bn_mul_mont() [all …]
|
/freebsd/lib/libpathconv/ |
H A D | abs2rel.c | 48 char *rp; in abs2rel() local 69 rp = result; in abs2rel() 70 *rp++ = '.'; in abs2rel() 72 *rp++ = '/'; in abs2rel() 73 if (rp > endp) in abs2rel() 75 *rp = 0; in abs2rel() 83 rp = result; in abs2rel() 86 if (rp + 3 > endp) in abs2rel() 88 *rp++ = '.'; in abs2rel() 89 *rp++ = '.'; in abs2rel() [all …]
|
H A D | rel2abs.c | 48 char *rp; in rel2abs() local 69 * rp points the last char. in rel2abs() 71 rp = result + length - 1; in rel2abs() 75 if (*rp == '/') { in rel2abs() 77 *rp = 0; in rel2abs() 79 rp++; in rel2abs() 80 /* rp point NULL char */ in rel2abs() 85 *rp++ = '/'; in rel2abs() 86 if (rp > endp) in rel2abs() 88 *rp = 0; in rel2abs() [all …]
|
/freebsd/contrib/byacc/ |
H A D | lalr.c | 104 reductions *rp; in set_reduction_table() local 107 for (rp = first_reduction; rp; rp = rp->next) in set_reduction_table() 108 reduction_table[rp->number] = rp; in set_reduction_table() 143 reductions *rp; in initialize_LA() local 151 rp = reduction_table[i]; in initialize_LA() 152 if (rp) in initialize_LA() 153 k += rp->nreds; in initialize_LA() 164 rp = reduction_table[i]; in initialize_LA() 165 if (rp) in initialize_LA() 167 for (j = 0; j < rp->nreds; j++) in initialize_LA() [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_global.c | 66 RANGE *rp; in ex_g_setup() local 227 if ((rp = TAILQ_LAST(ecp->rq, _rh)) != NULL && in ex_g_setup() 228 rp->stop == start - 1) { in ex_g_setup() 229 ++rp->stop; in ex_g_setup() 234 CALLOC(sp, rp, 1, sizeof(RANGE)); in ex_g_setup() 235 if (rp == NULL) in ex_g_setup() 237 rp->start = rp->stop = start; in ex_g_setup() 238 TAILQ_INSERT_TAIL(ecp->rq, rp, q); in ex_g_setup() 254 RANGE *nrp, *rp; in ex_g_insdel() local 266 TAILQ_FOREACH_SAFE(rp, ecp->rq, q, nrp) { in ex_g_insdel() [all …]
|
/freebsd/sys/rpc/ |
H A D | rpcb_prot.c | 109 xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp) in xdr_rpcblist_ptr() argument 123 more_elements = (bool_t)(*rp != NULL); in xdr_rpcblist_ptr() 135 if (freeing && *rp) in xdr_rpcblist_ptr() 136 next = (*rp)->rpcb_next; in xdr_rpcblist_ptr() 137 if (! xdr_reference(xdrs, (caddr_t *)rp, in xdr_rpcblist_ptr() 143 rp = &next_copy; in xdr_rpcblist_ptr() 149 } else if (*rp) { in xdr_rpcblist_ptr() 150 rp = &((*rp)->rpcb_next); in xdr_rpcblist_ptr() 162 xdr_rpcblist(XDR *xdrs, RPCBLIST **rp) 166 dummy = xdr_rpcblist_ptr(xdrs, (rpcblist_ptr *)rp); [all …]
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_pcib.c | 146 struct ofw_pci_range *rp; in ofw_pcib_init() local 229 rp = sc->sc_range + i; in ofw_pcib_init() 233 switch (rp->pci_hi & OFW_PCI_PHYS_HI_SPACEMASK) { in ofw_pcib_init() 237 error = rman_manage_region(&sc->sc_io_rman, rp->pci, in ofw_pcib_init() 238 rp->pci + rp->size - 1); in ofw_pcib_init() 242 if (rp->pci_hi & OFW_PCI_PHYS_HI_PREFETCHABLE) { in ofw_pcib_init() 245 rp->pci, rp->pci + rp->size - 1); in ofw_pcib_init() 248 rp->pci, rp->pci + rp->size - 1); in ofw_pcib_init() 256 "error = %d\n", rp->pci_hi & in ofw_pcib_init() 257 OFW_PCI_PHYS_HI_SPACEMASK, rp->pci, in ofw_pcib_init() [all …]
|
/freebsd/crypto/openssl/crypto/ec/asm/ |
H A D | ecp_nistz256-sparcv9.pl | 99 my ($rp,$ap,$bp)=map("%i$_",(0..2)); 355 st @acc[0],[$rp] 357 st @acc[1],[$rp+4] 359 st @acc[2],[$rp+8] 361 st @acc[3],[$rp+12] 363 st @acc[4],[$rp+16] 365 st @acc[5],[$rp+20] 367 st @acc[6],[$rp+24] 369 st @acc[7],[$rp+28] 437 st @acc[0],[$rp] [all …]
|