Lines Matching refs:media
2016 bd_media_t media; in bd_update_state() local
2018 bzero(&media, sizeof (media)); in bd_update_state()
2021 if (bd->d_ops.o_media_info(bd->d_private, &media) != 0) { in bd_update_state()
2027 if ((media.m_blksize < 512) || in bd_update_state()
2028 (!ISP2(media.m_blksize)) || in bd_update_state()
2029 (P2PHASE(bd->d_maxxfer, media.m_blksize))) { in bd_update_state()
2031 media.m_blksize); in bd_update_state()
2040 if (((1U << bd->d_blkshift) != media.m_blksize) || in bd_update_state()
2041 (bd->d_numblks != media.m_nblks)) { in bd_update_state()
2046 bd->d_blkshift = ddi_ffs(media.m_blksize) - 1; in bd_update_state()
2048 bd->d_numblks = media.m_nblks; in bd_update_state()
2049 bd->d_rdonly = media.m_readonly; in bd_update_state()
2050 bd->d_ssd = media.m_solidstate; in bd_update_state()
2057 if ((media.m_pblksize != 0) && in bd_update_state()
2058 (media.m_pblksize >= media.m_blksize) && in bd_update_state()
2059 (ISP2(media.m_pblksize))) in bd_update_state()
2060 bd->d_pblkshift = ddi_ffs(media.m_pblksize) - 1; in bd_update_state()