Searched refs:pin_cfg (Results 1 – 5 of 5) sorted by relevance
/linux-3.4.99/drivers/hwmon/ |
D | adt7462.c | 224 u8 pin_cfg[ADT7462_PIN_CFG_REG_COUNT]; member 285 if (!(data->pin_cfg[0] & ADT7462_PIN7_INPUT)) in ADT7462_REG_VOLT_MAX() 291 if (!(data->pin_cfg[1] & ADT7462_PIN22_INPUT)) in ADT7462_REG_VOLT_MAX() 295 if (!(data->pin_cfg[1] & ADT7462_PIN21_INPUT)) in ADT7462_REG_VOLT_MAX() 299 if (!(data->pin_cfg[0] & ADT7462_DIODE3_INPUT)) in ADT7462_REG_VOLT_MAX() 303 if (!(data->pin_cfg[0] & ADT7462_DIODE1_INPUT)) in ADT7462_REG_VOLT_MAX() 307 if (!(data->pin_cfg[1] & ADT7462_PIN13_INPUT)) in ADT7462_REG_VOLT_MAX() 311 if (!(data->pin_cfg[1] & ADT7462_PIN8_INPUT)) in ADT7462_REG_VOLT_MAX() 315 if (!(data->pin_cfg[2] & ADT7462_PIN26_VOLT_INPUT)) in ADT7462_REG_VOLT_MAX() 319 if (!(data->pin_cfg[2] & ADT7462_PIN25_VOLT_INPUT)) in ADT7462_REG_VOLT_MAX() [all …]
|
/linux-3.4.99/drivers/input/keyboard/ |
D | tegra-kbc.c | 471 switch (pdata->pin_cfg[i].type) { in tegra_kbc_config_pins() 473 row_cfg |= ((pdata->pin_cfg[i].num << 1) | 1) << r_shft; in tegra_kbc_config_pins() 477 col_cfg |= ((pdata->pin_cfg[i].num << 1) | 1) << c_shft; in tegra_kbc_config_pins() 585 const struct tegra_kbc_pin_cfg *pin_cfg = &pdata->pin_cfg[i]; in tegra_kbc_check_pin_cfg() local 587 switch (pin_cfg->type) { in tegra_kbc_check_pin_cfg() 589 if (pin_cfg->num >= KBC_MAX_ROW) { in tegra_kbc_check_pin_cfg() 592 i, pin_cfg->num); in tegra_kbc_check_pin_cfg() 599 if (pin_cfg->num >= KBC_MAX_COL) { in tegra_kbc_check_pin_cfg() 602 i, pin_cfg->num); in tegra_kbc_check_pin_cfg() 613 pin_cfg->type, pin_cfg->num); in tegra_kbc_check_pin_cfg() [all …]
|
/linux-3.4.99/arch/arm/mach-tegra/include/mach/ |
D | kbc.h | 54 struct tegra_kbc_pin_cfg pin_cfg[KBC_MAX_GPIO]; member
|
/linux-3.4.99/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 370 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val) in bnx2x_set_cfg_pin() argument 372 if (pin_cfg == PIN_CFG_NA) in bnx2x_set_cfg_pin() 374 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_set_cfg_pin() 375 bnx2x_set_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_set_cfg_pin() 377 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_set_cfg_pin() 378 u8 gpio_port = (pin_cfg - PIN_CFG_GPIO0_P0) >> 2; in bnx2x_set_cfg_pin() 383 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin() argument 385 if (pin_cfg == PIN_CFG_NA) in bnx2x_get_cfg_pin() 387 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_get_cfg_pin() 388 bnx2x_get_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_get_cfg_pin() [all …]
|
/linux-3.4.99/sound/pci/hda/ |
D | patch_sigmatel.c | 5717 unsigned int pin_cfg; in patch_stac92hd71bxx() local 5892 pin_cfg = snd_hda_codec_get_pincfg(codec, 0x0f); in patch_stac92hd71bxx() 5893 if (get_defcfg_device(pin_cfg) == AC_JACK_LINE_OUT || in patch_stac92hd71bxx() 5894 get_defcfg_device(pin_cfg) == AC_JACK_SPEAKER || in patch_stac92hd71bxx() 5895 get_defcfg_device(pin_cfg) == AC_JACK_HP_OUT) { in patch_stac92hd71bxx() 5899 pin_cfg = (pin_cfg & (~AC_DEFCFG_DEVICE)) in patch_stac92hd71bxx() 5902 pin_cfg = (pin_cfg & (~(AC_DEFCFG_DEF_ASSOC in patch_stac92hd71bxx() 5905 snd_hda_codec_set_pincfg(codec, 0x0f, pin_cfg); in patch_stac92hd71bxx()
|