/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/contrib/ath_hal/ar9300/ |
H A D | ar9300_gpio.c | 429 u_int32_t reg_val; in ar9300_gpio_set_intr() local 463 reg_val = OS_REG_READ(ah, regs[i]); in ar9300_gpio_set_intr() 465 reg_val &= ~(1 << reg_bit); in ar9300_gpio_set_intr() 466 OS_REG_WRITE(ah, regs[i], reg_val); in ar9300_gpio_set_intr() 470 field_val = (reg_val >> shifts[i]) & gpio_mask; in ar9300_gpio_set_intr() 477 reg_val = OS_REG_READ(ah, AR_HOSTIF_REG(ah, AR_GPIO_INTR_POL)); in ar9300_gpio_set_intr() 481 reg_val &= ~(1 << reg_bit); in ar9300_gpio_set_intr() 484 reg_val |= (1 << reg_bit); in ar9300_gpio_set_intr() 486 OS_REG_WRITE(ah, AR_HOSTIF_REG(ah, AR_GPIO_INTR_POL), reg_val); in ar9300_gpio_set_intr() 490 reg_val = OS_REG_READ(ah, regs[i]); in ar9300_gpio_set_intr() [all …]
|
H A D | ar9300_recv.c | 283 u_int32_t reg_val = 0; in ar9300_promisc_mode() local 284 reg_val = OS_REG_READ(ah, AR_RX_FILTER); in ar9300_promisc_mode() 286 reg_val |= AR_RX_PROM; in ar9300_promisc_mode() 288 reg_val &= ~AR_RX_PROM; in ar9300_promisc_mode() 290 OS_REG_WRITE(ah, AR_RX_FILTER, reg_val); in ar9300_promisc_mode()
|
H A D | ar9300_reset.c | 3255 u_int32_t reg_val; 3270 reg_val = OS_REG_READ(ah, AR9285_AN_RXTXBB1); 3271 reg_val |= ((0x1 << 5) | (0x1 << 7)); 3272 OS_REG_WRITE(ah, AR9285_AN_RXTXBB1, reg_val); 3275 reg_val = OS_REG_READ(ah, AR9285_AN_RF2G7); 3276 reg_val &= 0xfffffffd; 3277 OS_REG_WRITE(ah, AR9285_AN_RF2G7, reg_val); 3280 reg_val = OS_REG_READ(ah, AR9285_AN_RF2G1); 3281 reg_val &= 0xfffff7ff; 3282 OS_REG_WRITE(ah, AR9285_AN_RF2G1, reg_val); [all …]
|
H A D | ar9300_xmit_ds.c | 656 u_int32_t reg_val; in ar9300_update_loc_ctl_reg() local 657 reg_val = OS_REG_READ(ah, AR_LOC_CTL_REG); in ar9300_update_loc_ctl_reg() 659 if (!(reg_val & AR_LOC_CTL_REG_FS)) { in ar9300_update_loc_ctl_reg() 661 OS_REG_WRITE(ah, AR_LOC_CTL_REG, (reg_val | AR_LOC_CTL_REG_FS)); in ar9300_update_loc_ctl_reg() 666 OS_REG_WRITE(ah, AR_LOC_CTL_REG, (reg_val & ~AR_LOC_CTL_REG_FS)); in ar9300_update_loc_ctl_reg()
|
H A D | ar9300_attach.c | 4042 u_int32_t reg_val = OS_REG_READ(ah, AR_PHY_MC_GAIN_CTRL); in ar9300_ant_div_comb_get_config() local 4044 MULTICHAIN_GAIN_CTRL__ANT_DIV_MAIN_LNACONF__READ(reg_val); in ar9300_ant_div_comb_get_config() 4046 MULTICHAIN_GAIN_CTRL__ANT_DIV_ALT_LNACONF__READ(reg_val); in ar9300_ant_div_comb_get_config() 4048 MULTICHAIN_GAIN_CTRL__ANT_FAST_DIV_BIAS__READ(reg_val); in ar9300_ant_div_comb_get_config() 4067 u_int32_t reg_val; in ar9300_ant_div_comb_set_config() local 4075 reg_val = OS_REG_READ(ah, AR_PHY_MC_GAIN_CTRL); in ar9300_ant_div_comb_set_config() 4076 reg_val &= ~(MULTICHAIN_GAIN_CTRL__ANT_DIV_MAIN_LNACONF__MASK | in ar9300_ant_div_comb_set_config() 4081 reg_val |= in ar9300_ant_div_comb_set_config() 4084 reg_val |= in ar9300_ant_div_comb_set_config() 4087 reg_val |= in ar9300_ant_div_comb_set_config() [all …]
|
H A D | ar9300_eeprom.c | 1271 u_int32_t reg_val, reg_usb = 0, reg_pmu = 0; in ar9300_internal_regulator_apply() local 1290 ar9300_otp_read(ah, eep_addr / 4, ®_val, 1); in ar9300_internal_regulator_apply() 1292 if ((reg_val & 0x80) == 0x80){ in ar9300_internal_regulator_apply() 1294 reg_usb = reg_val & 0x000000ff; in ar9300_internal_regulator_apply() 1297 if ((reg_val & 0x80000000) == 0x80000000){ in ar9300_internal_regulator_apply() 1299 reg_pmu = (reg_val & 0xff000000) >> 24; in ar9300_internal_regulator_apply() 1816 u_int32_t reg_val = OS_REG_READ(ah, AR_PHY_MC_GAIN_CTRL); in ar9300_ant_ctrl_apply() local 1817 reg_val &= ~(MULTICHAIN_GAIN_CTRL__ANT_DIV_MAIN_LNACONF__MASK | in ar9300_ant_ctrl_apply() 1826 reg_val |= (HAL_ANT_DIV_COMB_LNA1 << in ar9300_ant_ctrl_apply() 1828 reg_val |= (HAL_ANT_DIV_COMB_LNA2 << in ar9300_ant_ctrl_apply() [all …]
|
H A D | ar9300_misc.c | 2106 u_int32_t reg_val; in ar9300_clear_mib_counters() local 2108 reg_val = OS_REG_READ(ah, AR_MIBC); in ar9300_clear_mib_counters() 2109 OS_REG_WRITE(ah, AR_MIBC, reg_val | AR_MIBC_CMC); in ar9300_clear_mib_counters() 2110 OS_REG_WRITE(ah, AR_MIBC, reg_val & ~AR_MIBC_CMC); in ar9300_clear_mib_counters()
|
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/ |
H A D | e1000_i210.c | 711 u32 wuc, mdicnfg, ctrl, ctrl_ext, reg_val; in e1000_pll_workaround_i210() local 720 reg_val = mdicnfg & ~E1000_MDICNFG_EXT_MDIO; in e1000_pll_workaround_i210() 721 E1000_WRITE_REG(hw, E1000_MDICNFG, reg_val); in e1000_pll_workaround_i210() 753 reg_val = (E1000_INVM_AUTOLOAD << 4) | (tmp_nvm << 16); in e1000_pll_workaround_i210() 754 E1000_WRITE_REG(hw, E1000_EEARBC_I210, reg_val); in e1000_pll_workaround_i210() 762 reg_val = (E1000_INVM_AUTOLOAD << 4) | (nvm_word << 16); in e1000_pll_workaround_i210() 763 E1000_WRITE_REG(hw, E1000_EEARBC_I210, reg_val); in e1000_pll_workaround_i210()
|
H A D | e1000_82575.c | 2038 u32 reg_val, reg_offset; in e1000_vmdq_set_anti_spoofing_pf() local 2052 reg_val = E1000_READ_REG(hw, reg_offset); in e1000_vmdq_set_anti_spoofing_pf() 2054 reg_val |= (E1000_DTXSWC_MAC_SPOOF_MASK | in e1000_vmdq_set_anti_spoofing_pf() 2059 reg_val ^= (1 << pf | 1 << (pf + MAX_NUM_VFS)); in e1000_vmdq_set_anti_spoofing_pf() 2061 reg_val &= ~(E1000_DTXSWC_MAC_SPOOF_MASK | in e1000_vmdq_set_anti_spoofing_pf() 2064 E1000_WRITE_REG(hw, reg_offset, reg_val); in e1000_vmdq_set_anti_spoofing_pf()
|
/haiku/src/add-ons/kernel/drivers/network/ether/etherpci/ |
H A D | etherpci.c | 695 uint8 reg_val; in probe() local 709 reg_val = ether_inb(data, EN0_ISR); in probe() 710 if (reg_val & ISR_RESET) break; in probe()
|
/haiku/src/add-ons/kernel/busses/scsi/usb/freecom/ |
H A D | freecom.c | 64 uint16 reg_val; /* Value to write to IDE register. */ member
|
/haiku/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/ |
H A D | if_iwx.c | 2740 uint32_t mask, val, reg_val = 0; in iwx_nic_config() local 2749 reg_val |= IWX_CSR_HW_REV_STEP(sc->sc_hw_rev) << in iwx_nic_config() 2751 reg_val |= IWX_CSR_HW_REV_DASH(sc->sc_hw_rev) << in iwx_nic_config() 2755 reg_val |= radio_cfg_type << IWX_CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE; in iwx_nic_config() 2756 reg_val |= radio_cfg_step << IWX_CSR_HW_IF_CONFIG_REG_POS_PHY_STEP; in iwx_nic_config() 2757 reg_val |= radio_cfg_dash << IWX_CSR_HW_IF_CONFIG_REG_POS_PHY_DASH; in iwx_nic_config() 2769 val |= reg_val; in iwx_nic_config()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/ |
H A D | if_iwm.c | 2165 uint32_t mask, val, reg_val = 0; in iwm_nic_config() local 2174 reg_val |= IWM_CSR_HW_REV_STEP(sc->sc_hw_rev) << in iwm_nic_config() 2176 reg_val |= IWM_CSR_HW_REV_DASH(sc->sc_hw_rev) << in iwm_nic_config() 2180 reg_val |= radio_cfg_type << IWM_CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE; in iwm_nic_config() 2181 reg_val |= radio_cfg_step << IWM_CSR_HW_IF_CONFIG_REG_POS_PHY_STEP; in iwm_nic_config() 2182 reg_val |= radio_cfg_dash << IWM_CSR_HW_IF_CONFIG_REG_POS_PHY_DASH; in iwm_nic_config() 2194 val |= reg_val; in iwm_nic_config()
|