Lines Matching +full:manufacture +full:- +full:date

1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
202 printf(" Manufacture Date: %d/%d/%d\n", design.mfg_date >> 5 & 0x0f, in show_battery()
299 struct mfi_ld_params *params = &info->ld_config.params; in print_ld()
303 humanize_number(size, sizeof(size), info->size * 512, in print_ld()
306 info->ld_config.params.stripe_size); in print_ld()
307 level = mfi_raid_level(params->primary_raid_level, in print_ld()
308 params->secondary_raid_level); in print_ld()
310 printf("(%6s) %-8s %6s %-*s", size, level, stripe, state_len, in print_ld()
311 mfi_ldstate(params->state)); in print_ld()
314 mfi_ldstate(params->state)); in print_ld()
323 humanize_number(buf, 6, info->raw_size * 512, "", in print_pd()
326 if (info->state.ddf.v.pd_type.is_foreign) { in print_pd()
327 sprintf(buf, "%s%s", mfi_pdstate(info->fw_state), foreign_state); in print_pd()
330 s = mfi_pdstate(info->fw_state); in print_pd()
332 printf("%-*s", state_len, s); in print_pd()
375 mfi_device, config->array_count, config->log_drv_count, in show_config()
376 config->spares_count); in show_config()
377 p = (char *)config->array; in show_config()
379 for (i = 0; i < config->array_count; i++) { in show_config()
381 printf(" array %u of %u drives:\n", ar->array_ref, in show_config()
382 ar->num_drives); in show_config()
383 for (j = 0; j < ar->num_drives; j++) { in show_config()
384 device_id = ar->pd[j].ref.v.device_id; in show_config()
392 mfi_pdstate(ar->pd[j].fw_state)); in show_config()
394 print_pd(&pinfo, -1); in show_config()
398 p += config->array_size; in show_config()
401 for (i = 0; i < config->log_drv_count; i++) { in show_config()
404 mfi_volume_name(fd, ld->properties.ld.v.target_id)); in show_config()
405 if (mfi_ld_get_info(fd, ld->properties.ld.v.target_id, &linfo, in show_config()
408 mfi_raid_level(ld->params.primary_raid_level, in show_config()
409 ld->params.secondary_raid_level), in show_config()
410 mfi_ldstate(ld->params.state)); in show_config()
412 print_ld(&linfo, -1); in show_config()
413 if (ld->properties.name[0] != '\0') in show_config()
414 printf(" <%s>", ld->properties.name); in show_config()
416 for (j = 0; j < ld->params.span_depth; j++) in show_config()
417 printf(" array %u\n", ld->span[j].array_ref); in show_config()
418 p += config->log_drv_size; in show_config()
421 for (i = 0; i < config->spares_count; i++) { in show_config()
424 sp->spare_type & MFI_SPARE_DEDICATED ? "dedicated" : in show_config()
425 "global", mfi_drive_name(NULL, sp->ref.v.device_id, in show_config()
427 if (mfi_pd_get_info(fd, sp->ref.v.device_id, &pinfo, NULL) < 0) in show_config()
430 print_pd(&pinfo, -1); in show_config()
431 if (sp->spare_type & MFI_SPARE_DEDICATED) { in show_config()
433 for (j = 0; j < sp->array_count; j++) in show_config()
434 printf(" array %u\n", sp->array_ref[j]); in show_config()
437 p += config->spares_size; in show_config()
483 len = state_len - strlen("State"); in show_volumes()
558 for (i = 0; i < list->count; i++) { in show_drives()
559 if (list->addr[i].scsi_dev_type != 0) in show_drives()
562 if (mfi_pd_get_info(fd, list->addr[i].device_id, &info, in show_drives()
566 list->addr[i].device_id); in show_drives()
578 for (i = 0; i < list->count; i++) { in show_drives()
580 /* Skip non-hard disks. */ in show_drives()
581 if (list->addr[i].scsi_dev_type != 0) in show_drives()
585 if (mfi_pd_get_info(fd, list->addr[i].device_id, &info, in show_drives()
589 list->addr[i].device_id); in show_drives()
593 printf("%s ", mfi_drive_name(&info, list->addr[i].device_id, in show_drives()
596 printf(" %s", mfi_drive_name(&info, list->addr[i].device_id, in show_drives()
642 strcpy(header.build_date, "Date"); in show_firmware()
739 for (i = 0; i < plist->count; i++) { in show_progress()
740 if (plist->addr[i].scsi_dev_type != 0) in show_progress()
743 device_id = plist->addr[i].device_id; in show_progress()