Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd-12-stable/usr.sbin/bluetooth/hccontrol/
Dhost_controller_baseband.c95 ng_hci_status_rp rp; in hci_reset() local
98 n = sizeof(rp); in hci_reset()
100 NG_HCI_OCF_RESET), (char *) &rp, &n) == ERROR) in hci_reset()
103 if (rp.status != 0x00) { in hci_reset()
105 hci_status2str(rp.status), rp.status); in hci_reset()
116 ng_hci_read_pin_type_rp rp; in hci_read_pin_type() local
119 n = sizeof(rp); in hci_read_pin_type()
122 (char *) &rp, &n) == ERROR) in hci_read_pin_type()
125 if (rp.status != 0x00) { in hci_read_pin_type()
127 hci_status2str(rp.status), rp.status); in hci_read_pin_type()
[all …]
Dinfo.c45 ng_hci_read_local_ver_rp rp; in hci_read_local_version_information() local
48 n = sizeof(rp); in hci_read_local_version_information()
50 NG_HCI_OCF_READ_LOCAL_VER), (char *) &rp, &n) == ERROR) in hci_read_local_version_information()
53 if (rp.status != 0x00) { in hci_read_local_version_information()
55 hci_status2str(rp.status), rp.status); in hci_read_local_version_information()
59 rp.manufacturer = le16toh(rp.manufacturer); in hci_read_local_version_information()
62 hci_ver2str(rp.hci_version), rp.hci_version); in hci_read_local_version_information()
64 le16toh(rp.hci_revision)); in hci_read_local_version_information()
66 hci_lmpver2str(rp.lmp_version), rp.lmp_version); in hci_read_local_version_information()
68 le16toh(rp.lmp_subversion)); in hci_read_local_version_information()
[all …]
Dstatus.c46 ng_hci_read_failed_contact_cntr_rp rp; in hci_read_failed_contact_counter() local
64 n = sizeof(rp); in hci_read_failed_contact_counter()
68 (char *) &rp, &n) == ERROR) in hci_read_failed_contact_counter()
71 if (rp.status != 0x00) { in hci_read_failed_contact_counter()
73 hci_status2str(rp.status), rp.status); in hci_read_failed_contact_counter()
77 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_read_failed_contact_counter()
78 fprintf(stdout, "Failed contact counter: %d\n", le16toh(rp.counter)); in hci_read_failed_contact_counter()
88 ng_hci_reset_failed_contact_cntr_rp rp; in hci_reset_failed_contact_counter() local
106 n = sizeof(rp); in hci_reset_failed_contact_counter()
110 (char *) &rp, &n) == ERROR) in hci_reset_failed_contact_counter()
[all …]
Dle.c75 ng_hci_le_set_scan_parameters_rp rp; in le_set_scan_param() local
111 n = sizeof(rp); in le_set_scan_param()
114 (void *)&cp, sizeof(cp), (void *)&rp, &n); in le_set_scan_param()
123 ng_hci_le_set_scan_enable_rp rp; in le_set_scan_enable() local
134 n = sizeof(rp); in le_set_scan_enable()
139 (void *)&cp, sizeof(cp), (void *)&rp, &n); in le_set_scan_enable()
141 if (e != 0 || rp.status != 0) in le_set_scan_enable()
207 ng_hci_le_set_scan_response_data_rp rp; in le_set_scan_response() local
218 n = sizeof(rp); in le_set_scan_response()
221 (void *)&cp, sizeof(cp), (void *)&rp, &n); in le_set_scan_response()
[all …]
Dlink_policy.c46 ng_hci_role_discovery_rp rp; in hci_role_discovery() local
65 n = sizeof(rp); in hci_role_discovery()
69 (char *) &rp, &n) == ERROR) in hci_role_discovery()
72 if (rp.status != 0x00) { in hci_role_discovery()
74 hci_status2str(rp.status), rp.status); in hci_role_discovery()
78 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_role_discovery()
80 (rp.role == NG_HCI_ROLE_MASTER)? "Master" : "Slave", rp.role); in hci_role_discovery()
162 ng_hci_read_link_policy_settings_rp rp; in hci_read_link_policy_settings() local
181 n = sizeof(rp); in hci_read_link_policy_settings()
185 (char *) &rp, &n) == ERROR) in hci_read_link_policy_settings()
[all …]
/freebsd-12-stable/sys/fs/nfsserver/
Dnfs_nfsdcache.c276 #define NETFAMILY(rp) \ argument
277 (((rp)->rc_flag & RC_INETIPV6) ? AF_INET6 : AF_INET)
282 static void nfsrc_lock(struct nfsrvcache *rp);
283 static void nfsrc_unlock(struct nfsrvcache *rp);
284 static void nfsrc_wanted(struct nfsrvcache *rp);
285 static void nfsrc_freecache(struct nfsrvcache *rp);
293 nfsrc_cachemutex(struct nfsrvcache *rp) in nfsrc_cachemutex() argument
296 if ((rp->rc_flag & RC_UDP) != 0) in nfsrc_cachemutex()
298 return (&nfsrchash_table[nfsrc_hash(rp->rc_xid)].mtx); in nfsrc_cachemutex()
370 struct nfsrvcache *rp; in nfsrc_getudp() local
[all …]
/freebsd-12-stable/sys/dev/rp/
Drp.c573 static void rp_do_receive(struct rp_port *rp, struct tty *tp, in rp_do_receive() argument
610 rp->rp_overflows++; in rp_do_receive()
636 static void rp_handle_port(struct rp_port *rp) in rp_handle_port() argument
642 if(!rp) in rp_handle_port()
645 cp = &rp->rp_channel; in rp_handle_port()
646 tp = rp->rp_tty; in rp_handle_port()
648 IntMask = IntMask & rp->rp_intmask; in rp_handle_port()
651 rp_do_receive(rp, tp, cp, ChanStatus); in rp_handle_port()
670 struct rp_port *rp; in rp_do_poll() local
675 rp = arg; in rp_do_poll()
[all …]
/freebsd-12-stable/sys/net/altq/
Daltq_red.c229 red_t *rp; in red_alloc() local
233 rp = malloc(sizeof(red_t), M_DEVBUF, M_NOWAIT | M_ZERO); in red_alloc()
234 if (rp == NULL) in red_alloc()
238 rp->red_weight = W_WEIGHT; in red_alloc()
240 rp->red_weight = weight; in red_alloc()
243 rp->red_wtab = wtab_alloc(rp->red_weight); in red_alloc()
244 if (rp->red_wtab == NULL) { in red_alloc()
245 free(rp, M_DEVBUF); in red_alloc()
249 rp->red_avg = 0; in red_alloc()
250 rp->red_idle = 1; in red_alloc()
[all …]
Daltq_rio.c201 rio_t *rp; in rio_alloc() local
205 rp = malloc(sizeof(rio_t), M_DEVBUF, M_NOWAIT | M_ZERO); in rio_alloc()
206 if (rp == NULL) in rio_alloc()
209 rp->rio_flags = flags; in rio_alloc()
212 rp->rio_pkttime = 800; in rio_alloc()
214 rp->rio_pkttime = pkttime; in rio_alloc()
217 rp->rio_weight = weight; in rio_alloc()
220 rp->rio_weight = W_WEIGHT; in rio_alloc()
223 npkts_per_sec = 1000000 / rp->rio_pkttime; in rio_alloc()
226 rp->rio_weight = W_WEIGHT_2; in rio_alloc()
[all …]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/intel/dtrace/
Dfasttrap_isa.c210 fasttrap_anarg(struct reg *rp, int function_entry, int argno) in fasttrap_anarg() argument
226 return (rp->r_rdi); in fasttrap_anarg()
228 return (rp->r_rsi); in fasttrap_anarg()
230 return (rp->r_rdx); in fasttrap_anarg()
232 return (rp->r_rcx); in fasttrap_anarg()
234 return (rp->r_r8); in fasttrap_anarg()
236 return (rp->r_r9); in fasttrap_anarg()
239 stack = (uintptr_t *)rp->r_rsp; in fasttrap_anarg()
245 uint32_t *stack = (uint32_t *)rp->r_rsp; in fasttrap_anarg()
688 fasttrap_return_common(struct reg *rp, uintptr_t pc, pid_t pid, in fasttrap_return_common() argument
[all …]
/freebsd-12-stable/libexec/talkd/
Dprocess.c65 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) in process_request() argument
70 rp->vers = TALK_VERSION; in process_request()
71 rp->type = mp->type; in process_request()
72 rp->id_num = htonl(0); in process_request()
75 rp->answer = BADVERSION; in process_request()
83 rp->answer = BADADDR; in process_request()
90 rp->answer = BADCTLADDR; in process_request()
96 rp->answer = FAILED; in process_request()
105 do_announce(mp, rp); in process_request()
111 rp->id_num = htonl(ptr->id_num); in process_request()
[all …]
/freebsd-12-stable/usr.sbin/lpr/common_source/
Drequest.c49 init_request(struct request *rp) in init_request() argument
53 *rp = zero; in init_request()
54 TAILQ_INIT(&rp->users); in init_request()
55 TAILQ_INIT(&rp->jobids); in init_request()
59 free_request(struct request *rp) in free_request() argument
64 if (rp->logname) in free_request()
65 free(rp->logname); in free_request()
66 if (rp->authname) in free_request()
67 free(rp->authname); in free_request()
68 if (rp->prettyname) in free_request()
[all …]
/freebsd-12-stable/contrib/mandoc/
Dtbl_layout.c207 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-12-stable/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/
Dfasttrap_isa.c191 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()
250 argv[i] = fuword32((void *)(rp->fixreg[1] + 8 + in fasttrap_usdt_args()
253 argv[i] = fuword64((void *)(rp->fixreg[1] + 48 + in fasttrap_usdt_args()
263 fasttrap_return_common(struct reg *rp, uintptr_t pc, pid_t pid, in fasttrap_return_common() argument
302 rp->fixreg[3], rp->fixreg[4], 0, 0); in fasttrap_return_common()
[all …]
/freebsd-12-stable/lib/libpathconv/
Dabs2rel.c50 char *rp; in abs2rel() local
71 rp = result; in abs2rel()
72 *rp++ = '.'; in abs2rel()
74 *rp++ = '/'; in abs2rel()
75 if (rp > endp) in abs2rel()
77 *rp = 0; in abs2rel()
85 rp = result; in abs2rel()
88 if (rp + 3 > endp) in abs2rel()
90 *rp++ = '.'; in abs2rel()
91 *rp++ = '.'; in abs2rel()
[all …]
Drel2abs.c50 char *rp; in rel2abs() local
73 rp = result + length - 1; in rel2abs()
77 if (*rp == '/') { in rel2abs()
79 *rp = 0; in rel2abs()
81 rp++; in rel2abs()
87 *rp++ = '/'; in rel2abs()
88 if (rp > endp) in rel2abs()
90 *rp = 0; in rel2abs()
121 rp = result + length; in rel2abs()
123 *rp++ = '/'; in rel2abs()
[all …]
/freebsd-12-stable/sys/rpc/
Drpcb_prot.c116 xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp) in xdr_rpcblist_ptr() argument
130 more_elements = (bool_t)(*rp != NULL); in xdr_rpcblist_ptr()
142 if (freeing && *rp) in xdr_rpcblist_ptr()
143 next = (*rp)->rpcb_next; in xdr_rpcblist_ptr()
144 if (! xdr_reference(xdrs, (caddr_t *)rp, in xdr_rpcblist_ptr()
150 rp = &next_copy; in xdr_rpcblist_ptr()
156 } else if (*rp) { in xdr_rpcblist_ptr()
157 rp = &((*rp)->rpcb_next); in xdr_rpcblist_ptr()
169 xdr_rpcblist(XDR *xdrs, RPCBLIST **rp)
173 dummy = xdr_rpcblist_ptr(xdrs, (rpcblist_ptr *)rp);
[all …]
/freebsd-12-stable/sys/dev/acpica/
Dacpi_powerres.c129 struct acpi_powerresource *rp, *srp; in acpi_pwr_register_resource() local
134 rp = NULL; in acpi_pwr_register_resource()
142 if ((rp = malloc(sizeof(*rp), M_ACPIPWR, M_NOWAIT | M_ZERO)) == NULL) { in acpi_pwr_register_resource()
146 TAILQ_INIT(&rp->ap_references); in acpi_pwr_register_resource()
147 rp->ap_resource = res; in acpi_pwr_register_resource()
163 rp->ap_systemlevel = obj->PowerResource.SystemLevel; in acpi_pwr_register_resource()
164 rp->ap_order = obj->PowerResource.ResourceOrder; in acpi_pwr_register_resource()
169 if (srp == NULL || rp->ap_order < srp->ap_order) { in acpi_pwr_register_resource()
170 TAILQ_INSERT_HEAD(&acpi_powerresources, rp, ap_link); in acpi_pwr_register_resource()
174 if (rp->ap_order < srp->ap_order) { in acpi_pwr_register_resource()
[all …]
/freebsd-12-stable/contrib/traceroute/
Dfindsaddr-socket.c108 register struct rt_msghdr *rp; in findsaddr() local
126 rp = &rtmsg.rtmsg; in findsaddr()
127 rp->rtm_seq = ++seq; in findsaddr()
128 cp = (u_char *)(rp + 1); in findsaddr()
134 size = cp - (u_char *)rp; in findsaddr()
135 rp->rtm_msglen = size; in findsaddr()
137 cc = write(s, (char *)rp, size); in findsaddr()
151 memset(rp, 0, size); in findsaddr()
152 cc = read(s, (char *)rp, size); in findsaddr()
159 } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq || in findsaddr()
[all …]
/freebsd-12-stable/crypto/openssl/crypto/ec/asm/
Decp_nistz256-sparcv9.pl97 my ($rp,$ap,$bp)=map("%i$_",(0..2));
353 st @acc[0],[$rp]
355 st @acc[1],[$rp+4]
357 st @acc[2],[$rp+8]
359 st @acc[3],[$rp+12]
361 st @acc[4],[$rp+16]
363 st @acc[5],[$rp+20]
365 st @acc[6],[$rp+24]
367 st @acc[7],[$rp+28]
435 st @acc[0],[$rp]
[all …]
/freebsd-12-stable/contrib/nvi/ex/
Dex_global.c66 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-12-stable/lib/libbluetooth/
Dhci.c612 } rp; in bt_devinfo() local
633 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STATE, &rp.r0, sizeof(rp.r0)) < 0) in bt_devinfo()
635 di->state = rp.r0.state; in bt_devinfo()
637 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BDADDR, &rp.r1, sizeof(rp.r1)) < 0) in bt_devinfo()
639 bdaddr_copy(&di->bdaddr, &rp.r1.bdaddr); in bt_devinfo()
641 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_FEATURES, &rp.r2, sizeof(rp.r2)) < 0) in bt_devinfo()
643 memcpy(di->features, rp.r2.features, sizeof(di->features)); in bt_devinfo()
645 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BUFFER, &rp.r3, sizeof(rp.r3)) < 0) in bt_devinfo()
647 di->cmd_free = rp.r3.buffer.cmd_free; in bt_devinfo()
648 di->sco_size = rp.r3.buffer.sco_size; in bt_devinfo()
[all …]
/freebsd-12-stable/lib/libc/rpc/
Drpcb_prot.c104 xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp) in xdr_rpcblist_ptr() argument
118 more_elements = (bool_t)(*rp != NULL); in xdr_rpcblist_ptr()
130 if (freeing && *rp) in xdr_rpcblist_ptr()
131 next = (*rp)->rpcb_next; in xdr_rpcblist_ptr()
132 if (! xdr_reference(xdrs, (caddr_t *)rp, in xdr_rpcblist_ptr()
138 rp = &next_copy; in xdr_rpcblist_ptr()
144 } else if (*rp) { in xdr_rpcblist_ptr()
145 rp = &((*rp)->rpcb_next); in xdr_rpcblist_ptr()
156 xdr_rpcblist(XDR *xdrs, RPCBLIST **rp) in xdr_rpcblist() argument
160 dummy = xdr_rpcblist_ptr(xdrs, (rpcblist_ptr *)rp); in xdr_rpcblist()
[all …]
/freebsd-12-stable/crypto/openssl/crypto/bn/
Dbn_nist.c375 unsigned int *rp = (unsigned int *)r_d; in BN_nist_mod_192() local
378 acc = rp[0]; in BN_nist_mod_192()
381 rp[0] = (unsigned int)acc; in BN_nist_mod_192()
384 acc += rp[1]; in BN_nist_mod_192()
387 rp[1] = (unsigned int)acc; in BN_nist_mod_192()
390 acc += rp[2]; in BN_nist_mod_192()
394 rp[2] = (unsigned int)acc; in BN_nist_mod_192()
397 acc += rp[3]; in BN_nist_mod_192()
401 rp[3] = (unsigned int)acc; in BN_nist_mod_192()
404 acc += rp[4]; in BN_nist_mod_192()
[all …]
/freebsd-12-stable/contrib/tzcode/zic/
Dzic.c143 static zic_t rpytime(const struct rule * rp, int wantedy);
144 static void rulesub(struct rule * rp,
149 static int stringrule(char * result, const struct rule * rp,
729 register struct rule * rp; in associate() local
768 rp = &rules[base]; in associate()
770 if (strcmp(rp->r_name, rules[out].r_name) != 0) in associate()
774 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
776 zp->z_rules = rp; in associate()
1234 rulesub(rp, loyearp, hiyearp, typep, monthp, dayp, timep) in rulesub() argument
1235 register struct rule * const rp; in rulesub()
[all …]

12345678910>>...14