Lines Matching defs:med_info
68 smmedium_prop_t med_info;
214 if (smedia_get_medium_property(handle, &med_info) < 0) {
222 DPRINTF1("media type %x\n", med_info.sm_media_type);
223 DPRINTF1("media block size %x\n", med_info.sm_blocksize);
224 DPRINTF1("media capacity %u\n", (uint32_t)med_info.sm_capacity);
226 med_info.sm_pcyl, med_info.sm_nhead, med_info.sm_nsect);
227 check_invalid_combinations_again(med_info.sm_media_type);
234 if (med_info.sm_media_type == SM_PCMCIA_MEM) {
248 if (med_info.sm_media_type == SM_PCMCIA_ATA) {
332 if (med_info.sm_media_type == SM_FLOPPY)
335 if ((med_info.sm_media_type != SM_FLOPPY) &&
336 (med_info.sm_media_type != SM_PCMCIA_MEM) &&
337 (med_info.sm_media_type != SM_SCSI_FLOPPY)) {
388 if ((med_info.sm_media_type == SM_FLOPPY) ||
389 (med_info.sm_media_type == SM_PCMCIA_MEM) ||
390 (med_info.sm_media_type == SM_SCSI_FLOPPY)) {
391 (void) write_sunos_label(fd, med_info.sm_media_type);
756 if ((med_status < 0) || (med_info.sm_media_type == SM_PCMCIA_MEM) ||
757 (med_info.sm_media_type == SM_PCMCIA_ATA)) {
849 ret = smedia_get_medium_property(handle, &med_info);
855 DPRINTF1("media_type %d\n", med_info.sm_media_type);
856 DPRINTF1("sector_size %d\n", med_info.sm_blocksize);
857 DPRINTF1("num_sectors %u\n", (uint32_t)med_info.sm_capacity);
858 DPRINTF1("nsect %d\n", med_info.sm_nsect);
860 blocksize = med_info.sm_blocksize;
862 capacity = (uint32_t)med_info.sm_capacity;
863 verify_size = (med_info.sm_nsect > 64) ? 64 : med_info.sm_nsect;
878 for (bn = 0; bn < (uint32_t)med_info.sm_capacity;
880 new_per = (bn * 80)/(uint32_t)med_info.sm_capacity;
895 capacity = (diskaddr_t)med_info.sm_pcyl *
896 med_info.sm_nhead * med_info.sm_nsect;
921 for (bn = 0; bn < (uint32_t)med_info.sm_capacity;
923 new_per = (bn * 80)/(uint32_t)med_info.sm_capacity;
1064 for (cyl = 0; cyl < med_info.sm_pcyl; cyl++) {
1065 for (head = 0; head < med_info.sm_nhead; head++) {
1072 new_per = (cyl * 80)/med_info.sm_pcyl;
1080 (void) write_sunos_label(fd, med_info.sm_media_type);
1094 for (cyl = 0; cyl < med_info.sm_pcyl; cyl++) {
1095 for (head = 0; head < med_info.sm_nhead; head++) {
1102 new_per = (cyl * 80)/med_info.sm_pcyl;
1109 (void) write_sunos_label(fd, med_info.sm_media_type);