Home
last modified time | relevance | path

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

12

/f-stack/freebsd/net/altq/
H A Daltq_red.c177 red_t *rp; in red_alloc() local
182 if (rp == NULL) in red_alloc()
191 rp->red_wtab = wtab_alloc(rp->red_weight); in red_alloc()
249 rp->red_thmin_s = rp->red_thmin << (rp->red_wshift + FP_SHIFT); in red_alloc()
250 rp->red_thmax_s = rp->red_thmax << (rp->red_wshift + FP_SHIFT); in red_alloc()
256 rp->red_probd = (2 * (rp->red_thmax - rp->red_thmin) in red_alloc()
260 return (rp); in red_alloc()
273 sp->q_avg = rp->red_avg >> rp->red_wshift; in red_getstats()
339 rp->red_probd, rp->red_count)) { in red_addq()
526 red_getq(rp, q) in red_getq() argument
[all …]
H A Daltq_rio.c182 rio_t *rp; in rio_alloc() local
187 if (rp == NULL) in rio_alloc()
190 rp->rio_flags = flags; in rio_alloc()
215 w = rp->rio_weight; in rio_alloc()
218 rp->rio_wshift = i; in rio_alloc()
223 rp->rio_weight = w; in rio_alloc()
227 rp->rio_wtab = wtab_alloc(rp->rio_weight); in rio_alloc()
265 return (rp); in rio_alloc()
269 rio_destroy(rio_t *rp) in rio_destroy() argument
272 free(rp, M_DEVBUF); in rio_destroy()
[all …]
/f-stack/freebsd/net/
H A Draw_cb.c82 struct rawcb *rp = sotorawcb(so); in raw_attach() local
91 KASSERT(rp != NULL, ("raw_attach: rp == NULL")); in raw_attach()
96 rp->rcb_socket = so; in raw_attach()
97 rp->rcb_proto.sp_family = so->so_proto->pr_domain->dom_family; in raw_attach()
98 rp->rcb_proto.sp_protocol = proto; in raw_attach()
100 LIST_INSERT_HEAD(&V_rawcb_list, rp, list); in raw_attach()
109 raw_detach(struct rawcb *rp) in raw_detach() argument
111 struct socket *so = rp->rcb_socket; in raw_detach()
113 KASSERT(so->so_pcb == rp, ("raw_detach: so_pcb != rp")); in raw_detach()
117 LIST_REMOVE(rp, list); in raw_detach()
[all …]
H A Draw_usrreq.c84 struct rawcb *rp; in raw_input_ext() local
90 LIST_FOREACH(rp, &V_rawcb_list, list) { in raw_input_ext()
91 if (rp->rcb_proto.sp_family != proto->sp_family) in raw_input_ext()
93 if (rp->rcb_proto.sp_protocol && in raw_input_ext()
94 rp->rcb_proto.sp_protocol != proto->sp_protocol) in raw_input_ext()
96 if (cb != NULL && (*cb)(m, proto, src, rp) != 0) in raw_input_ext()
110 last = rp->rcb_socket; in raw_input_ext()
192 struct rawcb *rp = sotorawcb(so); in raw_udetach() local
194 KASSERT(rp != NULL, ("raw_udetach: rp == NULL")); in raw_udetach()
196 raw_detach(rp); in raw_udetach()
H A Dif_lagg.c1023 if (rp->rp_portname[0] == '\0' || in lagg_port_ioctl()
1036 lagg_port2req(lp, rp); in lagg_port_ioctl()
1175 strlcpy(rp->rp_ifname, sc->sc_ifname, sizeof(rp->rp_ifname)); in lagg_port2req()
1176 strlcpy(rp->rp_portname, lp->lp_ifp->if_xname, sizeof(rp->rp_portname)); in lagg_port2req()
1177 rp->rp_prio = lp->lp_prio; in lagg_port2req()
1178 rp->rp_flags = lp->lp_flags; in lagg_port2req()
1185 rp->rp_flags |= LAGG_PORT_MASTER; in lagg_port2req()
1557 if (rp->rp_portname[0] == '\0' || in lagg_ioctl()
1572 lagg_port2req(lp, rp); in lagg_ioctl()
1580 if (rp->rp_portname[0] == '\0' || in lagg_ioctl()
[all …]
H A Drtsock.c254 struct rawcb *rp) in raw_input_rts_cb() argument
269 rp->rcb_socket == NULL || in raw_input_rts_cb()
319 struct rawcb *rp; in rts_attach() local
325 rp = malloc(sizeof *rp, M_PCB, M_WAITOK | M_ZERO); in rts_attach()
327 so->so_pcb = (caddr_t)rp; in rts_attach()
330 rp = sotorawcb(so); in rts_attach()
333 free(rp, M_PCB); in rts_attach()
1193 struct rawcb *rp = NULL; in send_rtm_reply() local
1206 rp = sotorawcb(so); in send_rtm_reply()
1227 if (rp) { in send_rtm_reply()
[all …]
/f-stack/freebsd/kern/
H A Dsubr_physmem.c281 struct region *ep, *rp; in insert_region() local
284 for (i = 0, rp = regions; i < rcnt; ++i, ++rp) { in insert_region()
285 if (rp->addr == addr && rp->size == size) /* Pure dup. */ in insert_region()
289 rp->addr = addr; in insert_region()
290 rp->size += size; in insert_region()
292 } else if (rp->addr + rp->size == addr) { in insert_region()
293 rp->size += size; in insert_region()
298 bcopy(rp, rp + 1, (ep - rp) * sizeof(*rp)); in insert_region()
302 rp->addr = addr; in insert_region()
303 rp->size = size; in insert_region()
[all …]
H A Dsubr_rangeset.c315 struct rs_el *r, *rp; in rangeset_check() local
318 for (cursor = 0, rp = NULL;; cursor = r->re_start + 1, rp = r) { in rangeset_check()
326 if (rp != NULL) { in rangeset_check()
327 KASSERT(rp->re_end <= r->re_start, in rangeset_check()
330 rs, rp, (uintmax_t)rp->re_start, in rangeset_check()
331 (uintmax_t)rp->re_end, r, (uintmax_t)r->re_start, in rangeset_check()
H A Dkern_procctl.c201 reap_getpids(struct thread *td, struct proc *p, struct procctl_reaper_pids *rp) in reap_getpids() argument
216 if (rp->rp_count < n) in reap_getpids()
217 n = rp->rp_count; in reap_getpids()
235 error = copyout(pi, rp->rp_pids, i * sizeof(*pi)); in reap_getpids()
587 struct procctl_reaper_pids rp; in sys_procctl() member
618 error = copyin(uap->data, &x.rp, sizeof(x.rp)); in sys_procctl()
621 data = &x.rp; in sys_procctl()
/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_upstream_random_module.c164 rp = ngx_palloc(s->connection->pool, in ngx_stream_upstream_init_random_peer()
166 if (rp == NULL) { in ngx_stream_upstream_init_random_peer()
170 s->upstream->peer.data = &rp->rrp; in ngx_stream_upstream_init_random_peer()
183 rp->conf = rcf; in ngx_stream_upstream_init_random_peer()
184 rp->tries = 0; in ngx_stream_upstream_init_random_peer()
218 rrp = &rp->rrp; in ngx_stream_upstream_get_random_peer()
237 peer = rp->conf->ranges[i].peer; in ngx_stream_upstream_get_random_peer()
270 if (++rp->tries > 20) { in ngx_stream_upstream_get_random_peer()
312 rrp = &rp->rrp; in ngx_stream_upstream_get_random2_peer()
337 peer = rp->conf->ranges[i].peer; in ngx_stream_upstream_get_random2_peer()
[all …]
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_upstream_random_module.c166 if (rp == NULL) { in ngx_http_upstream_init_random_peer()
170 r->upstream->peer.data = &rp->rrp; in ngx_http_upstream_init_random_peer()
183 rp->conf = rcf; in ngx_http_upstream_init_random_peer()
184 rp->tries = 0; in ngx_http_upstream_init_random_peer()
218 rrp = &rp->rrp; in ngx_http_upstream_get_random_peer()
223 if (rp->tries > 20 || peers->single) { in ngx_http_upstream_get_random_peer()
237 peer = rp->conf->ranges[i].peer; in ngx_http_upstream_get_random_peer()
270 if (++rp->tries > 20) { in ngx_http_upstream_get_random_peer()
312 rrp = &rp->rrp; in ngx_http_upstream_get_random2_peer()
337 peer = rp->conf->ranges[i].peer; in ngx_http_upstream_get_random2_peer()
[all …]
/f-stack/dpdk/app/test/
H A Dtest_ring.c512 if (rp != NULL) { in test_ring_negative_tests()
522 if (rp != NULL) { in test_ring_negative_tests()
530 if (rp != NULL) { in test_ring_negative_tests()
547 if (rp != NULL) in test_ring_negative_tests()
553 if (rp == NULL) { in test_ring_negative_tests()
561 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto test_fail); in test_ring_negative_tests()
572 rp = NULL; in test_ring_negative_tests()
999 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
1011 TEST_RING_VERIFY(rte_ring_full(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
1020 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
[all …]
H A Dtest_func_reentrancy.c88 struct rte_ring *rp; in ring_clean() local
95 rp = rte_ring_lookup(ring_name); in ring_clean()
96 if (rp != NULL) in ring_clean()
97 rte_ring_free(rp); in ring_clean()
105 struct rte_ring * rp; in ring_create_lookup() local
113 rp = rte_ring_create("fr_test_once", 4096, SOCKET_ID_ANY, 0); in ring_create_lookup()
114 if (rp != NULL) in ring_create_lookup()
121 rp = rte_ring_create(ring_name, 4096, SOCKET_ID_ANY, 0); in ring_create_lookup()
122 if (NULL == rp) in ring_create_lookup()
124 if (rte_ring_lookup(ring_name) != rp) in ring_create_lookup()
H A Dtest_event_ring.c31 struct rte_event_ring *rp = NULL; in test_event_ring_creation_with_wrong_size() local
34 rp = rte_event_ring_create("test_bad_ring_size", RING_SIZE + 1, in test_event_ring_creation_with_wrong_size()
36 if (rp != NULL) in test_event_ring_creation_with_wrong_size()
40 rp = rte_event_ring_create("test_bad_ring_size", (RTE_RING_SZ_MASK + 1), in test_event_ring_creation_with_wrong_size()
42 if (rp != NULL) in test_event_ring_creation_with_wrong_size()
/f-stack/freebsd/netgraph/
H A Dng_nat.c418 struct ng_nat_redirect_port *const rp = in ng_nat_rcvmsg() local
421 if (msg->header.arglen < sizeof(*rp)) { in ng_nat_rcvmsg()
434 rp->local_addr, htons(rp->local_port), in ng_nat_rcvmsg()
435 rp->remote_addr, htons(rp->remote_port), in ng_nat_rcvmsg()
436 rp->alias_addr, htons(rp->alias_port), in ng_nat_rcvmsg()
437 rp->proto); in ng_nat_rcvmsg()
446 entry->rdr.local_addr = rp->local_addr; in ng_nat_rcvmsg()
452 entry->rdr.proto = rp->proto; in ng_nat_rcvmsg()
545 rp->local_addr, rp->remote_addr, in ng_nat_rcvmsg()
546 rp->alias_addr, rp->proto); in ng_nat_rcvmsg()
[all …]
/f-stack/tools/ifconfig/
H A Diflagg.c42 struct lagg_reqport rp; in setlaggport() local
44 bzero(&rp, sizeof(rp)); in setlaggport()
45 strlcpy(rp.rp_ifname, name, sizeof(rp.rp_ifname)); in setlaggport()
46 strlcpy(rp.rp_portname, val, sizeof(rp.rp_portname)); in setlaggport()
54 if (ioctl(s, SIOCSLAGGPORT, &rp) && errno != EEXIST) { in setlaggport()
64 struct lagg_reqport rp; in unsetlaggport() local
66 bzero(&rp, sizeof(rp)); in unsetlaggport()
67 strlcpy(rp.rp_ifname, name, sizeof(rp.rp_ifname)); in unsetlaggport()
68 strlcpy(rp.rp_portname, val, sizeof(rp.rp_portname)); in unsetlaggport()
70 if (ioctl(s, SIOCSLAGGDELPORT, &rp)) in unsetlaggport()
H A Difieee80211.c513 const struct regdomain *rp; in setregdomain_cb() local
528 if (rp == NULL) in setregdomain_cb()
532 else if (rp->cc != NULL && rp->cc != cc) in setregdomain_cb()
535 rp->name); in setregdomain_cb()
4367 rp = &roamparams.params[mode]; in list_roam()
4368 if (rp->rssi == 0 && rp->rate == 0) in list_roam()
4374 if (rp->rssi & 1) in list_roam()
4383 if (rp->rssi & 1) in list_roam()
4385 modename[mode], rp->rssi/2, rp->rate/2); in list_roam()
4388 modename[mode], rp->rssi/2, rp->rate/2); in list_roam()
[all …]
/f-stack/freebsd/netipsec/
H A Dkeysock.c142 key_sendup0(struct rawcb *rp, struct mbuf *m, int promisc) in key_sendup0() argument
171 sorwakeup(rp->rcb_socket); in key_sendup0()
181 struct rawcb *rp; in key_sendup_mbuf() local
210 LIST_FOREACH(rp, &V_rawcb_list, list) in key_sendup_mbuf()
212 if (rp->rcb_proto.sp_family != PF_KEY) in key_sendup_mbuf()
214 if (rp->rcb_proto.sp_protocol in key_sendup_mbuf()
215 && rp->rcb_proto.sp_protocol != PF_KEY_V2) { in key_sendup_mbuf()
224 kp = (struct keycb *)rp; in key_sendup_mbuf()
228 key_sendup0(rp, n, 1); in key_sendup_mbuf()
234 if (so && sotorawcb(so) == rp) in key_sendup_mbuf()
[all …]
/f-stack/freebsd/netgraph/bluetooth/hci/
H A Dng_hci_cmds.c500 ng_hci_role_discovery_rp *rp = NULL; in process_link_policy_params() local
504 NG_HCI_M_PULLUP(mrp, sizeof(*rp)); in process_link_policy_params()
521 con->role = rp->role; in process_link_policy_params()
692 ng_hci_read_buffer_size_rp *rp = NULL; in process_info_params() local
698 NG_HCI_M_PULLUP(mrp, sizeof(*rp)); in process_info_params()
704 le16toh(rp->num_acl_pkt), /* number */ in process_info_params()
705 le16toh(rp->max_acl_size), /* size */ in process_info_params()
706 le16toh(rp->num_acl_pkt) /* free */ in process_info_params()
711 le16toh(rp->num_sco_pkt), /* number */ in process_info_params()
712 rp->max_sco_size, /* size */ in process_info_params()
[all …]
/f-stack/dpdk/drivers/net/txgbe/base/
H A Dtxgbe_regs.h547 #define TXGBE_QARBTXCRED(rp) (0x018500 + (rp) * 4) argument
1335 #define TXGBE_RXBAL(rp) (0x001000 + 0x40 * (rp)) argument
1336 #define TXGBE_RXBAH(rp) (0x001004 + 0x40 * (rp)) argument
1337 #define TXGBE_RXRP(rp) (0x00100C + 0x40 * (rp)) argument
1338 #define TXGBE_RXWP(rp) (0x001008 + 0x40 * (rp)) argument
1339 #define TXGBE_RXCFG(rp) (0x001010 + 0x40 * (rp)) argument
1362 #define TXGBE_TXBAL(rp) (0x003000 + 0x40 * (rp)) argument
1363 #define TXGBE_TXBAH(rp) (0x003004 + 0x40 * (rp)) argument
1364 #define TXGBE_TXWP(rp) (0x003008 + 0x40 * (rp)) argument
1365 #define TXGBE_TXRP(rp) (0x00300C + 0x40 * (rp)) argument
[all …]
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_inet.c1121 struct addrinfo hints, *res, *rp; in ngx_inet_resolve_host() local
1145 for (n = 0, rp = res; rp != NULL; rp = rp->ai_next) { in ngx_inet_resolve_host()
1147 switch (rp->ai_family) { in ngx_inet_resolve_host()
1167 for (rp = res; rp != NULL; rp = rp->ai_next) { in ngx_inet_resolve_host()
1169 switch (rp->ai_family) { in ngx_inet_resolve_host()
1179 if (ngx_inet_add_addr(pool, u, rp->ai_addr, rp->ai_addrlen, n) in ngx_inet_resolve_host()
/f-stack/freebsd/netgraph/bluetooth/l2cap/
H A Dng_l2cap_llpi.c211 ng_hci_lp_con_rsp_ep *rp = NULL; in ng_l2cap_lp_con_ind() local
255 sizeof(*rp), M_NOWAIT); in ng_l2cap_lp_con_ind()
262 rp = (ng_hci_lp_con_rsp_ep *)(rsp->data); in ng_l2cap_lp_con_ind()
263 rp->status = 0x00; /* accept connection */ in ng_l2cap_lp_con_ind()
264 rp->link_type = NG_HCI_LINK_ACL; in ng_l2cap_lp_con_ind()
265 bcopy(&ep->bdaddr, &rp->bdaddr, sizeof(rp->bdaddr)); in ng_l2cap_lp_con_ind()
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dcover.c250 static int COVER_cmp(COVER_ctx_t *ctx, const void *lp, const void *rp) { in COVER_cmp() argument
252 U32 const rhs = *(U32 const *)rp; in COVER_cmp()
258 static int COVER_cmp8(COVER_ctx_t *ctx, const void *lp, const void *rp) { in COVER_cmp8() argument
261 U64 const rhs = MEM_readLE64(ctx->samples + *(U32 const *)rp) & mask; in COVER_cmp8()
273 static int WIN_CDECL COVER_strict_cmp(const void *lp, const void *rp) { in COVER_strict_cmp() argument
274 int result = COVER_cmp(g_coverCtx, lp, rp); in COVER_strict_cmp()
276 result = lp < rp ? -1 : 1; in COVER_strict_cmp()
283 static int WIN_CDECL COVER_strict_cmp8(const void *lp, const void *rp) { in COVER_strict_cmp8() argument
284 int result = COVER_cmp8(g_coverCtx, lp, rp); in COVER_strict_cmp8()
286 result = lp < rp ? -1 : 1; in COVER_strict_cmp8()
/f-stack/freebsd/net80211/
H A Dieee80211_freebsd.c675 struct ieee80211_toa_params *rp; in ieee80211_add_toa_params() local
682 rp = (struct ieee80211_toa_params *)(mtag + 1); in ieee80211_add_toa_params()
683 memcpy(rp, p, sizeof(*rp)); in ieee80211_add_toa_params()
692 struct ieee80211_toa_params *rp; in ieee80211_get_toa_params() local
698 rp = (struct ieee80211_toa_params *)(mtag + 1); in ieee80211_get_toa_params()
700 memcpy(p, rp, sizeof(*p)); in ieee80211_get_toa_params()
/f-stack/freebsd/ddb/
H A Ddb_command.c274 char *lp, *rp; in db_cmd_match() local
278 rp = cmd->name; in db_cmd_match()
279 while ((c = *lp) == *rp) { in db_cmd_match()
287 rp++; in db_cmd_match()

12