Lines Matching refs:nvme_ns
428 struct nvme_ns __rcu *current_path[];
437 struct nvme_ns { struct
471 static inline bool nvme_ns_has_pi(struct nvme_ns *ns) in nvme_ns_has_pi() argument
574 static inline u64 nvme_sect_to_lba(struct nvme_ns *ns, sector_t sector) in nvme_sect_to_lba()
582 static inline sector_t nvme_lba_to_sect(struct nvme_ns *ns, u64 lba) in nvme_lba_to_sect()
689 blk_status_t nvme_setup_cmd(struct nvme_ns *ns, struct request *req,
711 struct nvme_ns *nvme_get_ns_from_disk(struct gendisk *disk,
727 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns,
732 void nvme_mpath_add_disk(struct nvme_ns *ns, struct nvme_id_ns *id);
739 bool nvme_mpath_clear_current_path(struct nvme_ns *ns);
741 struct nvme_ns *nvme_find_path(struct nvme_ns_head *head);
744 static inline void nvme_mpath_check_last_path(struct nvme_ns *ns) in nvme_mpath_check_last_path()
755 struct nvme_ns *ns = req->q->queuedata; in nvme_trace_bio_complete()
774 static inline void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns, in nvme_set_disk_name()
791 static inline void nvme_mpath_add_disk(struct nvme_ns *ns, in nvme_mpath_add_disk()
798 static inline bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path()
805 static inline void nvme_mpath_check_last_path(struct nvme_ns *ns) in nvme_mpath_check_last_path()
843 int nvme_revalidate_zones(struct nvme_ns *ns);
845 int nvme_update_zone_info(struct nvme_ns *ns, unsigned lbaf);
849 blk_status_t nvme_setup_zone_mgmt_send(struct nvme_ns *ns, struct request *req,
855 static inline blk_status_t nvme_setup_zone_mgmt_send(struct nvme_ns *ns, in nvme_setup_zone_mgmt_send()
862 static inline int nvme_update_zone_info(struct nvme_ns *ns, unsigned lbaf) in nvme_update_zone_info()
871 int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, int node);
872 void nvme_nvm_unregister(struct nvme_ns *ns);
874 int nvme_nvm_ioctl(struct nvme_ns *ns, unsigned int cmd, unsigned long arg);
876 static inline int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, in nvme_nvm_register()
882 static inline void nvme_nvm_unregister(struct nvme_ns *ns) {}; in nvme_nvm_unregister()
883 static inline int nvme_nvm_ioctl(struct nvme_ns *ns, unsigned int cmd, in nvme_nvm_ioctl()
890 static inline struct nvme_ns *nvme_get_ns_from_dev(struct device *dev) in nvme_get_ns_from_dev()
909 u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns,
913 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid);
914 void nvme_put_ns(struct nvme_ns *ns);