Home
last modified time | relevance | path

Searched refs:adapt (Results 1 – 25 of 52) sorted by relevance

123

/Linux-v5.10/drivers/staging/rtl8188eu/hal/
Dphy.c32 u32 phy_query_bb_reg(struct adapter *adapt, u32 regaddr, u32 bitmask) in phy_query_bb_reg() argument
36 original_value = usb_read32(adapt, regaddr); in phy_query_bb_reg()
41 void phy_set_bb_reg(struct adapter *adapt, u32 regaddr, u32 bitmask, u32 data) in phy_set_bb_reg() argument
46 original_value = usb_read32(adapt, regaddr); in phy_set_bb_reg()
51 usb_write32(adapt, regaddr, data); in phy_set_bb_reg()
54 static u32 rf_serial_read(struct adapter *adapt, enum rf_radio_path rfpath, u32 offset) in rf_serial_read() argument
57 struct bb_reg_def *phyreg = &adapt->HalData->PHYRegDef[rfpath]; in rf_serial_read()
63 tmplong = phy_query_bb_reg(adapt, rFPGA0_XA_HSSIParameter2, bMaskDWord); in rf_serial_read()
67 tmplong2 = phy_query_bb_reg(adapt, phyreg->rfHSSIPara2, in rf_serial_read()
73 phy_set_bb_reg(adapt, rFPGA0_XA_HSSIParameter2, bMaskDWord, in rf_serial_read()
[all …]
Dfw.c24 static void _rtl88e_enable_fw_download(struct adapter *adapt, bool enable) in _rtl88e_enable_fw_download() argument
29 tmp = usb_read8(adapt, REG_MCUFWDL); in _rtl88e_enable_fw_download()
30 usb_write8(adapt, REG_MCUFWDL, tmp | 0x01); in _rtl88e_enable_fw_download()
32 tmp = usb_read8(adapt, REG_MCUFWDL + 2); in _rtl88e_enable_fw_download()
33 usb_write8(adapt, REG_MCUFWDL + 2, tmp & 0xf7); in _rtl88e_enable_fw_download()
35 tmp = usb_read8(adapt, REG_MCUFWDL); in _rtl88e_enable_fw_download()
36 usb_write8(adapt, REG_MCUFWDL, tmp & 0xfe); in _rtl88e_enable_fw_download()
38 usb_write8(adapt, REG_MCUFWDL + 1, 0x00); in _rtl88e_enable_fw_download()
42 static void _rtl88e_fw_block_write(struct adapter *adapt, in _rtl88e_fw_block_write() argument
56 usb_write32(adapt, write_address, dword_buffer[i]); in _rtl88e_fw_block_write()
[all …]
Drtl8188e_cmd.c22 static u8 _is_fw_read_cmd_down(struct adapter *adapt, u8 msgbox_num) in _is_fw_read_cmd_down() argument
30 valid = usb_read8(adapt, REG_HMETFR) & BIT(msgbox_num); in _is_fw_read_cmd_down()
48 static s32 FillH2CCmd_88E(struct adapter *adapt, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer) in FillH2CCmd_88E() argument
58 if (!adapt->bFWReady) { in FillH2CCmd_88E()
68 if (adapt->bSurpriseRemoved) in FillH2CCmd_88E()
72 h2c_box_num = adapt->HalData->LastHMEBoxNum; in FillH2CCmd_88E()
74 if (!_is_fw_read_cmd_down(adapt, h2c_box_num)) { in FillH2CCmd_88E()
91 usb_write8(adapt, msgbox_ex_addr + cmd_idx, *((u8 *)(&h2c_cmd_ex) + cmd_idx)); in FillH2CCmd_88E()
96 usb_write8(adapt, msgbox_addr + cmd_idx, *((u8 *)(&h2c_cmd) + cmd_idx)); in FillH2CCmd_88E()
98 adapt->HalData->LastHMEBoxNum = in FillH2CCmd_88E()
[all …]
Dhal_intf.c11 uint rtw_hal_init(struct adapter *adapt) in rtw_hal_init() argument
15 adapt->hw_init_completed = false; in rtw_hal_init()
17 status = rtl8188eu_hal_init(adapt); in rtw_hal_init()
20 adapt->hw_init_completed = true; in rtw_hal_init()
22 if (adapt->registrypriv.notch_filter == 1) in rtw_hal_init()
23 rtw_hal_notch_filter(adapt, 1); in rtw_hal_init()
25 adapt->hw_init_completed = false; in rtw_hal_init()
35 uint rtw_hal_deinit(struct adapter *adapt) in rtw_hal_deinit() argument
39 status = rtl8188eu_hal_deinit(adapt); in rtw_hal_deinit()
42 adapt->hw_init_completed = false; in rtw_hal_deinit()
[all …]
Drf_cfg.c12 static bool check_condition(struct adapter *adapt, const u32 condition) in check_condition() argument
14 struct odm_dm_struct *odm = &adapt->HalData->odmpriv; in check_condition()
154 static void rtl_rfreg_delay(struct adapter *adapt, enum rf_radio_path rfpath, u32 addr, u32 mask, u… in rtl_rfreg_delay() argument
169 phy_set_rf_reg(adapt, rfpath, addr, mask, data); in rtl_rfreg_delay()
174 static void rtl8188e_config_rf_reg(struct adapter *adapt, u32 addr, u32 data) in rtl8188e_config_rf_reg() argument
179 rtl_rfreg_delay(adapt, RF_PATH_A, addr | maskforphyset, in rtl8188e_config_rf_reg()
184 static bool rtl88e_phy_config_rf_with_headerfile(struct adapter *adapt) in rtl88e_phy_config_rf_with_headerfile() argument
195 rtl8188e_config_rf_reg(adapt, v1, v2); in rtl88e_phy_config_rf_with_headerfile()
198 if (!check_condition(adapt, array[i])) { in rtl88e_phy_config_rf_with_headerfile()
208 rtl8188e_config_rf_reg(adapt, v1, v2); in rtl88e_phy_config_rf_with_headerfile()
[all …]
Dbb_cfg.c145 static bool set_baseband_agc_config(struct adapter *adapt) in set_baseband_agc_config() argument
156 phy_set_bb_reg(adapt, v1, bMaskDWord, v2); in set_baseband_agc_config()
359 static void rtl_bb_delay(struct adapter *adapt, u32 addr, u32 data) in rtl_bb_delay() argument
374 phy_set_bb_reg(adapt, addr, bMaskDWord, data); in rtl_bb_delay()
380 static bool set_baseband_phy_config(struct adapter *adapt) in set_baseband_phy_config() argument
391 rtl_bb_delay(adapt, v1, v2); in set_baseband_phy_config()
533 static void rtl_addr_delay(struct adapter *adapt, in rtl_addr_delay() argument
556 store_pwrindex_offset(adapt, addr, bit_mask, data); in rtl_addr_delay()
560 static bool config_bb_with_pgheader(struct adapter *adapt) in config_bb_with_pgheader() argument
572 rtl_addr_delay(adapt, v1, v2, v3); in config_bb_with_pgheader()
[all …]
Drtl8188eu_xmit.c16 s32 rtw_hal_init_xmit_priv(struct adapter *adapt) in rtw_hal_init_xmit_priv() argument
18 struct xmit_priv *pxmitpriv = &adapt->xmitpriv; in rtw_hal_init_xmit_priv()
24 static u8 urb_zero_packet_chk(struct adapter *adapt, int sz) in urb_zero_packet_chk() argument
26 return !((sz + TXDESC_SIZE) % adapt->HalData->UsbBulkOutSize); in urb_zero_packet_chk()
49 void rtl8188e_fill_fake_txdesc(struct adapter *adapt, u8 *desc, u32 BufferLen, u8 ispspoll, u8 is… in rtl8188e_fill_fake_txdesc() argument
164 struct adapter *adapt = pxmitframe->padapter; in update_txdesc() local
166 struct odm_dm_struct *odmpriv = &adapt->HalData->odmpriv; in update_txdesc()
168 struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv; in update_txdesc()
171 if (adapt->registrypriv.mp_mode == 0) { in update_txdesc()
172 if ((!bagg_pkt) && (urb_zero_packet_chk(adapt, sz) == 0)) { in update_txdesc()
[all …]
Drf.c14 void rtl88eu_phy_rf6052_set_bandwidth(struct adapter *adapt, in rtl88eu_phy_rf6052_set_bandwidth() argument
17 struct hal_data_8188e *hal_data = adapt->HalData; in rtl88eu_phy_rf6052_set_bandwidth()
23 phy_set_rf_reg(adapt, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, in rtl88eu_phy_rf6052_set_bandwidth()
29 phy_set_rf_reg(adapt, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, in rtl88eu_phy_rf6052_set_bandwidth()
37 void rtl88eu_phy_rf6052_set_cck_txpower(struct adapter *adapt, u8 *powerlevel) in rtl88eu_phy_rf6052_set_cck_txpower() argument
39 struct hal_data_8188e *hal_data = adapt->HalData; in rtl88eu_phy_rf6052_set_cck_txpower()
41 struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv; in rtl88eu_phy_rf6052_set_cck_txpower()
104 phy_set_bb_reg(adapt, rTxAGC_A_CCK1_Mcs32, bMaskByte1, tmpval); in rtl88eu_phy_rf6052_set_cck_txpower()
106 phy_set_bb_reg(adapt, rTxAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); in rtl88eu_phy_rf6052_set_cck_txpower()
110 phy_set_bb_reg(adapt, rTxAGC_B_CCK11_A_CCK2_11, bMaskByte0, tmpval); in rtl88eu_phy_rf6052_set_cck_txpower()
[all …]
Dusb_halinit.c18 static void _ConfigNormalChipOutEP_8188E(struct adapter *adapt, u8 NumOutPipe) in _ConfigNormalChipOutEP_8188E() argument
20 struct hal_data_8188e *haldata = adapt->HalData; in _ConfigNormalChipOutEP_8188E()
41 static bool HalUsbSetQueuePipeMapping8188EUsb(struct adapter *adapt, u8 NumInPipe, u8 NumOutPipe) in HalUsbSetQueuePipeMapping8188EUsb() argument
45 _ConfigNormalChipOutEP_8188E(adapt, NumOutPipe); in HalUsbSetQueuePipeMapping8188EUsb()
48 if (adapt->HalData->OutEpNumber == 1) { in HalUsbSetQueuePipeMapping8188EUsb()
55 result = hal_mapping_out_pipe(adapt, NumOutPipe); in HalUsbSetQueuePipeMapping8188EUsb()
60 void rtw_hal_chip_configure(struct adapter *adapt) in rtw_hal_chip_configure() argument
62 struct hal_data_8188e *haldata = adapt->HalData; in rtw_hal_chip_configure()
63 struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(adapt); in rtw_hal_chip_configure()
81 HalUsbSetQueuePipeMapping8188EUsb(adapt, pdvobjpriv->RtNumInPipes, in rtw_hal_chip_configure()
[all …]
Dmac_cfg.c106 bool rtl88eu_phy_mac_config(struct adapter *adapt) in rtl88eu_phy_mac_config() argument
116 usb_write8(adapt, ptrarray[i], (u8)ptrarray[i + 1]); in rtl88eu_phy_mac_config()
118 usb_write8(adapt, REG_MAX_AGGR_NUM, MAX_AGGR_NUM); in rtl88eu_phy_mac_config()
Dhal8188e_rate_adaptive.c339 struct adapter *adapt = dm_odm->Adapter; in odm_ARFBRefresh_8188E() local
366 MaskFromReg = usb_read32(adapt, REG_ARFR0); in odm_ARFBRefresh_8188E()
370 MaskFromReg = usb_read32(adapt, REG_ARFR1); in odm_ARFBRefresh_8188E()
374 MaskFromReg = usb_read32(adapt, REG_ARFR2); in odm_ARFBRefresh_8188E()
378 MaskFromReg = usb_read32(adapt, REG_ARFR3); in odm_ARFBRefresh_8188E()
670 struct adapter *adapt = dm_odm->Adapter; in ODM_RA_Set_TxRPT_Time() local
672 usb_write16(adapt, REG_TX_RPT_TIME, minRptTime); in ODM_RA_Set_TxRPT_Time()
/Linux-v5.10/drivers/staging/rtl8188eu/include/
Dphy.h8 bool rtl88eu_phy_mac_config(struct adapter *adapt);
9 bool rtl88eu_phy_rf_config(struct adapter *adapt);
10 bool rtl88eu_phy_bb_config(struct adapter *adapt);
12 u32 phy_query_bb_reg(struct adapter *adapt, u32 regaddr, u32 bitmask);
13 void phy_set_bb_reg(struct adapter *adapt, u32 regaddr, u32 bitmask, u32 data);
14 u32 rtw_hal_read_rfreg(struct adapter *adapt, enum rf_radio_path rf_path,
16 void phy_set_rf_reg(struct adapter *adapt, enum rf_radio_path rf_path,
19 void phy_set_tx_power_level(struct adapter *adapt, u8 channel);
24 void rtl88eu_dm_txpower_tracking_callback_thermalmeter(struct adapter *adapt);
Drf.h5 void rtl88eu_phy_rf6052_set_bandwidth(struct adapter *adapt,
7 void rtl88eu_phy_rf6052_set_cck_txpower(struct adapter *adapt,
9 void rtl88eu_phy_rf6052_set_ofdm_txpower(struct adapter *adapt,
Drtw_cmd.h332 void rtw_createbss_cmd_callback(struct adapter *adapt, struct cmd_obj *pcmd);
333 void rtw_readtssi_cmdrsp_callback(struct adapter *adapt, struct cmd_obj *cmd);
335 void rtw_setstaKey_cmdrsp_callback(struct adapter *adapt, struct cmd_obj *cmd);
336 void rtw_setassocsta_cmdrsp_callback(struct adapter *adapt, struct cmd_obj *cm);
337 void rtw_getrttbl_cmdrsp_callback(struct adapter *adapt, struct cmd_obj *cmd);
Drtl8188e_dm.h35 void rtl8188e_InitHalDm(struct adapter *adapt);
37 void AntDivCompare8188E(struct adapter *adapt, struct wlan_bssid_ex *dst,
Drtw_ioctl_set.h14 u8 rtw_set_802_11_authentication_mode(struct adapter *adapt,
24 u8 rtw_set_802_11_ssid(struct adapter *adapt, struct ndis_802_11_ssid *ssid);
Dsta_info.h352 u32 rtw_free_stainfo(struct adapter *adapt, struct sta_info *psta);
353 void rtw_free_all_stainfo(struct adapter *adapt);
355 u32 rtw_init_bcmc_stainfo(struct adapter *adapt);
Drecv_osdep.h22 int rtw_os_recvbuf_resource_alloc(struct adapter *adapt, struct recv_buf *buf);
Dfw.h42 int rtl88eu_download_fw(struct adapter *adapt);
Dhal_intf.h155 void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_level);
198 void rtw_hal_add_ra_tid(struct adapter *adapt, u32 bitmap, u8 arg, u8 level);
Drtl8188e_cmd.h68 void rtl8188e_set_FwMediaStatus_cmd(struct adapter *adapt, __le16 mstatus_rpt);
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/
Dusb_ops_linux.c13 static void interrupt_handler_8188eu(struct adapter *adapt, u16 pkt_len, u8 *pbuf) in interrupt_handler_8188eu() argument
15 struct hal_data_8188e *haldata = adapt->HalData; in interrupt_handler_8188eu()
32 static int recvbuf2recvframe(struct adapter *adapt, struct sk_buff *pskb) in recvbuf2recvframe() argument
44 struct hal_data_8188e *haldata = adapt->HalData; in recvbuf2recvframe()
45 struct recv_priv *precvpriv = &adapt->recvpriv; in recvbuf2recvframe()
119 pkt_copy = netdev_alloc_skb(adapt->pnetdev, alloc_sz); in recvbuf2recvframe()
121 pkt_copy->dev = adapt->pnetdev; in recvbuf2recvframe()
155 handle_txrpt_ccx_88e(adapt, precvframe->pkt->data); in recvbuf2recvframe()
165 interrupt_handler_8188eu(adapt, pattrib->pkt_len, precvframe->pkt->data); in recvbuf2recvframe()
201 static int usbctrl_vendorreq(struct adapter *adapt, u8 request, u16 value, u16 index, void *pdata, … in usbctrl_vendorreq() argument
[all …]
/Linux-v5.10/drivers/input/touchscreen/
Dmxs-lradc-ts.c610 u32 ts_wires = 0, adapt; in mxs_lradc_ts_probe() local
631 if (of_property_read_u32(node, "fsl,ave-ctrl", &adapt)) { in mxs_lradc_ts_probe()
634 if (adapt >= 1 && adapt <= 32) { in mxs_lradc_ts_probe()
635 ts->over_sample_cnt = adapt; in mxs_lradc_ts_probe()
638 adapt); in mxs_lradc_ts_probe()
643 if (of_property_read_u32(node, "fsl,ave-delay", &adapt)) { in mxs_lradc_ts_probe()
646 if (adapt >= 2 && adapt <= LRADC_DELAY_DELAY_MASK + 1) { in mxs_lradc_ts_probe()
647 ts->over_sample_delay = adapt; in mxs_lradc_ts_probe()
650 adapt); in mxs_lradc_ts_probe()
655 if (of_property_read_u32(node, "fsl,settling", &adapt)) { in mxs_lradc_ts_probe()
[all …]
/Linux-v5.10/drivers/scsi/
Dips.c4223 if (ha->adapt) { in ips_free()
4226 sizeof (IPS_IO_CMD), ha->adapt, in ips_free()
4227 ha->adapt->hw_status_start); in ips_free()
4228 ha->adapt = NULL; in ips_free()
4382 ha->dummy->ccsar = cpu_to_le32(ha->adapt->hw_status_start in ips_init_scb()
4393 scb->cmd.basic_io.ccsar = cpu_to_le32(ha->adapt->hw_status_start in ips_init_scb()
5139 ha->adapt->p_status_start = ha->adapt->status; in ips_statinit()
5140 ha->adapt->p_status_end = ha->adapt->status + IPS_MAX_CMDS; in ips_statinit()
5141 ha->adapt->p_status_tail = ha->adapt->status; in ips_statinit()
5143 phys_status_start = ha->adapt->hw_status_start; in ips_statinit()
[all …]
/Linux-v5.10/drivers/misc/echo/
Decho.h131 int16_t adapt; member

123