Searched refs:rp (Results 1 - 25 of 277) sorted by relevance

1234567891011>>

/freebsd-head/contrib/ntp/lib/isc/include/isc/
H A Drefcount.h106 #define isc_refcount_destroy(rp) REQUIRE((rp)->refs == 0)
107 #define isc_refcount_current(rp) ((unsigned int)((rp)->refs))
109 #define isc_refcount_increment0(rp, tp) \
113 prev = isc_atomic_xadd(&(rp)->refs, 1); \
118 #define isc_refcount_increment(rp, tp) \
122 prev = isc_atomic_xadd(&(rp)->refs, 1); \
128 #define isc_refcount_decrement(rp, tp) \
132 prev = isc_atomic_xadd(&(rp)
[all...]
/freebsd-head/usr.sbin/bluetooth/hccontrol/
H A Dinfo.c45 ng_hci_read_local_ver_rp rp; local
48 n = sizeof(rp);
50 NG_HCI_OCF_READ_LOCAL_VER), (char *) &rp, &n) == ERROR)
53 if (rp.status != 0x00) {
55 hci_status2str(rp.status), rp.status);
59 rp.manufacturer = le16toh(rp.manufacturer);
62 hci_ver2str(rp.hci_version), rp
79 ng_hci_read_local_commands_rp rp; local
111 ng_hci_read_local_features_rp rp; local
140 ng_hci_read_buffer_size_rp rp; local
171 ng_hci_read_country_code_rp rp; local
196 ng_hci_read_bdaddr_rp rp; local
[all...]
H A Dhost_controller_baseband.c95 ng_hci_status_rp rp; local
98 n = sizeof(rp);
100 NG_HCI_OCF_RESET), (char *) &rp, &n) == ERROR)
103 if (rp.status != 0x00) {
105 hci_status2str(rp.status), rp.status);
116 ng_hci_read_pin_type_rp rp; local
119 n = sizeof(rp);
122 (char *) &rp, &n) == ERROR)
125 if (rp
142 ng_hci_write_pin_type_rp rp; local
243 ng_hci_read_stored_link_key_rp *rp = NULL; local
301 ng_hci_write_stored_link_key_rp rp; local
354 ng_hci_delete_stored_link_key_rp rp; local
401 ng_hci_change_local_name_rp rp; local
435 ng_hci_read_local_name_rp rp; local
459 ng_hci_read_con_accept_timo_rp rp; local
486 ng_hci_write_con_accept_timo_rp rp; local
524 ng_hci_read_page_timo_rp rp; local
551 ng_hci_write_page_timo_rp rp; local
589 ng_hci_read_scan_enable_rp rp; local
615 ng_hci_write_scan_enable_rp rp; local
651 ng_hci_read_page_scan_activity_rp rp; local
682 ng_hci_write_page_scan_activity_rp rp; local
732 ng_hci_read_inquiry_scan_activity_rp rp; local
763 ng_hci_write_inquiry_scan_activity_rp rp; local
814 ng_hci_read_auth_enable_rp rp; local
840 ng_hci_write_auth_enable_rp rp; local
877 ng_hci_read_encryption_mode_rp rp; local
903 ng_hci_write_encryption_mode_rp rp; local
940 ng_hci_read_unit_class_rp rp; local
966 ng_hci_write_unit_class_rp rp; local
1005 ng_hci_read_voice_settings_rp rp; local
1047 ng_hci_write_voice_settings_rp rp; local
1085 ng_hci_read_num_broadcast_retrans_rp rp; local
1111 ng_hci_write_num_broadcast_retrans_rp rp; local
1148 ng_hci_read_hold_mode_activity_rp rp; local
1181 ng_hci_write_hold_mode_activity_rp rp; local
1218 ng_hci_read_sco_flow_control_rp rp; local
1244 ng_hci_write_sco_flow_control_rp rp; local
1282 ng_hci_read_link_supervision_timo_rp rp; local
1327 ng_hci_write_link_supervision_timo_rp rp; local
1372 ng_hci_read_page_scan_period_rp rp; local
1398 ng_hci_write_page_scan_period_rp rp; local
1435 ng_hci_read_page_scan_rp rp; local
1460 ng_hci_write_page_scan_rp rp; local
1496 ng_hci_read_le_host_supported_rp rp; local
1520 ng_hci_write_le_host_supported_rp rp; local
[all...]
H A Dstatus.c46 ng_hci_read_failed_contact_cntr_rp rp; local
64 n = sizeof(rp);
68 (char *) &rp, &n) == ERROR)
71 if (rp.status != 0x00) {
73 hci_status2str(rp.status), rp.status);
77 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle));
78 fprintf(stdout, "Failed contact counter: %d\n", le16toh(rp.counter));
88 ng_hci_reset_failed_contact_cntr_rp rp; local
106 n = sizeof(rp);
127 ng_hci_get_link_quality_rp rp; local
169 ng_hci_read_rssi_rp rp; local
[all...]
H A Dlink_policy.c46 ng_hci_role_discovery_rp rp; local
65 n = sizeof(rp);
69 (char *) &rp, &n) == ERROR)
72 if (rp.status != 0x00) {
74 hci_status2str(rp.status), rp.status);
78 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle));
80 (rp.role == NG_HCI_ROLE_MASTER)? "Master" : "Slave", rp.role);
162 ng_hci_read_link_policy_settings_rp rp; local
205 ng_hci_write_link_policy_settings_rp rp; local
[all...]
/freebsd-head/usr.sbin/lpr/common_source/
H A Drequest.c49 init_request(struct request *rp) argument
53 *rp = zero;
54 TAILQ_INIT(&rp->users);
55 TAILQ_INIT(&rp->jobids);
59 free_request(struct request *rp) argument
64 if (rp->logname)
65 free(rp->logname);
66 if (rp->authname)
67 free(rp->authname);
68 if (rp
[all...]
/freebsd-head/lib/libpathconv/
H A Dabs2rel.c50 char *rp; local
71 rp = result;
72 *rp++ = '.';
74 *rp++ = '/';
75 if (rp > endp)
77 *rp = 0;
85 rp = result;
88 if (rp + 3 > endp)
90 *rp++ = '.';
91 *rp
[all...]
H A Drel2abs.c50 char *rp; local
71 * rp points the last char.
73 rp = result + length - 1;
77 if (*rp == '/') {
79 *rp = 0;
81 rp++;
82 /* rp point NULL char */
87 *rp++ = '/';
88 if (rp > endp)
90 *rp
[all...]
/freebsd-head/lib/libc/rpc/
H A Dpmap_prot2.c95 xdr_pmaplist(XDR *xdrs, struct pmaplist **rp) argument
107 assert(rp != NULL);
112 more_elements = (bool_t)(*rp != NULL);
123 next = &((*rp)->pml_next);
124 if (! xdr_reference(xdrs, (caddr_t *)rp,
127 rp = (freeing) ? next : &((*rp)->pml_next);
137 xdr_pmaplist_ptr(XDR *xdrs, struct pmaplist *rp) argument
139 return xdr_pmaplist(xdrs, (struct pmaplist **)(void *)rp);
/freebsd-head/sys/net/altq/
H A Daltq_red.c179 red_t *rp; local
183 rp = malloc(sizeof(red_t), M_DEVBUF, M_NOWAIT | M_ZERO);
184 if (rp == NULL)
188 rp->red_weight = W_WEIGHT;
190 rp->red_weight = weight;
193 rp->red_wtab = wtab_alloc(rp->red_weight);
194 if (rp->red_wtab == NULL) {
195 free(rp, M_DEVBUF);
199 rp
266 red_destroy(red_t *rp) argument
273 red_getstats(red_t *rp, struct redstats *sp) argument
284 red_addq(red_t *rp, class_queue_t *q, struct mbuf *m, struct altq_pktattr *pktattr) argument
[all...]
H A Daltq_rio.c182 rio_t *rp; local
186 rp = malloc(sizeof(rio_t), M_DEVBUF, M_NOWAIT | M_ZERO);
187 if (rp == NULL)
190 rp->rio_flags = flags;
193 rp->rio_pkttime = 800;
195 rp->rio_pkttime = pkttime;
198 rp->rio_weight = weight;
201 rp->rio_weight = W_WEIGHT;
204 npkts_per_sec = 1000000 / rp->rio_pkttime;
207 rp
269 rio_destroy(rio_t *rp) argument
276 rio_getstats(rio_t *rp, struct redstats *sp) argument
317 rio_addq(rio_t *rp, class_queue_t *q, struct mbuf *m, struct altq_pktattr *pktattr) argument
430 rio_getq(rio_t *rp, class_queue_t *q) argument
[all...]
/freebsd-head/sys/fs/nfsserver/
H A Dnfs_nfsdcache.c276 #define NETFAMILY(rp) \
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) argument
296 if ((rp->rc_flag & RC_UDP) != 0)
298 return (&nfsrchash_table[nfsrc_hash(rp->rc_xid)].mtx);
370 struct nfsrvcache *rp; local
459 struct nfsrvcache *rp; local
559 nfsrvd_delcache(struct nfsrvcache *rp) argument
579 nfsrvd_sentcache(struct nfsrvcache *rp, int have_seq, uint32_t seq) argument
604 struct nfsrvcache *rp, *nextrp; local
737 nfsrc_lock(struct nfsrvcache *rp) argument
754 nfsrc_unlock(struct nfsrvcache *rp) argument
769 nfsrc_wanted(struct nfsrvcache *rp) argument
782 nfsrc_freecache(struct nfsrvcache *rp) argument
813 struct nfsrvcache *rp, *nextrp; local
841 struct nfsrvcache *rp, *nextrp; local
976 nfsrvd_refcache(struct nfsrvcache *rp) argument
995 nfsrvd_derefcache(struct nfsrvcache *rp) argument
[all...]
/freebsd-head/sys/modules/rp/
H A DMakefile3 .PATH: ${SRCTOP}/sys/dev/rp
5 KMOD= rp
6 SRCS= rp.c rp_pci.c device_if.h bus_if.h pci_if.h
/freebsd-head/contrib/binutils/libiberty/
H A Dlrealpath.c85 const char *rp = realpath (filename, buf); local
86 if (rp == NULL)
87 rp = filename;
88 return strdup (rp);
97 char *rp = canonicalize_file_name (filename); local
98 if (rp == NULL)
101 return rp;
119 char *buf, *rp, *ret; local
123 rp = realpath (filename, buf);
124 ret = strdup (rp
[all...]
/freebsd-head/usr.bin/talk/
H A Dctl_transact.c56 ctl_transact(struct in_addr target, CTL_MSG lmsg, int type, CTL_RESPONSE *rp) argument
95 cc = recv(ctl_sockt, (char *)rp, sizeof (*rp), 0);
102 } while (nready > 0 && (rp->vers != TALK_VERSION ||
103 rp->type != type));
104 } while (rp->vers != TALK_VERSION || rp->type != type);
105 rp->id_num = ntohl(rp->id_num);
106 rp
[all...]
H A Dlook_up.c58 CTL_RESPONSE *rp = &response; local
66 if (!look_for_invite(rp))
74 if (rp->addr.sa_family != AF_INET)
76 (void)memcpy(&addr, &rp->addr.sa_family, sizeof(addr));
77 addr.sa_family = rp->addr.sa_family;
90 ctl_transact(his_machine_addr, msg, DELETE, rp);
104 look_for_invite(CTL_RESPONSE *rp) argument
107 ctl_transact(his_machine_addr, msg, LOOK_UP, rp);
109 switch (rp->answer) {
112 msg.id_num = htonl(rp
[all...]
/freebsd-head/contrib/byacc/
H A Dwarshall.c11 unsigned *rp; local
33 rp = rowi;
36 *rowj++ |= *rp++;
61 unsigned *rp; local
70 rp = R;
71 while (rp < relend)
73 *rp |= (unsigned)(1 << i);
77 rp++;
80 rp += rowsize;
/freebsd-head/sys/net/
H A Draw_cb.c82 struct rawcb *rp = sotorawcb(so); local
91 KASSERT(rp != NULL, ("raw_attach: rp == NULL"));
96 rp->rcb_socket = so;
97 rp->rcb_proto.sp_family = so->so_proto->pr_domain->dom_family;
98 rp->rcb_proto.sp_protocol = proto;
100 LIST_INSERT_HEAD(&V_rawcb_list, rp, list);
109 raw_detach(struct rawcb *rp) argument
111 struct socket *so = rp->rcb_socket;
113 KASSERT(so->so_pcb == rp, ("raw_detac
[all...]
/freebsd-head/libexec/talkd/
H A Dprint.c75 print_response(const char *cp, CTL_RESPONSE *rp) argument
80 if (rp->type > NTYPES) {
81 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type);
84 tp = types[rp->type];
85 if (rp->answer > NANSWERS) {
86 (void)snprintf(abuf, sizeof(abuf), "answer %d", rp->answer);
89 ap = answers[rp->answer];
90 syslog(LOG_DEBUG, "%s: %s: %s, id %d", cp, tp, ap, ntohl(rp->id_num));
H A Dprocess.c65 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) argument
70 rp->vers = TALK_VERSION;
71 rp->type = mp->type;
72 rp->id_num = htonl(0);
75 rp->answer = BADVERSION;
83 rp->answer = BADADDR;
90 rp->answer = BADCTLADDR;
96 rp->answer = FAILED;
105 do_announce(mp, rp);
111 rp
141 do_announce(CTL_MSG *mp, CTL_RESPONSE *rp) argument
[all...]
/freebsd-head/contrib/traceroute/
H A Dfindsaddr-socket.c108 register struct rt_msghdr *rp; local
126 rp = &rtmsg.rtmsg;
127 rp->rtm_seq = ++seq;
128 cp = (u_char *)(rp + 1);
134 size = cp - (u_char *)rp;
135 rp->rtm_msglen = size;
137 cc = write(s, (char *)rp, size);
151 memset(rp, 0, size);
152 cc = read(s, (char *)rp, size);
159 } while (rp
[all...]
/freebsd-head/sys/rpc/
H A Drpcb_prot.c116 xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp) argument
130 more_elements = (bool_t)(*rp != NULL);
142 if (freeing && *rp)
143 next = (*rp)->rpcb_next;
144 if (! xdr_reference(xdrs, (caddr_t *)rp,
150 rp = &next_copy;
156 } else if (*rp) {
157 rp = &((*rp)->rpcb_next);
169 xdr_rpcblist(XDR *xdrs, RPCBLIST **rp)
200 xdr_rpcb_entry_list_ptr(XDR *xdrs, rpcb_entry_list_ptr *rp) argument
[all...]
/freebsd-head/contrib/mandoc/
H A Dtbl_layout.c205 cell(struct tbl_node *tbl, struct tbl_row *rp, argument
215 if (rp->vert < 2)
216 rp->vert++;
248 if (rp->last == NULL)
250 else if (rp->last->pos == TBL_CELL_HORIZ ||
251 rp->last->pos == TBL_CELL_DHORIZ)
252 c = rp->last->pos;
253 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row)
260 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
266 struct tbl_row *rp; local
354 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) argument
[all...]
/freebsd-head/contrib/tcpdump/
H A Dprint-sunrpc.c171 register const struct sunrpc_msg *rp; local
177 rp = (const struct sunrpc_msg *)bp;
181 EXTRACT_32BITS(&rp->rm_xid));
185 EXTRACT_32BITS(&rp->rm_xid));
208 EXTRACT_32BITS(&rp->rm_call.cb_proc))));
209 x = EXTRACT_32BITS(&rp->rm_call.cb_rpcvers);
213 switch (EXTRACT_32BITS(&rp->rm_call.cb_proc)) {
219 x = EXTRACT_32BITS(&rp->rm_call.cb_prog);
224 ND_PRINT((ndo, ".%u", EXTRACT_32BITS(&rp->rm_call.cb_vers)));
233 register struct rpcent *rp; local
[all...]
/freebsd-head/sys/dev/rp/
H A Drp.c40 * rp.c - for RocketPort FreeBSD
58 #include <dev/rp/rpreg.h>
59 #include <dev/rp/rpvar.h>
573 static void rp_do_receive(struct rp_port *rp, struct tty *tp, argument
610 rp->rp_overflows++;
636 static void rp_handle_port(struct rp_port *rp) argument
642 if(!rp)
645 cp = &rp->rp_channel;
646 tp = rp->rp_tty;
648 IntMask = IntMask & rp
670 struct rp_port *rp; local
709 struct rp_port *rp = softc; local
723 struct rp_port *rp; local
782 struct rp_port *rp; local
807 struct rp_port *rp; local
860 struct rp_port *rp; local
871 struct rp_port *rp; local
902 struct rp_port *rp; local
920 struct rp_port *rp; local
989 struct rp_port *rp; local
1088 struct rp_port *rp; local
[all...]

Completed in 120 milliseconds

1234567891011>>