Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 1325) sorted by relevance

12345678910>>...53

/freebsd/tests/sys/kern/
H A Dpdeathsig.c50 int rc; in ATF_TC_BODY() local
54 rc = procctl(P_PID, 0, PROC_PDEATHSIG_CTL, &signum); in ATF_TC_BODY()
55 ATF_CHECK_EQ(-1, rc); in ATF_TC_BODY()
60 rc = procctl(8888, 0, PROC_PDEATHSIG_CTL, &signum); in ATF_TC_BODY()
61 ATF_CHECK_EQ(-1, rc); in ATF_TC_BODY()
66 rc = procctl(P_PID, (((getpid() + 1) % 10) + 100), in ATF_TC_BODY()
68 ATF_CHECK_EQ(-1, rc); in ATF_TC_BODY()
73 rc = procctl(P_PID, 0, PROC_PDEATHSIG_CTL, NULL); in ATF_TC_BODY()
74 ATF_CHECK_EQ(-1, rc); in ATF_TC_BODY()
79 rc = procctl(P_PID, 0, PROC_PDEATHSIG_CTL, &signum); in ATF_TC_BODY()
[all …]
/freebsd/sys/rpc/
H A Dclnt_rc.c83 struct rc_data *rc = NULL; /* private data */ in clnt_reconnect_create() local
91 rc = mem_alloc(sizeof (*rc)); in clnt_reconnect_create()
92 mtx_init(&rc->rc_lock, "rc->rc_lock", NULL, MTX_DEF); in clnt_reconnect_create()
93 (void) memcpy(&rc->rc_addr, svcaddr, (size_t)svcaddr->sa_len); in clnt_reconnect_create()
94 rc->rc_nconf = nconf; in clnt_reconnect_create()
95 rc->rc_prog = program; in clnt_reconnect_create()
96 rc->rc_vers = version; in clnt_reconnect_create()
97 rc->rc_sendsz = sendsz; in clnt_reconnect_create()
98 rc->rc_recvsz = recvsz; in clnt_reconnect_create()
99 rc->rc_timeout.tv_sec = -1; in clnt_reconnect_create()
[all …]
H A Dreplay.c55 replay_alloc(struct replay_cache *rc, struct rpc_msg *msg,
57 static void replay_free(struct replay_cache *rc,
59 static void replay_prune(struct replay_cache *rc);
76 struct replay_cache *rc; in replay_newcache() local
79 rc = malloc(sizeof(*rc), M_RPC, M_WAITOK|M_ZERO); in replay_newcache()
81 TAILQ_INIT(&rc->rc_cache[i]); in replay_newcache()
82 TAILQ_INIT(&rc->rc_all); in replay_newcache()
83 mtx_init(&rc->rc_lock, "rc_lock", NULL, MTX_DEF); in replay_newcache()
84 rc->rc_maxsize = maxsize; in replay_newcache()
86 return (rc); in replay_newcache()
[all …]
/freebsd/contrib/bearssl/src/ssl/
H A Dssl_engine.c287 br_ssl_engine_fail(br_ssl_engine_context *rc, int err) in br_ssl_engine_fail() argument
289 if (rc->iomode != BR_IO_FAILED) { in br_ssl_engine_fail()
290 rc->iomode = BR_IO_FAILED; in br_ssl_engine_fail()
291 rc->err = err; in br_ssl_engine_fail()
299 make_ready_in(br_ssl_engine_context *rc) in make_ready_in() argument
301 rc->ixa = rc->ixb = 0; in make_ready_in()
302 rc->ixc = 5; in make_ready_in()
303 if (rc->iomode == BR_IO_IN) { in make_ready_in()
304 rc->iomode = BR_IO_INOUT; in make_ready_in()
312 make_ready_out(br_ssl_engine_context *rc) in make_ready_out() argument
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Drefcount.c66 zfs_refcount_create(zfs_refcount_t *rc) in zfs_refcount_create() argument
68 mutex_init(&rc->rc_mtx, NULL, MUTEX_DEFAULT, NULL); in zfs_refcount_create()
69 avl_create(&rc->rc_tree, zfs_refcount_compare, sizeof (reference_t), in zfs_refcount_create()
71 list_create(&rc->rc_removed, sizeof (reference_t), in zfs_refcount_create()
73 rc->rc_count = 0; in zfs_refcount_create()
74 rc->rc_removed_count = 0; in zfs_refcount_create()
75 rc->rc_tracked = reference_tracking_enable; in zfs_refcount_create()
79 zfs_refcount_create_tracked(zfs_refcount_t *rc) in zfs_refcount_create_tracked() argument
81 zfs_refcount_create(rc); in zfs_refcount_create_tracked()
82 rc->rc_tracked = B_TRUE; in zfs_refcount_create_tracked()
[all …]
/freebsd/sys/dev/ena/
H A Dena_rss.c89 int rc; in ena_rss_get_hash_key() local
91 rc = ena_com_get_hash_key(ena_dev, hw_key); in ena_rss_get_hash_key()
92 if (rc != 0) in ena_rss_get_hash_key()
93 return rc; in ena_rss_get_hash_key()
105 int qid, rc, i; in ena_rss_init_default() local
107 rc = ena_com_rss_init(ena_dev, ENA_RX_RSS_TABLE_LOG_SIZE); in ena_rss_init_default()
108 if (unlikely(rc != 0)) { in ena_rss_init_default()
110 return (rc); in ena_rss_init_default()
119 rc = ena_com_indirect_table_fill_entry(ena_dev, i, in ena_rss_init_default()
121 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_init_default()
[all …]
/freebsd/usr.sbin/bhyve/
H A Drfb.c293 rfb_send_resize_update_msg(struct rfb_softc *rc, int cfd) in rfb_send_resize_update_msg() argument
307 srect_hdr.width = htons(rc->width); in rfb_send_resize_update_msg()
308 srect_hdr.height = htons(rc->height); in rfb_send_resize_update_msg()
314 rfb_send_extended_keyevent_update_msg(struct rfb_softc *rc, int cfd) in rfb_send_extended_keyevent_update_msg() argument
328 srect_hdr.width = htons(rc->width); in rfb_send_extended_keyevent_update_msg()
329 srect_hdr.height = htons(rc->height); in rfb_send_extended_keyevent_update_msg()
335 rfb_recv_set_pixfmt_msg(struct rfb_softc *rc __unused, int cfd) in rfb_recv_set_pixfmt_msg()
390 pthread_mutex_lock(&rc->pixfmt_mtx); in rfb_recv_set_pixfmt_msg()
391 rc->new_pixfmt.red_shift = red_shift; in rfb_recv_set_pixfmt_msg()
392 rc->new_pixfmt.green_shift = green_shift; in rfb_recv_set_pixfmt_msg()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dxattrtest.c134 int rc = 0; in parse_args() local
160 rc = 1; in parse_args()
193 rc = 1; in parse_args()
197 rc = 1; in parse_args()
202 if (rc != 0) in parse_args()
203 return (rc); in parse_args()
226 return (rc); in parse_args()
233 int fd, rc; in drop_caches() local
241 rc = write(fd, "3", 1); in drop_caches()
242 if ((rc == -1) || (rc != 1)) { in drop_caches()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonBitTracker.cpp250 #define rc(i) RegisterCell::ref(getCell(Reg[i], Inputs)) in evaluate() macro
272 return rc(N); in evaluate()
343 return rr0(rc(1), Outputs); in evaluate()
348 RegisterCell PC = eXTR(rc(1), 0, PW); in evaluate()
358 return rr0(eINS(RC, eXTR(rc(1), 0, PW), 0), Outputs); in evaluate()
371 RegisterCell CW = RegisterCell(W0).insert(rc(1), BT::BitMask(0, W1-1)); in evaluate()
372 RegisterCell RC = eADD(eSXT(CW, W1), rc(2)); in evaluate()
377 return rr0(eADD(rc(1), rc(2)), Outputs); in evaluate()
379 return rr0(eADD(rc(1), eIMM(im(2), W0)), Outputs); in evaluate()
381 RegisterCell RC = eADD(eIMM(im(1), W0), eASL(rc(2), im(3))); in evaluate()
[all …]
/freebsd/tests/sys/netinet/
H A Dsocket_afinet.c50 int sd, rc; in ATF_TC_BODY() local
65 rc = bind(sd, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
66 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
74 int sd, rc; in ATF_TC_BODY() local
85 rc = bind(sd, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
86 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
94 int ss, ss2, cs, rc; in ATF_TC_BODY() local
105 rc = setsockopt(ss, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); in ATF_TC_BODY()
106 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
112 rc = bind(ss, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dcudbg_lib.c75 int rc = -1; in read_sge_ctxt() local
78 rc = begin_synchronized_op(padap, NULL, SLEEP_OK | INTR_OK, in read_sge_ctxt()
80 if (rc != 0) in read_sge_ctxt()
82 rc = t4_sge_ctxt_rd(padap, padap->mbox, cid, ctype, in read_sge_ctxt()
88 if (rc) in read_sge_ctxt()
97 int rc = 0; in get_next_ext_entity_hdr() local
103 rc = CUDBG_STATUS_BUFFER_SHORT; in get_next_ext_entity_hdr()
121 rc = CUDBG_STATUS_BUFFER_SHORT; in get_next_ext_entity_hdr()
141 return rc; in get_next_ext_entity_hdr()
157 int rc = -1; in wr_entity_to_flash() local
[all …]
/freebsd/sys/dev/jedec_dimm/
H A Djedec_dimm.c200 int rc; in jedec_dimm_adjust_offset() local
213 rc = 0; in jedec_dimm_adjust_offset()
217 rc = EINVAL; in jedec_dimm_adjust_offset()
228 rc = smbus_writeb(sc->smbus, (JEDEC_DTI_PAGE | JEDEC_LSA_PAGE_SET1), in jedec_dimm_adjust_offset()
230 if (rc != 0) { in jedec_dimm_adjust_offset()
233 orig_offset, rc); in jedec_dimm_adjust_offset()
240 return (rc); in jedec_dimm_adjust_offset()
267 int rc; in jedec_dimm_attach() local
292 rc = smbus_readb(sc->smbus, sc->spd_addr, SPD_OFFSET_DRAM_TYPE, &byte); in jedec_dimm_attach()
293 if (rc != 0) { in jedec_dimm_attach()
[all …]
/freebsd/sys/dev/sfxge/common/
H A Def10_nvram.c144 efx_rc_t rc; in tlv_advance() local
146 if ((rc = tlv_validate_state(cursor)) != 0) in tlv_advance()
152 rc = ENOENT; in tlv_advance()
159 if ((rc = tlv_validate_state(cursor)) != 0) in tlv_advance()
169 EFSYS_PROBE1(fail1, efx_rc_t, rc); in tlv_advance()
171 return (rc); in tlv_advance()
178 efx_rc_t rc; in tlv_rewind() local
182 if ((rc = tlv_validate_state(cursor)) != 0) in tlv_rewind()
188 EFSYS_PROBE1(fail1, efx_rc_t, rc); in tlv_rewind()
190 return (rc); in tlv_rewind()
[all …]
H A Defx_bootcfg.c89 int rc; in efx_bootcfg_sector_info() local
114 rc = EINVAL; in efx_bootcfg_sector_info()
128 rc = EINVAL; in efx_bootcfg_sector_info()
138 rc = ENOTSUP; in efx_bootcfg_sector_info()
159 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_bootcfg_sector_info()
160 return (rc); in efx_bootcfg_sector_info()
184 efx_rc_t rc; in efx_dhcp_verify() local
205 rc = ENOSPC; in efx_dhcp_verify()
212 rc = ENOSPC; in efx_dhcp_verify()
222 rc = EINVAL; in efx_dhcp_verify()
[all …]
H A Def10_image.c74 efx_rc_t rc; in efx_asn1_parse_header_match_tag() local
77 rc = EINVAL; in efx_asn1_parse_header_match_tag()
84 rc = ENOENT; in efx_asn1_parse_header_match_tag()
90 rc = EINVAL; in efx_asn1_parse_header_match_tag()
105 rc = EINVAL; in efx_asn1_parse_header_match_tag()
110 rc = EINVAL; in efx_asn1_parse_header_match_tag()
115 rc = E2BIG; in efx_asn1_parse_header_match_tag()
128 rc = E2BIG; in efx_asn1_parse_header_match_tag()
147 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_asn1_parse_header_match_tag()
149 return (rc); in efx_asn1_parse_header_match_tag()
[all …]
H A Defx_vpd.c96 efx_rc_t rc; in efx_vpd_init() local
129 rc = ENOTSUP; in efx_vpd_init()
134 if ((rc = evpdop->evpdo_init(enp)) != 0) in efx_vpd_init()
146 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_init()
148 return (rc); in efx_vpd_init()
157 efx_rc_t rc; in efx_vpd_size() local
162 if ((rc = evpdop->evpdo_size(enp, sizep)) != 0) in efx_vpd_size()
168 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_size()
170 return (rc); in efx_vpd_size()
180 efx_rc_t rc; in efx_vpd_read() local
[all …]
H A Defx_nvram.c86 efx_rc_t rc; in efx_nvram_init() local
119 rc = ENOTSUP; in efx_nvram_init()
131 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_init()
133 return (rc); in efx_nvram_init()
143 efx_rc_t rc; in efx_nvram_test() local
148 if ((rc = envop->envo_test(enp)) != 0) in efx_nvram_test()
154 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_test()
156 return (rc); in efx_nvram_test()
169 efx_rc_t rc; in efx_nvram_size() local
174 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_size()
[all …]
/freebsd/lib/libiconv_modules/mapper_std/
H A Dcitrus_mapper_std.c83 struct _citrus_mapper_std_rowcol *rc; in rowcol_convert() local
89 rc = &ms->ms_rowcol; in rowcol_convert()
91 for (i = rc->rc_src_rowcol_len * rc->rc_src_rowcol_bits, in rowcol_convert()
92 lz = &rc->rc_src_rowcol[0]; i > 0; ++lz) { in rowcol_convert()
93 i -= rc->rc_src_rowcol_bits; in rowcol_convert()
94 n = (src >> i) & rc->rc_src_rowcol_mask; in rowcol_convert()
96 switch (rc->rc_oob_mode) { in rowcol_convert()
98 *dst = rc->rc_dst_invalid; in rowcol_convert()
108 switch (rc->rc_dst_unit_bits) { in rowcol_convert()
110 conv = _region_peek8(&rc->rc_table, idx); in rowcol_convert()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzfs_refcount.h108 #define zfs_refcount_create(rc) ((rc)->rc_count = 0)
109 #define zfs_refcount_create_untracked(rc) ((rc)->rc_count = 0)
110 #define zfs_refcount_create_tracked(rc) ((rc)->rc_count = 0)
111 #define zfs_refcount_destroy(rc) ((rc)->rc_count = 0)
112 #define zfs_refcount_destroy_many(rc, number) ((rc)->rc_count = 0)
113 #define zfs_refcount_is_zero(rc) (zfs_refcount_count(rc) == 0)
114 #define zfs_refcount_count(rc) atomic_load_64(&(rc)->rc_count)
115 #define zfs_refcount_add(rc, holder) atomic_inc_64_nv(&(rc)->rc_count)
116 #define zfs_refcount_remove(rc, holder) atomic_dec_64_nv(&(rc)->rc_count)
117 #define zfs_refcount_add_few(rc, number, holder) \
[all …]
/freebsd/contrib/capsicum-test/
H A Dsmoketest.c40 int rc = cap_rights_limit(cap_fd, &r_rws); in main() local
42 …if (rc < 0) fprintf(stderr, "*** cap_rights_limit() failed: errno=%d %s\n", errno, strerror(errno)… in main()
47 rc = cap_rights_get(cap_fd, &rights); in main()
50 …fprintf(stderr, "[%d] cap_rights_get(cap_fd=%d) rc=%d rights=%s\n", getpid_(), cap_fd, rc, buffer); in main()
51 if (rc < 0) fprintf(stderr, "*** cap_rights_get() failed: errno=%d %s\n", errno, strerror(errno)); in main()
55 rc = fstat(cap_fd, &buf); in main()
56 fprintf(stderr, "[%d] fstat(cap_fd=%d) rc=%d errno=%d\n", getpid_(), cap_fd, rc, errno); in main()
57 if (rc != -1) fprintf(stderr, "*** fstat() unexpectedly succeeded\n"); in main()
61 rc = pdfork(&pd, 0); in main()
62 if (rc < 0) fprintf(stderr, "*** pdfork() failed: errno=%d %s\n", errno, strerror(errno)); in main()
[all …]
/freebsd/lib/librss/
H A Dlibrss.c150 struct rss_config *rc = NULL; in rss_config_get() local
152 rc = calloc(1, sizeof(*rc)); in rss_config_get()
153 if (rc == NULL) { in rss_config_get()
158 rc->rss_ncpus = rss_getsysctlint("net.inet.rss.ncpus"); in rss_config_get()
159 if (rc->rss_ncpus < 0) { in rss_config_get()
164 rc->rss_nbuckets = rss_getsysctlint("net.inet.rss.buckets"); in rss_config_get()
165 if (rc->rss_nbuckets < 0) { in rss_config_get()
170 rc->rss_basecpu = rss_getsysctlint("net.inet.rss.basecpu"); in rss_config_get()
171 if (rc->rss_basecpu< 0) { in rss_config_get()
176 rc->rss_bucket_map = calloc(rc->rss_nbuckets, sizeof(int)); in rss_config_get()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dpthread7.sh118 int rc;
120 if ((rc = pthread_mutex_lock(l)) != 0)
121 errc(1, rc, "pthread_mutex_lock");
127 int rc;
129 if ((rc = pthread_mutex_unlock(l)) != 0)
130 errc(1, rc, "pthread_mutex_unlock");
136 int rc;
138 if ((rc = pthread_cond_signal(c)) != 0)
139 errc(1, rc, "pthread_cond_signal");
145 int rc;
[all …]
H A Dpthread2.sh133 int rc;
135 if ((rc = pthread_mutex_lock(l)) != 0)
136 errc(1, rc, "pthread_mutex_lock");
142 int rc;
144 if ((rc = pthread_mutex_unlock(l)) != 0)
145 errc(1, rc, "pthread_mutex_unlock");
151 int rc;
153 if ((rc = pthread_cond_signal(c)) != 0)
154 errc(1, rc, "pthread_cond_signal");
160 int rc;
[all …]
H A Dpthread3.sh121 int rc;
123 if ((rc = pthread_mutex_lock(l)) != 0)
124 errc(1, rc, "pthread_mutex_lock");
130 int rc;
132 if ((rc = pthread_mutex_unlock(l)) != 0)
133 errc(1, rc, "pthread_mutex_unlock");
139 int rc;
141 if ((rc = pthread_cond_signal(c)) != 0)
142 errc(1, rc, "pthread_cond_signal");
148 int rc;
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_file_os.c87 ssize_t rc; in zfs_file_write() local
89 rc = kernel_write(fp, buf, count, &off); in zfs_file_write()
90 if (rc < 0) in zfs_file_write()
91 return (-rc); in zfs_file_write()
96 *resid = count - rc; in zfs_file_write()
97 } else if (rc != count) { in zfs_file_write()
119 ssize_t rc; in zfs_file_pwrite() local
121 rc = kernel_write(fp, buf, count, &off); in zfs_file_pwrite()
122 if (rc < 0) in zfs_file_pwrite()
123 return (-rc); in zfs_file_pwrite()
[all …]

12345678910>>...53