Lines Matching +full:p +full:- +full:states
1 /*-
65 mps = NVMEV(NVME_PWR_ST_MPS, nps->mps_nops);
66 nops = NVMEV(NVME_PWR_ST_NOPS, nps->mps_nops);
67 apw = NVMEV(NVME_PWR_ST_APW, nps->apw_aps);
68 aps = NVMEV(NVME_PWR_ST_APS, nps->apw_aps);
70 mpower = nps->mp;
73 ipower = nps->idlp;
74 if (nps->ips == 1)
76 apower = nps->actp;
81 nops ? '*' : ' ', nps->enlat / 1000, nps->enlat % 1000,
82 nps->exlat / 1000, nps->exlat % 1000, nps->rrt, nps->rrl,
83 nps->rwt, nps->rwl, ipower / 10000, ipower % 10000,
92 printf("\nPower States Supported: %d\n\n", cdata->npss + 1);
94 printf("-- -------- --------- --------- -- -- -- -- -------- -------- --\n");
95 for (i = 0; i <= cdata->npss; i++)
96 power_list_one(i, &cdata->power_state[i]);
103 uint32_t p;
105 p = perm ? (1u << 31) : 0;
108 pt.cmd.cdw10 = htole32(NVME_FEAT_POWER_MANAGEMENT | p);
149 fprintf(stderr, "Can't set power and list power states\n");
182 "List the valid power states"),
183 OPT("power", 'p', arg_uint32, opt, power,
192 { arg_string, &opt.dev, "controller-id|namespace-id" },
199 .descr = "Manage power states for the drive",