Lines Matching refs:urtwn_write_1

240 static usb_error_t	urtwn_write_1(struct urtwn_softc *, uint16_t, uint8_t);
1473 urtwn_write_1(struct urtwn_softc *sc, uint16_t addr, uint8_t val) in urtwn_write_1() function
1843 urtwn_write_1(sc, R92C_EFUSE_ACCESS, R92C_EFUSE_ACCESS_OFF); in urtwn_efuse_read()
1860 error = urtwn_write_1(sc, R92C_EFUSE_ACCESS, R92C_EFUSE_ACCESS_ON); in urtwn_efuse_switch_power()
2087 urtwn_write_1(sc, R92C_INIDATA_RATE_SEL(URTWN_MACID_BC), in urtwn_ra_init()
2108 urtwn_write_1(sc, R92C_INIDATA_RATE_SEL(URTWN_MACID_BSS), in urtwn_ra_init()
2409 urtwn_write_1(sc, R92C_BCN_CTRL, reg); in urtwn_tsf_task_adhoc()
2416 urtwn_write_1(sc, R92C_BCN_CTRL, reg); in urtwn_tsf_task_adhoc()
2422 urtwn_write_1(sc, R92C_MBID_NUM, in urtwn_tsf_task_adhoc()
2426 urtwn_write_1(sc, R92C_BCN_CTRL, reg); in urtwn_tsf_task_adhoc()
2438 urtwn_write_1(sc, R92C_DUAL_TSF_RST, R92C_DUAL_TSF_RST0); in urtwn_tsf_sync_enable()
2443 urtwn_write_1(sc, R92C_BCN_CTRL, in urtwn_tsf_sync_enable()
2452 urtwn_write_1(sc, R92C_MBID_NUM, in urtwn_tsf_sync_enable()
2454 urtwn_write_1(sc, R92C_BCN_CTRL, in urtwn_tsf_sync_enable()
2478 urtwn_write_1(sc, R92C_LEDCFG2, reg | 0x60); in urtwn_set_led()
2481 urtwn_write_1(sc, R92C_LEDCFG2, in urtwn_set_led()
2483 urtwn_write_1(sc, R92C_MAC_PINMUX_CFG, in urtwn_set_led()
2491 urtwn_write_1(sc, R92C_LEDCFG0, reg); in urtwn_set_led()
2504 urtwn_write_1(sc, R92C_MSR, reg); in urtwn_set_mode()
2567 urtwn_write_1(sc, R92C_BCN_CTRL, in urtwn_newstate()
2572 urtwn_write_1(sc, R92C_MBID_NUM, in urtwn_newstate()
2576 urtwn_write_1(sc, R92C_DUAL_TSF_RST, R92C_DUAL_TSF_RST0); in urtwn_newstate()
2592 urtwn_write_1(sc, R92C_TXPAUSE, in urtwn_newstate()
2640 urtwn_write_1(sc, R92C_INIRTS_RATE_SEL, 0); in urtwn_newstate()
2642 urtwn_write_1(sc, R92C_INIRTS_RATE_SEL, 3); in urtwn_newstate()
2648 urtwn_write_1(sc, R92C_TXPAUSE, 0); in urtwn_newstate()
2679 urtwn_write_1(sc, R92C_SIFS_CCK + 1, 10); in urtwn_newstate()
2680 urtwn_write_1(sc, R92C_SIFS_OFDM + 1, 10); in urtwn_newstate()
2681 urtwn_write_1(sc, R92C_SPEC_SIFS + 1, 10); in urtwn_newstate()
2682 urtwn_write_1(sc, R92C_MAC_SPEC_SIFS + 1, 10); in urtwn_newstate()
2683 urtwn_write_1(sc, R92C_R2T_SIFS + 1, 10); in urtwn_newstate()
2684 urtwn_write_1(sc, R92C_T2T_SIFS + 1, 10); in urtwn_newstate()
3339 error = urtwn_write_1(sc, R92C_RSV_CTRL, 0); in urtwn_r92c_power_on()
3343 error = urtwn_write_1(sc, R92C_SPS0_CTRL, 0x2b); in urtwn_r92c_power_on()
3350 error = urtwn_write_1(sc, R92C_LDOV12D_CTRL, in urtwn_r92c_power_on()
3355 error = urtwn_write_1(sc, R92C_SYS_ISO_CTRL, in urtwn_r92c_power_on()
3393 error = urtwn_write_1(sc, R92C_APSD_CTRL, in urtwn_r92c_power_on()
3419 error = urtwn_write_1(sc, 0xfe10, 0x19); in urtwn_r92c_power_on()
3445 error = urtwn_write_1(sc, R92C_SYS_FUNC_EN, in urtwn_r88e_power_on()
3451 error = urtwn_write_1(sc, R92C_AFE_XTAL_CTRL + 2, in urtwn_r88e_power_on()
3483 error = urtwn_write_1(sc, R92C_LPLDO_CTRL, in urtwn_r88e_power_on()
3516 urtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in urtwn_r92c_power_off()
3521 urtwn_write_1(sc, R92C_APSD_CTRL, R92C_APSD_CTRL_OFF); in urtwn_r92c_power_off()
3524 urtwn_write_1(sc, R92C_SYS_FUNC_EN, in urtwn_r92c_power_off()
3527 urtwn_write_1(sc, R92C_SYS_FUNC_EN, in urtwn_r92c_power_off()
3536 urtwn_write_1(sc, R92C_MCUFWDL, 0); in urtwn_r92c_power_off()
3544 urtwn_write_1(sc, R92C_SYS_FUNC_EN + 1, in urtwn_r92c_power_off()
3550 urtwn_write_1(sc, R92C_MCUFWDL, 0); in urtwn_r92c_power_off()
3563 urtwn_write_1(sc, R92C_AFE_PLL_CTRL, 0x80); in urtwn_r92c_power_off()
3569 urtwn_write_1(sc, R92C_SYS_ISO_CTRL, in urtwn_r92c_power_off()
3588 urtwn_write_1(sc, R92C_MAC_PINMUX_CFG, 0x00); in urtwn_r92c_power_off()
3611 urtwn_write_1(sc, R92C_SYS_ISO_CTRL + 1, in urtwn_r92c_power_off()
3619 urtwn_write_1(sc, R92C_LDOA15_CTRL, R92C_LDOA15_CTRL_OBUF); in urtwn_r92c_power_off()
3621 urtwn_write_1(sc, R92C_LDOV12D_CTRL, in urtwn_r92c_power_off()
3626 urtwn_write_1(sc, R92C_SPS0_CTRL, 0x23); in urtwn_r92c_power_off()
3635 urtwn_write_1(sc, R92C_RSV_CTRL, 0x0E); in urtwn_r92c_power_off()
3645 urtwn_write_1(sc, R88E_TX_RPT_CTRL, in urtwn_r88e_power_off()
3650 urtwn_write_1(sc, R92C_CR, 0); in urtwn_r88e_power_off()
3654 urtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in urtwn_r88e_power_off()
3670 urtwn_write_1(sc, R92C_SYS_FUNC_EN, in urtwn_r88e_power_off()
3676 urtwn_write_1(sc, R92C_CR, in urtwn_r88e_power_off()
3682 urtwn_write_1(sc, R92C_CR + 1, in urtwn_r88e_power_off()
3686 urtwn_write_1(sc, R92C_DUAL_TSF_RST, in urtwn_r88e_power_off()
3696 urtwn_write_1(sc, R92C_MCUFWDL, 0x00); in urtwn_r88e_power_off()
3699 urtwn_write_1(sc, R88E_32K_CTRL, in urtwn_r88e_power_off()
3704 urtwn_write_1(sc, R92C_RF_CTRL, 0); in urtwn_r88e_power_off()
3707 urtwn_write_1(sc, R92C_LPLDO_CTRL, in urtwn_r88e_power_off()
3711 urtwn_write_1(sc, R92C_APS_FSMCO + 1, in urtwn_r88e_power_off()
3730 urtwn_write_1(sc, R92C_AFE_XTAL_CTRL + 2, in urtwn_r88e_power_off()
3734 urtwn_write_1(sc, R92C_APS_FSMCO + 1, in urtwn_r88e_power_off()
3738 urtwn_write_1(sc, R92C_APS_FSMCO + 3, 0); in urtwn_r88e_power_off()
3741 urtwn_write_1(sc, R92C_GPIO_MUXCFG + 1, in urtwn_r88e_power_off()
3745 urtwn_write_1(sc, R92C_USB_SUSPEND, in urtwn_r88e_power_off()
3750 urtwn_write_1(sc, R92C_RSV_CTRL + 1, reg & ~0x08); in urtwn_r88e_power_off()
3751 urtwn_write_1(sc, R92C_RSV_CTRL + 1, reg | 0x08); in urtwn_r88e_power_off()
3754 urtwn_write_1(sc, R92C_GPIO_OUT, urtwn_read_1(sc, R92C_GPIO_IN)); in urtwn_r88e_power_off()
3755 urtwn_write_1(sc, R92C_GPIO_IOSEL, 0xff); in urtwn_r88e_power_off()
3757 urtwn_write_1(sc, R92C_GPIO_IO_SEL, in urtwn_r88e_power_off()
3759 urtwn_write_1(sc, R92C_GPIO_MOD, in urtwn_r88e_power_off()
3805 urtwn_write_1(sc, R92C_HMETFR + 3, 0x20); in urtwn_fw_reset()
3914 urtwn_write_1(sc, R92C_MCUFWDL, 0); in urtwn_load_firmware()
3922 urtwn_write_1(sc, R92C_MCUFWDL, in urtwn_load_firmware()
3924 urtwn_write_1(sc, R92C_MCUFWDL + 2, in urtwn_load_firmware()
3928 urtwn_write_1(sc, R92C_MCUFWDL, in urtwn_load_firmware()
3942 urtwn_write_1(sc, R92C_MCUFWDL, in urtwn_load_firmware()
3944 urtwn_write_1(sc, R92C_MCUFWDL + 1, 0); in urtwn_load_firmware()
4049 usb_err = urtwn_write_1(sc, R92C_RQPN_NPQ, hasnq ? nqpages : 0); in urtwn_dma_init()
4065 usb_err = urtwn_write_1(sc, R92C_TXPKTBUF_BCNQ_BDNY, tx_boundary); in urtwn_dma_init()
4068 usb_err = urtwn_write_1(sc, R92C_TXPKTBUF_MGQ_BDNY, tx_boundary); in urtwn_dma_init()
4071 usb_err = urtwn_write_1(sc, R92C_TXPKTBUF_WMAC_LBK_BF_HD, tx_boundary); in urtwn_dma_init()
4074 usb_err = urtwn_write_1(sc, R92C_TRXFF_BNDY, tx_boundary); in urtwn_dma_init()
4077 usb_err = urtwn_write_1(sc, R92C_TDECTRL + 1, tx_boundary); in urtwn_dma_init()
4110 usb_err = urtwn_write_1(sc, R92C_PBP, in urtwn_dma_init()
4128 error = urtwn_write_1(sc, rtl8188eu_mac[i].reg, in urtwn_mac_init()
4133 urtwn_write_1(sc, R92C_MAX_AGGR_NUM, 0x07); in urtwn_mac_init()
4136 error = urtwn_write_1(sc, rtl8192cu_mac[i].reg, in urtwn_mac_init()
4163 urtwn_write_1(sc, R92C_RF_CTRL, in urtwn_bb_init()
4165 urtwn_write_1(sc, R92C_SYS_FUNC_EN, in urtwn_bb_init()
4170 urtwn_write_1(sc, R92C_LDOHCI12_CTRL, 0x0f); in urtwn_bb_init()
4171 urtwn_write_1(sc, 0x15, 0xe9); in urtwn_bb_init()
4172 urtwn_write_1(sc, R92C_AFE_XTAL_CTRL + 1, 0x80); in urtwn_bb_init()
4385 urtwn_write_1(sc, 0x16, reg); in urtwn_pa_bias_init()
4817 urtwn_write_1(sc, R92C_ACMHWCTRL, in urtwn_wme_update()
4843 urtwn_write_1(sc, R92C_SLOT, slottime); in urtwn_update_slot_cb()
4857 urtwn_write_1(sc, wme2queue[ac].reg, aifs); in urtwn_update_aifs()
5082 urtwn_write_1(sc, R92C_BWOPMODE, in urtwn_set_chan()
5087 urtwn_write_1(sc, R92C_RRSR + 2, reg); in urtwn_set_chan()
5117 urtwn_write_1(sc, R92C_BWOPMODE, in urtwn_set_chan()
5155 urtwn_write_1(sc, R92C_OFDM1_LSTF + 3, txmode & ~0x70); in urtwn_lc_calib()
5166 urtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in urtwn_lc_calib()
5178 urtwn_write_1(sc, R92C_OFDM1_LSTF + 3, txmode); in urtwn_lc_calib()
5184 urtwn_write_1(sc, R92C_TXPAUSE, 0x00); in urtwn_lc_calib()
5285 urtwn_write_1(sc, R92C_RX_DRVINFO_SZ, 4); in urtwn_init()
5300 usb_err = urtwn_write_1(sc, R92C_USB_SPECIAL_OPTION, in urtwn_init()
5346 urtwn_write_1(sc, R92C_FWHW_TXQ_CTRL, in urtwn_init()
5350 urtwn_write_1(sc, R92C_ACKTO, 0x40); in urtwn_init()
5356 urtwn_write_1(sc, R92C_TRXDMA_CTRL, in urtwn_init()
5359 urtwn_write_1(sc, R92C_RXDMA_AGG_PG_TH, 48); in urtwn_init()
5361 urtwn_write_1(sc, R92C_RXDMA_AGG_PG_TH + 1, 4); in urtwn_init()
5363 urtwn_write_1(sc, R92C_USB_DMA_AGG_TO, 4); in urtwn_init()
5364 urtwn_write_1(sc, R92C_USB_SPECIAL_OPTION, in urtwn_init()
5367 urtwn_write_1(sc, R92C_USB_AGG_TH, 8); in urtwn_init()
5368 urtwn_write_1(sc, R92C_USB_AGG_TO, 6); in urtwn_init()
5374 urtwn_write_1(sc, R92C_DRVERLYINT, 0x05); in urtwn_init()
5375 urtwn_write_1(sc, R92C_BCNDMATIM, 0x02); in urtwn_init()
5381 urtwn_write_1(sc, R92C_AGGR_BREAK_TIME, 0x16); in urtwn_init()
5384 urtwn_write_1(sc, R92C_BCN_MAX_ERR, 0xff); in urtwn_init()
5441 urtwn_write_1(sc, R92C_HWSEQ_CTRL, R92C_TX_QUEUE_ALL); in urtwn_init()
5445 urtwn_write_1(sc, R88E_TX_RPT_CTRL, in urtwn_init()
5456 urtwn_write_1(sc, 0xfe40, 0xe0); in urtwn_init()
5457 urtwn_write_1(sc, 0xfe41, 0x8d); in urtwn_init()
5458 urtwn_write_1(sc, 0xfe42, 0x80); in urtwn_init()
5464 urtwn_write_1(sc, R92C_GPIO_MUXCFG, in urtwn_init()
5469 urtwn_write_1(sc, 0x15, 0xe9); in urtwn_init()