Home
last modified time | relevance | path

Searched refs:mode_val (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/drivers/leds/
Dleds-netxbig.c49 int *mode_val; member
111 int *mode_val; member
145 int mode_val; in netxbig_led_blink_set() local
154 mode_val = led_dat->mode_val[mode]; in netxbig_led_blink_set()
155 if (mode_val == NETXBIG_LED_INVALID_MODE) in netxbig_led_blink_set()
160 gpio_ext_set_value(led_dat->gpio_ext, led_dat->mode_addr, mode_val); in netxbig_led_blink_set()
174 int mode_val; in netxbig_led_set() local
191 mode_val = led_dat->mode_val[mode]; in netxbig_led_set()
193 gpio_ext_set_value(led_dat->gpio_ext, led_dat->mode_addr, mode_val); in netxbig_led_set()
216 int mode_val; in sata_store() local
[all …]
Dleds-lm3530.c86 enum lm3530_mode mode_val; member
150 return mode_map[i].mode_val; in lm3530_get_mode_from_str()
358 if (drvdata->mode == mode_map[i].mode_val) in mode_show()
/linux-6.6.21/drivers/spi/
Dspi-npcm-pspi.c106 u16 mode_val; in npcm_pspi_set_mode() local
110 mode_val = 0; in npcm_pspi_set_mode()
113 mode_val = NPCM_PSPI_CTL1_SCIDL; in npcm_pspi_set_mode()
116 mode_val = NPCM_PSPI_CTL1_SCM; in npcm_pspi_set_mode()
119 mode_val = NPCM_PSPI_CTL1_SCIDL | NPCM_PSPI_CTL1_SCM; in npcm_pspi_set_mode()
125 iowrite16(regtemp | mode_val, priv->base + NPCM_PSPI_CTL1); in npcm_pspi_set_mode()
Dspi-microchip-core.c339 u32 control, mode_val; in mchp_corespi_set_mode() local
343 mode_val = 0; in mchp_corespi_set_mode()
346 mode_val = CONTROL_SPH; in mchp_corespi_set_mode()
349 mode_val = CONTROL_SPO; in mchp_corespi_set_mode()
352 mode_val = CONTROL_SPH | CONTROL_SPO; in mchp_corespi_set_mode()
364 control |= mode_val; in mchp_corespi_set_mode()
/linux-6.6.21/drivers/regulator/
Drt6160-regulator.c95 unsigned int mode_val; in rt6160_set_mode() local
99 mode_val = RT6160_FPWM_MASK; in rt6160_set_mode()
102 mode_val = 0; in rt6160_set_mode()
109 return regmap_update_bits(regmap, RT6160_REG_CNTL, RT6160_FPWM_MASK, mode_val); in rt6160_set_mode()
Drt5759-regulator.c60 unsigned int mode_val; in rt5759_set_mode() local
64 mode_val = 0; in rt5759_set_mode()
67 mode_val = RT5759_FPWM_MASK; in rt5759_set_mode()
74 mode_val); in rt5759_set_mode()
Drtq2208-regulator.c118 unsigned int mode_val; in rtq2208_get_mode() local
121 ret = regmap_read(rdev->regmap, rdesc->mode_reg, &mode_val); in rtq2208_get_mode()
125 return (mode_val & rdesc->mode_mask) ? REGULATOR_MODE_FAST : REGULATOR_MODE_NORMAL; in rtq2208_get_mode()
Dcpcap-regulator.c98 mode_mask, volt_mask, mode_val, off_val, \ argument
114 .enable_val = (mode_val), \
/linux-6.6.21/drivers/pinctrl/bcm/
Dpinctrl-bcm6328.c34 unsigned mode_val:1; member
238 .mode_val = 1, \
331 bcm6328_rmw_mux(pc, pg->pins[0], f->mode_val, f->mux_val); in bcm6328_pinctrl_set_mux()
Dpinctrl-bcm6318.c35 unsigned mode_val:1; member
302 .mode_val = 1, \
417 bcm6318_rmw_mux(pc, pg->pins[0], f->mode_val, f->mux_val); in bcm6318_pinctrl_set_mux()
Dpinctrl-bcm6358.c40 const uint16_t mode_val; member
133 .mode_val = BCM6358_MODE_MUX_##bit, \
259 unsigned int val = pg->mode_val; in bcm6358_pinctrl_set_mux()
/linux-6.6.21/drivers/media/usb/gspca/
Dkinect.c280 uint8_t mode_val; in sd_start_video() local
288 mode_val = 0x03; in sd_start_video()
293 mode_val = 0x01; in sd_start_video()
338 write_register(gspca_dev, 0x05, mode_val); in sd_start_video()
/linux-6.6.21/drivers/hwmon/
Dnct7802.c1060 u8 *mode_val) in nct7802_get_channel_config() argument
1083 *mode_val &= ~MODE_LTD_EN; in nct7802_get_channel_config()
1085 *mode_val |= MODE_LTD_EN; in nct7802_get_channel_config()
1093 *mode_val &= ~(MODE_RTD_MASK << MODE_BIT_OFFSET_RTD(reg - 1)); in nct7802_get_channel_config()
1104 *mode_val |= (RTD_MODE_VOLTAGE & MODE_RTD_MASK) in nct7802_get_channel_config()
1137 *mode_val |= (md & MODE_RTD_MASK) << MODE_BIT_OFFSET_RTD(reg - 1); in nct7802_get_channel_config()
1147 u8 mode_mask = MODE_LTD_EN, mode_val = MODE_LTD_EN; in nct7802_configure_channels() local
1154 &mode_val); in nct7802_configure_channels()
1162 return regmap_update_bits(data->regmap, REG_MODE, mode_mask, mode_val); in nct7802_configure_channels()
/linux-6.6.21/sound/soc/codecs/
Dwm8998.c110 unsigned int mux, inmode, src_val, mode_val; in wm8998_inmux_put() local
130 mode_val = 1 << ARIZONA_IN1_MODE_SHIFT; in wm8998_inmux_put()
132 mode_val = 0; in wm8998_inmux_put()
139 ARIZONA_IN1_MODE_MASK, mode_val); in wm8998_inmux_put()
Dwcd9335.c2241 u32 mode_val; in wcd9335_rx_hph_mode_put() local
2243 mode_val = ucontrol->value.enumerated.item[0]; in wcd9335_rx_hph_mode_put()
2245 if (mode_val == 0) { in wcd9335_rx_hph_mode_put()
2247 mode_val = CLS_H_HIFI; in wcd9335_rx_hph_mode_put()
2249 wcd->hph_mode = mode_val; in wcd9335_rx_hph_mode_put()
Dwcd934x.c3295 u32 mode_val; in wcd934x_rx_hph_mode_put() local
3297 mode_val = ucontrol->value.enumerated.item[0]; in wcd934x_rx_hph_mode_put()
3299 if (mode_val == wcd->hph_mode) in wcd934x_rx_hph_mode_put()
3302 if (mode_val == 0) { in wcd934x_rx_hph_mode_put()
3304 mode_val = CLS_H_LOHIFI; in wcd934x_rx_hph_mode_put()
3306 wcd->hph_mode = mode_val; in wcd934x_rx_hph_mode_put()
/linux-6.6.21/drivers/clk/qcom/
Dclk-alpha-pll.c920 u32 mode_val, opmode_val; in trion_pll_is_enabled() local
923 ret = regmap_read(regmap, PLL_MODE(pll), &mode_val); in trion_pll_is_enabled()
928 return ((opmode_val & PLL_RUN) && (mode_val & PLL_OUTCTRL)); in trion_pll_is_enabled()
/linux-6.6.21/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c9939 u8 mode_val[4] = { 2, 2, 0, 1 }; in ctrl_set_oob() local
10100 mode_index = mode_val[(set_param_parameters[0] & 0xC0) >> 6]; in ctrl_set_oob()