/freebsd-11-stable/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-stable/usr.sbin/bluetooth/hccontrol/ |
H A D | info.c | 45 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 D | host_controller_baseband.c | 95 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 D | status.c | 46 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 D | link_policy.c | 46 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...] |
H A D | le.c | 75 ng_hci_le_set_scan_parameters_rp rp; local 111 n = sizeof(rp); 114 (void *)&cp, sizeof(cp), (void *)&rp, &n); 123 ng_hci_le_set_scan_enable_rp rp; local 134 n = sizeof(rp); 139 (void *)&cp, sizeof(cp), (void *)&rp, &n); 141 if (e != 0 || rp.status != 0) 207 ng_hci_le_set_scan_response_data_rp rp; local 218 n = sizeof(rp); 221 (void *)&cp, sizeof(cp), (void *)&rp, 231 ng_hci_le_read_local_supported_features_rp rp; local 268 ng_hci_le_read_supported_states_rp rp; local 292 ng_hci_le_set_event_mask_rp rp; local 312 ng_hci_set_event_mask_rp rp; local 350 ng_hci_le_set_advertise_enable_rp rp; local 382 ng_hci_le_set_advertising_parameters_rp rp; local 458 ng_hci_le_read_advertising_channel_tx_power_rp rp; local 484 ng_hci_le_set_advertising_data_rp rp; local [all...] |
/freebsd-11-stable/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-stable/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-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdcache.c | 274 #define NETFAMILY(rp) \ 275 (((rp)->rc_flag & RC_INETIPV6) ? AF_INET6 : AF_INET) 280 static void nfsrc_lock(struct nfsrvcache *rp); 281 static void nfsrc_unlock(struct nfsrvcache *rp); 282 static void nfsrc_wanted(struct nfsrvcache *rp); 283 static void nfsrc_freecache(struct nfsrvcache *rp); 291 nfsrc_cachemutex(struct nfsrvcache *rp) argument 294 if ((rp->rc_flag & RC_UDP) != 0) 296 return (&nfsrchash_table[nfsrc_hash(rp->rc_xid)].mtx); 368 struct nfsrvcache *rp; local 457 struct nfsrvcache *rp; local 557 nfsrvd_delcache(struct nfsrvcache *rp) argument 577 nfsrvd_sentcache(struct nfsrvcache *rp, int have_seq, uint32_t seq) argument 602 struct nfsrvcache *rp, *nextrp; local 735 nfsrc_lock(struct nfsrvcache *rp) argument 752 nfsrc_unlock(struct nfsrvcache *rp) argument 767 nfsrc_wanted(struct nfsrvcache *rp) argument 780 nfsrc_freecache(struct nfsrvcache *rp) argument 811 struct nfsrvcache *rp, *nextrp; local 839 struct nfsrvcache *rp, *nextrp; local 974 nfsrvd_refcache(struct nfsrvcache *rp) argument 993 nfsrvd_derefcache(struct nfsrvcache *rp) argument [all...] |
/freebsd-11-stable/sys/modules/rp/ |
H A D | Makefile | 1 # $FreeBSD: stable/11/sys/modules/rp/Makefile 319182 2017-05-30 04:11:12Z ngie $ 3 .PATH: ${SRCTOP}/sys/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/sys/rpc/ |
H A D | rpcb_prot.c | 114 xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp) argument 128 more_elements = (bool_t)(*rp != NULL); 140 if (freeing && *rp) 141 next = (*rp)->rpcb_next; 142 if (! xdr_reference(xdrs, (caddr_t *)rp, 148 rp = &next_copy; 154 } else if (*rp) { 155 rp = &((*rp)->rpcb_next); 167 xdr_rpcblist(XDR *xdrs, RPCBLIST **rp) 198 xdr_rpcb_entry_list_ptr(XDR *xdrs, rpcb_entry_list_ptr *rp) argument [all...] |
/freebsd-11-stable/contrib/mdocml/ |
H A D | tbl_layout.c | 205 cell(struct tbl_node *tbl, struct tbl_row *rp, argument 215 if (rp->vert < 2) 216 rp->vert++; 248 if (rp->last == NULL) 251 else if (rp->last->pos == TBL_CELL_HORIZ || 252 rp->last->pos == TBL_CELL_DHORIZ) 253 c = rp->last->pos; 254 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) 262 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); 268 struct tbl_row *rp; local 356 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) argument [all...] |
/freebsd-11-stable/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-stable/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-stable/contrib/tcpdump/ |
H A D | print-sunrpc.c | 171 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...] |
H A D | print-ripng.c | 111 register const struct rip6 *rp = (const struct rip6 *)dat; local 116 ND_TCHECK(rp->rip6_cmd); 117 switch (rp->rip6_cmd) { 126 ND_TCHECK(rp->rip6_nets); 127 if (rp->rip6_nets->rip6_metric == HOPCNT_INFINITY6 128 && IN6_IS_ADDR_UNSPECIFIED(&rp->rip6_nets->rip6_dest)) { 137 for (ni = rp->rip6_nets; length_left >= sizeof(*ni); 159 for (ni = rp->rip6_nets; length_left >= sizeof(*ni); 172 ND_PRINT((ndo, " ripng-%d ?? %u", rp->rip6_cmd, length)); 175 ND_TCHECK(rp [all...] |
/freebsd-11-stable/sys/dev/rp/ |
H A D | rp.c | 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->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...] |