Lines Matching +full:maximum +full:- +full:write

3  * SPDX-License-Identifier: Apache-2.0
36 uint8_t reserved3[3492]; /* 5Ch - DFFh */
41 uint32_t pmrswtp; /* Persistent Memory Region Sustained Write Throughput */
44 uint8_t reserved4[484]; /* E1Ch - FFFh */
52 /** Maximum Power */
56 /** Max Power Scale, Non-Operational State */
71 /** Relative Write Throughput */
74 /** Relative Write Latency */
98 /* bytes 0-255: controller capabilities and features */
121 /** multi-interface capabilities */
124 /** maximum data transfer size */
167 /* bytes 256-511: admin command set attributes */
202 /** Maximum Time for Firmware Activation */
221 /** Extended Device Self-test Time */
224 /** Device Self-test Options */
239 /** Maximum Thermal Management Temperature */
248 /** Host Memory Maximum Descriptors Entries */
251 /** NVM Set Identifier Maximum */
254 /** Endurance Group Identifier Maximum */
263 /** ANA Group Identifier Maximum */
273 /* bytes 512-703: nvm command set attributes */
281 /** Maximum Outstanding Commands */
296 /** volatile write cache */
299 /** Atomic Write Unit Normal */
302 /** Atomic Write Unit Power Fail */
308 /** Namespace Write Protection Capabilities */
311 /** Atomic Compare & Write Unit */
318 /** Maximum Number of Allowed Namespaces */
321 /* bytes 540-767: Reserved */
327 /* bytes 1024-1791: Reserved */
330 /* bytes 1792-2047: NVMe over Fabrics specification */
333 /* bytes 2048-3071: power state descriptors */
336 /* bytes 3072-4095: vendor specific */
344 s->vid = sys_le16_to_cpu(s->vid); in nvme_controller_data_swapbytes()
345 s->ssvid = sys_le16_to_cpu(s->ssvid); in nvme_controller_data_swapbytes()
346 s->ctrlr_id = sys_le16_to_cpu(s->ctrlr_id); in nvme_controller_data_swapbytes()
347 s->ver = sys_le32_to_cpu(s->ver); in nvme_controller_data_swapbytes()
348 s->rtd3r = sys_le32_to_cpu(s->rtd3r); in nvme_controller_data_swapbytes()
349 s->rtd3e = sys_le32_to_cpu(s->rtd3e); in nvme_controller_data_swapbytes()
350 s->oaes = sys_le32_to_cpu(s->oaes); in nvme_controller_data_swapbytes()
351 s->ctratt = sys_le32_to_cpu(s->ctratt); in nvme_controller_data_swapbytes()
352 s->rrls = sys_le16_to_cpu(s->rrls); in nvme_controller_data_swapbytes()
353 s->crdt1 = sys_le16_to_cpu(s->crdt1); in nvme_controller_data_swapbytes()
354 s->crdt2 = sys_le16_to_cpu(s->crdt2); in nvme_controller_data_swapbytes()
355 s->crdt3 = sys_le16_to_cpu(s->crdt3); in nvme_controller_data_swapbytes()
356 s->oacs = sys_le16_to_cpu(s->oacs); in nvme_controller_data_swapbytes()
357 s->wctemp = sys_le16_to_cpu(s->wctemp); in nvme_controller_data_swapbytes()
358 s->cctemp = sys_le16_to_cpu(s->cctemp); in nvme_controller_data_swapbytes()
359 s->mtfa = sys_le16_to_cpu(s->mtfa); in nvme_controller_data_swapbytes()
360 s->hmpre = sys_le32_to_cpu(s->hmpre); in nvme_controller_data_swapbytes()
361 s->hmmin = sys_le32_to_cpu(s->hmmin); in nvme_controller_data_swapbytes()
362 s->rpmbs = sys_le32_to_cpu(s->rpmbs); in nvme_controller_data_swapbytes()
363 s->edstt = sys_le16_to_cpu(s->edstt); in nvme_controller_data_swapbytes()
364 s->kas = sys_le16_to_cpu(s->kas); in nvme_controller_data_swapbytes()
365 s->hctma = sys_le16_to_cpu(s->hctma); in nvme_controller_data_swapbytes()
366 s->mntmt = sys_le16_to_cpu(s->mntmt); in nvme_controller_data_swapbytes()
367 s->mxtmt = sys_le16_to_cpu(s->mxtmt); in nvme_controller_data_swapbytes()
368 s->sanicap = sys_le32_to_cpu(s->sanicap); in nvme_controller_data_swapbytes()
369 s->hmminds = sys_le32_to_cpu(s->hmminds); in nvme_controller_data_swapbytes()
370 s->hmmaxd = sys_le16_to_cpu(s->hmmaxd); in nvme_controller_data_swapbytes()
371 s->nsetidmax = sys_le16_to_cpu(s->nsetidmax); in nvme_controller_data_swapbytes()
372 s->endgidmax = sys_le16_to_cpu(s->endgidmax); in nvme_controller_data_swapbytes()
373 s->anagrpmax = sys_le32_to_cpu(s->anagrpmax); in nvme_controller_data_swapbytes()
374 s->nanagrpid = sys_le32_to_cpu(s->nanagrpid); in nvme_controller_data_swapbytes()
375 s->pels = sys_le32_to_cpu(s->pels); in nvme_controller_data_swapbytes()
376 s->maxcmd = sys_le16_to_cpu(s->maxcmd); in nvme_controller_data_swapbytes()
377 s->nn = sys_le32_to_cpu(s->nn); in nvme_controller_data_swapbytes()
378 s->oncs = sys_le16_to_cpu(s->oncs); in nvme_controller_data_swapbytes()
379 s->fuses = sys_le16_to_cpu(s->fuses); in nvme_controller_data_swapbytes()
380 s->awun = sys_le16_to_cpu(s->awun); in nvme_controller_data_swapbytes()
381 s->awupf = sys_le16_to_cpu(s->awupf); in nvme_controller_data_swapbytes()
382 s->acwu = sys_le16_to_cpu(s->acwu); in nvme_controller_data_swapbytes()
383 s->sgls = sys_le32_to_cpu(s->sgls); in nvme_controller_data_swapbytes()
384 s->mnan = sys_le32_to_cpu(s->mnan); in nvme_controller_data_swapbytes()
444 /** Page size and log2(page_size) - 12 that we're currently using */
451 /** maximum i/o size in bytes */
461 return ((ctrlr->cdata.oncs >> NVME_CTRLR_DATA_ONCS_DSM_SHIFT) & in nvme_controller_has_dataset_mgmt()
467 struct nvme_controller *nvme_ctrlr = dev->data; in nvme_lock()
469 k_mutex_lock(&nvme_ctrlr->lock, K_FOREVER); in nvme_lock()
474 struct nvme_controller *nvme_ctrlr = dev->data; in nvme_unlock()
476 k_mutex_unlock(&nvme_ctrlr->lock); in nvme_unlock()