Home
last modified time | relevance | path

Searched refs:ridx (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/libcustr/common/
H A Dcustr.c121 custr_rremove(custr_t *cus, size_t ridx, size_t len) in custr_rremove() argument
125 if (ridx >= cus->cus_strlen) { in custr_rremove()
130 idx = cus->cus_strlen - ridx - 1; in custr_rremove()
148 custr_rtrunc(custr_t *cus, size_t ridx) in custr_rtrunc() argument
152 if (ridx >= cus->cus_strlen) { in custr_rtrunc()
157 idx = cus->cus_strlen - ridx - 1; in custr_rtrunc()
/illumos-gate/usr/src/cmd/drd/
H A Ddrd_rcm.c580 int ridx; in drd_rcm_restore_cpu_notify() local
608 for (idx = 0, ridx = 0; full_rlist[idx] != NULL; idx++) { in drd_rcm_restore_cpu_notify()
612 rlist[ridx] = full_rlist[idx]; in drd_rcm_restore_cpu_notify()
613 ridx++; in drd_rcm_restore_cpu_notify()
618 if (ridx == 0) { in drd_rcm_restore_cpu_notify()
749 int ridx; in drd_rcm_cpu_rlist_init() local
765 for (idx = 0, ridx = 0; idx < nrsrc; idx++) { in drd_rcm_cpu_rlist_init()
780 rlist[ridx] = strdup(rbuf); in drd_rcm_cpu_rlist_init()
781 if (rlist[ridx] == NULL) { in drd_rcm_cpu_rlist_init()
787 ridx++; in drd_rcm_cpu_rlist_init()
[all …]
/illumos-gate/usr/src/uts/common/io/rwn/
H A Drt2860.c384 int ridx, ant, i; in rt2860_read_eeprom() local
550 for (ridx = 0; ridx < 5; ridx++) { in rt2860_read_eeprom()
558 sc->txpow20mhz[ridx] = reg; in rt2860_read_eeprom()
559 sc->txpow40mhz_2ghz[ridx] = b4inc(reg, delta_2ghz); in rt2860_read_eeprom()
560 sc->txpow40mhz_5ghz[ridx] = b4inc(reg, delta_5ghz); in rt2860_read_eeprom()
564 "40MHz/5GHz=0x%08x\n", ridx, sc->txpow20mhz[ridx], in rt2860_read_eeprom()
565 sc->txpow40mhz_2ghz[ridx], sc->txpow40mhz_5ghz[ridx]); in rt2860_read_eeprom()
2278 int i, err, qid, ridx, ntries; in rt2860_init() local
2310 for (ridx = 0; ridx < 5; ridx++) { in rt2860_init()
2311 if (sc->txpow20mhz[ridx] == 0xffffffff) in rt2860_init()
[all …]
H A Drt2860_reg.h124 #define RT2860_TX_PWR_CFG(ridx) (0x1314 + (ridx) * 4) argument
/illumos-gate/usr/src/lib/libdisasm/common/
H A Ddis_sparc_fmt.c1288 int ridx = f->f3.rs1; in dis_fmt_rdwr() local
1297 ridx = f->f3.rd; in dis_fmt_rdwr()
1340 regstr = v9_asr_names[ridx]; in dis_fmt_rdwr()
1343 regstr = asr_names[ridx]; in dis_fmt_rdwr()
1350 regstr = v9_hprivreg_names[ridx]; in dis_fmt_rdwr()
1360 regstr = v9_privreg_names[ridx]; in dis_fmt_rdwr()
1381 regstr = v9_asr_names[ridx]; in dis_fmt_rdwr()
1384 regstr = asr_names[ridx]; in dis_fmt_rdwr()
1436 regstr = v9_privreg_names[ridx]; in dis_fmt_rdwr()
1446 regstr = v9_hprivreg_names[ridx]; in dis_fmt_rdwr()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dlocaltime.c1259 int year, i, idx, ridx; in posix_check_dst() local
1291 ridx = !idx; in posix_check_dst()
1297 if (t >= pdaylight.rtime[idx] && t < pdaylight.rtime[ridx]) { in posix_check_dst()
1298 return (ridx); in posix_check_dst()
2099 int idx, ridx; in load_posix_transitions() local
2101 ridx = !idx; in load_posix_transitions()
2115 *tranp++ = (time_t)pdaylight.rtime[ridx]; in load_posix_transitions()
2116 *typep++ = ridx; in load_posix_transitions()
/illumos-gate/usr/src/uts/common/io/iwi/
H A Dipw2200.c2857 uint32_t ireg, ridx, len, i; in ipw2200_intr() local
2931 ridx = ipw2200_csr_get32(sc, in ipw2200_intr()
2935 len = RING_FLEN(i, ridx, IPW2200_CMD_RING_SIZE); in ipw2200_intr()
2939 i, ridx, len)); in ipw2200_intr()
2945 for (; i != ridx; in ipw2200_intr()
2959 ridx = ipw2200_csr_get32(sc, in ipw2200_intr()
2966 ridx, widx)); in ipw2200_intr()
2968 for (; sc->sc_rx_cur != ridx; in ipw2200_intr()
3023 ridx = ipw2200_csr_get32(sc, in ipw2200_intr()
3027 ridx, IPW2200_TX_RING_SIZE); in ipw2200_intr()
[all …]
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwn.c2433 uint8_t rate, ridx; in iwn_newassoc() local
2445 for (ridx = 0; ridx <= IWN_RIDX_MAX; ridx++) in iwn_newassoc()
2448 wn->ridx[i] = ridx; in iwn_newassoc()
3677 uint8_t ridx, txant; in iwn_send() local
3765 ridx = sc->fixed_ridx; in iwn_send()
3767 ridx = wn->ridx[in->in_txrate]; in iwn_send()
3768 rinfo = &iwn_rates[ridx]; in iwn_send()
4758 for (ridx = 0; ridx <= IWN_RIDX_MAX; ridx++) { in iwn4965_set_txpower()
4761 if ((ridx / 8) & 1) in iwn4965_set_txpower()
4767 if ((ridx % 8) == 5) in iwn4965_set_txpower()
[all …]
H A Dif_iwnvar.h83 uint8_t ridx[IEEE80211_RATE_MAXSIZE]; member
H A Dif_iwnreg.h712 uint8_t ridx[WME_NUM_AC]; member
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_e82545.c1658 int ridx; in e82545_write_register() local
1802 ridx = (offset - E1000_RAL(0)) >> 2; in e82545_write_register()
1803 e82545_write_ra(sc, ridx, value); in e82545_write_register()
1877 int ridx; in e82545_read_register() local
1999 ridx = (offset - E1000_RAL(0)) >> 2; in e82545_read_register()
2000 retval = e82545_read_ra(sc, ridx); in e82545_read_register()
/illumos-gate/usr/src/uts/common/os/
H A Ddamap.c623 damap_addrset_add(damap_t *damapp, char *address, damap_id_t *ridx, in damap_addrset_add() argument
660 if (ridx) in damap_addrset_add()
661 *ridx = (damap_id_t)addrid; in damap_addrset_add()
/illumos-gate/usr/src/uts/common/io/ipw/
H A Dipw2100.c2669 uint32_t ireg, ridx, len, i; in ipw2100_intr() local
2730 ridx = ipw2100_csr_get32(sc, in ipw2100_intr()
2733 for (; sc->sc_rx_cur != ridx; in ipw2100_intr()
2849 ridx = ipw2100_csr_get32(sc, IPW2100_CSR_TX_READ_INDEX); in ipw2100_intr()
2852 ridx, IPW2100_NUM_TXBD); in ipw2100_intr()
/illumos-gate/usr/src/uts/common/io/yge/
H A Dyge.c1978 uint32_t ridx; in yge_tick() local
1984 ridx = port->p_port == YGE_PORT_A ? in yge_tick()
1986 idx = CSR_READ_2(dev, ridx); in yge_tick()
3172 uint32_t ridx; in yge_m_tx() local
3191 ridx = port->p_port == YGE_PORT_A ? in yge_m_tx()
3193 idx = CSR_READ_2(port->p_dev, ridx); in yge_m_tx()