Lines Matching refs:pin_cfg
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()
481 pin_cfg->type, pin_cfg->num); in tegra_kbc_check_pin_cfg()
551 kbc->pin_cfg[i].type = PIN_CFG_IGNORE; in tegra_kbc_parse_dt()
568 kbc->pin_cfg[rows_cfg[i]].type = PIN_CFG_ROW; in tegra_kbc_parse_dt()
569 kbc->pin_cfg[rows_cfg[i]].num = i; in tegra_kbc_parse_dt()
573 kbc->pin_cfg[cols_cfg[i]].type = PIN_CFG_COL; in tegra_kbc_parse_dt()
574 kbc->pin_cfg[cols_cfg[i]].num = i; in tegra_kbc_parse_dt()