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()
586 int slot = ec->slot_no; in __ecard_address() local
591 ectcr &= ~(1 << slot); in __ecard_address()
595 if (slot < 4) in __ecard_address()
596 address = ECARD_MEMC_BASE + (slot << 14); in __ecard_address()
600 if (slot < 4) in __ecard_address()
601 address = ECARD_IOC_BASE + (slot << 14); in __ecard_address()
603 address = ECARD_IOC4_BASE + ((slot - 4) << 14); in __ecard_address()
609 address = ECARD_EASI_BASE + (slot << 24); in __ecard_address()
611 ectcr |= 1 << slot; in __ecard_address()
700 static struct expansion_card *__init ecard_alloc_card(int type, int slot) in ecard_alloc_card() argument
712 ec->slot_no = slot; in ecard_alloc_card()
719 dev_set_name(&ec->dev, "ecard%d", slot); in ecard_alloc_card()
726 if (slot < 4) { in ecard_alloc_card()
728 PODSLOT_MEMC_BASE + (slot << 14), in ecard_alloc_card()
730 base = PODSLOT_IOC0_BASE + (slot << 14); in ecard_alloc_card()
732 base = PODSLOT_IOC4_BASE + ((slot - 4) << 14); in ecard_alloc_card()
735 if (slot < 8) { in ecard_alloc_card()
737 PODSLOT_EASI_BASE + (slot << 24), in ecard_alloc_card()
741 if (slot == 8) { in ecard_alloc_card()
886 static int __init ecard_probe(int slot, unsigned irq, card_type_t type) in ecard_probe() argument
894 ec = ecard_alloc_card(type, slot); in ecard_probe()
945 if (slot < 8) { in ecard_probe()
954 if (slot < 2) in ecard_probe()
955 ec->dma = 2 + slot; in ecard_probe()
961 slot_to_expcard[slot] = ec; in ecard_probe()
983 int slot, irqbase; in ecard_init() local
999 for (slot = 0; slot < 8; slot ++) { in ecard_init()
1000 if (ecard_probe(slot, irqbase + slot, ECARD_EASI) == -ENODEV) in ecard_init()
1001 ecard_probe(slot, irqbase + slot, ECARD_IOC); in ecard_init()