Searched refs:pin_cfg (Results 1 – 8 of 8) sorted by relevance
/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 …]
|
/drivers/pinctrl/ |
D | pinctrl-rk805.c | 76 const 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 if (val & pci->pin_cfg[offset].dir_msk) in rk805_gpio_get_direction() 289 if (!pci->pin_cfg[offset].fun_msk) in _rk805_pinctrl_set_mux() [all …]
|
/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 …]
|
/drivers/hwmon/pmbus/ |
D | adm1266.c | 228 unsigned long pin_cfg; in adm1266_gpio_dbg_show() local 267 pin_cfg = ADM1266_PDIO_PIN_CFG(pdio_config); in adm1266_gpio_dbg_show() 270 if (!pin_cfg || pin_cfg > 5) { in adm1266_gpio_dbg_show() 275 if (pin_cfg & BIT(0)) in adm1266_gpio_dbg_show() 278 if (pin_cfg & BIT(1)) in adm1266_gpio_dbg_show()
|
/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 …]
|
/drivers/gpu/drm/omapdrm/dss/ |
D | omapdss.h | 296 const struct omap_dsi_pin_config *pin_cfg);
|
D | dsi.c | 3667 const struct omap_dsi_pin_config *pin_cfg) in dsi_configure_pins() argument 3684 num_pins = pin_cfg->num_pins; in dsi_configure_pins() 3685 pins = pin_cfg->pins; in dsi_configure_pins() 5155 struct omap_dsi_pin_config pin_cfg; in dsi_probe_of() local 5183 pin_cfg.num_pins = num_pins; in dsi_probe_of() 5185 pin_cfg.pins[i] = (int)lane_arr[i]; in dsi_probe_of() 5187 r = dsi_configure_pins(&dsi->output, &pin_cfg); in dsi_probe_of()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dsi.c | 3741 const struct omap_dsi_pin_config *pin_cfg) in dsi_configure_pins() argument 3759 num_pins = pin_cfg->num_pins; in dsi_configure_pins() 3760 pins = pin_cfg->pins; in dsi_configure_pins() 5082 struct omap_dsi_pin_config pin_cfg; in dsi_probe_of() local 5110 pin_cfg.num_pins = num_pins; in dsi_probe_of() 5112 pin_cfg.pins[i] = (int)lane_arr[i]; in dsi_probe_of() 5114 r = dsi_configure_pins(&dsi->output, &pin_cfg); in dsi_probe_of()
|