Lines Matching refs:detect_pin
222 struct gpio_desc *detect_pin; member
424 struct gpio_desc *detect_pin; member
672 pdata->slot[slot_id].detect_pin = in atmci_of_init()
675 err = PTR_ERR_OR_ZERO(pdata->slot[slot_id].detect_pin); in atmci_of_init()
679 pdata->slot[slot_id].detect_pin = NULL; in atmci_of_init()
1570 if (slot->detect_pin) { in atmci_get_cd()
1571 present = gpiod_get_value_cansleep(slot->detect_pin); in atmci_get_cd()
1683 enable_irq(gpiod_to_irq(slot->detect_pin)); in atmci_detect_change()
1684 present = gpiod_get_value_cansleep(slot->detect_pin); in atmci_detect_change()
2273 slot->detect_pin = slot_data->detect_pin; in atmci_init_slot()
2281 id, slot_data->bus_width, desc_to_gpio(slot_data->detect_pin), in atmci_init_slot()
2282 !gpiod_is_active_low(slot_data->detect_pin) ? "true" : "false", in atmci_init_slot()
2319 if (slot->detect_pin) { in atmci_init_slot()
2320 if (!gpiod_get_value_cansleep(slot->detect_pin)) in atmci_init_slot()
2326 if (!slot->detect_pin) { in atmci_init_slot()
2344 if (slot->detect_pin) { in atmci_init_slot()
2347 ret = request_irq(gpiod_to_irq(slot->detect_pin), in atmci_init_slot()
2354 gpiod_to_irq(slot->detect_pin)); in atmci_init_slot()
2355 slot->detect_pin = NULL; in atmci_init_slot()
2374 if (slot->detect_pin) { in atmci_cleanup_slot()
2375 free_irq(gpiod_to_irq(slot->detect_pin), slot); in atmci_cleanup_slot()