Searched refs:pin_cfg (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.4/drivers/hwmon/ |
D | adt7462.c | 209 u8 pin_cfg[ADT7462_PIN_CFG_REG_COUNT]; member 246 if (!(data->pin_cfg[0] & ADT7462_PIN7_INPUT)) in ADT7462_REG_VOLT_MAX() 252 if (!(data->pin_cfg[1] & ADT7462_PIN22_INPUT)) in ADT7462_REG_VOLT_MAX() 256 if (!(data->pin_cfg[1] & ADT7462_PIN21_INPUT)) in ADT7462_REG_VOLT_MAX() 260 if (!(data->pin_cfg[0] & ADT7462_DIODE3_INPUT)) in ADT7462_REG_VOLT_MAX() 264 if (!(data->pin_cfg[0] & ADT7462_DIODE1_INPUT)) in ADT7462_REG_VOLT_MAX() 268 if (!(data->pin_cfg[1] & ADT7462_PIN13_INPUT)) in ADT7462_REG_VOLT_MAX() 272 if (!(data->pin_cfg[1] & ADT7462_PIN8_INPUT)) in ADT7462_REG_VOLT_MAX() 276 if (!(data->pin_cfg[2] & ADT7462_PIN26_VOLT_INPUT)) in ADT7462_REG_VOLT_MAX() 280 if (!(data->pin_cfg[2] & ADT7462_PIN25_VOLT_INPUT)) in ADT7462_REG_VOLT_MAX() [all …]
|
/Linux-v5.4/drivers/pinctrl/ |
D | pinctrl-rk805.c | 76 struct rk805_pin_config *pin_cfg; member 141 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val); in rk805_gpio_get() 147 return !!(val & pci->pin_cfg[offset].val_msk); in rk805_gpio_get() 158 pci->pin_cfg[offset].reg, in rk805_gpio_set() 159 pci->pin_cfg[offset].val_msk, in rk805_gpio_set() 160 value ? pci->pin_cfg[offset].val_msk : 0); in rk805_gpio_set() 186 if (!pci->pin_cfg[offset].dir_msk) in rk805_gpio_get_direction() 190 pci->pin_cfg[offset].reg, in rk805_gpio_get_direction() 197 return !(val & pci->pin_cfg[offset].dir_msk); in rk805_gpio_get_direction() 286 if (!pci->pin_cfg[offset].fun_msk) in _rk805_pinctrl_set_mux() [all …]
|
/Linux-v5.4/drivers/input/keyboard/ |
D | tegra-kbc.c | 87 struct tegra_kbc_pin_cfg pin_cfg[KBC_MAX_GPIO]; member 338 switch (kbc->pin_cfg[i].type) { in tegra_kbc_config_pins() 340 row_cfg |= ((kbc->pin_cfg[i].num << 1) | 1) << r_shft; in tegra_kbc_config_pins() 344 col_cfg |= ((kbc->pin_cfg[i].num << 1) | 1) << c_shft; in tegra_kbc_config_pins() 453 const struct tegra_kbc_pin_cfg *pin_cfg = &kbc->pin_cfg[i]; in tegra_kbc_check_pin_cfg() local 455 switch (pin_cfg->type) { in tegra_kbc_check_pin_cfg() 457 if (pin_cfg->num >= kbc->hw_support->max_rows) { in tegra_kbc_check_pin_cfg() 460 i, pin_cfg->num); in tegra_kbc_check_pin_cfg() 467 if (pin_cfg->num >= kbc->hw_support->max_columns) { in tegra_kbc_check_pin_cfg() 470 i, pin_cfg->num); in tegra_kbc_check_pin_cfg() [all …]
|
/Linux-v5.4/sound/pci/hda/ |
D | patch_sigmatel.c | 3119 unsigned int pin_cfg = snd_hda_codec_get_pincfg(codec, pin); in is_hp_output() local 3122 return get_defcfg_connect(pin_cfg) != AC_JACK_PORT_NONE && in is_hp_output() 3123 (get_defcfg_device(pin_cfg) == AC_JACK_LINE_OUT || in is_hp_output() 3124 get_defcfg_device(pin_cfg) == AC_JACK_HP_OUT); in is_hp_output() 3129 unsigned int pin_cfg = snd_hda_codec_get_pincfg(codec, pin); in fixup_hp_headphone() local 3134 pin_cfg = (pin_cfg & (~AC_DEFCFG_DEVICE)) | in fixup_hp_headphone() 3136 pin_cfg = (pin_cfg & (~(AC_DEFCFG_DEF_ASSOC | AC_DEFCFG_SEQUENCE))) | in fixup_hp_headphone() 3138 snd_hda_codec_set_pincfg(codec, pin, pin_cfg); in fixup_hp_headphone()
|
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 410 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val) in bnx2x_set_cfg_pin() argument 412 if (pin_cfg == PIN_CFG_NA) in bnx2x_set_cfg_pin() 414 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_set_cfg_pin() 415 bnx2x_set_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_set_cfg_pin() 417 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_set_cfg_pin() 418 u8 gpio_port = (pin_cfg - PIN_CFG_GPIO0_P0) >> 2; in bnx2x_set_cfg_pin() 423 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin() argument 425 if (pin_cfg == PIN_CFG_NA) in bnx2x_get_cfg_pin() 427 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_get_cfg_pin() 428 bnx2x_get_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_get_cfg_pin() [all …]
|
/Linux-v5.4/sound/hda/ |
D | hdac_sysfs.c | 271 static WIDGET_ATTR_RO(pin_cfg);
|
/Linux-v5.4/drivers/gpu/drm/omapdrm/dss/ |
D | omapdss.h | 303 const struct omap_dsi_pin_config *pin_cfg);
|
D | dsi.c | 3662 const struct omap_dsi_pin_config *pin_cfg) in dsi_configure_pins() argument 3679 num_pins = pin_cfg->num_pins; in dsi_configure_pins() 3680 pins = pin_cfg->pins; in dsi_configure_pins() 5150 struct omap_dsi_pin_config pin_cfg; in dsi_probe_of() local 5178 pin_cfg.num_pins = num_pins; in dsi_probe_of() 5180 pin_cfg.pins[i] = (int)lane_arr[i]; in dsi_probe_of() 5182 r = dsi_configure_pins(&dsi->output, &pin_cfg); in dsi_probe_of()
|
/Linux-v5.4/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dsi.c | 3738 const struct omap_dsi_pin_config *pin_cfg) in dsi_configure_pins() argument 3756 num_pins = pin_cfg->num_pins; in dsi_configure_pins() 3757 pins = pin_cfg->pins; in dsi_configure_pins() 5079 struct omap_dsi_pin_config pin_cfg; in dsi_probe_of() local 5107 pin_cfg.num_pins = num_pins; in dsi_probe_of() 5109 pin_cfg.pins[i] = (int)lane_arr[i]; in dsi_probe_of() 5111 r = dsi_configure_pins(&dsi->output, &pin_cfg); in dsi_probe_of()
|
/Linux-v5.4/include/video/ |
D | omapfb_dss.h | 555 const struct omap_dsi_pin_config *pin_cfg);
|