Lines Matching refs:media_bays

106 static struct media_bay_info media_bays[MAX_BAYS];  variable
112 #define MB_IDE_READY(i) ((readb(media_bays[i].cd_base + 0x70) & 0x80) == 0)
437 if (which_bay == media_bays[i].dev_node) in check_media_bay()
439 if ((what == media_bays[i].content_id) && media_bays[i].state == mb_up) in check_media_bay()
441 media_bays[i].cd_index = -1; in check_media_bay()
455 if (base == media_bays[i].cd_base) in check_media_bay_by_base()
457 if ((what == media_bays[i].content_id) && media_bays[i].state == mb_up) in check_media_bay_by_base()
459 media_bays[i].cd_index = -1; in check_media_bay_by_base()
475 if (which_bay == media_bays[i].dev_node) in media_bay_set_ide_infos()
479 media_bays[i].cd_base = base; in media_bay_set_ide_infos()
480 media_bays[i].cd_irq = irq; in media_bay_set_ide_infos()
482 if ((MB_CD != media_bays[i].content_id) || media_bays[i].state != mb_up) in media_bay_set_ide_infos()
488 media_bays[i].cd_index = index; in media_bay_set_ide_infos()
504 struct media_bay_info* bay = &media_bays[i]; in media_bay_step()
665 bay = &media_bays[i]; in mb_notify_sleep()
672 bay = &media_bays[i]; in mb_notify_sleep()
692 } while((media_bays[i].state != mb_empty) && in mb_notify_sleep()
693 (media_bays[i].state != mb_up)); in mb_notify_sleep()
747 memset((char *)&media_bays[i], 0, sizeof(struct media_bay_info)); in media_bay_init()
748 media_bays[i].content_id = -1; in media_bay_init()
750 media_bays[i].cd_index = -1; in media_bay_init()
757 struct media_bay_info* bay = &media_bays[n]; in media_bay_init()