Searched refs:rs (Results 1 - 25 of 147) sorted by relevance

123456

/src/usr.bin/rs/
H A DMakefile5 PROG= rs
/src/sys/external/isc/atheros_hal/dist/ar5416/
H A Dar5416_recv.c94 struct ath_rx_status *rs)
110 rs->rs_status = 0;
111 rs->rs_flags = 0;
113 rs->rs_datalen = ads->ds_rxstatus1 & AR_DataLen;
114 rs->rs_tstamp = ads->AR_RcvTimestamp;
118 rs->rs_rssi = MS(ads->ds_rxstatus4, AR_RxRSSICombined);
119 rs->rs_rssi_ctl[0] = MS(ads->ds_rxstatus0, AR_RxRSSIAnt00);
120 rs->rs_rssi_ctl[1] = MS(ads->ds_rxstatus0, AR_RxRSSIAnt01);
121 rs->rs_rssi_ctl[2] = MS(ads->ds_rxstatus0, AR_RxRSSIAnt02);
122 rs
92 ar5416ProcRxDesc(struct ath_hal * ah,struct ath_desc * ds,uint32_t pa,struct ath_desc * nds,uint64_t tsf,struct ath_rx_status * rs) argument
[all...]
/src/sys/netbt/
H A Drfcomm_session.c172 struct rfcomm_session *rs; local in function:rfcomm_session_alloc
176 rs = malloc(sizeof(*rs), M_BLUETOOTH, M_NOWAIT | M_ZERO);
177 if (rs == NULL)
180 rs->rs_state = RFCOMM_SESSION_CLOSED;
182 callout_init(&rs->rs_timeout, 0);
183 callout_setfunc(&rs->rs_timeout, rfcomm_session_timeout, rs);
185 SIMPLEQ_INIT(&rs->rs_credits);
186 LIST_INIT(&rs
215 rfcomm_session_free(struct rfcomm_session * rs) argument
267 struct rfcomm_session *rs; local in function:rfcomm_session_lookup
305 struct rfcomm_session *rs = arg; local in function:rfcomm_session_timeout
348 struct rfcomm_session *rs = arg; local in function:rfcomm_session_connected
387 struct rfcomm_session *rs = arg; local in function:rfcomm_session_disconnected
414 struct rfcomm_session *new, *rs = arg; local in function:rfcomm_session_newconn
447 struct rfcomm_session *rs = arg; local in function:rfcomm_session_complete
515 struct rfcomm_session *rs = arg; local in function:rfcomm_session_linkmode
611 struct rfcomm_session *rs = arg; local in function:rfcomm_session_input
721 rfcomm_session_recv_sabm(struct rfcomm_session * rs,int dlci) argument
797 rfcomm_session_recv_disc(struct rfcomm_session * rs,int dlci) argument
836 rfcomm_session_recv_ua(struct rfcomm_session * rs,int dlci) argument
904 rfcomm_session_recv_dm(struct rfcomm_session * rs,int dlci) argument
924 rfcomm_session_recv_uih(struct rfcomm_session * rs,int dlci,int pf,struct mbuf * m,int len) argument
1002 rfcomm_session_recv_mcc(struct rfcomm_session * rs,struct mbuf * m) argument
1104 rfcomm_session_recv_mcc_test(struct rfcomm_session * rs,int cr,struct mbuf * m) argument
1133 rfcomm_session_recv_mcc_fcon(struct rfcomm_session * rs,int cr) argument
1147 rfcomm_session_recv_mcc_fcoff(struct rfcomm_session * rs,int cr) argument
1161 rfcomm_session_recv_mcc_msc(struct rfcomm_session * rs,int cr,struct mbuf * m) argument
1219 rfcomm_session_recv_mcc_rpn(struct rfcomm_session * rs,int cr,struct mbuf * m) argument
1285 rfcomm_session_recv_mcc_rls(struct rfcomm_session * rs,int cr,struct mbuf * m) argument
1314 rfcomm_session_recv_mcc_pn(struct rfcomm_session * rs,int cr,struct mbuf * m) argument
1436 rfcomm_session_recv_mcc_nsc(struct rfcomm_session * rs,int cr,struct mbuf * m) argument
1464 rfcomm_session_send_frame(struct rfcomm_session * rs,int type,int dlci) argument
1526 rfcomm_session_send_uih(struct rfcomm_session * rs,struct rfcomm_dlc * dlc,int credits,struct mbuf * m) argument
1640 rfcomm_session_send_mcc(struct rfcomm_session * rs,int cr,uint8_t type,void * data,int len) argument
[all...]
H A Drfcomm_upper.c137 struct rfcomm_session *rs; local in function:rfcomm_connect_pcb
162 rs = rfcomm_session_lookup(&dlc->rd_laddr, &dlc->rd_raddr);
163 if (rs == NULL) {
164 rs = rfcomm_session_alloc(&rfcomm_session_active,
166 if (rs == NULL)
169 rs->rs_flags |= RFCOMM_SESSION_INITIATOR;
170 rs->rs_state = RFCOMM_SESSION_WAIT_CONNECT;
172 err = l2cap_connect_pcb(rs->rs_l2cap, &dlc->rd_raddr);
174 rfcomm_session_free(rs);
185 dlc->rd_dlci = RFCOMM_MKDLCI(IS_INITIATOR(rs)
225 struct rfcomm_session *rs = dlc->rd_session; local in function:rfcomm_disconnect_pcb
314 struct rfcomm_session *rs; local in function:rfcomm_listen_pcb
[all...]
H A Drfcomm_dlc.c55 rfcomm_dlc_lookup(struct rfcomm_session *rs, int dlci) argument
59 LIST_FOREACH(dlc, &rs->rs_dlcs, rd_next) {
73 rfcomm_dlc_newconn(struct rfcomm_session *rs, int dlci) argument
87 l2cap_sockaddr_pcb(rs->rs_l2cap, &laddr);
88 l2cap_peeraddr_pcb(rs->rs_l2cap, &raddr);
125 rfcomm_session_send_frame(rs, RFCOMM_FRAME_DM, dlci);
139 new->rd_session = rs;
141 LIST_INSERT_HEAD(&rs->rs_dlcs, new, rd_next);
154 struct rfcomm_session *rs; local in function:rfcomm_dlc_close
160 rs
338 struct rfcomm_session *rs = dlc->rd_session; local in function:rfcomm_dlc_start
[all...]
H A Dhci_ioctl.c60 struct rfcomm_session *rs; local in function:hci_dump
100 LIST_FOREACH(rs, &rfcomm_session_active, rs_next) {
101 chan = rs->rs_l2cap;
105 rs->rs_state, rs->rs_flags, chan->lc_raddr.bt_psm,
108 LIST_FOREACH(dlc, &rs->rs_dlcs, rd_next) {
120 LIST_FOREACH(rs, &rfcomm_session_listen, rs_next) {
121 chan = rs->rs_l2cap;
126 LIST_FOREACH(dlc, &rs->rs_dlcs, rd_next)
/src/sbin/rndctl/
H A Drndctl.c141 rndsave_t rs; local in function:update_seed
147 memset(&rs, 0, sizeof rs);
182 SHAKE128_Final(rs.data, sizeof(rs.data), &shake128);
195 rs.entropy = MIN(MAX(systementropy, extraentropy),
196 MIN(sizeof(rs.data), UINT32_MAX/NBBY)*NBBY);
203 SHA1Update(&s, (const uint8_t *)&rs.entropy, sizeof(rs.entropy));
204 SHA1Update(&s, rs
280 rndsave_t rs; local in function:do_load
551 rndpoolstat_t rs; local in function:do_stats
[all...]
/src/sys/arch/vax/vax/
H A Dcrx.c143 struct rx50state *rs; local in function:crxrw
158 rs = &rx50state;
162 while (rs->rs_flags & RS_BUSY) {
163 rs->rs_flags |= RS_WANT;
166 rs->rs_flags |= RS_BUSY;
167 rs->rs_drive = rx50unit(dev);
174 rs->rs_blkno = uio->uio_offset >> 9;
175 if (rs->rs_blkno >= RX50MAXSEC) {
176 if (rs->rs_blkno > RX50MAXSEC)
183 rs
247 struct rx50state *rs = &rx50state; local in function:crxintr
[all...]
/src/sys/arch/hp300/stand/common/
H A Drd.c123 struct rd_softc *rs = &rd_softc[ctlr][unit]; local in function:rdinit
125 rs->sc_type = rdident(ctlr, unit);
126 if (rs->sc_type < 0)
128 rs->sc_alive = 1;
216 rdgetinfo(struct rd_softc *rs) argument
218 struct rdminilabel *pi = &rs->sc_pinfo;
228 savepart = rs->sc_part;
229 rs->sc_part = RAW_PART;
230 err = rdstrategy(rs, F_READ, LABELSECTOR,
232 rs
260 struct rd_softc *rs; local in function:rdopen
292 struct rd_softc *rs = f->f_devdata; local in function:rdclose
309 struct rd_softc *rs = devdata; local in function:rdstrategy
[all...]
H A Dct.c85 struct ct_softc *rs = &ct_softc[ctlr][unit]; local in function:ctinit
93 ct_ssmc.unit = C_SUNIT(rs->sc_punit);
102 rs->sc_alive = 1;
158 struct ct_softc *rs; local in function:ctpunit
164 rs = &ct_softc[ctlr][slave];
166 if (rs->sc_alive == 0)
169 *punit = rs->sc_punit;
178 struct ct_softc *rs; local in function:ctopen
192 rs = &ct_softc[ctlr][unit];
193 rs
220 struct ct_softc *rs = devdata; local in function:ctstrategy
292 struct ct_softc *rs = &ct_softc[ctlr][unit]; local in function:cterror
[all...]
/src/distrib/utils/embedded/files/
H A Dresize_disklabel45 local disk rawpart ts rs oldsize newsize
57 rs=${PART1SIZE}
59 if [ "$ts" = "$rs" ]; then
63 oldsize=$(($rs / 2048))
71 local disk part rawpart ts rs oldsize newsize
78 rs=$(get_rawpart_sectors $disk $rawpart)
80 if [ "$ts" = "$rs" ]; then
84 oldsize=$(($rs / 2048))
/src/sys/external/isc/atheros_hal/dist/ar5211/
H A Dar5211_recv.c205 struct ath_rx_status *rs)
220 rs->rs_datalen = ads->ds_status0 & AR_DataLen;
221 rs->rs_tstamp = MS(ads->ds_status1, AR_RcvTimestamp);
222 rs->rs_status = 0;
225 rs->rs_status |= HAL_RXERR_CRC;
227 rs->rs_status |= HAL_RXERR_DECRYPT;
229 rs->rs_status |= HAL_RXERR_PHY;
230 rs->rs_phyerr = MS(ads->ds_status1, AR_PHYErr);
234 rs->rs_rssi = MS(ads->ds_status0, AR_RcvSigStrength);
236 rs
203 ar5211ProcRxDesc(struct ath_hal * ah,struct ath_desc * ds,uint32_t pa,struct ath_desc * nds,uint64_t tsf,struct ath_rx_status * rs) argument
[all...]
/src/sys/external/isc/libsodium/dist/test/default/
H A Dstream3.c16 static unsigned char rs[32]; variable in typeref:typename:unsigned char[32]
23 crypto_stream(rs, 32, nonce, firstkey);
26 printf(",0x%02x", (unsigned int) rs[i]);
/src/sys/external/isc/atheros_hal/dist/ar5212/
H A Dar5212_recv.c239 struct ath_rx_status *rs)
254 rs->rs_datalen = ads->ds_rxstatus0 & AR_DataLen;
255 rs->rs_tstamp = MS(ads->ds_rxstatus1, AR_RcvTimestamp);
256 rs->rs_status = 0;
258 rs->rs_rssi = MS(ads->ds_rxstatus0, AR_RcvSigStrength);
260 if (rs->rs_rssi == -128)
261 rs->rs_rssi = 0;
263 rs->rs_keyix = MS(ads->ds_rxstatus1, AR_KeyIdx);
265 rs->rs_keyix = HAL_RXKEYIX_INVALID;
267 rs
237 ar5212ProcRxDesc(struct ath_hal * ah,struct ath_desc * ds,uint32_t pa,struct ath_desc * nds,uint64_t tsf,struct ath_rx_status * rs) argument
[all...]
/src/sys/kern/
H A Dkern_entropy.c344 struct krndsource *rs; local in function:entropy_init
421 LIST_FOREACH(rs, &E->sources, list)
422 rs->state = percpu_alloc(sizeof(struct rndsource_cpu));
1770 * rndsource_setcb(rs, get, getarg)
1772 * Set the request callback for the entropy source rs, if it can
1776 rndsource_setcb(struct krndsource *rs, void (*get)(size_t, void *), argument
1780 rs->get = get;
1781 rs->getarg = getarg;
1785 * rnd_attach_source(rs, name, type, flags)
1787 * Attach the entropy source rs
1791 rnd_attach_source(struct krndsource * rs,const char * name,uint32_t type,uint32_t flags) argument
1856 rnd_detach_source(struct krndsource * rs) argument
1972 struct krndsource *rs; local in function:entropy_request
2050 rnd_dt_estimate(struct krndsource * rs,uint32_t t) argument
2090 rnd_add_uint32(struct krndsource * rs,uint32_t value) argument
2098 _rnd_add_uint32(struct krndsource * rs,uint32_t value) argument
2106 _rnd_add_uint64(struct krndsource * rs,uint64_t value) argument
2135 rnd_add_data(struct krndsource * rs,const void * buf,uint32_t len,uint32_t entropybits) argument
2173 rnd_add_data_intr(struct krndsource * rs,const void * buf,uint32_t len,uint32_t entropybits) argument
2192 rnd_add_data_internal(struct krndsource * rs,const void * buf,uint32_t len,uint32_t entropybits,bool intr_p) argument
2273 rnd_add_data_1(struct krndsource * rs,const void * buf,uint32_t len,uint32_t entropybits,bool count,uint32_t flag,bool intr_p) argument
2336 rnd_add_data_sync(struct krndsource * rs,const void * buf,uint32_t len,uint32_t entropybits) argument
2351 rndsource_entropybits(struct krndsource * rs) argument
2378 rndsource_to_user(struct krndsource * rs,rndsource_t * urs) argument
2401 rndsource_to_user_est(struct krndsource * rs,rndsource_est_t * urse) argument
2485 struct krndsource *rs; local in function:entropy_ioctl
[all...]
/src/sys/external/isc/atheros_hal/dist/ar5210/
H A Dar5210_recv.c211 struct ath_rx_status *rs)
227 rs->rs_datalen = ads->ds_status0 & AR_DataLen;
239 rs->rs_tstamp = rstamp & 0x7fff;
240 rs->rs_status = 0;
243 rs->rs_status |= HAL_RXERR_CRC;
245 rs->rs_status |= HAL_RXERR_DECRYPT;
247 rs->rs_status |= HAL_RXERR_FIFO;
249 rs->rs_status |= HAL_RXERR_PHY;
250 rs->rs_phyerr =
255 rs
209 ar5210ProcRxDesc(struct ath_hal * ah,struct ath_desc * ds,uint32_t pa,struct ath_desc * nds,uint64_t tsf,struct ath_rx_status * rs) argument
[all...]
/src/sys/arch/atari/dev/
H A Dmd_root.c153 struct read_info rs; local in function:loaddisk
171 rs.bp = buf;
172 rs.nbytes = md->md_size;
173 rs.offset = 0;
174 rs.bufp = md->md_addr;
175 rs.ebufp = (char *)md->md_addr + md->md_size;
176 rs.chunk = RAMD_CHUNK;
177 rs.media_sz = md->md_size;
178 rs.strat = bdp->d_strategy;
189 rs
[all...]
/src/sys/arch/powerpc/powerpc/
H A Dfixup.c126 const u_int rs = i.i_x.i_rs; local in function:powerpc_fixup_stubs
134 r_lr = rs;
136 valid_mask |= (1 << rs);
142 KASSERT(valid_mask & (1 << rs));
145 ctr = fixreg[rs];
150 KASSERT(valid_mask & (1 << rs));
153 fixreg[ra] = fixreg[rs] | fixreg[rb];
165 const u_int rs = i.i_d.i_rs; local in function:powerpc_fixup_stubs
172 fixreg[rs] = d;
173 valid_mask |= (1 << rs);
177 const u_int rs = i.i_d.i_rs; local in function:powerpc_fixup_stubs
[all...]
/src/sys/external/bsd/ipf/netinet/
H A Dip_rpcb_pxy.c153 rpcb_session_t *rs; local in function:ipf_p_rpcb_new
160 KMALLOC(rs, rpcb_session_t *);
161 if (rs == NULL)
164 bzero((char *)rs, sizeof(*rs));
165 MUTEX_INIT(&rs->rs_rxlock, "ipf Sun RPCB proxy session lock");
167 aps->aps_data = rs;
182 rpcb_session_t *rs; local in function:ipf_p_rpcb_del
183 rs = (rpcb_session_t *)aps->aps_data;
185 MUTEX_ENTER(&rs
208 rpcb_session_t *rs; local in function:ipf_p_rpcb_in
276 rpcb_session_t *rs; local in function:ipf_p_rpcb_out
374 ipf_p_rpcb_flush(rpcb_session_t * rs) argument
407 ipf_p_rpcb_decodereq(fr_info_t * fin,nat_t * nat,rpcb_session_t * rs,rpc_msg_t * rm) argument
559 ipf_p_rpcb_insert(rpcb_session_t * rs,rpcb_xact_t * rx) argument
826 ipf_p_rpcb_decoderep(fr_info_t * fin,nat_t * nat,rpcb_session_t * rs,rpc_msg_t * rm,rpcb_xact_t ** rxp) argument
1005 ipf_p_rpcb_lookup(rpcb_session_t * rs,u_32_t xid) argument
1031 ipf_p_rpcb_deref(rpcb_session_t * rs,rpcb_xact_t * rx) argument
[all...]
/src/sys/net80211/
H A Dieee80211_rssadapt.c193 struct ieee80211_rateset *rs, struct ieee80211_frame *wh, u_int len,
213 if ((rs->rs_rates[fixed_rate] & flags) == flags) {
220 i = rs->rs_nrates;
224 if ((rs->rs_rates[i] & flags) != flags)
237 (rs->rs_rates[rateidx] & IEEE80211_RATE_VAL) / 2,
238 (rs->rs_rates[rateidx] & IEEE80211_RATE_VAL) * 5 % 10,
289 struct ieee80211_rateset *rs = &ni->ni_rates; local in function:ieee80211_rssadapt_lower_rate
295 if (id->id_rateidx >= rs->rs_nrates) {
299 rs->rs_nrates - 1));
319 (rs
192 ieee80211_rssadapt_choose(struct ieee80211_rssadapt * ra,struct ieee80211_rateset * rs,struct ieee80211_frame * wh,u_int len,int fixed_rate,const char * dvname,int do_not_adapt) argument
330 struct ieee80211_rateset *rs = &ni->ni_rates; local in function:ieee80211_rssadapt_raise_rate
[all...]
/src/usr.sbin/mlxctl/
H A Dcmds.c86 static struct mlx_rebuild_status rs; variable in typeref:struct:mlx_rebuild_status
141 if (rs.rs_drive == md->hwunit &&
142 rs.rs_code != MLX_REBUILDSTAT_IDLE) {
143 switch(rs.rs_code) {
161 printf(": %d/%d, %d%% complete]\n", rs.rs_remaining, rs.rs_size,
162 ((rs.rs_size - rs.rs_remaining) / (rs.rs_size / 100)));
170 if (ioctl(mlxfd, MLX_REBUILDSTAT, &rs) <
[all...]
/src/sys/dev/raidframe/
H A Drf_compat32.c82 rf_config_netbsd32(struct raid_softc *rs, void *data) argument
124 return rf_construct(rs, k_cfg);
146 raidframe_netbsd32_ioctl(struct raid_softc *rs, u_long cmd, void *data) argument
148 RF_Raid_t *raidPtr = rf_get_raid(rs);
152 if (!rf_inited(rs))
156 return rf_config_netbsd32(rs, data);
H A Drf_netbsdkintf.c433 rf_inited(const struct raid_softc *rs) { argument
434 return (rs->sc_flags & RAIDF_INITED) != 0;
438 rf_get_raid(struct raid_softc *rs) { argument
439 return &rs->sc_r;
443 rf_get_unit(const struct raid_softc *rs) { argument
444 return rs->sc_unit;
802 struct raid_softc *rs; local in function:raidsize
807 if ((rs = raidget(unit, false)) == NULL)
809 dksc = &rs->sc_dksc;
811 if ((rs
821 struct raid_softc *rs; local in function:raiddump
845 struct raid_softc *rs = raidsoftc(dev); local in function:raid_dumpblocks
955 struct raid_softc *rs; local in function:raidopen
1002 struct raid_softc *rs = raidsoftc(self); local in function:raid_lastclose
1024 struct raid_softc *rs; local in function:raidclose
1071 struct raid_softc *rs; local in function:raidstrategy
1105 struct raid_softc *rs = raidsoftc(dev); local in function:raid_diskstart
1123 struct raid_softc *rs; local in function:raiddone
1144 struct raid_softc *rs; local in function:raidread
1161 struct raid_softc *rs; local in function:raidwrite
1174 raid_detach_unlocked(struct raid_softc * rs) argument
1297 rf_getConfiguration(struct raid_softc * rs,void * data,RF_Config_t ** k_cfg) argument
1323 rf_construct(struct raid_softc * rs,RF_Config_t * k_cfg) argument
1576 struct raid_softc *rs; local in function:raidioctl
1935 raidinit(struct raid_softc * rs) argument
2036 struct raid_softc *rs; local in function:raidstart
2306 raidlock(struct raid_softc * rs) argument
2327 raidunlock(struct raid_softc * rs) argument
2702 struct raid_softc *rs = raidPtr->softc; local in function:rf_update_component_labels
3752 struct raid_softc *rs; local in function:rf_buf_queue_check
3802 struct raid_softc *rs = raidsoftc(self); local in function:raid_detach
3826 rf_set_geometry(struct raid_softc * rs,RF_Raid_t * raidPtr) argument
[all...]
/src/usr.sbin/gspa/gspa/
H A Dgsp_inst.c441 int rs, rd; local in function:encode_instr
448 rs = rd = 0;
503 rs = op0->reg_no;
507 if ((rs & rd & GSPA_REGFILE) == 0)
510 if (rs == GSPA_SP)
511 rs |= rd;
513 rd |= rs;
521 opc |= rs & 0x1F;
524 opc |= ((rs & 0x0F) << 5) | (rd & 0x1F);
551 rs
[all...]
/src/sys/arch/mips/mips/
H A Ddb_disasm.c262 (i.RType.rs == 0) &&
301 reg_name[i.RType.rs]);
306 && i.RType.rs == 1) {
339 reg_name[i.RType.rs]);
349 db_printf("\t%s%s", reg_name[i.RType.rs],
355 db_printf("\t%s", reg_name[i.RType.rs]);
367 reg_name[i.RType.rs],
380 db_printf("\t%d", (i.RType.rs << 5) | i.RType.rt);
385 reg_name[i.RType.rs],
393 reg_name[i.RType.rs],
[all...]

Completed in 30 milliseconds

123456