Lines Matching refs:nvme_ns
408 struct nvme_ns __rcu *current_path[];
417 struct nvme_ns { struct
451 static inline bool nvme_ns_has_pi(struct nvme_ns *ns) in nvme_ns_has_pi() argument
498 static inline u64 nvme_sect_to_lba(struct nvme_ns *ns, sector_t sector) in nvme_sect_to_lba()
506 static inline sector_t nvme_lba_to_sect(struct nvme_ns *ns, u64 lba) in nvme_lba_to_sect()
609 blk_status_t nvme_setup_cmd(struct nvme_ns *ns, struct request *req,
632 struct nvme_ns *nvme_get_ns_from_disk(struct gendisk *disk,
648 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns,
653 void nvme_mpath_add_disk(struct nvme_ns *ns, struct nvme_id_ns *id);
658 bool nvme_mpath_clear_current_path(struct nvme_ns *ns);
660 struct nvme_ns *nvme_find_path(struct nvme_ns_head *head);
663 static inline void nvme_mpath_check_last_path(struct nvme_ns *ns) in nvme_mpath_check_last_path()
674 struct nvme_ns *ns = req->q->queuedata; in nvme_trace_bio_complete()
693 static inline void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name()
710 static inline void nvme_mpath_add_disk(struct nvme_ns *ns, in nvme_mpath_add_disk()
717 static inline bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path()
724 static inline void nvme_mpath_check_last_path(struct nvme_ns *ns) in nvme_mpath_check_last_path()
756 int nvme_revalidate_zones(struct nvme_ns *ns);
758 int nvme_update_zone_info(struct nvme_ns *ns, unsigned lbaf);
762 blk_status_t nvme_setup_zone_mgmt_send(struct nvme_ns *ns, struct request *req,
768 static inline blk_status_t nvme_setup_zone_mgmt_send(struct nvme_ns *ns, in nvme_setup_zone_mgmt_send()
775 static inline int nvme_update_zone_info(struct nvme_ns *ns, unsigned lbaf) in nvme_update_zone_info()
784 int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, int node);
785 void nvme_nvm_unregister(struct nvme_ns *ns);
787 int nvme_nvm_ioctl(struct nvme_ns *ns, unsigned int cmd, unsigned long arg);
789 static inline int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, in nvme_nvm_register()
795 static inline void nvme_nvm_unregister(struct nvme_ns *ns) {}; in nvme_nvm_unregister()
796 static inline int nvme_nvm_ioctl(struct nvme_ns *ns, unsigned int cmd, in nvme_nvm_ioctl()
803 static inline struct nvme_ns *nvme_get_ns_from_dev(struct device *dev) in nvme_get_ns_from_dev()
817 u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
821 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid);
822 void nvme_put_ns(struct nvme_ns *ns);