Lines Matching refs:slot

44 	int slot;  in search_tc_card()  local
47 for (slot = 0; slot < num_tcslots; slot++) { in search_tc_card()
48 sip = &tc_bus[slot]; in search_tc_card()
51 return slot; in search_tc_card()
58 void claim_tc_card(int slot) in claim_tc_card() argument
60 if (tc_bus[slot].flags & IN_USE) { in claim_tc_card()
64 tc_bus[slot].flags &= ~FREE; in claim_tc_card()
65 tc_bus[slot].flags |= IN_USE; in claim_tc_card()
68 void release_tc_card(int slot) in release_tc_card() argument
70 if (tc_bus[slot].flags & FREE) { in release_tc_card()
75 tc_bus[slot].flags &= ~IN_USE; in release_tc_card()
76 tc_bus[slot].flags |= FREE; in release_tc_card()
79 unsigned long get_tc_base_addr(int slot) in get_tc_base_addr() argument
81 return tc_bus[slot].base_addr; in get_tc_base_addr()
84 unsigned long get_tc_irq_nr(int slot) in get_tc_irq_nr() argument
86 return tc_bus[slot].interrupt; in get_tc_irq_nr()
100 int i, slot, err; in tc_probe() local
105 for (slot = 0; slot < slots; slot++) { in tc_probe()
106 module = (char *)(startaddr + slot * size); in tc_probe()
135 tc_bus[slot].base_addr = (unsigned long)module; in tc_probe()
137 tc_bus[slot].firmware[i] = in tc_probe()
139 tc_bus[slot].vendor[i] = in tc_probe()
141 tc_bus[slot].name[i] = in tc_probe()
144 tc_bus[slot].firmware[8] = 0; in tc_probe()
145 tc_bus[slot].vendor[8] = 0; in tc_probe()
146 tc_bus[slot].name[8] = 0; in tc_probe()
151 switch (slot) { in tc_probe()
153 tc_bus[slot].interrupt = dec_interrupt[DEC_IRQ_TC0]; in tc_probe()
156 tc_bus[slot].interrupt = dec_interrupt[DEC_IRQ_TC1]; in tc_probe()
159 tc_bus[slot].interrupt = dec_interrupt[DEC_IRQ_TC2]; in tc_probe()
165 tc_bus[slot].interrupt = dec_interrupt[DEC_IRQ_TC5]; in tc_probe()
168 tc_bus[slot].interrupt = dec_interrupt[DEC_IRQ_TC6]; in tc_probe()
171 tc_bus[slot].interrupt = -1; in tc_probe()