Lines Matching refs:slot
100 static inline ecard_t *slot_to_ecard(unsigned int slot) in slot_to_ecard() argument
102 return slot < MAX_ECARDS ? slot_to_expcard[slot] : NULL; in slot_to_ecard()
585 int slot = ec->slot_no; in __ecard_address() local
590 ectcr &= ~(1 << slot); in __ecard_address()
594 if (slot < 4) in __ecard_address()
595 address = ECARD_MEMC_BASE + (slot << 14); in __ecard_address()
599 if (slot < 4) in __ecard_address()
600 address = ECARD_IOC_BASE + (slot << 14); in __ecard_address()
602 address = ECARD_IOC4_BASE + ((slot - 4) << 14); in __ecard_address()
608 address = ECARD_EASI_BASE + (slot << 24); in __ecard_address()
610 ectcr |= 1 << slot; in __ecard_address()
699 static struct expansion_card *__init ecard_alloc_card(int type, int slot) in ecard_alloc_card() argument
711 ec->slot_no = slot; in ecard_alloc_card()
718 dev_set_name(&ec->dev, "ecard%d", slot); in ecard_alloc_card()
725 if (slot < 4) { in ecard_alloc_card()
727 PODSLOT_MEMC_BASE + (slot << 14), in ecard_alloc_card()
729 base = PODSLOT_IOC0_BASE + (slot << 14); in ecard_alloc_card()
731 base = PODSLOT_IOC4_BASE + ((slot - 4) << 14); in ecard_alloc_card()
734 if (slot < 8) { in ecard_alloc_card()
736 PODSLOT_EASI_BASE + (slot << 24), in ecard_alloc_card()
740 if (slot == 8) { in ecard_alloc_card()
885 static int __init ecard_probe(int slot, unsigned irq, card_type_t type) in ecard_probe() argument
893 ec = ecard_alloc_card(type, slot); in ecard_probe()
944 if (slot < 8) { in ecard_probe()
953 if (slot < 2) in ecard_probe()
954 ec->dma = 2 + slot; in ecard_probe()
960 slot_to_expcard[slot] = ec; in ecard_probe()
982 int slot, irqbase; in ecard_init() local
998 for (slot = 0; slot < 8; slot ++) { in ecard_init()
999 if (ecard_probe(slot, irqbase + slot, ECARD_EASI) == -ENODEV) in ecard_init()
1000 ecard_probe(slot, irqbase + slot, ECARD_IOC); in ecard_init()