Home
last modified time | relevance | path

Searched full:opmode (Results 1 – 25 of 126) sorted by relevance

123456

/linux/drivers/regulator/
H A Dmax77802-regulator.c62 unsigned int opmode[MAX77802_REG_MAX]; member
100 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_suspend_disable()
102 max77802->opmode[id] = val; in max77802_set_suspend_disable()
132 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_mode()
135 max77802->opmode[id] = val; in max77802_set_mode()
145 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_get_mode()
147 return max77802_map_mode(max77802->opmode[id]); in max77802_get_mode()
151 * max77802_set_suspend_mode - set regulator opmode when the system is suspended
174 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_suspend_mode()
181 if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) { in max77802_set_suspend_mode()
[all …]
H A Dmax77686-regulator.c75 unsigned int opmode[MAX77686_REGULATORS]; member
127 max77686->opmode[id] = val; in max77686_set_suspend_disable()
162 max77686->opmode[id] = val; in max77686_set_suspend_mode()
196 max77686->opmode[id] = val; in max77686_ldo_set_suspend_mode()
208 if (max77686->opmode[id] == MAX77686_OFF_PWRREQ) in max77686_enable()
209 max77686->opmode[id] = max77686_map_normal_mode(max77686, id); in max77686_enable()
213 max77686->opmode[id] << shift); in max77686_enable()
505 max77686->opmode[id] = MAX77686_NORMAL; in max77686_pmic_probe()
H A Ds5m8767.c25 struct sec_opmode_data *opmode; member
193 if (s5m8767->opmode[i].id == reg_id) { in s5m8767_get_register()
194 mode = s5m8767->opmode[i].mode; in s5m8767_get_register()
437 /* Check if opmode for regulator matches S5M8767_ENCTRL_USE_GPIO */ in s5m8767_regulator_config_ext_control()
439 const struct sec_opmode_data *opmode = &s5m8767->opmode[i]; in s5m8767_regulator_config_ext_control() local
440 if (opmode->id == rdata->id) { in s5m8767_regulator_config_ext_control()
441 mode = s5m8767_opmode_reg[rdata->id][opmode->mode]; in s5m8767_regulator_config_ext_control()
559 pdata->opmode = rmode; in s5m8767_pmic_dt_parse_pdata()
745 s5m8767->opmode = pdata->opmode; in s5m8767_pmic_probe()
H A Dmcp16502.c174 * mcp16502_get_reg() - get the PMIC's state configuration register for opmode
177 * @opmode: the PMIC's operating mode ACTIVE, Low-power, Hibernate
179 static int mcp16502_get_state_reg(struct regulator_dev *rdev, int opmode) in mcp16502_get_state_reg() argument
181 switch (opmode) { in mcp16502_get_state_reg()
230 * @opmode: the PMIC's operating mode: Active/Low-power/Hibernate
/linux/drivers/mfd/
H A Datmel-flexcom.c28 #define FLEX_MR_OPMODE(opmode) (((opmode) << FLEX_MR_OPMODE_OFFSET) & \ argument
33 u32 opmode; member
49 err = of_property_read_u32(np, "atmel,flexcom-mode", &ddata->opmode); in atmel_flexcom_probe()
53 if (ddata->opmode < ATMEL_FLEXCOM_MODE_USART || in atmel_flexcom_probe()
54 ddata->opmode > ATMEL_FLEXCOM_MODE_TWI) in atmel_flexcom_probe()
75 writel(FLEX_MR_OPMODE(ddata->opmode), ddata->base + FLEX_MR); in atmel_flexcom_probe()
98 val = FLEX_MR_OPMODE(ddata->opmode); in atmel_flexcom_resume_noirq()
H A Dat91-usart.c27 u32 opmode = AT91_USART_MODE_SERIAL; in at91_usart_mode_probe() local
29 device_property_read_u32(&pdev->dev, "atmel,usart-mode", &opmode); in at91_usart_mode_probe()
31 switch (opmode) { in at91_usart_mode_probe()
40 opmode); in at91_usart_mode_probe()
/linux/drivers/net/wireless/ath/ath5k/
H A Dmac80211-ops.c106 avf->opmode = vif->type; in ath5k_add_interface()
114 ATH5K_DBG(ah, ATH5K_DEBUG_MODE, "add interface mode %d\n", avf->opmode); in ath5k_add_interface()
117 if ((avf->opmode == NL80211_IFTYPE_AP) || in ath5k_add_interface()
118 (avf->opmode == NL80211_IFTYPE_ADHOC) || in ath5k_add_interface()
119 (avf->opmode == NL80211_IFTYPE_MESH_POINT)) { in ath5k_add_interface()
136 if (avf->opmode == NL80211_IFTYPE_AP) in ath5k_add_interface()
138 else if (avf->opmode == NL80211_IFTYPE_ADHOC) in ath5k_add_interface()
140 else if (avf->opmode == NL80211_IFTYPE_MESH_POINT) in ath5k_add_interface()
179 if (avf->opmode == NL80211_IFTYPE_AP) in ath5k_remove_interface()
181 else if (avf->opmode == NL80211_IFTYPE_ADHOC) in ath5k_remove_interface()
[all …]
H A Dbase.c507 if (avf->opmode == NL80211_IFTYPE_AP) in ath5k_vif_iter()
508 iter_data->opmode = NL80211_IFTYPE_AP; in ath5k_vif_iter()
510 if (avf->opmode == NL80211_IFTYPE_STATION) in ath5k_vif_iter()
512 if (iter_data->opmode == NL80211_IFTYPE_UNSPECIFIED) in ath5k_vif_iter()
513 iter_data->opmode = avf->opmode; in ath5k_vif_iter()
533 iter_data.opmode = NL80211_IFTYPE_UNSPECIFIED; in ath5k_update_bssid_mask_and_opmode()
545 ah->opmode = iter_data.opmode; in ath5k_update_bssid_mask_and_opmode()
546 if (ah->opmode == NL80211_IFTYPE_UNSPECIFIED) in ath5k_update_bssid_mask_and_opmode()
548 ah->opmode = NL80211_IFTYPE_STATION; in ath5k_update_bssid_mask_and_opmode()
550 ath5k_hw_set_opmode(ah, ah->opmode); in ath5k_update_bssid_mask_and_opmode()
[all …]
H A Dbase.h75 enum nl80211_iftype opmode; member
87 enum nl80211_iftype opmode; member
/linux/drivers/media/i2c/
H A Dmsp3400-driver.c56 static int opmode = OPMODE_AUTO; variable
69 module_param(opmode, int, 0444);
79 MODULE_PARM_DESC(opmode, "Forces a MSP3400 opmode. 0=Manual, 1=Autodetect, 2=Autodetect and autosel…
409 switch (state->opmode) { in msp_s_radio()
490 reg = (state->opmode == OPMODE_AUTOSELECT) ? 0x30 : 0xbb; in msp_s_routing()
506 if (state->opmode == OPMODE_AUTOSELECT) in msp_g_tuner()
558 if (state->opmode == OPMODE_AUTOSELECT) in msp_log_status()
578 } else if (state->opmode == OPMODE_MANUAL) { in msp_log_status()
583 if (state->opmode == OPMODE_AUTODETECT) in msp_log_status()
781 state->opmode = opmode; in msp_probe()
[all …]
/linux/drivers/leds/
H A Dleds-lm3642.c102 u8 brightness, enum lm3642_mode opmode) in lm3642_control() argument
117 opmode = MODES_STASNDBY; in lm3642_control()
119 switch (opmode) { in lm3642_control()
126 opmode |= (TORCH_PIN_EN_MASK << TORCH_PIN_EN_SHIFT); in lm3642_control()
135 opmode |= (STROBE_PIN_EN_MASK << STROBE_PIN_EN_SHIFT); in lm3642_control()
157 opmode |= (TX_PIN_EN_MASK << TX_PIN_EN_SHIFT); in lm3642_control()
161 opmode << MODE_BITS_SHIFT); in lm3642_control()
H A Dleds-lm355x.c196 u8 brightness, enum lm355x_mode opmode) in lm355x_control() argument
212 opmode = MODE_SHDN; in lm355x_control()
214 switch (opmode) { in lm355x_control()
233 opmode = MODE_SHDN; in lm355x_control()
262 opmode = MODE_SHDN; in lm355x_control()
286 opmode = MODE_SHDN; in lm355x_control()
297 opmode << preg[REG_OPMODE].shift); in lm355x_control()
/linux/drivers/net/wireless/ath/ath9k/
H A Dani.c185 if (ah->opmode == NL80211_IFTYPE_STATION && in ath9k_hw_set_ofdm_nil()
194 ah->opmode != NL80211_IFTYPE_STATION) in ath9k_hw_set_ofdm_nil()
245 if (ah->opmode == NL80211_IFTYPE_STATION && in ath9k_hw_set_cck_nil()
328 (ah->opmode != NL80211_IFTYPE_STATION && in ath9k_ani_reset()
329 ah->opmode != NL80211_IFTYPE_ADHOC)) { in ath9k_ani_reset()
341 "Restore defaults: opmode %u chan %d Mhz is_scanning=%d ofdm:%d cck:%d\n", in ath9k_ani_reset()
342 ah->opmode, in ath9k_ani_reset()
356 "Restore history: opmode %u chan %d Mhz is_scanning=%d ofdm:%d cck:%d\n", in ath9k_ani_reset()
357 ah->opmode, in ath9k_ani_reset()
H A Dhtc_drv_beacon.c31 if (priv->ah->opmode == NL80211_IFTYPE_AP || in ath9k_htc_beaconq_config()
32 priv->ah->opmode == NL80211_IFTYPE_MESH_POINT) { in ath9k_htc_beaconq_config()
36 } else if (priv->ah->opmode == NL80211_IFTYPE_ADHOC) { in ath9k_htc_beaconq_config()
408 if ((priv->ah->opmode == NL80211_IFTYPE_AP) && in ath9k_htc_check_beacon_config()
432 if ((priv->ah->opmode == NL80211_IFTYPE_STATION) && in ath9k_htc_check_beacon_config()
492 switch (priv->ah->opmode) { in ath9k_htc_beacon_reconfig()
/linux/drivers/misc/
H A Dtsl2550.c338 int *opmode, err = 0; in tsl2550_probe() local
355 opmode = client->dev.platform_data; in tsl2550_probe()
356 if (opmode) { in tsl2550_probe()
357 if (*opmode < 0 || *opmode > 1) { in tsl2550_probe()
359 *opmode); in tsl2550_probe()
363 data->operating_mode = *opmode; in tsl2550_probe()
/linux/drivers/net/wireless/ath/
H A Ddebug.c20 const char *ath_opmode_to_string(enum nl80211_iftype opmode) in ath_opmode_to_string() argument
22 switch (opmode) { in ath_opmode_to_string()
H A Dath.h323 /** Returns string describing opmode, or NULL if unknown mode. */
325 const char *ath_opmode_to_string(enum nl80211_iftype opmode);
327 static inline const char *ath_opmode_to_string(enum nl80211_iftype opmode) in ath_opmode_to_string() argument
/linux/drivers/net/wireless/rsi/
H A Drsi_mgmt.h234 enum opmode { enum
715 int rsi_set_vap_capabilities(struct rsi_common *common, enum opmode mode,
727 int rsi_hal_send_sta_notify_frame(struct rsi_common *common, enum opmode opmode,
731 void rsi_inform_bss_status(struct rsi_common *common, enum opmode opmode,
H A Drsi_91x_mgmt.c525 * @opmode: Operating mode of device.
535 int rsi_hal_send_sta_notify_frame(struct rsi_common *common, enum opmode opmode, in rsi_hal_send_sta_notify_frame() argument
559 if (opmode == RSI_OPMODE_STA) in rsi_hal_send_sta_notify_frame()
561 else if (opmode == RSI_OPMODE_AP) in rsi_hal_send_sta_notify_frame()
712 enum opmode mode, in rsi_set_vap_capabilities()
1458 * @opmode: Operating mode of device.
1471 enum opmode opmode, in rsi_inform_bss_status() argument
1482 if (opmode == RSI_OPMODE_STA) in rsi_inform_bss_status()
1485 opmode, in rsi_inform_bss_status()
1493 if (opmode == RSI_OPMODE_STA && in rsi_inform_bss_status()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Ddm.c341 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_find_minimum_rssi()
342 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92ee_dm_find_minimum_rssi()
378 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_check_rssi_monitor()
379 mac->opmode == NL80211_IFTYPE_ADHOC || in rtl92ee_dm_check_rssi_monitor()
380 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl92ee_dm_check_rssi_monitor()
582 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_AP) { in rtl92ee_dm_dynamic_primary_cca_check()
880 mac->opmode == NL80211_IFTYPE_STATION) { in rtl92ee_dm_refresh_rate_adaptive_mask()
936 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_STATION && in rtl92ee_dm_common_info_self_update()
942 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_common_info_self_update()
943 rtlpriv->mac80211.opmode == NL80211_IFTYPE_ADHOC || in rtl92ee_dm_common_info_self_update()
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Dst,stusb160x.yaml44 typec-power-opmode: true
76 typec-power-opmode = "default";
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-trans.c157 * If the opmode stopped the device while we were trying to dump and in iwl_trans_restart_wk()
159 * opmode lock that it will acquire in iwl_op_mode_dump_error()) and in iwl_trans_restart_wk()
590 * When the opmode stops the device while a reset is pending, the in iwl_trans_stop_device()
592 * likely, will be blocked on the opmode lock. Due to the locking, in iwl_trans_stop_device()
598 * The trans->restart.mode is a handshake with the opmode, we set in iwl_trans_stop_device()
600 * acquire the lock in the opmode, the code there won't attempt to in iwl_trans_stop_device()
602 * also do it inline here (with the opmode locks already held), in iwl_trans_stop_device()
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Drc.c136 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_rc_rate_set_series()
137 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_rc_rate_set_series()
197 if (mac->opmode == NL80211_IFTYPE_STATION && in _rtl_tx_aggr_check()
H A Dps.c193 if (mac->opmode != NL80211_IFTYPE_STATION) { in rtl_ips_nic_off_wq_callback()
260 /* NOTICE: any opmode should exc nic_on, or disable without
318 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_get_fwlps_doze()
332 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_lps_set_psmode()
411 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_lps_enter_core()
473 if (mac->opmode != NL80211_IFTYPE_STATION) in rtl_swlps_beacon()
585 (mac->opmode == NL80211_IFTYPE_ADHOC)) in rtl_swlps_rf_sleep()
/linux/drivers/platform/surface/
H A Dsurface_aggregator_hub.c227 u8 opmode; in ssam_base_hub_query_state() local
230 status = ssam_retry(ssam_bas_query_opmode, hub->sdev->ctrl, &opmode); in ssam_base_hub_query_state()
236 if (opmode != SSAM_BAS_OPMODE_TABLET) in ssam_base_hub_query_state()

123456