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.h153 void (*stop)(struct iwl_op_mode *op_mode);
154 void (*rx)(struct iwl_op_mode *op_mode, struct napi_struct *napi,
156 void (*rx_rss)(struct iwl_op_mode *op_mode, struct napi_struct *napi,
158 void (*queue_full)(struct iwl_op_mode *op_mode, int queue);
159 void (*queue_not_full)(struct iwl_op_mode *op_mode, int queue);
160 bool (*hw_rf_kill)(struct iwl_op_mode *op_mode, bool state);
161 void (*free_skb)(struct iwl_op_mode *op_mode, struct sk_buff *skb);
162 void (*nic_error)(struct iwl_op_mode *op_mode);
163 void (*cmd_queue_full)(struct iwl_op_mode *op_mode);
164 void (*nic_config)(struct iwl_op_mode *op_mode);
[all …]
Diwl-trans.h451 struct iwl_op_mode *op_mode; member
685 struct iwl_op_mode *op_mode; member
741 trans->op_mode = trans_cfg->op_mode; in iwl_trans_configure()
765 trans->op_mode = NULL; in iwl_trans_op_mode_leave()
1101 if (WARN_ON_ONCE(!trans->op_mode)) in iwl_trans_fw_error()
1106 iwl_op_mode_nic_error(trans->op_mode); in iwl_trans_fw_error()
Diwl-drv.c112 struct iwl_op_mode *op_mode; member
1131 struct iwl_op_mode *op_mode = NULL; in _iwl_op_mode_start() local
1139 return op_mode; in _iwl_op_mode_start()
1144 op_mode = ops->start(drv->trans, drv->cfg, &drv->fw, dbgfs_dir); in _iwl_op_mode_start()
1147 if (!op_mode) { in _iwl_op_mode_start()
1153 return op_mode; in _iwl_op_mode_start()
1159 if (drv->op_mode) { in _iwl_op_mode_stop()
1160 iwl_op_mode_stop(drv->op_mode); in _iwl_op_mode_stop()
1161 drv->op_mode = NULL; in _iwl_op_mode_stop()
1398 drv->op_mode = _iwl_op_mode_start(drv, op); in iwl_req_fw_callback()
[all …]
/drivers/net/wireless/iwlwifi/mvm/
Dops.c142 static void iwl_mvm_nic_config(struct iwl_op_mode *op_mode) in iwl_mvm_nic_config() argument
144 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_mvm_nic_config()
396 struct iwl_op_mode *op_mode; in iwl_op_mode_mvm_start() local
427 op_mode = hw->priv; in iwl_op_mode_mvm_start()
429 mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_op_mode_mvm_start()
437 op_mode->ops = &iwl_mvm_ops_mq; in iwl_op_mode_mvm_start()
439 op_mode->ops = &iwl_mvm_ops; in iwl_op_mode_mvm_start()
485 trans_cfg.op_mode = op_mode; in iwl_op_mode_mvm_start()
599 return op_mode; in iwl_op_mode_mvm_start()
614 static void iwl_op_mode_mvm_stop(struct iwl_op_mode *op_mode) in iwl_op_mode_mvm_stop() argument
[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.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.c978 if (ahw->op_mode == QLCNIC_MGMT_FUNC) in qlcnic_get_act_pci_func()
1122 u32 op_mode, priv_level; in qlcnic_check_vf() local
1132 op_mode = QLC_SHARED_REG_RD32(adapter, QLCNIC_DRV_OP_MODE); in qlcnic_check_vf()
1133 if (op_mode == QLC_DEV_DRV_DEFAULT) in qlcnic_check_vf()
1136 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_vf()
1139 adapter->ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_check_vf()
1266 if (ahw->op_mode != QLCNIC_NON_PRIV_FUNC) { in qlcnic_check_options()
1460 u32 op_mode, priv_level; in qlcnic_check_eswitch_mode() local
1470 op_mode = QLC_SHARED_REG_RD32(adapter, QLCNIC_DRV_OP_MODE); in qlcnic_check_eswitch_mode()
1471 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func); in qlcnic_check_eswitch_mode()
[all …]
Dqlcnic_83xx_hw.c759 u32 op_mode, priv_level; in qlcnic_83xx_check_vf() local
771 op_mode = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_check_vf()
772 if (op_mode == QLC_83XX_DEFAULT_OPMODE) in qlcnic_83xx_check_vf()
775 priv_level = QLC_83XX_GET_FUNC_PRIVILEGE(op_mode, in qlcnic_83xx_check_vf()
779 ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_83xx_check_vf()
842 __func__, opcode, cmd->type, ahw->pci_func, ahw->op_mode); in qlcnic_83xx_poll_for_mbx_completion()
865 ahw->op_mode); in qlcnic_83xx_issue_cmd()
875 ahw->op_mode); in qlcnic_83xx_issue_cmd()
888 ahw->op_mode); in qlcnic_83xx_issue_cmd()
1587 if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) { in qlcnic_83xx_set_led()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Dmain.c1151 struct iwl_op_mode *op_mode; in iwl_op_mode_dvm_start() local
1173 op_mode = hw->priv; in iwl_op_mode_dvm_start()
1174 op_mode->ops = &iwl_dvm_ops; in iwl_op_mode_dvm_start()
1175 priv = IWL_OP_MODE_GET_DVM(op_mode); in iwl_op_mode_dvm_start()
1227 trans_cfg.op_mode = op_mode; in iwl_op_mode_dvm_start()
1394 return op_mode; in iwl_op_mode_dvm_start()
1411 op_mode = NULL; in iwl_op_mode_dvm_start()
1412 return op_mode; in iwl_op_mode_dvm_start()
1415 static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) in iwl_op_mode_dvm_stop() argument
1417 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.c227 uint32_t op_mode = 0; in mdp4_plane_mode_set() local
273 op_mode |= MDP4_PIPE_OP_MODE_SCALEX_EN; in mdp4_plane_mode_set()
281 op_mode |= MDP4_PIPE_OP_MODE_SCALEX_UNIT_SEL(sel_unit); in mdp4_plane_mode_set()
289 op_mode |= MDP4_PIPE_OP_MODE_SCALEY_EN; in mdp4_plane_mode_set()
298 op_mode |= MDP4_PIPE_OP_MODE_SCALEY_UNIT_SEL(sel_unit); in mdp4_plane_mode_set()
344 op_mode |= MDP4_PIPE_OP_MODE_SRC_YCBCR; in mdp4_plane_mode_set()
345 op_mode |= MDP4_PIPE_OP_MODE_CSC_EN; in mdp4_plane_mode_set()
349 mdp4_write(mdp4_kms, REG_MDP4_PIPE_OP_MODE(pipe), op_mode); in mdp4_plane_mode_set()
/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,
212 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/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/
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/gpu/drm/msm/mdp/mdp5/
Dmdp5_ctl.c35 struct op_mode { struct
52 struct op_mode pipeline; argument
208 struct op_mode *pipeline = &ctl->pipeline; in start_signal_needed()
241 struct op_mode *pipeline = &ctl->pipeline; in refill_start_mask()
498 struct op_mode *pipeline = &ctl->pipeline; in mdp5_ctl_commit()
/drivers/dma/
Dmv_xor.c144 u32 op_mode; in mv_chan_set_mode() local
149 op_mode = XOR_OPERATION_MODE_XOR; in mv_chan_set_mode()
152 op_mode = XOR_OPERATION_MODE_MEMCPY; in mv_chan_set_mode()
163 config |= op_mode; in mv_chan_set_mode()
177 u32 op_mode; in mv_chan_set_mode_to_desc() local
180 op_mode = XOR_OPERATION_MODE_IN_DESC; in mv_chan_set_mode_to_desc()
183 config |= op_mode; in mv_chan_set_mode_to_desc()
/drivers/staging/vt6656/
Dpower.c62 if (priv->op_mode != NL80211_IFTYPE_ADHOC) in vnt_enable_power_saving()
Dmain_usb.c112 priv->op_mode = NL80211_IFTYPE_UNSPECIFIED; in vnt_set_options()
612 priv->op_mode = vif->type; in vnt_add_interface()
646 priv->op_mode = NL80211_IFTYPE_UNSPECIFIED; in vnt_remove_interface()
760 priv->op_mode != NL80211_IFTYPE_AP) { in vnt_bss_info_changed()
Dkey.c99 if (priv->op_mode == NL80211_IFTYPE_STATION) in vnt_set_keymode()
/drivers/staging/vt6655/
Dpower.c76 if (pDevice->op_mode != NL80211_IFTYPE_ADHOC) { in PSvEnablePowerSaving()
Ddevice_main.c1003 if (priv->op_mode != NL80211_IFTYPE_ADHOC) in vnt_interrupt_process()
1010 if ((priv->op_mode == NL80211_IFTYPE_AP || in vnt_interrupt_process()
1011 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()
1386 priv->op_mode != NL80211_IFTYPE_AP) { in vnt_bss_info_changed()
/drivers/net/wireless/iwlwifi/pcie/
Dinternal.h497 iwl_op_mode_queue_not_full(trans->op_mode, txq->q.id); in iwl_wake_queue()
507 iwl_op_mode_queue_full(trans->op_mode, txq->q.id); in iwl_stop_queue()
/drivers/usb/dwc2/
Dcore.c736 switch (hsotg->hw_params.op_mode) { in dwc2_gusbcfg_init()
1050 u32 op_mode = hsotg->hw_params.op_mode; in dwc2_core_host_init() local
1053 op_mode == GHWCFG2_OP_MODE_SRP_CAPABLE_DEVICE || in dwc2_core_host_init()
1054 op_mode == GHWCFG2_OP_MODE_NO_SRP_CAPABLE_DEVICE || in dwc2_core_host_init()
1055 op_mode == GHWCFG2_OP_MODE_UNDEFINED) { in dwc2_core_host_init()
2397 if (hsotg->hw_params.op_mode != GHWCFG2_OP_MODE_HNP_SRP_CAPABLE) in dwc2_set_param_otg_cap()
2401 switch (hsotg->hw_params.op_mode) { in dwc2_set_param_otg_cap()
2425 switch (hsotg->hw_params.op_mode) { in dwc2_set_param_otg_cap()
3113 hw->op_mode = (hwcfg2 & GHWCFG2_OP_MODE_MASK) >> in dwc2_get_hwparams()
3173 hw->op_mode); in dwc2_get_hwparams()

123