Searched refs:usb_write8 (Results 1 - 16 of 16) sorted by relevance

/linux-4.1.27/drivers/staging/rtl8188eu/hal/
H A Dfw.c45 usb_write8(adapt, REG_MCUFWDL, tmp | 0x01); _rtl88e_enable_fw_download()
48 usb_write8(adapt, REG_MCUFWDL + 2, tmp & 0xf7); _rtl88e_enable_fw_download()
51 usb_write8(adapt, REG_MCUFWDL, tmp & 0xfe); _rtl88e_enable_fw_download()
53 usb_write8(adapt, REG_MCUFWDL + 1, 0x00); _rtl88e_enable_fw_download()
78 usb_write8(adapt, (FW_8192C_START_ADDRESS + _rtl88e_fw_block_write()
108 usb_write8(adapt, (REG_MCUFWDL + 2), value8); _rtl88e_fw_page_write()
141 usb_write8(adapt, REG_SYS_FUNC_EN+1, (u1b_tmp & (~BIT(2)))); rtl88e_firmware_selfreset()
142 usb_write8(adapt, REG_SYS_FUNC_EN+1, (u1b_tmp | BIT(2))); rtl88e_firmware_selfreset()
224 usb_write8(adapt, REG_MCUFWDL, 0); rtl88eu_download_fw()
228 usb_write8(adapt, REG_MCUFWDL, usb_read8(adapt, REG_MCUFWDL) | FWDL_ChkSum_rpt); rtl88eu_download_fw()
H A Dusb_halinit.c161 usb_write8(Adapter, REG_USB_SPECIAL_OPTION, usb_opt); _InitInterrupt()
187 usb_write8(Adapter, REG_RQPN_NPQ, value8); _InitQueueReservedPage()
203 usb_write8(Adapter, REG_TXPKTBUF_BCNQ_BDNY, txpktbuf_bndy); _InitTxBufferBoundary()
204 usb_write8(Adapter, REG_TXPKTBUF_MGQ_BDNY, txpktbuf_bndy); _InitTxBufferBoundary()
205 usb_write8(Adapter, REG_TXPKTBUF_WMAC_LBK_BF_HD, txpktbuf_bndy); _InitTxBufferBoundary()
206 usb_write8(Adapter, REG_TRXFF_BNDY, txpktbuf_bndy); _InitTxBufferBoundary()
207 usb_write8(Adapter, REG_TDECTRL+1, txpktbuf_bndy); _InitTxBufferBoundary()
356 usb_write8(Adapter, REG_PBP, value8); _InitTransferPageSize()
361 usb_write8(Adapter, REG_RX_DRVINFO_SZ, drvInfoSize); _InitDriverInfoSize()
424 usb_write8(Adapter, REG_RD_CTRL, 0xFF); _InitRDGSetting()
426 usb_write8(Adapter, REG_RD_RESP_PKT_TH, 0x05); _InitRDGSetting()
441 usb_write8(Adapter, REG_FWHW_TXQ_CTRL, value8); _InitRetryFunction()
444 usb_write8(Adapter, REG_ACKTO, 0x40); _InitRetryFunction()
526 usb_write8(Adapter, REG_TRXDMA_CTRL, valueDMA); usb_AggSettingRxUpdate()
527 usb_write8(Adapter, REG_USB_SPECIAL_OPTION, valueUSB); usb_AggSettingRxUpdate()
531 usb_write8(Adapter, REG_RXDMA_AGG_PG_TH, haldata->UsbRxAggPageCount); usb_AggSettingRxUpdate()
532 usb_write8(Adapter, REG_RXDMA_AGG_PG_TH+1, haldata->UsbRxAggPageTimeout); usb_AggSettingRxUpdate()
535 usb_write8(Adapter, REG_USB_AGG_TH, haldata->UsbRxAggBlockCount); usb_AggSettingRxUpdate()
536 usb_write8(Adapter, REG_USB_AGG_TO, haldata->UsbRxAggBlockTimeout); usb_AggSettingRxUpdate()
539 usb_write8(Adapter, REG_RXDMA_AGG_PG_TH, haldata->UsbRxAggPageCount); usb_AggSettingRxUpdate()
540 usb_write8(Adapter, REG_RXDMA_AGG_PG_TH+1, (haldata->UsbRxAggPageTimeout & 0x1F));/* 0x280[12:8] */ usb_AggSettingRxUpdate()
541 usb_write8(Adapter, REG_USB_AGG_TH, haldata->UsbRxAggBlockCount); usb_AggSettingRxUpdate()
542 usb_write8(Adapter, REG_USB_AGG_TO, haldata->UsbRxAggBlockTimeout); usb_AggSettingRxUpdate()
593 usb_write8(Adapter, REG_DRVERLYINT, DRIVER_EARLY_INT_TIME);/* 5ms */ _InitBeaconParameters()
594 usb_write8(Adapter, REG_BCNDMATIM, BCN_DMA_ATIME_INT_TIME); /* 2ms */ _InitBeaconParameters()
610 usb_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1)); _BeaconFunctionEnable()
612 usb_write8(Adapter, REG_RD_CTRL+1, 0x6F); _BeaconFunctionEnable()
670 usb_write8(adapt, REG_MAC_PINMUX_CFG, usb_read8(adapt, REG_MAC_PINMUX_CFG)&~(BIT3)); RfOnOffDetect()
803 usb_write8(Adapter, REG_CR, value16); rtl8188eu_hal_init()
811 usb_write8(Adapter, REG_TX_RPT_CTRL, (value8|BIT1|BIT0)); rtl8188eu_hal_init()
813 usb_write8(Adapter, REG_TX_RPT_CTRL+1, 2);/* FOR sta mode ,0: bc/mc ,1:AP */ rtl8188eu_hal_init()
817 usb_write8(Adapter, REG_EARLY_MODE_CONTROL, 0); rtl8188eu_hal_init()
849 usb_write8(Adapter, REG_HWSEQ_CTRL, 0xFF); rtl8188eu_hal_init()
855 usb_write8(Adapter, 0x652, 0x0); rtl8188eu_hal_init()
870 usb_write8(Adapter, REG_FWHW_TXQ_CTRL+1, 0x0F); rtl8188eu_hal_init()
873 usb_write8(Adapter, REG_EARLY_MODE_CONTROL+3, 0x01);/* Pretx_en, for WEP/TKIP SEC */ rtl8188eu_hal_init()
901 usb_write8(Adapter, REG_USB_HRPWM, 0); rtl8188eu_hal_init()
924 usb_write8(Adapter, REG_TX_RPT_CTRL, val8&(~BIT1)); CardDisableRTL8188EU()
927 usb_write8(Adapter, REG_CR, 0x0); CardDisableRTL8188EU()
941 usb_write8(Adapter, REG_SYS_FUNC_EN+1, val8); CardDisableRTL8188EU()
945 usb_write8(Adapter, REG_MCUFWDL, 0); CardDisableRTL8188EU()
950 usb_write8(Adapter, REG_32K_CTRL, val8&(~BIT0)); CardDisableRTL8188EU()
959 usb_write8(Adapter, REG_RSV_CTRL+1, (val8&(~BIT3))); CardDisableRTL8188EU()
961 usb_write8(Adapter, REG_RSV_CTRL+1, val8|BIT3); CardDisableRTL8188EU()
965 usb_write8(Adapter, GPIO_OUT, val8); CardDisableRTL8188EU()
966 usb_write8(Adapter, GPIO_IO_SEL, 0xFF);/* Reg0x46 */ CardDisableRTL8188EU()
969 usb_write8(Adapter, REG_GPIO_IO_SEL, (val8<<4)); CardDisableRTL8188EU()
971 usb_write8(Adapter, REG_GPIO_IO_SEL+1, val8|0x0F);/* Reg0x43 */ CardDisableRTL8188EU()
982 usb_write8(adapt, REG_RSV_CTRL, 0x0); rtl8192cu_hw_power_down()
1177 usb_write8(adapt, REG_FWHW_TXQ_CTRL+2, (haldata->RegFwHwTxQCtrl) | BIT6); ResumeTxBeacon()
1179 usb_write8(adapt, REG_TBTT_PROHIBIT+1, 0xff); ResumeTxBeacon()
1181 usb_write8(adapt, REG_TBTT_PROHIBIT+2, haldata->RegReg542); ResumeTxBeacon()
1191 usb_write8(adapt, REG_FWHW_TXQ_CTRL+2, (haldata->RegFwHwTxQCtrl) & (~BIT6)); StopTxBeacon()
1193 usb_write8(adapt, REG_TBTT_PROHIBIT+1, 0x64); StopTxBeacon()
1195 usb_write8(adapt, REG_TBTT_PROHIBIT+2, haldata->RegReg542); StopTxBeacon()
1206 usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)|BIT(4)); hw_var_set_opmode()
1211 usb_write8(Adapter, MSR, val8); hw_var_set_opmode()
1218 usb_write8(Adapter, REG_BCN_CTRL, 0x19);/* disable atim wnd */ hw_var_set_opmode()
1221 usb_write8(Adapter, REG_BCN_CTRL, 0x1a); hw_var_set_opmode()
1225 usb_write8(Adapter, REG_BCN_CTRL, 0x12); hw_var_set_opmode()
1235 usb_write8(Adapter, REG_BCNDMATIM, 0x02); /* 2ms */ hw_var_set_opmode()
1237 usb_write8(Adapter, REG_ATIMWND, 0x0a); /* 10ms */ hw_var_set_opmode()
1243 usb_write8(Adapter, REG_DUAL_TSF_RST, BIT(0)); hw_var_set_opmode()
1246 usb_write8(Adapter, REG_MBID_NUM, usb_read8(Adapter, REG_MBID_NUM) | BIT(3) | BIT(4)); hw_var_set_opmode()
1250 usb_write8(Adapter, REG_BCN_CTRL, (DIS_TSF_UDT0_NORMAL_CHIP|EN_BCN_FUNCTION | BIT(1))); hw_var_set_opmode()
1253 usb_write8(Adapter, REG_BCN_CTRL_1, usb_read8(Adapter, REG_BCN_CTRL_1) | BIT(0)); hw_var_set_opmode()
1265 usb_write8(Adapter, (reg_macid+idx), val[idx]); hw_var_set_macaddr()
1276 usb_write8(Adapter, (reg_bssid+idx), val[idx]); hw_var_set_bssid()
1286 usb_write8(Adapter, bcn_ctrl_reg, (EN_BCN_FUNCTION | EN_TXBCN_RPT)); hw_var_set_bcn_func()
1288 usb_write8(Adapter, bcn_ctrl_reg, usb_read8(Adapter, bcn_ctrl_reg)&(~(EN_BCN_FUNCTION | EN_TXBCN_RPT))); hw_var_set_bcn_func()
1304 usb_write8(Adapter, MSR, val8); SetHwReg8188EU()
1313 usb_write8(Adapter, MSR, val8); SetHwReg8188EU()
1347 usb_write8(Adapter, REG_RRSR, BrateCfg & 0xff); SetHwReg8188EU()
1348 usb_write8(Adapter, REG_RRSR+1, (BrateCfg >> 8) & 0xff); SetHwReg8188EU()
1349 usb_write8(Adapter, REG_RRSR+2, usb_read8(Adapter, REG_RRSR+2)&0xf0); SetHwReg8188EU()
1357 usb_write8(Adapter, REG_INIRTS_RATE_SEL, RateIndex); SetHwReg8188EU()
1361 usb_write8(Adapter, REG_TXPAUSE, *((u8 *)val)); SetHwReg8188EU()
1378 usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)&(~BIT(3))); SetHwReg8188EU()
1384 usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)|BIT(3)); SetHwReg8188EU()
1409 usb_write8(Adapter, REG_DUAL_TSF_RST, (BIT(0)|BIT(1))); SetHwReg8188EU()
1412 usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)|BIT(4)); SetHwReg8188EU()
1424 usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)|BIT(4)); SetHwReg8188EU()
1435 usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)&(~BIT(4))); SetHwReg8188EU()
1439 usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)&(~BIT(4))); SetHwReg8188EU()
1482 usb_write8(Adapter, REG_BCN_CTRL, usb_read8(Adapter, REG_BCN_CTRL)&(~BIT(4))); SetHwReg8188EU()
1499 usb_write8(Adapter, REG_SLOT, val[0]); SetHwReg8188EU()
1510 usb_write8(Adapter, REG_EDCA_VO_PARAM, u1bAIFS); SetHwReg8188EU()
1511 usb_write8(Adapter, REG_EDCA_VI_PARAM, u1bAIFS); SetHwReg8188EU()
1512 usb_write8(Adapter, REG_EDCA_BE_PARAM, u1bAIFS); SetHwReg8188EU()
1513 usb_write8(Adapter, REG_EDCA_BK_PARAM, u1bAIFS); SetHwReg8188EU()
1519 usb_write8(Adapter, REG_R2T_SIFS, val[0]); /* SIFS_T2T_CCK (0x08) */ SetHwReg8188EU()
1520 usb_write8(Adapter, REG_R2T_SIFS+1, val[1]); /* SIFS_R2T_CCK(0x08) */ SetHwReg8188EU()
1522 usb_write8(Adapter, REG_T2T_SIFS, val[2]); /* SIFS_T2T_OFDM (0x0a) */ SetHwReg8188EU()
1523 usb_write8(Adapter, REG_T2T_SIFS+1, val[3]); /* SIFS_R2T_OFDM(0x0a) */ SetHwReg8188EU()
1534 usb_write8(Adapter, REG_RRSR+2, regTmp); SetHwReg8188EU()
1538 usb_write8(Adapter, REG_SECCFG, *((u8 *)val)); SetHwReg8188EU()
1633 usb_write8(Adapter, REG_ACMHWCTRL, AcmCtrl); SetHwReg8188EU()
1660 usb_write8(Adapter, REG_AMPDU_MIN_SPACE, (usb_read8(Adapter, REG_AMPDU_MIN_SPACE) & 0xf8) | MinSpacingToSet); SetHwReg8188EU()
1685 usb_write8(Adapter, (REG_AGGLEN_LMT+index), pRegToSet[index]); SetHwReg8188EU()
1695 usb_write8(Adapter, REG_RXDMA_AGG_PG_TH, threshold); SetHwReg8188EU()
1761 usb_write8(Adapter, REG_TXPAUSE, 0xff); SetHwReg8188EU()
1793 usb_write8(Adapter, REG_TX_RPT_CTRL+1, maxMacid+1); SetHwReg8188EU()
1801 usb_write8(Adapter, REG_TDECTRL+2, usb_read8(Adapter, REG_TDECTRL+2) | BIT0); SetHwReg8188EU()
2126 usb_write8(adapt, REG_ATIMWND, 0x02);/* 2ms */ SetBeaconRelatedRegisters8188EUsb()
2130 usb_write8(adapt, REG_SLOT, 0x09); SetBeaconRelatedRegisters8188EUsb()
2140 usb_write8(adapt, REG_RXTSF_OFFSET_CCK, 0x50); SetBeaconRelatedRegisters8188EUsb()
2141 usb_write8(adapt, REG_RXTSF_OFFSET_OFDM, 0x50); SetBeaconRelatedRegisters8188EUsb()
2147 usb_write8(adapt, bcn_ctrl_reg, usb_read8(adapt, bcn_ctrl_reg)|BIT(1)); SetBeaconRelatedRegisters8188EUsb()
H A Drtl8188eu_led.c39 usb_write8(padapter, REG_LEDCFG2, (LedCfg&0xf0)|BIT5|BIT6); /* SW control led0 on. */ SwLedOn()
58 usb_write8(padapter, REG_LEDCFG2, (LedCfg|BIT3)); SwLedOff()
61 usb_write8(padapter, REG_MAC_PINMUX_CFG, LedCfg); SwLedOff()
63 usb_write8(padapter, REG_LEDCFG2, (LedCfg|BIT3|BIT5|BIT6)); SwLedOff()
H A Dmac_cfg.c130 usb_write8(adapt, ptrarray[i], (u8)ptrarray[i + 1]); rtl88eu_phy_mac_config()
132 usb_write8(adapt, REG_MAX_AGGR_NUM, MAX_AGGR_NUM); rtl88eu_phy_mac_config()
H A Drtl8188e_cmd.c108 usb_write8(adapt, msgbox_ex_addr+cmd_idx, *((u8 *)(&h2c_cmd_ex)+cmd_idx)); FillH2CCmd_88E()
114 usb_write8(adapt, msgbox_addr+cmd_idx, *((u8 *)(&h2c_cmd)+cmd_idx)); FillH2CCmd_88E()
602 usb_write8(adapt, REG_CR+1, haldata->RegCR_1); rtl8188e_set_FwJoinBssReport_cmd()
607 usb_write8(adapt, REG_BCN_CTRL, usb_read8(adapt, REG_BCN_CTRL)&(~BIT(3))); rtl8188e_set_FwJoinBssReport_cmd()
608 usb_write8(adapt, REG_BCN_CTRL, usb_read8(adapt, REG_BCN_CTRL)|BIT(4)); rtl8188e_set_FwJoinBssReport_cmd()
616 usb_write8(adapt, REG_FWHW_TXQ_CTRL+2, (haldata->RegFwHwTxQCtrl&(~BIT6))); rtl8188e_set_FwJoinBssReport_cmd()
650 usb_write8(adapt, REG_BCN_CTRL, usb_read8(adapt, REG_BCN_CTRL)|BIT(3)); rtl8188e_set_FwJoinBssReport_cmd()
651 usb_write8(adapt, REG_BCN_CTRL, usb_read8(adapt, REG_BCN_CTRL)&(~BIT(4))); rtl8188e_set_FwJoinBssReport_cmd()
659 usb_write8(adapt, REG_FWHW_TXQ_CTRL+2, (haldata->RegFwHwTxQCtrl|BIT6)); rtl8188e_set_FwJoinBssReport_cmd()
672 usb_write8(adapt, REG_CR+1, haldata->RegCR_1); rtl8188e_set_FwJoinBssReport_cmd()
H A Drtl8188e_hal_init.c38 usb_write8(padapter, REG_SYS_CFG, reg_0xf0|SW_OFFLOAD_EN); iol_mode_enable()
48 usb_write8(padapter, REG_SYS_CFG, reg_0xf0 & ~SW_OFFLOAD_EN); iol_mode_enable()
60 usb_write8(padapter, REG_HMEBOX_E0, reg_0x88|control); iol_execute()
79 usb_write8(padapter, REG_TDECTRL+1, txpktbuf_bndy); iol_InitLLTTable()
109 usb_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp&(~BIT2)); _8051Reset88E()
110 usb_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp|(BIT2)); _8051Reset88E()
211 usb_write8(adapter, rOFDM0_RxDSP+1, usb_read8(adapter, rOFDM0_RxDSP+1) | BIT1); hal_notch_filter_8188e()
214 usb_write8(adapter, rOFDM0_RxDSP+1, usb_read8(adapter, rOFDM0_RxDSP+1) & ~BIT1); hal_notch_filter_8188e()
H A Dphy.c267 usb_write8(adapt, REG_BWOPMODE, reg_bw_opmode); phy_set_bw_mode_callback()
271 usb_write8(adapt, REG_BWOPMODE, reg_bw_opmode); phy_set_bw_mode_callback()
274 usb_write8(adapt, REG_RRSR+2, reg_prsr_rsc); phy_set_bw_mode_callback()
933 usb_write8(adapt, mac_reg[i], (u8)backup[i]); reload_mac_registers()
960 usb_write8(adapt, mac_reg[i], 0x3F); mac_setting_calibration()
963 usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT3))); mac_setting_calibration()
965 usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT5))); mac_setting_calibration()
1260 usb_write8(adapt, 0xd03, tmpreg&0x8F); phy_lc_calibrate()
1262 usb_write8(adapt, REG_TXPAUSE, 0xFF); phy_lc_calibrate()
1299 usb_write8(adapt, 0xd03, tmpreg); phy_lc_calibrate()
1308 usb_write8(adapt, REG_TXPAUSE, 0x00); phy_lc_calibrate()
H A Dpwrseqcmd.c75 usb_write8(padapter, offset, value); rtl88eu_pwrseqcmdparsing()
H A Dbb_cfg.c718 usb_write8(adapt, REG_RF_CTRL, RF_EN|RF_RSTB|RF_SDMRSTB); rtl88eu_phy_bb_config()
720 usb_write8(adapt, REG_SYS_FUNC_EN, FEN_USBA | FEN_USBD | FEN_BB_GLB_RSTn | FEN_BBRSTB); rtl88eu_phy_bb_config()
H A Drtl8188e_dm.c42 usb_write8(Adapter, REG_GPIO_MUXCFG, tmp1byte); dm_InitGPIOSetting()
H A Dodm.c838 usb_write8(adapt, ODM_REG_CCK_CCA_11N, CurCCK_CCAThres); ODM_Write_CCK_CCA_Thres()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
H A Drtw_efuse.c54 usb_write8(pAdapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_ON); Efuse_PowerSwitch()
81 usb_write8(pAdapter, EFUSE_TEST+3, (tempval | 0x80)); Efuse_PowerSwitch()
84 usb_write8(pAdapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_OFF); Efuse_PowerSwitch()
89 usb_write8(pAdapter, EFUSE_TEST+3, (tempval & 0x7F)); Efuse_PowerSwitch()
241 usb_write8(adapter, REG_PKT_BUFF_ACCESS_CTRL, TXPKT_BUF_SELECT); efuse_read_phymap_from_txpktbuf()
248 usb_write8(adapter, REG_TXPKTBUF_DBG, 0); efuse_read_phymap_from_txpktbuf()
295 usb_write8(adapter, REG_PKT_BUFF_ACCESS_CTRL, DISABLE_TRXPKT_BUF_ACCESS); efuse_read_phymap_from_txpktbuf()
306 usb_write8(padapter, REG_TDECTRL+1, txpktbuf_bndy); iol_read_efuse()
308 usb_write8(padapter, REG_PKT_BUFF_ACCESS_CTRL, TXPKT_BUF_SELECT); iol_read_efuse()
917 usb_write8(pAdapter, EFUSE_CTRL+1, (u8)(addr & 0xff)); efuse_OneByteRead()
918 usb_write8(pAdapter, EFUSE_CTRL+2, ((u8)((addr>>8) & 0x03)) | efuse_OneByteRead()
921 usb_write8(pAdapter, EFUSE_CTRL+3, 0x72);/* read cmd */ efuse_OneByteRead()
940 usb_write8(pAdapter, EFUSE_CTRL+1, (u8)(addr&0xff)); efuse_OneByteWrite()
941 usb_write8(pAdapter, EFUSE_CTRL+2, efuse_OneByteWrite()
944 usb_write8(pAdapter, EFUSE_CTRL, data);/* data */ efuse_OneByteWrite()
946 usb_write8(pAdapter, EFUSE_CTRL+3, 0xF2);/* write cmd */ efuse_OneByteWrite()
H A Drtw_debug.c67 usb_write8(padapter, addr, (u8)val); proc_set_write_reg()
/linux-4.1.27/drivers/staging/rtl8712/
H A Dusb_ops.c97 static void usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val) usb_write8() function
195 pops->_write8 = &usb_write8; r8712_usb_set_intf_ops()
/linux-4.1.27/drivers/staging/rtl8188eu/include/
H A Dusb_ops_linux.h79 int usb_write8(struct adapter *adapter, u32 addr, u8 val);
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
H A Dusb_ops_linux.c548 int usb_write8(struct adapter *adapter, u32 addr, u8 val) usb_write8() function

Completed in 233 milliseconds