Lines Matching defs:slot
1331 static int cdrom_slot_status(struct cdrom_device_info *cdi, int slot)
1347 if (info->slots[slot].disc_present)
1382 /* If SLOT < 0, unload the current slot. Otherwise, try to load SLOT. */
1383 static int cdrom_load_unload(struct cdrom_device_info *cdi, int slot)
1388 if (cdi->sanyo_slot && slot < 0)
1393 cgc.cmd[4] = 2 + (slot >= 0);
1394 cgc.cmd[8] = slot;
1400 if (cdi->sanyo_slot && -1 < slot) {
1402 cgc.cmd[7] = slot;
1404 cdi->sanyo_slot = slot ? slot : 3;
1410 static int cdrom_select_disc(struct cdrom_device_info *cdi, int slot)
1421 cdi->ops->check_events(cdi, 0, slot);
1423 if (slot == CDSL_NONE) {
1442 if (slot == CDSL_CURRENT) {
1449 /* Specifying CDSL_CURRENT will attempt to load the currnet slot,
1451 Whether it can or not, it returns the current slot.
1452 Similarly, if slot happens to be the current one, we still
1454 if (slot == CDSL_CURRENT)
1455 slot = curslot;
1459 if ((ret = cdrom_load_unload(cdi, slot)))
1462 return slot;