/openbmc/linux/drivers/mfd/ |
H A D | atmel-flexcom.c | 28 #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 D | at91-usart.c | 27 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()
|
/openbmc/linux/drivers/regulator/ |
H A D | max77802-regulator.c | 62 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 D | max77686-regulator.c | 75 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 D | s5m8767.c | 24 struct sec_opmode_data *opmode; member 192 if (s5m8767->opmode[i].id == reg_id) { in s5m8767_get_register() 193 mode = s5m8767->opmode[i].mode; in s5m8767_get_register() 436 /* Check if opmode for regulator matches S5M8767_ENCTRL_USE_GPIO */ in s5m8767_regulator_config_ext_control() 438 const struct sec_opmode_data *opmode = &s5m8767->opmode[i]; in s5m8767_regulator_config_ext_control() local 439 if (opmode->id == rdata->id) { in s5m8767_regulator_config_ext_control() 440 mode = s5m8767_opmode_reg[rdata->id][opmode->mode]; in s5m8767_regulator_config_ext_control() 561 pdata->opmode = rmode; in s5m8767_pmic_dt_parse_pdata() 750 s5m8767->opmode = pdata->opmode; in s5m8767_pmic_probe()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_sspp.c | 172 u32 opmode; in _sspp_setup_opmode() local 178 opmode = DPU_REG_READ(&ctx->hw, sblk->scaler_blk.base + SSPP_VIG_OP_MODE); in _sspp_setup_opmode() 181 opmode |= mask; in _sspp_setup_opmode() 183 opmode &= ~mask; in _sspp_setup_opmode() 185 DPU_REG_WRITE(&ctx->hw, sblk->scaler_blk.base + SSPP_VIG_OP_MODE, opmode); in _sspp_setup_opmode() 192 u32 opmode; in _sspp_setup_csc10_opmode() local 194 opmode = DPU_REG_READ(&ctx->hw, sblk->csc_blk.base + SSPP_VIG_CSC_10_OP_MODE); in _sspp_setup_csc10_opmode() 196 opmode |= mask; in _sspp_setup_csc10_opmode() 198 opmode &= ~mask; in _sspp_setup_csc10_opmode() 200 DPU_REG_WRITE(&ctx->hw, sblk->csc_blk.base + SSPP_VIG_CSC_10_OP_MODE, opmode); in _sspp_setup_csc10_opmode() [all …]
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | s2mps11_regulator.c | 166 static int s2mps11_buck_mode(struct udevice *dev, int op, int *opmode) in s2mps11_buck_mode() argument 188 *opmode = OP_OFF; in s2mps11_buck_mode() 191 *opmode = OP_STANDBY; in s2mps11_buck_mode() 194 *opmode = OP_ON; in s2mps11_buck_mode() 202 switch (*opmode) { in s2mps11_buck_mode() 213 pr_err("Wrong mode: %d for buck: %d\n", *opmode, buck); in s2mps11_buck_mode() 429 static int s2mps11_ldo_mode(struct udevice *dev, int op, int *opmode) in s2mps11_ldo_mode() argument 450 *opmode = OP_OFF; in s2mps11_ldo_mode() 453 *opmode = OP_STANDBY; in s2mps11_ldo_mode() 456 *opmode = OP_STANDBY_LPM; in s2mps11_ldo_mode() [all …]
|
H A D | max77686.c | 412 static int max77686_ldo_mode(struct udevice *dev, int op, int *opmode) in max77686_ldo_mode() argument 419 *opmode = -EINVAL; in max77686_ldo_mode() 438 *opmode = ret; in max77686_ldo_mode() 443 switch (*opmode) { in max77686_ldo_mode() 493 pr_err("Wrong mode: %d for ldo%d", *opmode, ldo); in max77686_ldo_mode() 537 static int max77686_buck_mode(struct udevice *dev, int op, int *opmode) in max77686_buck_mode() argument 574 *opmode = ret; in max77686_buck_mode() 579 switch (*opmode) { in max77686_buck_mode() 614 pr_err("Wrong mode: %d for buck: %d\n", *opmode, buck); in max77686_buck_mode()
|
H A D | pfuze100.c | 314 static int pfuze100_regulator_mode(struct udevice *dev, int op, int *opmode) in pfuze100_regulator_mode() argument 330 *opmode = val; in pfuze100_regulator_mode() 342 *opmode = val; in pfuze100_regulator_mode() 353 *opmode = val; in pfuze100_regulator_mode() 365 *opmode << SWBST_MODE_SHIFT); in pfuze100_regulator_mode() 370 *opmode << SW_MODE_SHIFT); in pfuze100_regulator_mode() 375 *opmode << LDO_MODE_SHIFT); in pfuze100_regulator_mode()
|
/openbmc/u-boot/drivers/usb/ulpi/ |
H A D | ulpi.c | 146 int ulpi_opmode_sel(struct ulpi_viewport *ulpi_vp, unsigned opmode) in ulpi_opmode_sel() argument 151 switch (opmode) { in ulpi_opmode_sel() 156 topmode = opmode; in ulpi_opmode_sel() 159 printf("ULPI: %s: wrong OpMode specified: %u, " in ulpi_opmode_sel() 160 "falling back to OpMode Normal\n", __func__, opmode); in ulpi_opmode_sel() 167 /* clear the previous opmode setting */ in ulpi_opmode_sel()
|
/openbmc/linux/drivers/net/wireless/ath/ath5k/ |
H A D | mac80211-ops.c | 106 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 D | base.c | 507 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 …]
|
/openbmc/linux/drivers/usb/typec/ucsi/ |
H A D | trace.h | 48 __field(u8, opmode) 59 __entry->opmode = UCSI_CONSTAT_PWR_OPMODE(status->flags); 67 TP_printk("port%d status: change=%04x, opmode=%x, connected=%d, " 70 __entry->change, __entry->opmode, __entry->connected,
|
/openbmc/linux/drivers/media/i2c/ |
H A D | msp3400-driver.c | 56 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… 417 switch (state->opmode) { in msp_s_radio() 498 reg = (state->opmode == OPMODE_AUTOSELECT) ? 0x30 : 0xbb; in msp_s_routing() 514 if (state->opmode == OPMODE_AUTOSELECT) in msp_g_tuner() 566 if (state->opmode == OPMODE_AUTOSELECT) in msp_log_status() 586 } else if (state->opmode == OPMODE_MANUAL) { in msp_log_status() 591 if (state->opmode == OPMODE_AUTODETECT) in msp_log_status() 789 state->opmode = opmode; in msp_probe() [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-lm3642.c | 102 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 D | leds-lm355x.c | 196 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()
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ani.c | 185 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 D | htc_drv_beacon.c | 31 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()
|
/openbmc/linux/drivers/misc/ |
H A D | tsl2550.c | 338 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()
|
/openbmc/linux/drivers/net/wireless/ath/ |
H A D | debug.c | 20 const char *ath_opmode_to_string(enum nl80211_iftype opmode) in ath_opmode_to_string() argument 22 switch (opmode) { in ath_opmode_to_string()
|
/openbmc/qemu/hw/dma/ |
H A D | i8257.c | 223 int op, ai, dir, opmode; in i8257_write_cont() local 227 opmode = (data >> 6) & 3; in i8257_write_cont() 229 linfo ("ichan %d, op %d, ai %d, dir %d, opmode %d\n", in i8257_write_cont() 230 ichan, op, ai, dir, opmode); in i8257_write_cont() 326 int dir, opmode; in i8257_channel_run() local 329 opmode = (r->mode >> 6) & 3; in i8257_channel_run() 334 if (opmode != 1) { in i8257_channel_run() 335 dolog ("DMA not in single mode select %#x\n", opmode); in i8257_channel_run()
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | st,stusb160x.yaml | 44 typec-power-opmode: true 76 typec-power-opmode = "default";
|
/openbmc/linux/drivers/net/wireless/rsi/ |
H A D | rsi_mgmt.h | 234 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,
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | dm.c | 341 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() 584 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_AP) { in rtl92ee_dm_dynamic_primary_cca_ckeck() 887 mac->opmode == NL80211_IFTYPE_STATION) { in rtl92ee_dm_refresh_rate_adaptive_mask() 944 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_STATION && in rtl92ee_dm_common_info_self_update() 950 if (rtlpriv->mac80211.opmode == NL80211_IFTYPE_AP || in rtl92ee_dm_common_info_self_update() 951 rtlpriv->mac80211.opmode == NL80211_IFTYPE_ADHOC || in rtl92ee_dm_common_info_self_update() [all …]
|
/openbmc/linux/net/mac80211/ |
H A D | vht.c | 639 u8 opmode, enum nl80211_band band) in __ieee80211_vht_handle_opmode() argument 647 if (opmode & IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF) in __ieee80211_vht_handle_opmode() 650 nss = opmode & IEEE80211_OPMODE_NOTIF_RX_NSS_MASK; in __ieee80211_vht_handle_opmode() 670 switch (opmode & IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK) { in __ieee80211_vht_handle_opmode() 680 if (opmode & IEEE80211_OPMODE_NOTIF_BW_160_80P80) in __ieee80211_vht_handle_opmode() 752 u8 opmode, enum nl80211_band band) in ieee80211_vht_handle_opmode() argument 758 opmode, band); in ieee80211_vht_handle_opmode()
|