Home
last modified time | relevance | path

Searched refs:gpio_cfg (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-gpio.c105 struct mxl_gpio_cfg *gpio_cfg) in mxl111sf_config_gpio_pins() argument
110 mxl_debug_adv("(%d, %d)", gpio_cfg->pin, gpio_cfg->dir); in mxl111sf_config_gpio_pins()
112 switch (gpio_cfg->pin) { in mxl111sf_config_gpio_pins()
120 tmp &= ~(1 << (gpio_cfg->pin + 4)); in mxl111sf_config_gpio_pins()
121 tmp |= (gpio_cfg->dir << (gpio_cfg->pin + 4)); in mxl111sf_config_gpio_pins()
133 tmp &= ~(1 << gpio_cfg->pin); in mxl111sf_config_gpio_pins()
134 tmp |= (gpio_cfg->dir << gpio_cfg->pin); in mxl111sf_config_gpio_pins()
145 tmp &= ~(1 << (gpio_cfg->pin - 3)); in mxl111sf_config_gpio_pins()
146 tmp |= (gpio_cfg->dir << (gpio_cfg->pin - 3)); in mxl111sf_config_gpio_pins()
155 ret = (MXL_GPIO_DIR_OUTPUT == gpio_cfg->dir) ? in mxl111sf_config_gpio_pins()
[all …]
/linux-6.6.21/arch/mips/ar7/
Dgpio.c261 struct titan_gpio_cfg gpio_cfg; in titan_gpio_pinsel() local
268 gpio_cfg = titan_gpio_table[gpio]; in titan_gpio_pinsel()
269 pin_sel_reg = gpio_cfg.reg - 1; in titan_gpio_pinsel()
271 mux_status = (readl(pin_sel + pin_sel_reg) >> gpio_cfg.shift) & 0x3; in titan_gpio_pinsel()
274 if (!((mux_status == 0) || (mux_status == gpio_cfg.func))) in titan_gpio_pinsel()
279 tmp |= ((gpio_cfg.func & 0x3) << gpio_cfg.shift); in titan_gpio_pinsel()
/linux-6.6.21/sound/soc/codecs/
Dwm8903.c1952 if (of_property_read_u32_array(np, "gpio-cfg", pdata->gpio_cfg, in wm8903_set_pdata_from_of()
1953 ARRAY_SIZE(pdata->gpio_cfg)) >= 0) { in wm8903_set_pdata_from_of()
1966 for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { in wm8903_set_pdata_from_of()
1967 if (pdata->gpio_cfg[i] == 0) { in wm8903_set_pdata_from_of()
1968 pdata->gpio_cfg[i] = WM8903_GPIO_CONFIG_ZERO; in wm8903_set_pdata_from_of()
1969 } else if (pdata->gpio_cfg[i] == 0xffffffff) { in wm8903_set_pdata_from_of()
1970 pdata->gpio_cfg[i] = 0; in wm8903_set_pdata_from_of()
1971 } else if (pdata->gpio_cfg[i] > 0x7fff) { in wm8903_set_pdata_from_of()
1973 i, pdata->gpio_cfg[i]); in wm8903_set_pdata_from_of()
2074 for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { in wm8903_i2c_probe()
[all …]
Dtlv320adc3xxx.c324 unsigned int gpio_cfg[ADC3XXX_GPIOS_MAX]; /* value+1 (0 => not set) */ member
968 if (adc3xxx->gpio_cfg[offset] != 0 && in adc3xxx_gpio_request()
969 adc3xxx->gpio_cfg[offset] != ADC3XXX_GPIO_GPO + 1) in adc3xxx_gpio_request()
1053 unsigned int cfg = adc3xxx->gpio_cfg[gpio]; in adc3xxx_init_gpio()
1386 ret = adc3xxx_parse_dt_gpio(adc3xxx, "ti,dmdin-gpio1", &adc3xxx->gpio_cfg[0]); in adc3xxx_i2c_probe()
1389 ret = adc3xxx_parse_dt_gpio(adc3xxx, "ti,dmclk-gpio2", &adc3xxx->gpio_cfg[1]); in adc3xxx_i2c_probe()
Dwm8960.c1419 of_property_read_u32_array(np, "wlf,gpio-cfg", pdata->gpio_cfg, in wm8960_set_pdata_from_of()
1420 ARRAY_SIZE(pdata->gpio_cfg)); in wm8960_set_pdata_from_of()
1518 wm8960->pdata.gpio_cfg[0] << 6); in wm8960_i2c_probe()
1520 wm8960->pdata.gpio_cfg[1] << 4); in wm8960_i2c_probe()
Dwm8904.c2284 if (!wm8904->pdata->gpio_cfg[i]) in wm8904_i2c_probe()
2290 wm8904->pdata->gpio_cfg[i]); in wm8904_i2c_probe()
/linux-6.6.21/include/sound/
Dwm8960.h35 u32 gpio_cfg[2]; member
Dwm8904.h154 u32 gpio_cfg[WM8904_GPIO_REGS]; member
Dwm8903.h260 u32 gpio_cfg[WM8903_NUM_GPIO]; /* Default register values for GPIO pin mux */ member