/freebsd-11.0-release/contrib/ntp/lib/isc/include/isc/ |
H A D | refcount.h | 106 #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-11.0-release/usr.sbin/bluetooth/hccontrol/ |
H A D | info.c | 43 ng_hci_read_local_ver_rp rp; local 46 n = sizeof(rp); 48 NG_HCI_OCF_READ_LOCAL_VER), (char *) &rp, &n) == ERROR) 51 if (rp.status != 0x00) { 53 hci_status2str(rp.status), rp.status); 57 rp.manufacturer = le16toh(rp.manufacturer); 60 hci_ver2str(rp.hci_version), rp 77 ng_hci_read_local_features_rp rp; local 106 ng_hci_read_buffer_size_rp rp; local 137 ng_hci_read_country_code_rp rp; local 162 ng_hci_read_bdaddr_rp rp; local [all...] |
H A D | host_controller_baseband.c | 93 ng_hci_status_rp rp; local 96 n = sizeof(rp); 98 NG_HCI_OCF_RESET), (char *) &rp, &n) == ERROR) 101 if (rp.status != 0x00) { 103 hci_status2str(rp.status), rp.status); 114 ng_hci_read_pin_type_rp rp; local 117 n = sizeof(rp); 120 (char *) &rp, &n) == ERROR) 123 if (rp 140 ng_hci_write_pin_type_rp rp; local 241 ng_hci_read_stored_link_key_rp *rp = NULL; local 299 ng_hci_write_stored_link_key_rp rp; local 352 ng_hci_delete_stored_link_key_rp rp; local 399 ng_hci_change_local_name_rp rp; local 433 ng_hci_read_local_name_rp rp; local 457 ng_hci_read_con_accept_timo_rp rp; local 484 ng_hci_write_con_accept_timo_rp rp; local 522 ng_hci_read_page_timo_rp rp; local 549 ng_hci_write_page_timo_rp rp; local 587 ng_hci_read_scan_enable_rp rp; local 613 ng_hci_write_scan_enable_rp rp; local 649 ng_hci_read_page_scan_activity_rp rp; local 680 ng_hci_write_page_scan_activity_rp rp; local 730 ng_hci_read_inquiry_scan_activity_rp rp; local 761 ng_hci_write_inquiry_scan_activity_rp rp; local 812 ng_hci_read_auth_enable_rp rp; local 838 ng_hci_write_auth_enable_rp rp; local 875 ng_hci_read_encryption_mode_rp rp; local 901 ng_hci_write_encryption_mode_rp rp; local 938 ng_hci_read_unit_class_rp rp; local 964 ng_hci_write_unit_class_rp rp; local 1003 ng_hci_read_voice_settings_rp rp; local 1045 ng_hci_write_voice_settings_rp rp; local 1083 ng_hci_read_num_broadcast_retrans_rp rp; local 1109 ng_hci_write_num_broadcast_retrans_rp rp; local 1146 ng_hci_read_hold_mode_activity_rp rp; local 1179 ng_hci_write_hold_mode_activity_rp rp; local 1216 ng_hci_read_sco_flow_control_rp rp; local 1242 ng_hci_write_sco_flow_control_rp rp; local 1280 ng_hci_read_link_supervision_timo_rp rp; local 1325 ng_hci_write_link_supervision_timo_rp rp; local 1370 ng_hci_read_page_scan_period_rp rp; local 1396 ng_hci_write_page_scan_period_rp rp; local 1433 ng_hci_read_page_scan_rp rp; local 1458 ng_hci_write_page_scan_rp rp; local 1494 ng_hci_read_le_host_supported_rp rp; local 1518 ng_hci_write_le_host_supported_rp rp; local [all...] |
H A D | status.c | 44 ng_hci_read_failed_contact_cntr_rp rp; local 62 n = sizeof(rp); 66 (char *) &rp, &n) == ERROR) 69 if (rp.status != 0x00) { 71 hci_status2str(rp.status), rp.status); 75 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); 76 fprintf(stdout, "Failed contact counter: %d\n", le16toh(rp.counter)); 86 ng_hci_reset_failed_contact_cntr_rp rp; local 104 n = sizeof(rp); 125 ng_hci_get_link_quality_rp rp; local 167 ng_hci_read_rssi_rp rp; local [all...] |
H A D | link_policy.c | 44 ng_hci_role_discovery_rp rp; local 63 n = sizeof(rp); 67 (char *) &rp, &n) == ERROR) 70 if (rp.status != 0x00) { 72 hci_status2str(rp.status), rp.status); 76 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); 78 (rp.role == NG_HCI_ROLE_MASTER)? "Master" : "Slave", rp.role); 160 ng_hci_read_link_policy_settings_rp rp; local 203 ng_hci_write_link_policy_settings_rp rp; local [all...] |
H A D | le.c | 72 ng_hci_le_set_scan_parameters_rp rp; local 108 n = sizeof(rp); 111 (void *)&cp, sizeof(cp), (void *)&rp, &n); 120 ng_hci_le_set_scan_enable_rp rp; local 131 n = sizeof(rp); 136 (void *)&cp, sizeof(cp), (void *)&rp, &n); 138 if (e != 0 || rp.status != 0) 203 ng_hci_le_set_scan_response_data_rp rp; local 214 n = sizeof(rp); 217 (void *)&cp, sizeof(cp), (void *)&rp, 227 ng_hci_le_read_local_supported_features_rp rp; local 245 ng_hci_le_read_supported_status_rp rp; local 263 ng_hci_le_set_event_mask_rp rp; local 283 ng_hci_set_event_mask_rp rp; local [all...] |
/freebsd-11.0-release/usr.sbin/lpr/common_source/ |
H A D | request.c | 49 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-11.0-release/lib/libc/rpc/ |
H A D | pmap_prot2.c | 93 xdr_pmaplist(XDR *xdrs, struct pmaplist **rp) argument 105 assert(rp != NULL); 110 more_elements = (bool_t)(*rp != NULL); 121 next = &((*rp)->pml_next); 122 if (! xdr_reference(xdrs, (caddr_t *)rp, 125 rp = (freeing) ? next : &((*rp)->pml_next); 135 xdr_pmaplist_ptr(XDR *xdrs, struct pmaplist *rp) argument 137 return xdr_pmaplist(xdrs, (struct pmaplist **)(void *)rp);
|
/freebsd-11.0-release/sys/fs/nfsserver/ |
H A D | nfs_nfsdcache.c | 276 #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-11.0-release/sys/modules/rp/ |
H A D | Makefile | 1 # $FreeBSD: releng/11.0/sys/modules/rp/Makefile 182668 2008-09-01 23:59:00Z imp $ 3 .PATH: ${.CURDIR}/../../dev/rp 5 KMOD= rp 6 SRCS= rp.c rp_pci.c device_if.h bus_if.h pci_if.h opt_compat.h
|
/freebsd-11.0-release/contrib/gcclibs/libiberty/ |
H A D | lrealpath.c | 85 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-11.0-release/contrib/binutils/libiberty/ |
H A D | lrealpath.c | 85 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-11.0-release/usr.bin/talk/ |
H A D | ctl_transact.c | 54 ctl_transact(struct in_addr target, CTL_MSG lmsg, int type, CTL_RESPONSE *rp) argument 93 cc = recv(ctl_sockt, (char *)rp, sizeof (*rp), 0); 100 } while (nready > 0 && (rp->vers != TALK_VERSION || 101 rp->type != type)); 102 } while (rp->vers != TALK_VERSION || rp->type != type); 103 rp->id_num = ntohl(rp->id_num); 104 rp [all...] |
H A D | look_up.c | 56 CTL_RESPONSE *rp = &response; local 68 if (!look_for_invite(rp)) 76 if (rp->addr.sa_family != AF_INET) 78 (void)memcpy(&addr, &rp->addr.sa_family, sizeof(addr)); 79 addr.sa_family = rp->addr.sa_family; 92 ctl_transact(his_machine_addr, msg, DELETE, rp); 106 look_for_invite(CTL_RESPONSE *rp) argument 109 ctl_transact(his_machine_addr, msg, LOOK_UP, rp); 111 switch (rp->answer) { 114 msg.id_num = htonl(rp [all...] |
/freebsd-11.0-release/contrib/mdocml/ |
H A D | tbl_layout.c | 188 cell(struct tbl_node *tbl, struct tbl_row *rp, argument 198 if (rp->vert < 2) 199 rp->vert++; 231 if (rp->last == NULL) 234 else if (rp->last->pos == TBL_CELL_HORIZ || 235 rp->last->pos == TBL_CELL_DHORIZ) 236 c = rp->last->pos; 237 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) 245 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); 251 struct tbl_row *rp; local 337 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) argument [all...] |
/freebsd-11.0-release/contrib/byacc/ |
H A D | warshall.c | 11 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-11.0-release/sys/net/ |
H A D | raw_cb.c | 80 struct rawcb *rp = sotorawcb(so); local 89 KASSERT(rp != NULL, ("raw_attach: rp == NULL")); 94 rp->rcb_socket = so; 95 rp->rcb_proto.sp_family = so->so_proto->pr_domain->dom_family; 96 rp->rcb_proto.sp_protocol = proto; 98 LIST_INSERT_HEAD(&V_rawcb_list, rp, list); 107 raw_detach(struct rawcb *rp) argument 109 struct socket *so = rp->rcb_socket; 111 KASSERT(so->so_pcb == rp, ("raw_detac [all...] |
/freebsd-11.0-release/libexec/talkd/ |
H A D | print.c | 73 print_response(const char *cp, CTL_RESPONSE *rp) argument 78 if (rp->type > NTYPES) { 79 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type); 82 tp = types[rp->type]; 83 if (rp->answer > NANSWERS) { 84 (void)snprintf(abuf, sizeof(abuf), "answer %d", rp->answer); 87 ap = answers[rp->answer]; 88 syslog(LOG_DEBUG, "%s: %s: %s, id %d", cp, tp, ap, ntohl(rp->id_num));
|
H A D | process.c | 63 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) argument 68 rp->vers = TALK_VERSION; 69 rp->type = mp->type; 70 rp->id_num = htonl(0); 73 rp->answer = BADVERSION; 81 rp->answer = BADADDR; 88 rp->answer = BADCTLADDR; 94 rp->answer = FAILED; 103 do_announce(mp, rp); 109 rp 139 do_announce(CTL_MSG *mp, CTL_RESPONSE *rp) argument [all...] |
/freebsd-11.0-release/sys/rpc/ |
H A D | rpcb_prot.c | 113 xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp) argument 127 more_elements = (bool_t)(*rp != NULL); 139 if (freeing && *rp) 140 next = (*rp)->rpcb_next; 141 if (! xdr_reference(xdrs, (caddr_t *)rp, 147 rp = &next_copy; 153 } else if (*rp) { 154 rp = &((*rp)->rpcb_next); 166 xdr_rpcblist(XDR *xdrs, RPCBLIST **rp) 197 xdr_rpcb_entry_list_ptr(XDR *xdrs, rpcb_entry_list_ptr *rp) argument [all...] |
/freebsd-11.0-release/sys/net/altq/ |
H A D | altq_red.c | 229 red_t *rp; local 233 rp = malloc(sizeof(red_t), M_DEVBUF, M_NOWAIT | M_ZERO); 234 if (rp == NULL) 238 rp->red_weight = W_WEIGHT; 240 rp->red_weight = weight; 243 rp->red_wtab = wtab_alloc(rp->red_weight); 244 if (rp->red_wtab == NULL) { 245 free(rp, M_DEVBUF); 249 rp 316 red_destroy(red_t *rp) argument 329 red_getstats(red_t *rp, struct redstats *sp) argument 340 red_addq(red_t *rp, class_queue_t *q, struct mbuf *m, struct altq_pktattr *pktattr) argument 874 red_t *rp; local 967 struct redparams *rp; local [all...] |
/freebsd-11.0-release/contrib/traceroute/ |
H A D | findsaddr-socket.c | 108 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-11.0-release/contrib/tcpdump/ |
H A D | print-sunrpc.c | 174 register const struct sunrpc_msg *rp; local 182 rp = (struct sunrpc_msg *)bp; 186 EXTRACT_32BITS(&rp->rm_xid)); 190 EXTRACT_32BITS(&rp->rm_xid)); 215 EXTRACT_32BITS(&rp->rm_call.cb_proc)))); 216 x = EXTRACT_32BITS(&rp->rm_call.cb_rpcvers); 220 switch (EXTRACT_32BITS(&rp->rm_call.cb_proc)) { 226 x = EXTRACT_32BITS(&rp->rm_call.cb_prog); 231 ND_PRINT((ndo, ".%u", EXTRACT_32BITS(&rp->rm_call.cb_vers))); 240 register struct rpcent *rp; local [all...] |
/freebsd-11.0-release/sys/dev/rp/ |
H A D | rp.c | 35 __FBSDID("$FreeBSD: releng/11.0/sys/dev/rp/rp.c 274390 2014-11-11 18:15:05Z jhb $"); 38 * 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 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...] |
/freebsd-11.0-release/sys/cddl/contrib/opensolaris/uts/intel/dtrace/ |
H A D | fasttrap_isa.c | 251 fasttrap_anarg(struct reg *rp, int function_entry, int argno) argument 267 return (rp->r_rdi); 269 return (rp->r_rsi); 271 return (rp->r_rdx); 273 return (rp->r_rcx); 275 return (rp->r_r8); 277 return (rp->r_r9); 280 stack = (uintptr_t *)rp->r_rsp; 287 uint32_t *stack = (uint32_t *)rp->r_esp; 733 fasttrap_return_common(struct reg *rp, uintptr_ argument 824 fasttrap_usdt_args64(fasttrap_probe_t *probe, struct reg *rp, int argc, uintptr_t *argv) argument 847 fasttrap_usdt_args32(fasttrap_probe_t *probe, struct reg *rp, int argc, uint32_t *argv) argument 866 fasttrap_do_seg(fasttrap_tracepoint_t *tp, struct reg *rp, uintptr_t *addr) argument 996 fasttrap_pid_probe(struct reg *rp) argument 1829 fasttrap_return_probe(struct reg *rp) argument 1890 fasttrap_getreg(struct reg *rp, uint_t reg) argument [all...] |