Lines Matching refs:pid
344 static inline uint16_t nvme_pid2ph(NvmeNamespace *ns, uint16_t pid) in nvme_pid2ph() argument
349 return pid; in nvme_pid2ph()
352 return pid & ((1 << (15 - rgif)) - 1); in nvme_pid2ph()
355 static inline uint16_t nvme_pid2rg(NvmeNamespace *ns, uint16_t pid) in nvme_pid2rg() argument
363 return pid >> (16 - rgif); in nvme_pid2rg()
366 static inline bool nvme_parse_pid(NvmeNamespace *ns, uint16_t pid, in nvme_parse_pid() argument
369 *rg = nvme_pid2rg(ns, pid); in nvme_parse_pid()
370 *ph = nvme_pid2ph(ns, pid); in nvme_parse_pid()
474 static bool nvme_update_ruh(NvmeCtrl *n, NvmeNamespace *ns, uint16_t pid) in nvme_update_ruh() argument
482 if (!nvme_parse_pid(ns, pid, &ph, &rg)) { in nvme_update_ruh()
496 e->pid = cpu_to_le16(pid); in nvme_update_ruh()
3654 uint16_t pid = le16_to_cpu(rw->dspec); in nvme_do_write_fdp() local
3659 !nvme_parse_pid(ns, pid, &ph, &rg)) { in nvme_do_write_fdp()
3677 nvme_update_ruh(n, ns, pid); in nvme_do_write_fdp()
4492 uint16_t pid = nvme_make_pid(ns, rg, ph); in nvme_io_mgmt_recv_ruhs() local
4494 ruhsd->pid = cpu_to_le16(pid); in nvme_io_mgmt_recv_ruhs()