/illumos-gate/usr/src/lib/libcustr/common/ |
H A D | custr.c | 121 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 D | drd_rcm.c | 580 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 D | rt2860.c | 384 int ridx, ant, i; in rt2860_read_eeprom() local 550 for (ridx = 0; ridx < 5; ridx++) { in rt2860_read_eeprom() 553 val = rt2860_eeprom_read(sc, RT2860_EEPROM_RPWR + ridx); in rt2860_read_eeprom() 555 val = rt2860_eeprom_read(sc, RT2860_EEPROM_RPWR + ridx + 1); 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 [all …]
|
H A D | rt2860_reg.h | 124 #define RT2860_TX_PWR_CFG(ridx) (0x1314 + (ridx) * 4) argument
|
/illumos-gate/usr/src/lib/libdisasm/common/ |
H A D | dis_sparc_fmt.c | 1288 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 D | localtime.c | 1259 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 D | ipw2200.c | 2857 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 D | if_iwn.c | 2433 uint8_t rate, ridx; in iwn_newassoc() local 2445 for (ridx = 0; ridx <= IWN_RIDX_MAX; ridx++) in iwn_newassoc() 2446 if (iwn_rates[ridx].rate == rate) in iwn_newassoc() 2448 wn->ridx[i] = ridx; in iwn_newassoc() 3677 uint8_t ridx, txant; in iwn_send() local 3762 ridx = (ic->ic_curmode == IEEE80211_MODE_11A) ? in iwn_send() 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() 3855 ridx >= IWN_RIDX_OFDM6) { in iwn_send() [all …]
|
H A D | if_iwnvar.h | 83 uint8_t ridx[IEEE80211_RATE_MAXSIZE]; member
|
H A D | if_iwnreg.h | 712 uint8_t ridx[WME_NUM_AC]; member
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_e82545.c | 1657 int ridx; in e82545_write_register() local 1801 ridx = (offset - E1000_RAL(0)) >> 2; in e82545_write_register() 1802 e82545_write_ra(sc, ridx, value); in e82545_write_register() 1876 int ridx; in e82545_read_register() local 1998 ridx = (offset - E1000_RAL(0)) >> 2; in e82545_read_register() 1999 retval = e82545_read_ra(sc, ridx); in e82545_read_register()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | damap.c | 623 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 D | ipw2100.c | 2669 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 D | yge.c | 1978 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()
|