Home
last modified time | relevance | path

Searched refs:op_mode (Results 1 – 25 of 57) sorted by relevance

123

/drivers/net/wireless/iwlwifi/
Diwl-op-mode.h149 void (*stop)(struct iwl_op_mode *op_mode);
150 int (*rx)(struct iwl_op_mode *op_mode, struct iwl_rx_cmd_buffer *rxb,
152 void (*napi_add)(struct iwl_op_mode *op_mode,
157 void (*queue_full)(struct iwl_op_mode *op_mode, int queue);
158 void (*queue_not_full)(struct iwl_op_mode *op_mode, int queue);
159 bool (*hw_rf_kill)(struct iwl_op_mode *op_mode, bool state);
160 void (*free_skb)(struct iwl_op_mode *op_mode, struct sk_buff *skb);
161 void (*nic_error)(struct iwl_op_mode *op_mode);
162 void (*cmd_queue_full)(struct iwl_op_mode *op_mode);
163 void (*nic_config)(struct iwl_op_mode *op_mode);
[all …]
Diwl-trans.h387 struct iwl_op_mode *op_mode; member
580 struct iwl_op_mode *op_mode; member
616 trans->op_mode = trans_cfg->op_mode; in iwl_trans_configure()
635 trans->op_mode = NULL; in iwl_trans_op_mode_leave()
934 if (WARN_ON_ONCE(!trans->op_mode)) in iwl_trans_fw_error()
939 iwl_op_mode_nic_error(trans->op_mode); in iwl_trans_fw_error()
Diwl-drv.c128 struct iwl_op_mode *op_mode; member
943 struct iwl_op_mode *op_mode = NULL; in _iwl_op_mode_start() local
951 return op_mode; in _iwl_op_mode_start()
956 op_mode = ops->start(drv->trans, drv->cfg, &drv->fw, dbgfs_dir); in _iwl_op_mode_start()
959 if (!op_mode) { in _iwl_op_mode_start()
965 return op_mode; in _iwl_op_mode_start()
971 if (drv->op_mode) { in _iwl_op_mode_stop()
972 iwl_op_mode_stop(drv->op_mode); in _iwl_op_mode_stop()
973 drv->op_mode = NULL; in _iwl_op_mode_stop()
1136 drv->op_mode = _iwl_op_mode_start(drv, op); in iwl_req_fw_callback()
[all …]
/drivers/net/wireless/iwlwifi/mvm/
Dops.c144 static void iwl_mvm_nic_config(struct iwl_op_mode *op_mode) in iwl_mvm_nic_config() argument
146 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_mvm_nic_config()
378 struct iwl_op_mode *op_mode; in iwl_op_mode_mvm_start() local
406 op_mode = hw->priv; in iwl_op_mode_mvm_start()
407 op_mode->ops = &iwl_mvm_ops; in iwl_op_mode_mvm_start()
409 mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_op_mode_mvm_start()
454 trans_cfg.op_mode = op_mode; in iwl_op_mode_mvm_start()
562 return op_mode; in iwl_op_mode_mvm_start()
576 static void iwl_op_mode_mvm_stop(struct iwl_op_mode *op_mode) in iwl_op_mode_mvm_stop() argument
578 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_op_mode_mvm_stop()
[all …]
Drs.c1241 struct iwl_op_mode *op_mode = (struct iwl_op_mode *)mvm_r; in rs_mac80211_tx_status() local
1242 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in rs_mac80211_tx_status()
2438 struct iwl_op_mode *op_mode __maybe_unused = in rs_get_rate()
2440 struct iwl_mvm *mvm __maybe_unused = IWL_OP_MODE_GET_MVM(op_mode); in rs_get_rate()
2466 struct iwl_op_mode *op_mode = (struct iwl_op_mode *)mvm_rate; in rs_alloc_sta() local
2467 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in rs_alloc_sta()
2726 struct iwl_op_mode *op_mode = in rs_rate_update() local
2728 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in rs_rate_update()
2953 struct iwl_op_mode *op_mode __maybe_unused = mvm_r; in rs_free_sta()
2954 struct iwl_mvm *mvm __maybe_unused = IWL_OP_MODE_GET_MVM(op_mode); in rs_free_sta()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_vnic.c194 u32 op_mode, priv_level; in qlcnic_83xx_config_vnic_opmode() local
199 op_mode = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_config_vnic_opmode()
201 if (op_mode == QLC_83XX_DEFAULT_OPMODE) in qlcnic_83xx_config_vnic_opmode()
204 priv_level = QLC_83XX_GET_FUNC_PRIVILEGE(op_mode, in qlcnic_83xx_config_vnic_opmode()
208 ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_83xx_config_vnic_opmode()
213 ahw->op_mode = QLCNIC_PRIV_FUNC; in qlcnic_83xx_config_vnic_opmode()
218 ahw->op_mode = QLCNIC_MGMT_FUNC; in qlcnic_83xx_config_vnic_opmode()
Dqlcnic_sysfs.c225 if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) { in qlcnic_store_beacon()
491 u32 op_mode; in validate_esw_config() local
495 op_mode = readl(ahw->pci_base0 + QLCNIC_DRV_OP_MODE); in validate_esw_config()
497 op_mode = QLCRDX(ahw, QLC_83XX_DRV_OP_MODE); in validate_esw_config()
504 if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC) in validate_esw_config()
508 switch (esw_cfg[i].op_mode) { in validate_esw_config()
511 ret = QLC_DEV_GET_DRV(op_mode, pci_func); in validate_esw_config()
513 ret = QLC_83XX_GET_FUNC_PRIVILEGE(op_mode, in validate_esw_config()
557 u8 op_mode = 0, pci_func; in qlcnic_sysfs_write_esw_config() local
571 if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC) in qlcnic_sysfs_write_esw_config()
[all …]
Dqlcnic_ctx.c877 npar_info->op_mode = le16_to_cpu(nic_info->op_mode); in qlcnic_82xx_get_nic_info()
907 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_82xx_set_nic_info()
918 nic_info->op_mode = cpu_to_le16(nic->op_mode); in qlcnic_82xx_set_nic_info()
1029 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC || in qlcnic_config_port_mirroring()
1072 if ((adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) && in qlcnic_get_port_stats()
1192 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_get_eswitch_stats()
1245 if (ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_clear_esw_stats()
1324 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) { in qlcnic_config_switch_port()
1342 switch (esw_cfg->op_mode) { in qlcnic_config_switch_port()
1374 __func__, esw_cfg->op_mode); in qlcnic_config_switch_port()
[all …]
Dqlcnic_main.c969 if (ahw->op_mode == QLCNIC_MGMT_FUNC) in qlcnic_get_act_pci_func()
1113 u32 op_mode, priv_level; in qlcnic_check_vf() local
1123 op_mode = QLC_SHARED_REG_RD32(adapter, QLCNIC_DRV_OP_MODE); in qlcnic_check_vf()
1124 if (op_mode == QLC_DEV_DRV_DEFAULT) in qlcnic_check_vf()
1127 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_vf()
1130 adapter->ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_check_vf()
1256 if (ahw->op_mode != QLCNIC_NON_PRIV_FUNC) { in qlcnic_check_options()
1451 u32 op_mode, priv_level; in qlcnic_check_eswitch_mode() local
1461 op_mode = QLC_SHARED_REG_RD32(adapter, QLCNIC_DRV_OP_MODE); in qlcnic_check_eswitch_mode()
1462 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_eswitch_mode()
[all …]
Dqlcnic_83xx_hw.c757 u32 op_mode, priv_level; in qlcnic_83xx_check_vf() local
769 op_mode = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_check_vf()
770 if (op_mode == QLC_83XX_DEFAULT_OPMODE) in qlcnic_83xx_check_vf()
773 priv_level = QLC_83XX_GET_FUNC_PRIVILEGE(op_mode, in qlcnic_83xx_check_vf()
777 ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_83xx_check_vf()
840 __func__, opcode, cmd->type, ahw->pci_func, ahw->op_mode); in qlcnic_83xx_poll_for_mbx_completion()
863 ahw->op_mode); in qlcnic_83xx_issue_cmd()
873 ahw->op_mode); in qlcnic_83xx_issue_cmd()
886 ahw->op_mode); in qlcnic_83xx_issue_cmd()
1581 if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) { in qlcnic_83xx_set_led()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Dmain.c1167 struct iwl_op_mode *op_mode; in iwl_op_mode_dvm_start() local
1189 op_mode = hw->priv; in iwl_op_mode_dvm_start()
1190 op_mode->ops = &iwl_dvm_ops; in iwl_op_mode_dvm_start()
1191 priv = IWL_OP_MODE_GET_DVM(op_mode); in iwl_op_mode_dvm_start()
1243 trans_cfg.op_mode = op_mode; in iwl_op_mode_dvm_start()
1413 return op_mode; in iwl_op_mode_dvm_start()
1430 op_mode = NULL; in iwl_op_mode_dvm_start()
1431 return op_mode; in iwl_op_mode_dvm_start()
1434 static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) in iwl_op_mode_dvm_stop() argument
1436 struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); in iwl_op_mode_dvm_stop()
[all …]
/drivers/usb/host/
Dfsl-mph-dr-of.c24 enum fsl_usb2_operating_modes op_mode; /* operating mode */ member
31 .op_mode = FSL_USB2_DR_HOST,
36 .op_mode = FSL_USB2_DR_OTG,
41 .op_mode = FSL_USB2_DR_DEVICE,
202 pdata->operating_mode = dev_data->op_mode; in fsl_usb2_mph_dr_of_probe()
/drivers/net/ethernet/dec/tulip/
Duli526x.c170 u8 op_mode; /* real work media mode */ member
565 db->op_mode = db->media_mode; /* Force Mode */ in uli526x_init()
955 if(db->op_mode==ULI526X_100MHF || db->op_mode==ULI526X_100MFD) in ULi_ethtool_gset()
959 if(db->op_mode==ULI526X_10MFD || db->op_mode==ULI526X_100MFD) in ULi_ethtool_gset()
1100 (db->op_mode == ULI526X_100MHF || in uli526x_timer()
1101 db->op_mode == ULI526X_100MFD) in uli526x_timer()
1103 (db->op_mode == ULI526X_10MFD || in uli526x_timer()
1104 db->op_mode == ULI526X_100MFD) in uli526x_timer()
1538 case 0x1000: db->op_mode = ULI526X_10MHF; break; in uli526x_sense_speed()
1539 case 0x2000: db->op_mode = ULI526X_10MFD; break; in uli526x_sense_speed()
[all …]
Ddmfe.c256 u8 op_mode; /* real work media mode */ member
654 db->op_mode = db->media_mode; /* Force Mode */ in dmfe_init_dm910x()
1267 SHOW_MEDIA_TYPE(db->op_mode); in dmfe_timer()
1663 case 0x1000: db->op_mode = DMFE_10MHF; break; in dmfe_sense_speed()
1664 case 0x2000: db->op_mode = DMFE_10MFD; break; in dmfe_sense_speed()
1665 case 0x4000: db->op_mode = DMFE_100MHF; break; in dmfe_sense_speed()
1666 case 0x8000: db->op_mode = DMFE_100MFD; break; in dmfe_sense_speed()
1667 default: db->op_mode = DMFE_10MHF; in dmfe_sense_speed()
1672 db->op_mode = DMFE_10MHF; in dmfe_sense_speed()
1749 if (db->op_mode & 0x4) in dmfe_process_mode()
[all …]
/drivers/staging/vt6655/
Dpower.c81 if (pDevice->op_mode != NL80211_IFTYPE_ADHOC) { in PSvEnablePowerSaving()
110 if (pDevice->op_mode != NL80211_IFTYPE_ADHOC && in PSvEnablePowerSaving()
111 pDevice->op_mode == NL80211_IFTYPE_STATION) in PSvEnablePowerSaving()
146 if (pDevice->op_mode == NL80211_IFTYPE_STATION) in PSvDisablePowerSaving()
Drxtx.c854 if ((pDevice->op_mode == NL80211_IFTYPE_ADHOC) || in s_vFillRTSHead()
855 (pDevice->op_mode == NL80211_IFTYPE_AP)) { in s_vFillRTSHead()
860 if (pDevice->op_mode == NL80211_IFTYPE_AP) in s_vFillRTSHead()
918 if ((pDevice->op_mode == NL80211_IFTYPE_ADHOC) || in s_vFillRTSHead()
919 (pDevice->op_mode == NL80211_IFTYPE_AP)) { in s_vFillRTSHead()
925 if (pDevice->op_mode == NL80211_IFTYPE_AP) in s_vFillRTSHead()
951 if ((pDevice->op_mode == NL80211_IFTYPE_ADHOC) || in s_vFillRTSHead()
952 (pDevice->op_mode == NL80211_IFTYPE_AP)) { in s_vFillRTSHead()
958 if (pDevice->op_mode == NL80211_IFTYPE_AP) in s_vFillRTSHead()
991 if ((pDevice->op_mode == NL80211_IFTYPE_ADHOC) || in s_vFillRTSHead()
[all …]
Dcard.c701 (pDevice->op_mode == NL80211_IFTYPE_ADHOC)) { in CARDbStartTxPacket()
723 unsigned char *pbyBSSID, enum nl80211_iftype op_mode) in CARDbSetBSSID() argument
728 if (op_mode == NL80211_IFTYPE_ADHOC) in CARDbSetBSSID()
733 if (op_mode == NL80211_IFTYPE_AP) in CARDbSetBSSID()
738 if (op_mode == NL80211_IFTYPE_UNSPECIFIED) { in CARDbSetBSSID()
752 pDevice->op_mode = op_mode; in CARDbSetBSSID()
/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_plane.c136 uint32_t op_mode = 0; in mdp4_plane_mode_set() local
151 op_mode |= MDP4_PIPE_OP_MODE_SCALEX_EN; in mdp4_plane_mode_set()
156 op_mode |= MDP4_PIPE_OP_MODE_SCALEY_EN; in mdp4_plane_mode_set()
196 mdp4_write(mdp4_kms, REG_MDP4_PIPE_OP_MODE(pipe), op_mode); in mdp4_plane_mode_set()
/drivers/net/wireless/ath/ath5k/
Dpcu.c875 ath5k_hw_set_opmode(struct ath5k_hw *ah, enum nl80211_iftype op_mode) in ath5k_hw_set_opmode() argument
880 ATH5K_DBG(ah, ATH5K_DEBUG_MODE, "mode %d\n", op_mode); in ath5k_hw_set_opmode()
891 switch (op_mode) { in ath5k_hw_set_opmode()
952 ath5k_hw_pcu_init(struct ath5k_hw *ah, enum nl80211_iftype op_mode) in ath5k_hw_pcu_init() argument
958 ath5k_hw_set_opmode(ah, op_mode); in ath5k_hw_pcu_init()
/drivers/net/wireless/
Dat76c50x-usb.c560 u8 *op_mode; in at76_get_op_mode() local
562 op_mode = kmalloc(1, GFP_NOIO); in at76_get_op_mode()
563 if (!op_mode) in at76_get_op_mode()
567 USB_RECIP_INTERFACE, 0x01, 0, op_mode, 1, in at76_get_op_mode()
569 saved = *op_mode; in at76_get_op_mode()
570 kfree(op_mode); in at76_get_op_mode()
1262 int op_mode; in at76_load_external_fw() local
1272 op_mode = at76_get_op_mode(udev); in at76_load_external_fw()
1273 at76_dbg(DBG_DEVSTART, "opmode %d", op_mode); in at76_load_external_fw()
1275 if (op_mode != OPMODE_NORMAL_NIC_WITHOUT_FLASH) { in at76_load_external_fw()
[all …]
/drivers/staging/vt6656/
Dpower.c62 if (priv->op_mode != NL80211_IFTYPE_ADHOC) { in vnt_enable_power_saving()
Dkey.c99 if (priv->op_mode == NL80211_IFTYPE_STATION) in vnt_set_keymode()
/drivers/usb/dwc2/
Dcore.c369 switch (hsotg->hw_params.op_mode) { in dwc2_gusbcfg_init()
692 u32 op_mode = hsotg->hw_params.op_mode; in dwc2_core_host_init() local
695 op_mode == GHWCFG2_OP_MODE_SRP_CAPABLE_DEVICE || in dwc2_core_host_init()
696 op_mode == GHWCFG2_OP_MODE_NO_SRP_CAPABLE_DEVICE || in dwc2_core_host_init()
697 op_mode == GHWCFG2_OP_MODE_UNDEFINED) { in dwc2_core_host_init()
2039 if (hsotg->hw_params.op_mode != GHWCFG2_OP_MODE_HNP_SRP_CAPABLE) in dwc2_set_param_otg_cap()
2043 switch (hsotg->hw_params.op_mode) { in dwc2_set_param_otg_cap()
2067 switch (hsotg->hw_params.op_mode) { in dwc2_set_param_otg_cap()
2719 hw->op_mode = (hwcfg2 & GHWCFG2_OP_MODE_MASK) >> in dwc2_get_hwparams()
2779 hw->op_mode); in dwc2_get_hwparams()
/drivers/net/wireless/iwlwifi/pcie/
Dinternal.h439 iwl_op_mode_queue_not_full(trans->op_mode, txq->q.id); in iwl_wake_queue()
449 iwl_op_mode_queue_full(trans->op_mode, txq->q.id); in iwl_stop_queue()
/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.h76 u16 op_mode; /* B/G */ member

123