Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 25 of 164) sorted by relevance

1234567

/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Daf_rds.c90 struct rdsv3_sock *rs; in rdsv3_release() local
95 rs = rdsv3_sk_to_rs(sk); in rdsv3_release()
100 rdsv3_remove_bound(rs); in rdsv3_release()
171 rs->rs_bound_port); in rdsv3_getname()
243 if (rs->rs_snd_bytes < rdsv3_sk_sndbuf(rs)) in rdsv3_poll()
598 rs->rs_recverr); in rdsv3_getsockopt()
613 rs, optname, ret); in rdsv3_getsockopt()
743 if (!rs->rs_conn_addr) in rdsv3_getpeername()
810 struct rdsv3_sock *rs; in rdsv3_create() local
822 rs->rs_sk = sk; in rdsv3_create()
[all …]
H A Drds_recv.c99 now_congested = rs->rs_rcv_bytes > rdsv3_sk_rcvbuf(rs); in rdsv3_recv_rcvbuf_delta()
104 rs, NIPQUAD(rs->rs_bound_addr), in rdsv3_recv_rcvbuf_delta()
105 (int)ntohs(rs->rs_bound_port), rs->rs_rcv_bytes, in rdsv3_recv_rcvbuf_delta()
110 rs->rs_congested = 1; in rdsv3_recv_rcvbuf_delta()
120 (rs->rs_rcv_bytes < (rdsv3_sk_rcvbuf(rs)/2))) { in rdsv3_recv_rcvbuf_delta()
121 rs->rs_congested = 0; in rdsv3_recv_rcvbuf_delta()
247 if (!rs) { in rdsv3_recv_incoming()
288 if (rs) in rdsv3_recv_incoming()
289 rdsv3_sock_put(rs); in rdsv3_recv_incoming()
319 rs, inc, drop); in rdsv3_still_queued()
[all …]
H A Dbind.c146 struct rdsv3_sock *rs; in rdsv3_find_bound() local
154 if (rs && !rdsv3_sk_sock_flag(rdsv3_rs_to_sk(rs), SOCK_DEAD)) in rdsv3_find_bound()
157 rs = NULL; in rdsv3_find_bound()
163 return (rs); in rdsv3_find_bound()
208 rdsv3_sock_addref(rs); in rdsv3_add_bound()
229 if (rs->rs_bound_addr) { in rdsv3_remove_bound()
234 rs, NIPQUAD(htonl(rs->rs_bound_addr)), rs->rs_bound_port); in rdsv3_remove_bound()
237 rs->rs_zoneid); in rdsv3_remove_bound()
242 rs->rs_bound_addr = 0; in rdsv3_remove_bound()
245 rdsv3_sock_put(rs); in rdsv3_remove_bound()
[all …]
H A Dsend.c496 rs = rm->m_rs; in rdsv3_rdma_send_complete()
508 if (rs) { in rdsv3_rdma_send_complete()
626 if (rs) { in rdsv3_send_remove_from_sock()
662 if (rs) { in rdsv3_send_remove_from_sock()
834 if (rs->rs_snd_bytes < rdsv3_sk_sndbuf(rs)) { in rdsv3_send_queue_rm()
843 if (rs->rs_snd_bytes >= rdsv3_sk_sndbuf(rs) / 2) in rdsv3_send_queue_rm()
850 rm->m_rs = rs; in rdsv3_send_queue_rm()
869 rm, len, rs, rs->rs_snd_bytes, in rdsv3_send_queue_rm()
1007 if (rs->rs_conn && rs->rs_conn->c_faddr == daddr) { in rdsv3_sendmsg()
1075 (rdsv3_send_queue_rm(rs, conn, rm, rs->rs_bound_port, in rdsv3_sendmsg()
[all …]
H A Drdma.c119 mutex_enter(&rs->rs_rdma_lock); in rdsv3_destroy_mr()
125 mutex_exit(&rs->rs_rdma_lock); in rdsv3_destroy_mr()
161 mutex_exit(&rs->rs_rdma_lock); in rdsv3_rdma_drop_keys()
163 if (rs->rs_transport && rs->rs_transport->flush_mrs) in rdsv3_rdma_drop_keys()
177 if (rs->rs_bound_addr == 0) { in __rdsv3_rdma_map()
196 mr->r_sock = rs; in __rdsv3_rdma_map()
211 trans_private = rs->rs_transport->get_mr(&args->vec, nents, rs, in __rdsv3_rdma_map()
253 mutex_exit(&rs->rs_rdma_lock); in __rdsv3_rdma_map()
341 if (!rs->rs_transport || !rs->rs_transport->flush_mrs) in rdsv3_free_mr()
457 if (rs->rs_bound_addr == 0) { in rdsv3_rdma_prepare()
[all …]
H A Dcong.c270 struct rdsv3_sock *rs; in rdsv3_cong_map_updated() local
275 mutex_enter(&rs->rs_lock); in rdsv3_cong_map_updated()
276 rs->rs_cong_notify |= (rs->rs_cong_mask & portmask); in rdsv3_cong_map_updated()
278 mutex_exit(&rs->rs_lock); in rdsv3_cong_map_updated()
279 if (rs->rs_cong_notify) in rdsv3_cong_map_updated()
280 rdsv3_wake_sk_sleep(rs); in rdsv3_cong_map_updated()
386 struct rdsv3_sock *rs) in rdsv3_cong_wait() argument
391 rs, nonblock); in rdsv3_cong_wait()
396 if (rs && rs->rs_cong_monitor) { in rdsv3_cong_wait()
402 rs->rs_cong_mask |= in rdsv3_cong_wait()
[all …]
H A Drdsv3_debug.c377 if (rs->interval) { in rdsv3_printk_ratelimit()
381 if (!rs->begin) { in rdsv3_printk_ratelimit()
382 rs->begin = current; in rdsv3_printk_ratelimit()
384 if (current < rs->begin + TICK_TO_NSEC(rs->interval)) { in rdsv3_printk_ratelimit()
385 if (rs->missed) { in rdsv3_printk_ratelimit()
388 rs->begin = 0; in rdsv3_printk_ratelimit()
389 rs->printed = 0; in rdsv3_printk_ratelimit()
390 rs->missed = 0; in rdsv3_printk_ratelimit()
393 if (rs->burst && rs->burst > rs->printed) { in rdsv3_printk_ratelimit()
394 rs->printed++; in rdsv3_printk_ratelimit()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Drange_tree.c127 uint64_t size = rs_get_end(rs, rt) - rs_get_start(rs, rt); in range_tree_stat_incr()
260 rs_set_fill(rs, rt, rs_get_fill(rs, rt) + delta); in range_tree_adjust_fill()
383 rs = &tmp; in range_tree_add_impl()
392 ASSERT3U(rs_get_fill(rs, rt), <=, rs_get_end(rs, rt) - in range_tree_add_impl()
395 ASSERT3U(rs_get_fill(rs, rt), ==, rs_get_end(rs, rt) - in range_tree_add_impl()
507 rs = NULL; in range_tree_remove_impl()
516 rs_set_fill_raw(rs, rt, rs_get_end_raw(rs, rt) - in range_tree_remove_impl()
579 if (rs != NULL && rs_get_start(rs, rt) <= start && in range_tree_find()
699 func(arg, rs_get_start(rs, rt), rs_get_end(rs, rt) - in range_tree_walk()
894 return (rs != NULL ? rs_get_start(rs, rt) : 0); in range_tree_min()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Drange_tree.h146 return (((const range_seg32_t *)rs)->rs_end); in rs_get_end_raw()
148 return (((const range_seg64_t *)rs)->rs_end); in rs_get_end_raw()
163 const range_seg32_t *r32 = rs; in rs_get_fill_raw()
167 const range_seg64_t *r64 = rs; in rs_get_fill_raw()
171 return (((range_seg_gap_t *)rs)->rs_fill); in rs_get_fill_raw()
207 ((range_seg64_t *)rs)->rs_start = start; in rs_set_start_raw()
210 ((range_seg_gap_t *)rs)->rs_start = start; in rs_set_start_raw()
227 ((range_seg64_t *)rs)->rs_end = end; in rs_set_end_raw()
230 ((range_seg_gap_t *)rs)->rs_end = end; in rs_set_end_raw()
245 ASSERT3U(fill, ==, rs_get_end_raw(rs, rt) - rs_get_start_raw(rs, in rs_set_fill_raw()
[all …]
/illumos-gate/usr/src/lib/libc/amd64/threads/
H A Dmachdep.c130 getgregs(ulwp_t *ulwp, gregset_t rs) in getgregs() argument
135 rs[REG_RBX] = status.pr_reg[REG_RBX]; in getgregs()
144 rs[REG_RBX] = 0; in getgregs()
145 rs[REG_R12] = 0; in getgregs()
146 rs[REG_R13] = 0; in getgregs()
147 rs[REG_R14] = 0; in getgregs()
148 rs[REG_R15] = 0; in getgregs()
149 rs[REG_RBP] = 0; in getgregs()
150 rs[REG_RSP] = 0; in getgregs()
151 rs[REG_RIP] = 0; in getgregs()
[all …]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_fzc.c96 if (rs != HPI_SUCCESS) { in hxge_fzc_intr_ldg_num_set()
126 return (HXGE_ERROR | rs); in hxge_fzc_intr_tmres_set()
160 if (rs != HPI_SUCCESS) { in hxge_fzc_intr_sid_set()
163 return (HXGE_ERROR | rs); in hxge_fzc_intr_sid_set()
208 if (rs != HPI_SUCCESS) in hxge_init_fzc_rxdma_channel_pages()
209 return (HXGE_ERROR | rs); in hxge_init_fzc_rxdma_channel_pages()
253 if (rs != HPI_SUCCESS) in hxge_init_fzc_rx_common()
254 return (HXGE_ERROR | rs); in hxge_init_fzc_rx_common()
277 if (rs == HPI_SUCCESS) in hxge_init_fzc_txdma_channel_pages()
280 return (HXGE_ERROR | rs); in hxge_init_fzc_txdma_channel_pages()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/threads/
H A Dmachdep.c146 rs[REG_PC] = status.pr_reg[R_PC]; in getgregs()
147 rs[REG_O6] = status.pr_reg[R_O6]; in getgregs()
148 rs[REG_O7] = status.pr_reg[R_O7]; in getgregs()
149 rs[REG_G1] = status.pr_reg[R_G1]; in getgregs()
154 rs[REG_PC] = 0; in getgregs()
155 rs[REG_O6] = 0; in getgregs()
156 rs[REG_O7] = 0; in getgregs()
157 rs[REG_G1] = 0; in getgregs()
158 rs[REG_G2] = 0; in getgregs()
159 rs[REG_G3] = 0; in getgregs()
[all …]
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_fzc.c60 return (NXGE_ERROR | rs); in nxge_test_and_set()
87 return (NXGE_ERROR | rs); in nxge_set_fzc_multi_part_ctl()
107 return (NXGE_ERROR | rs); in nxge_get_fzc_multi_part_ctl()
249 if (rs != NPI_SUCCESS) { in nxge_fzc_intr_sid_set()
252 rs)); in nxge_fzc_intr_sid_set()
481 npi_status_t rs; in nxge_init_fzc_rdc_pages() local
791 if (rs != NPI_SUCCESS) in nxge_init_fzc_rx_common()
801 if (rs != NPI_SUCCESS) in nxge_init_fzc_rx_common()
1014 if (rs != NPI_SUCCESS) in nxge_init_fzc_rxdma_port()
1031 if (rs & NPI_FAILURE) in nxge_fzc_dmc_def_port_rdc()
[all …]
H A Dnxge_ipp.c40 npi_status_t rs = NPI_SUCCESS; in nxge_ipp_init() local
119 return (NXGE_ERROR | rs); in nxge_ipp_init()
175 return (NXGE_ERROR | rs); in nxge_ipp_disable()
243 return (NXGE_ERROR | rs); in nxge_ipp_reset()
279 return (NXGE_ERROR | rs); in nxge_ipp_enable()
324 return (NXGE_ERROR | rs); in nxge_ipp_drain()
349 return (NXGE_ERROR | rs); in nxge_ipp_handle_sys_errors()
362 return (NXGE_ERROR | rs); in nxge_ipp_handle_sys_errors()
365 return (NXGE_ERROR | rs); in nxge_ipp_handle_sys_errors()
707 return (status | rs); in nxge_ipp_fatal_err_recover()
[all …]
H A Dnxge_fflp.c171 if (rs != NPI_SUCCESS) { in nxge_fflp_vlan_tbl_clear_all()
203 if (rs != NPI_SUCCESS) { in nxge_fflp_tcam_init()
210 if (rs != NPI_SUCCESS) { in nxge_fflp_tcam_init()
221 if (rs != NPI_SUCCESS) { in nxge_fflp_tcam_init()
325 if (rs != NPI_SUCCESS) { in nxge_fflp_fcram_invalidate_all()
331 if (rs != NPI_SUCCESS) { in nxge_fflp_fcram_invalidate_all()
379 if (rs != NPI_SUCCESS) { in nxge_fflp_fcram_init()
386 if (rs != NPI_SUCCESS) { in nxge_fflp_fcram_init()
393 if (rs != NPI_SUCCESS) { in nxge_fflp_fcram_init()
438 if (rs != NPI_SUCCESS) { in nxge_logical_mac_assign_rdc_table()
[all …]
H A Dnxge_txc.c41 npi_status_t rs = NPI_SUCCESS; in nxge_txc_init() local
77 return (NXGE_ERROR | rs); in nxge_txc_init()
85 npi_status_t rs = NPI_SUCCESS; in nxge_txc_uninit() local
117 return (NXGE_ERROR | rs); in nxge_txc_uninit()
152 npi_status_t rs = NPI_SUCCESS; in nxge_txc_tdc_bind() local
219 return (NXGE_ERROR | rs); in nxge_txc_tdc_bind()
277 port, channel, rs)); in nxge_txc_tdc_unbind()
292 return (NXGE_ERROR | rs); in nxge_txc_tdc_unbind()
408 return (NXGE_ERROR | rs); in nxge_txc_handle_port_errors()
457 return (NXGE_ERROR | rs); in nxge_txc_handle_port_errors()
[all …]
/illumos-gate/usr/src/lib/libc/i386/threads/
H A Dmachdep.c179 rs[EIP] = status.pr_reg[EIP]; in getgregs()
180 rs[EDI] = status.pr_reg[EDI]; in getgregs()
181 rs[ESI] = status.pr_reg[ESI]; in getgregs()
182 rs[EBP] = status.pr_reg[EBP]; in getgregs()
183 rs[EBX] = status.pr_reg[EBX]; in getgregs()
186 rs[EIP] = 0; in getgregs()
187 rs[EDI] = 0; in getgregs()
188 rs[ESI] = 0; in getgregs()
189 rs[EBP] = 0; in getgregs()
190 rs[EBX] = 0; in getgregs()
[all …]
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_rpcb_pxy.c176 rpcb_session_t *rs; local
182 if (rs == NULL)
185 bzero((char *)rs, sizeof(*rs));
188 aps->aps_data = rs;
207 rpcb_session_t *rs; local
239 rpcb_session_t *rs; local
309 rpcb_session_t *rs; local
401 ippr_rpcb_flush(rs) in ippr_rpcb_flush() argument
402 rpcb_session_t *rs; in ippr_rpcb_flush()
406 r1 = rs->rs_rxlist;
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_matching.c176 rule_set *rs) in free_rule_set() argument
180 if (rs == NULL) in free_rule_set()
188 free(rs); in free_rule_set()
398 rule_set *rs; in parse_rule_set() local
407 rs = calloc(1, sizeof(*rs)); in parse_rule_set()
427 if (rs->relation == relation_none && rs->num_crs > 1) { in parse_rule_set()
439 rs->num_crs++; in parse_rule_set()
448 rs->crs = rc; in parse_rule_set()
454 *out_rs = rs; in parse_rule_set()
582 __FUNCTION__, relation2string(rs->relation), rs->num_crs); in check_all_certs()
[all …]
/illumos-gate/usr/src/lib/libpool/common/
H A Dpool.c412 free(rs); in pool_base_info()
461 free(rs); in pool_base_info()
1845 free(rs); in pool_get_pool()
1881 for (pe = rs->prs_next(rs); pe != NULL; pe = rs->prs_next(rs)) { in pool_query_pools()
1953 free(rs); in pool_get_resource()
1994 for (pe = rs->prs_next(rs); pe != NULL; pe = rs->prs_next(rs)) { in pool_query_resources()
2592 free(rs); in pool_walk_pools()
2622 free(rs); in pool_walk_components()
2660 for (pe = rs->prs_next(rs); pe != NULL; pe = rs->prs_next(rs)) { in pool_query_pool_resources()
2698 free(rs); in pool_walk_resources()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.chargend/
H A Din.chargend.c72 char *rs = ring; in chargen_stream() local
77 if (rs >= endring) in chargen_stream()
78 rs = ring; in chargen_stream()
79 rp = rs++; in chargen_stream()
110 static char *rs = ring; in chargen_dg() local
112 rp = rs; in chargen_dg()
113 if (rs++ >= endring) in chargen_dg()
114 rs = ring; in chargen_dg()
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dtimespec_get.c25 timespec_cmp(const struct timespec *ls, const struct timespec *rs) in timespec_cmp() argument
27 if (ls->tv_sec > rs->tv_sec) in timespec_cmp()
29 if (ls->tv_sec < rs->tv_sec) in timespec_cmp()
31 if (ls->tv_nsec > rs->tv_nsec) in timespec_cmp()
33 if (ls->tv_nsec > rs->tv_nsec) in timespec_cmp()
35 if (ls->tv_nsec < rs->tv_nsec) in timespec_cmp()
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/
H A Drdma.h87 int rdsv3_get_mr(struct rdsv3_sock *rs, const void *optval, int optlen);
88 int rdsv3_get_mr_for_dest(struct rdsv3_sock *rs, const void *optval,
90 int rdsv3_free_mr(struct rdsv3_sock *rs, const void *optval, int optlen);
91 void rdsv3_rdma_drop_keys(struct rdsv3_sock *rs);
92 int rdsv3_cmsg_rdma_args(struct rdsv3_sock *rs, struct rdsv3_message *rm,
94 int rdsv3_cmsg_rdma_dest(struct rdsv3_sock *rs, struct rdsv3_message *rm,
96 int rdsv3_cmsg_rdma_map(struct rdsv3_sock *rs, struct rdsv3_message *rm,
/illumos-gate/usr/src/lib/libc/amd64/unwind/
H A Dcall_frame_inst.c145 switch (rs[CF_ADDR].rule) { in fix_cfa()
151 rs[CF_ADDR].offset; in fix_cfa()
154 ctx->cfa = rs[CF_ADDR].offset; in fix_cfa()
159 rs[CF_ADDR].offset); in fix_cfa()
168 switch (rs[RET_ADD].rule) { in fix_ra()
178 rs[RET_ADD].offset; in fix_ra()
183 rs[RET_ADD].offset); in fix_ra()
191 switch (rs[index].rule) { in fix_reg()
197 (ctx->cfa + rs[index].offset); in fix_reg()
205 rs[index].offset; in fix_reg()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbinch.c48 static char rs[CSMAX + 1]; in wmbinch() local
64 rs[k++] = (char)wc; in wmbinch()
68 rs[k++] = (char)wc; in wmbinch()
73 rs[k] = '\0'; in wmbinch()
74 return (rs); in wmbinch()

1234567