Lines Matching defs:identify
272 * @identify: A block of IDENTIFY data
277 * Copies the ATA string from @identify located at @offset_words into @dest.
279 static void disk_identify_get_string(uint8_t identify[512],
288 c1 = identify[offset_words * 2 + 1];
289 c2 = identify[offset_words * 2];
299 static void disk_identify_fixup_string(uint8_t identify[512],
303 disk_identify_get_string(identify, offset_words,
304 (char *) identify + offset_words * 2, len);
307 static void disk_identify_fixup_uint16 (uint8_t identify[512], unsigned int offset_words)
311 p = (uint16_t *) identify;
421 } identify;
474 if (disk_identify(udev, fd, identify.byte, &is_packet_device) == 0) {
479 disk_identify_fixup_string(identify.byte, 10, 20); /* serial */
480 disk_identify_fixup_string(identify.byte, 23, 8); /* fwrev */
481 disk_identify_fixup_string(identify.byte, 27, 40); /* model */
482 disk_identify_fixup_uint16(identify.byte, 0); /* configuration */
483 disk_identify_fixup_uint16(identify.byte, 75); /* queue depth */
484 disk_identify_fixup_uint16(identify.byte, 76); /* SATA capabilities */
485 disk_identify_fixup_uint16(identify.byte, 82); /* command set supported */
486 disk_identify_fixup_uint16(identify.byte, 83); /* command set supported */
487 disk_identify_fixup_uint16(identify.byte, 84); /* command set supported */
488 disk_identify_fixup_uint16(identify.byte, 85); /* command set supported */
489 disk_identify_fixup_uint16(identify.byte, 86); /* command set supported */
490 disk_identify_fixup_uint16(identify.byte, 87); /* command set supported */
491 disk_identify_fixup_uint16(identify.byte, 89); /* time required for SECURITY ERASE UNIT */
492 disk_identify_fixup_uint16(identify.byte, 90); /* time required for enhanced SECURITY ERASE UNIT */
493 disk_identify_fixup_uint16(identify.byte, 91); /* current APM values */
494 disk_identify_fixup_uint16(identify.byte, 94); /* current AAM value */
495 disk_identify_fixup_uint16(identify.byte, 108); /* WWN */
496 disk_identify_fixup_uint16(identify.byte, 109); /* WWN */
497 disk_identify_fixup_uint16(identify.byte, 110); /* WWN */
498 disk_identify_fixup_uint16(identify.byte, 111); /* WWN */
499 disk_identify_fixup_uint16(identify.byte, 128); /* device lock function */
500 disk_identify_fixup_uint16(identify.byte, 217); /* nominal media rotation rate */
501 memcpy(&id, identify.byte, sizeof id);
623 word = identify.wyde[76];
640 word = identify.wyde[217];
651 word = identify.wyde[108];
655 wwwn = identify.wyde[108];
657 wwwn |= identify.wyde[109];
659 wwwn |= identify.wyde[110];
661 wwwn |= identify.wyde[111];
668 if (identify.wyde[0] == 0x848a ||
669 identify.wyde[0] == 0x844a ||
670 (identify.wyde[83] & 0xc004) == 0x4004)