Home
last modified time | relevance | path

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

123

/drivers/net/wireless/intel/iwlwifi/
Diwl-op-mode.h155 void (*stop)(struct iwl_op_mode *op_mode);
156 void (*rx)(struct iwl_op_mode *op_mode, struct napi_struct *napi,
158 void (*rx_rss)(struct iwl_op_mode *op_mode, struct napi_struct *napi,
160 void (*async_cb)(struct iwl_op_mode *op_mode,
162 void (*queue_full)(struct iwl_op_mode *op_mode, int queue);
163 void (*queue_not_full)(struct iwl_op_mode *op_mode, int queue);
164 bool (*hw_rf_kill)(struct iwl_op_mode *op_mode, bool state);
165 void (*free_skb)(struct iwl_op_mode *op_mode, struct sk_buff *skb);
166 void (*nic_error)(struct iwl_op_mode *op_mode);
167 void (*cmd_queue_full)(struct iwl_op_mode *op_mode);
[all …]
Diwl-trans.h409 struct iwl_op_mode *op_mode; member
720 struct iwl_op_mode *op_mode; member
784 trans->op_mode = trans_cfg->op_mode; in iwl_trans_configure()
809 trans->op_mode = NULL; in iwl_trans_op_mode_leave()
1180 if (WARN_ON_ONCE(!trans->op_mode)) in iwl_trans_fw_error()
1185 iwl_op_mode_nic_error(trans->op_mode); in iwl_trans_fw_error()
Diwl-drv.c113 struct iwl_op_mode *op_mode; member
1214 struct iwl_op_mode *op_mode = NULL; in _iwl_op_mode_start() local
1222 return op_mode; in _iwl_op_mode_start()
1227 op_mode = ops->start(drv->trans, drv->trans->cfg, &drv->fw, dbgfs_dir); in _iwl_op_mode_start()
1230 if (!op_mode) { in _iwl_op_mode_start()
1236 return op_mode; in _iwl_op_mode_start()
1242 if (drv->op_mode) { in _iwl_op_mode_stop()
1243 iwl_op_mode_stop(drv->op_mode); in _iwl_op_mode_stop()
1244 drv->op_mode = NULL; in _iwl_op_mode_stop()
1470 drv->op_mode = _iwl_op_mode_start(drv, op); in iwl_req_fw_callback()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Dops.c148 static void iwl_mvm_nic_config(struct iwl_op_mode *op_mode) in iwl_mvm_nic_config() argument
150 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_mvm_nic_config()
574 struct iwl_op_mode *op_mode; in iwl_op_mode_mvm_start() local
605 op_mode = hw->priv; in iwl_op_mode_mvm_start()
607 mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_op_mode_mvm_start()
619 op_mode->ops = &iwl_mvm_ops_mq; in iwl_op_mode_mvm_start()
622 op_mode->ops = &iwl_mvm_ops; in iwl_op_mode_mvm_start()
676 trans_cfg.op_mode = op_mode; in iwl_op_mode_mvm_start()
803 return op_mode; in iwl_op_mode_mvm_start()
807 return op_mode; in iwl_op_mode_mvm_start()
[all …]
/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.c222 if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) { in qlcnic_store_beacon()
488 u32 op_mode; in validate_esw_config() local
492 op_mode = readl(ahw->pci_base0 + QLCNIC_DRV_OP_MODE); in validate_esw_config()
494 op_mode = QLCRDX(ahw, QLC_83XX_DRV_OP_MODE); in validate_esw_config()
501 if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC) in validate_esw_config()
505 switch (esw_cfg[i].op_mode) { in validate_esw_config()
508 ret = QLC_DEV_GET_DRV(op_mode, pci_func); in validate_esw_config()
510 ret = QLC_83XX_GET_FUNC_PRIVILEGE(op_mode, in validate_esw_config()
554 u8 op_mode = 0, pci_func; in qlcnic_sysfs_write_esw_config() local
568 if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC) in qlcnic_sysfs_write_esw_config()
[all …]
Dqlcnic_ctx.c879 npar_info->op_mode = le16_to_cpu(nic_info->op_mode); in qlcnic_82xx_get_nic_info()
909 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_82xx_set_nic_info()
920 nic_info->op_mode = cpu_to_le16(nic->op_mode); in qlcnic_82xx_set_nic_info()
1031 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC || in qlcnic_config_port_mirroring()
1074 if ((adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) && in qlcnic_get_port_stats()
1194 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_get_eswitch_stats()
1247 if (ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_clear_esw_stats()
1326 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) { in qlcnic_config_switch_port()
1344 switch (esw_cfg->op_mode) { in qlcnic_config_switch_port()
1376 __func__, esw_cfg->op_mode); in qlcnic_config_switch_port()
[all …]
Dqlcnic_main.c981 if (ahw->op_mode == QLCNIC_MGMT_FUNC) in qlcnic_get_act_pci_func()
1125 u32 op_mode, priv_level; in qlcnic_check_vf() local
1135 op_mode = QLC_SHARED_REG_RD32(adapter, QLCNIC_DRV_OP_MODE); in qlcnic_check_vf()
1136 if (op_mode == QLC_DEV_DRV_DEFAULT) in qlcnic_check_vf()
1139 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_vf()
1142 adapter->ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_check_vf()
1269 if (ahw->op_mode != QLCNIC_NON_PRIV_FUNC) { in qlcnic_check_options()
1463 u32 op_mode, priv_level; in qlcnic_check_eswitch_mode() local
1473 op_mode = QLC_SHARED_REG_RD32(adapter, QLCNIC_DRV_OP_MODE); in qlcnic_check_eswitch_mode()
1474 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_eswitch_mode()
[all …]
Dqlcnic_83xx_hw.c761 u32 op_mode, priv_level; in qlcnic_83xx_check_vf() local
773 op_mode = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_check_vf()
774 if (op_mode == QLC_83XX_DEFAULT_OPMODE) in qlcnic_83xx_check_vf()
777 priv_level = QLC_83XX_GET_FUNC_PRIVILEGE(op_mode, in qlcnic_83xx_check_vf()
781 ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_83xx_check_vf()
844 __func__, opcode, cmd->type, ahw->pci_func, ahw->op_mode); in qlcnic_83xx_poll_for_mbx_completion()
867 ahw->op_mode); in qlcnic_83xx_issue_cmd()
877 ahw->op_mode); in qlcnic_83xx_issue_cmd()
890 ahw->op_mode); in qlcnic_83xx_issue_cmd()
1583 if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) { in qlcnic_83xx_set_led()
[all …]
/drivers/net/wireless/intel/iwlwifi/dvm/
Dmain.c1256 struct iwl_op_mode *op_mode; in iwl_op_mode_dvm_start() local
1278 op_mode = hw->priv; in iwl_op_mode_dvm_start()
1279 op_mode->ops = &iwl_dvm_ops; in iwl_op_mode_dvm_start()
1280 priv = IWL_OP_MODE_GET_DVM(op_mode); in iwl_op_mode_dvm_start()
1332 trans_cfg.op_mode = op_mode; in iwl_op_mode_dvm_start()
1520 return op_mode; in iwl_op_mode_dvm_start()
1537 op_mode = NULL; in iwl_op_mode_dvm_start()
1538 return op_mode; in iwl_op_mode_dvm_start()
1541 static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) in iwl_op_mode_dvm_stop() argument
1543 struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode); in iwl_op_mode_dvm_stop()
[all …]
/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_plane.c230 uint32_t op_mode = 0; in mdp4_plane_mode_set() local
276 op_mode |= MDP4_PIPE_OP_MODE_SCALEX_EN; in mdp4_plane_mode_set()
284 op_mode |= MDP4_PIPE_OP_MODE_SCALEX_UNIT_SEL(sel_unit); in mdp4_plane_mode_set()
292 op_mode |= MDP4_PIPE_OP_MODE_SCALEY_EN; in mdp4_plane_mode_set()
301 op_mode |= MDP4_PIPE_OP_MODE_SCALEY_UNIT_SEL(sel_unit); in mdp4_plane_mode_set()
347 op_mode |= MDP4_PIPE_OP_MODE_SRC_YCBCR; in mdp4_plane_mode_set()
348 op_mode |= MDP4_PIPE_OP_MODE_CSC_EN; in mdp4_plane_mode_set()
352 mdp4_write(mdp4_kms, REG_MDP4_PIPE_OP_MODE(pipe), op_mode); in mdp4_plane_mode_set()
/drivers/usb/dwc2/
Dcore.c802 unsigned int op_mode = dwc2_op_mode(hsotg); in dwc2_hw_is_otg() local
804 return (op_mode == GHWCFG2_OP_MODE_HNP_SRP_CAPABLE) || in dwc2_hw_is_otg()
805 (op_mode == GHWCFG2_OP_MODE_SRP_ONLY_CAPABLE) || in dwc2_hw_is_otg()
806 (op_mode == GHWCFG2_OP_MODE_NO_HNP_SRP_CAPABLE); in dwc2_hw_is_otg()
812 unsigned int op_mode = dwc2_op_mode(hsotg); in dwc2_hw_is_host() local
814 return (op_mode == GHWCFG2_OP_MODE_SRP_CAPABLE_HOST) || in dwc2_hw_is_host()
815 (op_mode == GHWCFG2_OP_MODE_NO_SRP_CAPABLE_HOST); in dwc2_hw_is_host()
821 unsigned int op_mode = dwc2_op_mode(hsotg); in dwc2_hw_is_device() local
823 return (op_mode == GHWCFG2_OP_MODE_SRP_CAPABLE_DEVICE) || in dwc2_hw_is_device()
824 (op_mode == GHWCFG2_OP_MODE_NO_SRP_CAPABLE_DEVICE); in dwc2_hw_is_device()
Dparams.c165 switch (hsotg->hw_params.op_mode) { in dwc2_set_param_otg_cap()
346 if (hsotg->hw_params.op_mode != GHWCFG2_OP_MODE_HNP_SRP_CAPABLE) in dwc2_check_param_otg_cap()
350 switch (hsotg->hw_params.op_mode) { in dwc2_check_param_otg_cap()
661 hw->op_mode = (hwcfg2 & GHWCFG2_OP_MODE_MASK) >> in dwc2_get_hwparams()
/drivers/usb/host/
Dfsl-mph-dr-of.c25 enum fsl_usb2_operating_modes op_mode; /* operating mode */ member
32 .op_mode = FSL_USB2_DR_HOST,
37 .op_mode = FSL_USB2_DR_OTG,
42 .op_mode = FSL_USB2_DR_DEVICE,
217 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
564 db->op_mode = db->media_mode; /* Force Mode */ in uli526x_init()
959 if(db->op_mode==ULI526X_100MHF || db->op_mode==ULI526X_100MFD) in ULi_ethtool_get_link_ksettings()
963 if(db->op_mode==ULI526X_10MFD || db->op_mode==ULI526X_100MFD) in ULi_ethtool_get_link_ksettings()
1106 (db->op_mode == ULI526X_100MHF || in uli526x_timer()
1107 db->op_mode == ULI526X_100MFD) in uli526x_timer()
1109 (db->op_mode == ULI526X_10MFD || in uli526x_timer()
1110 db->op_mode == ULI526X_100MFD) in uli526x_timer()
1544 case 0x1000: db->op_mode = ULI526X_10MHF; break; in uli526x_sense_speed()
1545 case 0x2000: db->op_mode = ULI526X_10MFD; break; in uli526x_sense_speed()
[all …]
Ddmfe.c253 u8 op_mode; /* real work media mode */ member
650 db->op_mode = db->media_mode; /* Force Mode */ in dmfe_init_dm910x()
1263 SHOW_MEDIA_TYPE(db->op_mode); in dmfe_timer()
1659 case 0x1000: db->op_mode = DMFE_10MHF; break; in dmfe_sense_speed()
1660 case 0x2000: db->op_mode = DMFE_10MFD; break; in dmfe_sense_speed()
1661 case 0x4000: db->op_mode = DMFE_100MHF; break; in dmfe_sense_speed()
1662 case 0x8000: db->op_mode = DMFE_100MFD; break; in dmfe_sense_speed()
1663 default: db->op_mode = DMFE_10MHF; in dmfe_sense_speed()
1668 db->op_mode = DMFE_10MHF; in dmfe_sense_speed()
1745 if (db->op_mode & 0x4) in dmfe_process_mode()
[all …]
/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()
953 ath5k_hw_pcu_init(struct ath5k_hw *ah, enum nl80211_iftype op_mode) in ath5k_hw_pcu_init() argument
959 ath5k_hw_set_opmode(ah, op_mode); in ath5k_hw_pcu_init()
/drivers/net/wireless/atmel/
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/usb/typec/ucsi/
Ducsi.c603 if (con->cap.op_mode & UCSI_CONCAP_OPMODE_DRP) in ucsi_register_port()
605 else if (con->cap.op_mode & UCSI_CONCAP_OPMODE_DFP) in ucsi_register_port()
607 else if (con->cap.op_mode & UCSI_CONCAP_OPMODE_UFP) in ucsi_register_port()
614 if (con->cap.op_mode & UCSI_CONCAP_OPMODE_AUDIO_ACCESSORY) in ucsi_register_port()
616 if (con->cap.op_mode & UCSI_CONCAP_OPMODE_DEBUG_ACCESSORY) in ucsi_register_port()
/drivers/staging/vt6656/
Dpower.c58 if (priv->op_mode != NL80211_IFTYPE_ADHOC) in vnt_enable_power_saving()
Dmain_usb.c109 priv->op_mode = NL80211_IFTYPE_UNSPECIFIED; in vnt_set_options()
595 priv->op_mode = vif->type; in vnt_add_interface()
629 priv->op_mode = NL80211_IFTYPE_UNSPECIFIED; in vnt_remove_interface()
737 priv->op_mode != NL80211_IFTYPE_AP) { in vnt_bss_info_changed()
Dkey.c95 if (priv->op_mode == NL80211_IFTYPE_STATION) in vnt_set_keymode()
/drivers/staging/vt6655/
Dpower.c70 if (priv->op_mode != NL80211_IFTYPE_ADHOC) { in PSvEnablePowerSaving()
Ddevice_main.c1004 if (priv->op_mode != NL80211_IFTYPE_ADHOC) in vnt_interrupt_process()
1011 if ((priv->op_mode == NL80211_IFTYPE_AP || in vnt_interrupt_process()
1012 priv->op_mode == NL80211_IFTYPE_ADHOC) && in vnt_interrupt_process()
1022 if (priv->op_mode == NL80211_IFTYPE_ADHOC) { in vnt_interrupt_process()
1237 priv->op_mode = vif->type; in vnt_add_interface()
1266 priv->op_mode = NL80211_IFTYPE_UNSPECIFIED; in vnt_remove_interface()
1385 priv->op_mode != NL80211_IFTYPE_AP) { in vnt_bss_info_changed()
Ddevice.h223 enum nl80211_iftype op_mode; member

123