Lines Matching refs:detect_pin
207 int detect_pin; member
1043 if (gpio_is_valid(slot->detect_pin)) { in atmci_get_cd()
1044 present = !(gpio_get_value(slot->detect_pin) ^ in atmci_get_cd()
1163 enable_irq(gpio_to_irq(slot->detect_pin)); in atmci_detect_change()
1164 present = !(gpio_get_value(slot->detect_pin) ^ in atmci_detect_change()
1611 slot->detect_pin = slot_data->detect_pin; in atmci_init_slot()
1635 if (gpio_is_valid(slot->detect_pin)) { in atmci_init_slot()
1636 if (gpio_request(slot->detect_pin, "mmc_detect")) { in atmci_init_slot()
1638 slot->detect_pin = -EBUSY; in atmci_init_slot()
1639 } else if (gpio_get_value(slot->detect_pin) ^ in atmci_init_slot()
1645 if (!gpio_is_valid(slot->detect_pin)) in atmci_init_slot()
1658 if (gpio_is_valid(slot->detect_pin)) { in atmci_init_slot()
1664 ret = request_irq(gpio_to_irq(slot->detect_pin), in atmci_init_slot()
1671 gpio_to_irq(slot->detect_pin)); in atmci_init_slot()
1672 gpio_free(slot->detect_pin); in atmci_init_slot()
1673 slot->detect_pin = -EBUSY; in atmci_init_slot()
1692 if (gpio_is_valid(slot->detect_pin)) { in atmci_cleanup_slot()
1693 int pin = slot->detect_pin; in atmci_cleanup_slot()