Lines Matching refs:nvme_ns

311 	struct nvme_ns *ns = req->q->queuedata;  in nvme_log_error()
648 struct nvme_ns *ns = container_of(kref, struct nvme_ns, kref); in nvme_free_ns()
656 static inline bool nvme_get_ns(struct nvme_ns *ns) in nvme_get_ns()
661 void nvme_put_ns(struct nvme_ns *ns) in nvme_put_ns()
760 static inline void nvme_setup_flush(struct nvme_ns *ns, in nvme_setup_flush()
768 static blk_status_t nvme_setup_discard(struct nvme_ns *ns, struct request *req, in nvme_setup_discard()
837 static void nvme_set_ref_tag(struct nvme_ns *ns, struct nvme_command *cmnd, in nvme_set_ref_tag()
861 static inline blk_status_t nvme_setup_write_zeroes(struct nvme_ns *ns, in nvme_setup_write_zeroes()
893 static inline blk_status_t nvme_setup_rw(struct nvme_ns *ns, in nvme_setup_rw()
966 blk_status_t nvme_setup_cmd(struct nvme_ns *ns, struct request *req) in nvme_setup_cmd()
1084 u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 opcode) in nvme_command_effects()
1109 u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 opcode) in nvme_passthru_start()
1129 void nvme_passthru_end(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u32 effects, in nvme_passthru_end()
1620 static int nvme_ns_open(struct nvme_ns *ns) in nvme_ns_open()
1639 static void nvme_ns_release(struct nvme_ns *ns) in nvme_ns_release()
1666 static void nvme_init_integrity(struct gendisk *disk, struct nvme_ns *ns, in nvme_init_integrity()
1717 static void nvme_init_integrity(struct gendisk *disk, struct nvme_ns *ns, in nvme_init_integrity()
1723 static void nvme_config_discard(struct gendisk *disk, struct nvme_ns *ns) in nvme_config_discard()
1761 static int nvme_init_ms(struct nvme_ns *ns, struct nvme_id_ns *id) in nvme_init_ms()
1821 static int nvme_configure_metadata(struct nvme_ns *ns, struct nvme_id_ns *id) in nvme_configure_metadata()
1890 struct nvme_ns *ns, struct nvme_id_ns *id) in nvme_update_disk_info()
1960 static bool nvme_ns_is_readonly(struct nvme_ns *ns, struct nvme_ns_info *info) in nvme_ns_is_readonly()
1971 static void nvme_set_chunk_sectors(struct nvme_ns *ns, struct nvme_id_ns *id) in nvme_set_chunk_sectors()
2002 static int nvme_update_ns_info_generic(struct nvme_ns *ns, in nvme_update_ns_info_generic()
2027 static int nvme_update_ns_info_block(struct nvme_ns *ns, in nvme_update_ns_info_block()
2112 static int nvme_update_ns_info(struct nvme_ns *ns, struct nvme_ns_info *info) in nvme_update_ns_info()
3349 return nvme_ns_open(container_of(inode->i_cdev, struct nvme_ns, cdev)); in nvme_ns_chr_open()
3354 nvme_ns_release(container_of(inode->i_cdev, struct nvme_ns, cdev)); in nvme_ns_chr_release()
3368 static int nvme_add_ns_cdev(struct nvme_ns *ns) in nvme_add_ns_cdev()
3390 size += num_possible_nodes() * sizeof(struct nvme_ns *); in nvme_alloc_ns_head()
3464 static int nvme_init_ns_head(struct nvme_ns *ns, struct nvme_ns_info *info) in nvme_init_ns_head()
3559 struct nvme_ns *nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid) in nvme_find_get_ns()
3561 struct nvme_ns *ns, *ret = NULL; in nvme_find_get_ns()
3582 static void nvme_ns_add_to_ctrl_list(struct nvme_ns *ns) in nvme_ns_add_to_ctrl_list()
3584 struct nvme_ns *tmp; in nvme_ns_add_to_ctrl_list()
3597 struct nvme_ns *ns; in nvme_alloc_ns()
3696 static void nvme_ns_remove(struct nvme_ns *ns) in nvme_ns_remove()
3743 struct nvme_ns *ns = nvme_find_get_ns(ctrl, nsid); in nvme_ns_remove_by_nsid()
3751 static void nvme_validate_ns(struct nvme_ns *ns, struct nvme_ns_info *info) in nvme_validate_ns()
3776 struct nvme_ns *ns; in nvme_scan_ns()
3821 struct nvme_ns *ns, *next; in nvme_remove_invalid_namespaces()
3972 struct nvme_ns *ns, *next; in nvme_remove_namespaces()
4556 struct nvme_ns *ns; in nvme_mark_namespaces_dead()
4567 struct nvme_ns *ns; in nvme_unfreeze()
4579 struct nvme_ns *ns; in nvme_wait_freeze_timeout()
4594 struct nvme_ns *ns; in nvme_wait_freeze()
4605 struct nvme_ns *ns; in nvme_start_freeze()
4653 struct nvme_ns *ns; in nvme_sync_io_queues()