Home
last modified time | relevance | path

Searched refs:opmode (Results 1 – 25 of 107) sorted by relevance

12345

/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/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()
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()
194 if (max77802->opmode[id] == MAX77802_OPMODE_NORMAL) 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()
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()
523 pdata->opmode = rmode; in s5m8767_pmic_dt_parse_pdata()
697 s5m8767->opmode = pdata->opmode; in s5m8767_pmic_probe()
/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/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/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/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()
342 ah->opmode, in ath9k_ani_reset()
357 ah->opmode, in ath9k_ani_reset()
H A Dhtc_drv_main.c173 priv->ah->opmode = NL80211_IFTYPE_ADHOC; in ath9k_htc_set_opmode()
175 priv->ah->opmode = NL80211_IFTYPE_AP; in ath9k_htc_set_opmode()
177 priv->ah->opmode = NL80211_IFTYPE_MESH_POINT; in ath9k_htc_set_opmode()
179 priv->ah->opmode = NL80211_IFTYPE_STATION; in ath9k_htc_set_opmode()
376 hvif.opmode = HTC_M_MONITOR; in ath9k_htc_add_monitor_interface()
395 priv->ah->opmode = NL80211_IFTYPE_MONITOR; in ath9k_htc_add_monitor_interface()
780 short_cal_interval = (ah->opmode == NL80211_IFTYPE_AP) ? in ath9k_htc_ani_work()
1052 hvif.opmode = HTC_M_STA; in ath9k_htc_add_interface()
1055 hvif.opmode = HTC_M_IBSS; in ath9k_htc_add_interface()
1058 hvif.opmode = HTC_M_HOSTAP; in ath9k_htc_add_interface()
[all …]
/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()
/linux/drivers/usb/typec/ucsi/
H A Dtrace.h47 __field(u8, opmode)
58 __entry->opmode = UCSI_CONSTAT(con, PWR_OPMODE);
69 __entry->change, __entry->opmode, __entry->connected,
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Ddm.c338 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_find_minimum_rssi()
339 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92ee_dm_find_minimum_rssi()
375 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_check_rssi_monitor()
376 mac->opmode == NL80211_IFTYPE_ADHOC || in rtl92ee_dm_check_rssi_monitor()
377 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl92ee_dm_check_rssi_monitor()
579 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_AP) { in rtl92ee_dm_dynamic_primary_cca_check()
877 mac->opmode == NL80211_IFTYPE_STATION) { in rtl92ee_dm_refresh_rate_adaptive_mask()
933 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_STATION && in rtl92ee_dm_common_info_self_update()
939 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_common_info_self_update()
940 rtlpriv->mac80211.opmode == NL80211_IFTYPE_ADHOC || in rtl92ee_dm_common_info_self_update()
[all …]
/linux/net/mac80211/
H A Dvht.c649 u8 opmode, enum nl80211_band band) in __ieee80211_vht_handle_opmode() argument
657 if (opmode & IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF) in __ieee80211_vht_handle_opmode()
660 nss = opmode & IEEE80211_OPMODE_NOTIF_RX_NSS_MASK; in __ieee80211_vht_handle_opmode()
681 switch (opmode & IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK) { in __ieee80211_vht_handle_opmode()
691 if (opmode & IEEE80211_OPMODE_NOTIF_BW_160_80P80) in __ieee80211_vht_handle_opmode()
763 u8 opmode, enum nl80211_band band) in ieee80211_vht_handle_opmode() argument
769 opmode, band); in ieee80211_vht_handle_opmode()
/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.c535 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()
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()
1498 if (opmode == RSI_OPMODE_STA) in rsi_inform_bss_status()
1502 rsi_hal_send_sta_notify_frame(common, opmode, in rsi_inform_bss_status()
[all …]
/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()
/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()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Ddm.c48 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92d_dm_dynamic_txpower()
126 if (rtlpriv->mac80211.opmode != NL80211_IFTYPE_STATION) in rtl92d_dm_pwdb_monitor()
H A Dtrx.c69 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl92de_tx_fill_desc()
71 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl92de_tx_fill_desc()
72 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92de_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dmac.c255 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92c_set_key()
256 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl92c_set_key()
274 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92c_set_key()
275 mac->opmode == NL80211_IFTYPE_MESH_POINT) in rtl92c_set_key()
305 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92c_set_key()

12345