Lines Matching refs:lbaf
876 do_format_common(int fd, const nvme_process_arg_t *npa, unsigned long lbaf, in do_format_common() argument
890 if (nvme_format_nvm(fd, lbaf, ses) == B_FALSE) { in do_format_common()
913 unsigned long lbaf; in do_format() local
925 lbaf = strtoul(npa->npa_argv[0], NULL, 10); in do_format()
927 if (errno != 0 || lbaf > NVME_FRMT_MAX_LBAF) in do_format()
928 errx(-1, "invalid LBA format %d", lbaf + 1); in do_format()
930 if (npa->npa_idns->id_lbaf[lbaf].lbaf_ms != 0) in do_format()
933 lbaf = npa->npa_idns->id_flbas.lba_format; in do_format()
936 return (do_format_common(fd, npa, lbaf, 0)); in do_format()
950 unsigned long lbaf; in do_secure_erase() local
972 lbaf = npa->npa_idns->id_flbas.lba_format; in do_secure_erase()
974 return (do_format_common(fd, npa, lbaf, ses)); in do_secure_erase()