Home
last modified time | relevance | path

Searched refs:padapter (Results 1 – 25 of 179) sorted by relevance

12345678

/Linux-v5.10/drivers/staging/rtl8723bs/hal/
Dhal_intf.c14 void rtw_hal_chip_configure(struct adapter *padapter) in rtw_hal_chip_configure() argument
16 if (padapter->HalFunc.intf_chip_configure) in rtw_hal_chip_configure()
17 padapter->HalFunc.intf_chip_configure(padapter); in rtw_hal_chip_configure()
20 void rtw_hal_read_chip_info(struct adapter *padapter) in rtw_hal_read_chip_info() argument
22 if (padapter->HalFunc.read_adapter_info) in rtw_hal_read_chip_info()
23 padapter->HalFunc.read_adapter_info(padapter); in rtw_hal_read_chip_info()
26 void rtw_hal_read_chip_version(struct adapter *padapter) in rtw_hal_read_chip_version() argument
28 if (padapter->HalFunc.read_chip_version) in rtw_hal_read_chip_version()
29 padapter->HalFunc.read_chip_version(padapter); in rtw_hal_read_chip_version()
32 void rtw_hal_def_value_init(struct adapter *padapter) in rtw_hal_def_value_init() argument
[all …]
Dsdio_halinit.c22 static u8 CardEnable(struct adapter *padapter) in CardEnable() argument
28 rtw_hal_get_hwreg(padapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn); in CardEnable()
32 rtw_write8(padapter, REG_RSV_CTRL, 0x0); in CardEnable()
34 …ret = HalPwrSeqCmdParsing(padapter, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, rtl8723B_… in CardEnable()
37 rtw_hal_set_hwreg(padapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn); in CardEnable()
62 void HalSetOutPutGPIO(struct adapter *padapter, u8 index, u8 OutPutValue) in HalSetOutPutGPIO() argument
66 …rtw_write8(padapter, REG_GPIO_PIN_CTRL + 3, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 3) & ~BIT(inde… in HalSetOutPutGPIO()
71 …rtw_write8(padapter, REG_GPIO_PIN_CTRL + 2, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 2) | BIT(index… in HalSetOutPutGPIO()
75 …rtw_write8(padapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 1) | BIT(index… in HalSetOutPutGPIO()
77 …rtw_write8(padapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 1) & ~BIT(inde… in HalSetOutPutGPIO()
[all …]
Drtl8723b_hal_init.c16 static void _FWDownloadEnable(struct adapter *padapter, bool enable) in _FWDownloadEnable() argument
22 tmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in _FWDownloadEnable()
23 rtw_write8(padapter, REG_SYS_FUNC_EN+1, tmp|0x04); in _FWDownloadEnable()
25 tmp = rtw_read8(padapter, REG_MCUFWDL); in _FWDownloadEnable()
26 rtw_write8(padapter, REG_MCUFWDL, tmp|0x01); in _FWDownloadEnable()
29 tmp = rtw_read8(padapter, REG_MCUFWDL); in _FWDownloadEnable()
32 rtw_write8(padapter, REG_MCUFWDL, tmp|0x01); in _FWDownloadEnable()
40 tmp = rtw_read8(padapter, REG_MCUFWDL+2); in _FWDownloadEnable()
41 rtw_write8(padapter, REG_MCUFWDL+2, tmp&0xf7); in _FWDownloadEnable()
44 tmp = rtw_read8(padapter, REG_MCUFWDL); in _FWDownloadEnable()
[all …]
Drtl8723b_cmd.c20 static u8 _is_fw_read_cmd_down(struct adapter *padapter, u8 msgbox_num) in _is_fw_read_cmd_down() argument
30 valid = rtw_read8(padapter, REG_HMETFR) & BIT(msgbox_num); in _is_fw_read_cmd_down()
53 s32 FillH2CCmd8723B(struct adapter *padapter, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer) in FillH2CCmd8723B() argument
63 padapter = GET_PRIMARY_ADAPTER(padapter); in FillH2CCmd8723B()
64 pHalData = GET_HAL_DATA(padapter); in FillH2CCmd8723B()
65 if (mutex_lock_interruptible(&(adapter_to_dvobj(padapter)->h2c_fwcmd_mutex))) in FillH2CCmd8723B()
76 if (padapter->bSurpriseRemoved) in FillH2CCmd8723B()
83 if (!_is_fw_read_cmd_down(padapter, h2c_box_num)) { in FillH2CCmd8723B()
102 rtw_write32(padapter, msgbox_ex_addr, h2c_cmd_ex); in FillH2CCmd8723B()
105 rtw_write32(padapter, msgbox_addr, h2c_cmd); in FillH2CCmd8723B()
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/
Dos_intfs.c208 static void loadparam(struct adapter *padapter, _nic_hdl pnetdev) in loadparam() argument
210 struct registry_priv *registry_par = &padapter->registrypriv; in loadparam()
313 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_set_mac_address() local
316 if (!padapter->bup) { in rtw_net_set_mac_address()
319 memcpy(padapter->eeprompriv.mac_addr, addr->sa_data, ETH_ALEN); in rtw_net_set_mac_address()
329 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(pnetdev); in rtw_net_get_stats() local
330 struct xmit_priv *pxmitpriv = &(padapter->xmitpriv); in rtw_net_get_stats()
331 struct recv_priv *precvpriv = &(padapter->recvpriv); in rtw_net_get_stats()
333 padapter->stats.tx_packets = pxmitpriv->tx_pkts;/* pxmitpriv->tx_pkts++; */ in rtw_net_get_stats()
334 padapter->stats.rx_packets = precvpriv->rx_pkts;/* precvpriv->rx_pkts++; */ in rtw_net_get_stats()
[all …]
Dsdio_intf.c124 struct adapter *padapter = data; in gpio_hostwakeup_irq_thread() local
132 static u8 gpio_hostwakeup_alloc_irq(struct adapter *padapter) in gpio_hostwakeup_alloc_irq() argument
147 "rtw_wifi_gpio_wakeup", padapter); in gpio_hostwakeup_alloc_irq()
159 static void gpio_hostwakeup_free_irq(struct adapter *padapter) in gpio_hostwakeup_free_irq() argument
165 free_irq(oob_irq, padapter); in gpio_hostwakeup_free_irq()
282 void rtw_set_hal_ops(struct adapter *padapter) in rtw_set_hal_ops() argument
285 rtw_hal_data_init(padapter); in rtw_set_hal_ops()
287 rtl8723bs_set_hal_ops(padapter); in rtw_set_hal_ops()
290 static void sd_intf_start(struct adapter *padapter) in sd_intf_start() argument
292 if (padapter == NULL) { in sd_intf_start()
[all …]
/Linux-v5.10/drivers/staging/rtl8712/
Drtl871x_eeprom.c22 static void up_clk(struct _adapter *padapter, u16 *x) in up_clk() argument
25 r8712_write8(padapter, EE_9346CR, (u8)*x); in up_clk()
29 static void down_clk(struct _adapter *padapter, u16 *x) in down_clk() argument
32 r8712_write8(padapter, EE_9346CR, (u8)*x); in down_clk()
36 static void shift_out_bits(struct _adapter *padapter, u16 data, u16 count) in shift_out_bits() argument
40 if (padapter->surprise_removed) in shift_out_bits()
43 x = r8712_read8(padapter, EE_9346CR); in shift_out_bits()
49 if (padapter->surprise_removed) in shift_out_bits()
51 r8712_write8(padapter, EE_9346CR, (u8)x); in shift_out_bits()
53 up_clk(padapter, &x); in shift_out_bits()
[all …]
Dos_intfs.c116 static void loadparam(struct _adapter *padapter, struct net_device *pnetdev) in loadparam() argument
118 struct registry_priv *registry_par = &padapter->registrypriv; in loadparam()
165 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_net_set_mac_address() local
168 if (!padapter->bup) in r871x_net_set_mac_address()
175 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_net_get_stats() local
176 struct xmit_priv *pxmitpriv = &padapter->xmitpriv; in r871x_net_get_stats()
177 struct recv_priv *precvpriv = &padapter->recvpriv; in r871x_net_get_stats()
179 padapter->stats.tx_packets = pxmitpriv->tx_pkts; in r871x_net_get_stats()
180 padapter->stats.rx_packets = precvpriv->rx_pkts; in r871x_net_get_stats()
181 padapter->stats.tx_dropped = pxmitpriv->tx_drop; in r871x_net_get_stats()
[all …]
Dusb_intf.c196 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_suspend() local
199 padapter->suspended = true; in r871x_suspend()
200 rtl871x_intf_stop(padapter); in r871x_suspend()
208 static void rtl871x_intf_resume(struct _adapter *padapter) in rtl871x_intf_resume() argument
210 if (padapter->dvobjpriv.inirp_init) in rtl871x_intf_resume()
211 padapter->dvobjpriv.inirp_init(padapter); in rtl871x_intf_resume()
217 struct _adapter *padapter = netdev_priv(pnetdev); in r871x_resume() local
223 padapter->suspended = false; in r871x_resume()
224 rtl871x_intf_resume(padapter); in r871x_resume()
240 static uint r8712_usb_dvobj_init(struct _adapter *padapter) in r8712_usb_dvobj_init() argument
[all …]
Drtl8712_cmd.c43 static void check_hw_pbc(struct _adapter *padapter) in check_hw_pbc() argument
47 r8712_write8(padapter, MAC_PINMUX_CTRL, (GPIOMUX_EN | GPIOSEL_GPIO)); in check_hw_pbc()
48 tmp1byte = r8712_read8(padapter, GPIO_IO_SEL); in check_hw_pbc()
50 r8712_write8(padapter, GPIO_IO_SEL, tmp1byte); in check_hw_pbc()
51 tmp1byte = r8712_read8(padapter, GPIO_CTRL); in check_hw_pbc()
62 if (padapter->pid == 0) in check_hw_pbc()
64 kill_pid(find_vpid(padapter->pid), SIGUSR1, 1); in check_hw_pbc()
72 static void query_fw_rx_phy_status(struct _adapter *padapter) in query_fw_rx_phy_status() argument
77 if (check_fwstate(&padapter->mlmepriv, _FW_LINKED)) { in query_fw_rx_phy_status()
78 r8712_write32(padapter, IOCMD_CTRL_REG, 0xf4000001); in query_fw_rx_phy_status()
[all …]
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/
Dos_intfs.c139 static void loadparam(struct adapter *padapter, struct net_device *pnetdev) in loadparam() argument
141 struct registry_priv *registry_par = &padapter->registrypriv; in loadparam()
190 struct adapter *padapter = rtw_netdev_priv(pnetdev); in rtw_net_set_mac_address() local
193 if (!padapter->bup) in rtw_net_set_mac_address()
194 memcpy(padapter->eeprompriv.mac_addr, addr->sa_data, ETH_ALEN); in rtw_net_set_mac_address()
201 struct adapter *padapter = rtw_netdev_priv(pnetdev); in rtw_net_get_stats() local
202 struct xmit_priv *pxmitpriv = &padapter->xmitpriv; in rtw_net_get_stats()
203 struct recv_priv *precvpriv = &padapter->recvpriv; in rtw_net_get_stats()
205 padapter->stats.tx_packets = pxmitpriv->tx_pkts; in rtw_net_get_stats()
206 padapter->stats.rx_packets = precvpriv->rx_pkts; in rtw_net_get_stats()
[all …]
Dusb_intf.c143 void usb_intf_stop(struct adapter *padapter) in usb_intf_stop() argument
148 if (!padapter->bSurpriseRemoved) { in usb_intf_stop()
156 rtw_hal_inirp_deinit(padapter); in usb_intf_stop()
159 usb_write_port_cancel(padapter); in usb_intf_stop()
166 static void rtw_dev_unload(struct adapter *padapter) in rtw_dev_unload() argument
170 if (padapter->bup) { in rtw_dev_unload()
172 padapter->bDriverStopped = true; in rtw_dev_unload()
173 if (padapter->xmitpriv.ack_tx) in rtw_dev_unload()
174 rtw_ack_tx_done(&padapter->xmitpriv, RTW_SCTX_DONE_DRV_STOP); in rtw_dev_unload()
176 usb_intf_stop(padapter); in rtw_dev_unload()
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/include/
Dhal_intf.h173 u32 (*hal_power_on)(struct adapter *padapter);
174 void (*hal_power_off)(struct adapter *padapter);
175 u32 (*hal_init)(struct adapter *padapter);
176 u32 (*hal_deinit)(struct adapter *padapter);
178 void (*free_hal_data)(struct adapter *padapter);
180 u32 (*inirp_init)(struct adapter *padapter);
181 u32 (*inirp_deinit)(struct adapter *padapter);
182 void (*irp_reset)(struct adapter *padapter);
184 s32 (*init_xmit_priv)(struct adapter *padapter);
185 void (*free_xmit_priv)(struct adapter *padapter);
[all …]
Drtw_mlme_ext.h308 unsigned int (*func)(struct adapter *padapter, union recv_frame *precv_frame);
314 unsigned int (*func)(struct adapter *padapter, union recv_frame *precv_frame);
462 struct adapter *padapter; member
522 void init_mlme_default_rate_set(struct adapter *padapter);
523 void init_mlme_ext_priv(struct adapter *padapter);
524 int init_hw_mlme_ext(struct adapter *padapter);
526 extern void init_mlme_ext_timer(struct adapter *padapter);
527 extern void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta);
534 void get_rate_set(struct adapter *padapter, unsigned char *pbssrate, int *bssrate_len);
536 void UpdateBrateTbl(struct adapter *padapter, u8 *mBratesOS);
[all …]
Drtw_ap.h10 void init_mlme_ap_info(struct adapter *padapter);
11 void free_mlme_ap_info(struct adapter *padapter);
13 void update_beacon(struct adapter *padapter, u8 ie_id, u8 *oui, u8 tx);
14 void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level);
15 void expire_timeout_chk(struct adapter *padapter);
16 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta);
17 void start_bss_network(struct adapter *padapter, u8 *pbuf);
18 int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len);
19 void rtw_ap_restore_network(struct adapter *padapter);
20 void rtw_set_macaddr_acl(struct adapter *padapter, int mode);
[all …]
Drtw_mp.h22 struct adapter *padapter; member
34 typedef void(*wi_act_func)(void* padapter);
419 s32 init_mp_priv(struct adapter *padapter);
421 s32 MPT_InitializeAdapter(struct adapter *padapter, u8 Channel);
422 void MPT_DeInitAdapter(struct adapter *padapter);
423 s32 mp_start_test(struct adapter *padapter);
424 void mp_stop_test(struct adapter *padapter);
426 u32 _read_rfreg(struct adapter *padapter, u8 rfpath, u32 addr, u32 bitmask);
427 void _write_rfreg(struct adapter *padapter, u8 rfpath, u32 addr, u32 bitmask, u32 val);
429 u32 read_macreg(struct adapter *padapter, u32 addr, u32 sz);
[all …]
Dhal_btcoex.h23 void hal_btcoex_SetBTCoexist(struct adapter *padapter, u8 bBtExist);
24 bool hal_btcoex_IsBtExist(struct adapter *padapter);
26 void hal_btcoex_SetChipType(struct adapter *padapter, u8 chipType);
27 void hal_btcoex_SetPgAntNum(struct adapter *padapter, u8 antNum);
28 void hal_btcoex_SetSingleAntPath(struct adapter *padapter, u8 singleAntPath);
30 void hal_btcoex_Initialize(void *padapter);
31 void hal_btcoex_PowerOnSetting(struct adapter *padapter);
32 void hal_btcoex_InitHwConfig(struct adapter *padapter, u8 bWifiOnly);
34 void hal_btcoex_IpsNotify(struct adapter *padapter, u8 type);
35 void hal_btcoex_LpsNotify(struct adapter *padapter, u8 type);
[all …]
/Linux-v5.10/drivers/staging/rtl8188eu/core/
Drtw_pwrctrl.c15 static int rtw_hw_suspend(struct adapter *padapter) in rtw_hw_suspend() argument
17 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_suspend()
18 struct net_device *pnetdev = padapter->pnetdev; in rtw_hw_suspend()
20 if ((!padapter->bup) || (padapter->bDriverStopped) || in rtw_hw_suspend()
21 (padapter->bSurpriseRemoved)) { in rtw_hw_suspend()
23 padapter->bup, padapter->bDriverStopped, in rtw_hw_suspend()
24 padapter->bSurpriseRemoved); in rtw_hw_suspend()
29 LeaveAllPowerSaveMode(padapter); in rtw_hw_suspend()
41 rtw_disassoc_cmd(padapter, 500, false); in rtw_hw_suspend()
45 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_hw_suspend()
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/core/
Drtw_eeprom.c13 void up_clk(_adapter *padapter, u16 *x) in up_clk() argument
17 rtw_write8(padapter, EE_9346CR, (u8)*x); in up_clk()
24 void down_clk(_adapter *padapter, u16 *x) in down_clk() argument
28 rtw_write8(padapter, EE_9346CR, (u8)*x); in down_clk()
33 void shift_out_bits(_adapter *padapter, u16 data, u16 count) in shift_out_bits() argument
38 if (padapter->bSurpriseRemoved == true) { in shift_out_bits()
43 x = rtw_read8(padapter, EE_9346CR); in shift_out_bits()
51 if (padapter->bSurpriseRemoved == true) { in shift_out_bits()
55 rtw_write8(padapter, EE_9346CR, (u8)x); in shift_out_bits()
57 up_clk(padapter, &x); in shift_out_bits()
[all …]
Drtw_pwrctrl.c15 void _ips_enter(struct adapter *padapter) in _ips_enter() argument
17 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in _ips_enter()
34 rtw_ips_pwr_down(padapter); in _ips_enter()
41 void ips_enter(struct adapter *padapter) in ips_enter() argument
43 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in ips_enter()
46 hal_btcoex_IpsNotify(padapter, pwrpriv->ips_mode_req); in ips_enter()
49 _ips_enter(padapter); in ips_enter()
53 int _ips_leave(struct adapter *padapter) in _ips_leave() argument
55 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in _ips_leave()
64 result = rtw_ips_pwr_up(padapter); in _ips_leave()
[all …]
Drtw_btcoex.c12 void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 mediaStatus) in rtw_btcoex_MediaStatusNotify() argument
15 && (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true)) { in rtw_btcoex_MediaStatusNotify()
16 rtw_hal_set_hwreg(padapter, HW_VAR_DL_RSVD_PAGE, NULL); in rtw_btcoex_MediaStatusNotify()
19 hal_btcoex_MediaStatusNotify(padapter, mediaStatus); in rtw_btcoex_MediaStatusNotify()
22 void rtw_btcoex_HaltNotify(struct adapter *padapter) in rtw_btcoex_HaltNotify() argument
24 if (!padapter->bup) { in rtw_btcoex_HaltNotify()
26 FUNC_ADPT_ARG(padapter), padapter->bup); in rtw_btcoex_HaltNotify()
31 if (padapter->bSurpriseRemoved) { in rtw_btcoex_HaltNotify()
33 FUNC_ADPT_ARG(padapter), padapter->bSurpriseRemoved); in rtw_btcoex_HaltNotify()
38 hal_btcoex_HaltNotify(padapter); in rtw_btcoex_HaltNotify()
[all …]
Drtw_efuse.c37 struct adapter *padapter,
42 struct adapter *padapter, in Efuse_Read1ByteFromFakeContent() argument
58 struct adapter *padapter,
63 struct adapter *padapter, in Efuse_Write1ByteToFakeContent() argument
96 struct adapter *padapter, in Efuse_PowerSwitch() argument
100 padapter->HalFunc.EfusePowerSwitch(padapter, bWrite, PwrState); in Efuse_PowerSwitch()
121 struct adapter *padapter, in Efuse_GetCurrentSize() argument
125 return padapter->HalFunc.EfuseGetCurrentSize(padapter, efuseType, in Efuse_GetCurrentSize()
187 struct adapter *padapter, in EFUSE_GetEfuseDefinition() argument
194 padapter->HalFunc.EFUSEGetEfuseDefinition(padapter, efuseType, type, pOut, bPseudoTest); in EFUSE_GetEfuseDefinition()
[all …]
/Linux-v5.10/drivers/staging/rtl8188eu/include/
Drtw_mlme_ext.h394 struct adapter *padapter; member
444 int init_hw_mlme_ext(struct adapter *padapter);
446 void init_mlme_ext_timer(struct adapter *padapter);
451 u8 judge_network_type(struct adapter *padapter, unsigned char *rate);
452 void get_rate_set(struct adapter *padapter, unsigned char *pbssrate, int *len);
453 void UpdateBrateTbl(struct adapter *padapter, u8 *mBratesOS);
456 void Save_DM_Func_Flag(struct adapter *padapter);
457 void Restore_DM_Func_Flag(struct adapter *padapter);
458 void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable);
460 void Set_MSR(struct adapter *padapter, u8 type);
[all …]
Dhal_intf.h158 void rtw_hal_def_value_init(struct adapter *padapter);
160 void rtw_hal_free_data(struct adapter *padapter);
162 void rtw_hal_dm_init(struct adapter *padapter);
163 void rtw_hal_sw_led_init(struct adapter *padapter);
164 void rtw_hal_sw_led_deinit(struct adapter *padapter);
166 u32 rtw_hal_power_on(struct adapter *padapter);
167 uint rtw_hal_init(struct adapter *padapter);
168 uint rtw_hal_deinit(struct adapter *padapter);
169 void rtw_hal_stop(struct adapter *padapter);
170 void rtw_hal_set_hwreg(struct adapter *padapter, u8 variable, u8 *val);
[all …]
Drtw_ap.h16 void rtw_indicate_sta_assoc_event(struct adapter *padapter,
18 void rtw_indicate_sta_disassoc_event(struct adapter *padapter,
20 void init_mlme_ap_info(struct adapter *padapter);
21 void free_mlme_ap_info(struct adapter *padapter);
22 void update_beacon(struct adapter *padapter, u8 ie_id,
24 void add_RATid(struct adapter *padapter, struct sta_info *psta,
26 void expire_timeout_chk(struct adapter *padapter);
27 void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta);
28 int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len);
29 void rtw_set_macaddr_acl(struct adapter *padapter, int mode);
[all …]

12345678