Lines Matching refs:ph
327 uint16_t ph) in nvme_make_pid() argument
332 return ph; in nvme_make_pid()
335 return (rg << (16 - rgif)) | ph; in nvme_make_pid()
338 static inline bool nvme_ph_valid(NvmeNamespace *ns, uint16_t ph) in nvme_ph_valid() argument
340 return ph < ns->fdp.nphs; in nvme_ph_valid()
371 uint16_t *ph, uint16_t *rg) in nvme_parse_pid() argument
374 *ph = nvme_pid2ph(ns, pid); in nvme_parse_pid()
376 return nvme_ph_valid(ns, *ph) && nvme_rg_valid(ns->endgrp, *rg); in nvme_parse_pid()
484 uint16_t ph, rg, ruhid; in nvme_update_ruh() local
486 if (!nvme_parse_pid(ns, pid, &ph, &rg)) { in nvme_update_ruh()
490 ruhid = ns->fdp.phs[ph]; in nvme_update_ruh()
3686 uint16_t ph, rg, ruhid; in nvme_do_write_fdp() local
3690 !nvme_parse_pid(ns, pid, &ph, &rg)) { in nvme_do_write_fdp()
3691 ph = 0; in nvme_do_write_fdp()
3695 ruhid = ns->fdp.phs[ph]; in nvme_do_write_fdp()
4488 uint16_t rg, ph, *ruhid; in nvme_io_mgmt_recv_ruhs() local
4519 for (ph = 0; ph < ns->fdp.nphs; ph++, ruhid++) { in nvme_io_mgmt_recv_ruhs()
4523 uint16_t pid = nvme_make_pid(ns, rg, ph); in nvme_io_mgmt_recv_ruhs()
6211 uint16_t ph = cdw11 & 0xffff; in nvme_get_feature_fdp_events() local
6225 if (!nvme_ph_valid(ns, ph)) { in nvme_get_feature_fdp_events()
6229 ruhid = ns->fdp.phs[ph]; in nvme_get_feature_fdp_events()
6485 uint16_t ph = cdw11 & 0xffff; in nvme_set_feature_fdp_events() local
6500 if (!nvme_ph_valid(ns, ph)) { in nvme_set_feature_fdp_events()
6504 ruhid = ns->fdp.phs[ph]; in nvme_set_feature_fdp_events()