Home | History | Annotate | Download | only in dev

Lines Matching refs:slot

28 /* There is one of these for each slot. And yes, there is only one slot. */
245 struct pccard_slot *slot = &sc->devs[0];
247 if (slot->flags & SLOT_NEW_CARD_EVENT) {
248 slot->flags &= ~SLOT_NEW_CARD_EVENT;
261 return slot->flags & SLOT_OCCUPIED &&
262 slot->intr_func != NULL &&
263 slot->intr_func(slot->intr_arg);
273 struct pccard_slot *slot = &sc->devs[0];
278 if (slot->flags & SLOT_NEW_CARD_EVENT) {
279 slot->flags &= ~SLOT_NEW_CARD_EVENT;
290 tsleep(slot, PWAIT, "pccthread", hz);
295 pccard_attach_slot(struct pccard_slot *slot)
298 if (!(slot->flags & SLOT_OCCUPIED) &&
300 if (pcmcia_card_attach(slot->card) == 0)
301 slot->flags |= SLOT_OCCUPIED;
309 struct pccard_slot *slot = (struct pccard_slot *) pch;
311 pcmh->memt = &slot->sc->attr_space;
326 struct pccard_slot *slot = (struct pccard_slot *) pch;
333 pcmh->memt = &slot->sc->attr_space;
336 pcmh->memt = &slot->sc->mem_space;
360 struct pccard_slot *slot = (struct pccard_slot *) pch;
362 pcihp->iot = &slot->sc->io_space;
376 struct pccard_slot *slot = (struct pccard_slot *) pch;
378 pcihp->iot = &slot->sc->io_space;
394 struct pccard_slot *slot = (struct pccard_slot *) pch;
398 if (slot->intr_func == NULL) {
399 slot->intr_func = func;
400 slot->intr_arg = arg;
404 slot = NULL;
408 return slot;
414 struct pccard_slot *slot = (struct pccard_slot *) intr_handler;
416 if (slot != NULL) {
417 slot->intr_func = NULL;
418 slot->intr_arg = NULL;