Lines Matching refs:ctrl

149 	struct nvmet_ctrl	*ctrl;  member
416 void (*delete_ctrl)(struct nvmet_ctrl *ctrl);
419 ssize_t (*host_traddr)(struct nvmet_ctrl *ctrl,
423 u8 (*get_mdts)(const struct nvmet_ctrl *ctrl);
424 u16 (*get_max_queue_size)(const struct nvmet_ctrl *ctrl);
427 u16 (*create_sq)(struct nvmet_ctrl *ctrl, u16 sqid, u16 flags,
429 u16 (*delete_sq)(struct nvmet_ctrl *ctrl, u16 sqid);
430 u16 (*create_cq)(struct nvmet_ctrl *ctrl, u16 cqid, u16 flags,
432 u16 (*delete_cq)(struct nvmet_ctrl *ctrl, u16 cqid);
433 u16 (*set_feature)(const struct nvmet_ctrl *ctrl, u8 feat,
435 u16 (*get_feature)(const struct nvmet_ctrl *ctrl, u8 feat,
527 clear_bit(bn, &req->sq->ctrl->aen_masked); in nvmet_clear_aen_bit()
530 static inline bool nvmet_aen_bit_disabled(struct nvmet_ctrl *ctrl, u32 bn) in nvmet_aen_bit_disabled() argument
532 if (!(READ_ONCE(ctrl->aen_enabled) & (1 << bn))) in nvmet_aen_bit_disabled()
534 return test_and_set_bit(bn, &ctrl->aen_masked); in nvmet_aen_bit_disabled()
542 void nvmet_start_keep_alive_timer(struct nvmet_ctrl *ctrl);
543 void nvmet_stop_keep_alive_timer(struct nvmet_ctrl *ctrl);
574 u16 nvmet_check_cqid(struct nvmet_ctrl *ctrl, u16 cqid);
575 void nvmet_cq_setup(struct nvmet_ctrl *ctrl, struct nvmet_cq *cq, u16 qid,
577 u16 nvmet_cq_create(struct nvmet_ctrl *ctrl, struct nvmet_cq *cq, u16 qid,
579 u16 nvmet_check_sqid(struct nvmet_ctrl *ctrl, u16 sqid, bool create);
580 void nvmet_sq_setup(struct nvmet_ctrl *ctrl, struct nvmet_sq *sq, u16 qid,
582 u16 nvmet_sq_create(struct nvmet_ctrl *ctrl, struct nvmet_sq *sq, u16 qid,
587 void nvmet_ctrl_fatal_error(struct nvmet_ctrl *ctrl);
589 void nvmet_update_cc(struct nvmet_ctrl *ctrl, u32 new);
609 void nvmet_ctrl_put(struct nvmet_ctrl *ctrl);
611 ssize_t nvmet_ctrl_host_traddr(struct nvmet_ctrl *ctrl,
656 void nvmet_add_async_event(struct nvmet_ctrl *ctrl, u8 event_type,
662 #define NVMET_MAX_CMD(ctrl) (NVME_CAP_MQES(ctrl->cap) + 1) argument
738 return req->sq->ctrl->subsys; in nvmet_req_subsys()
746 static inline bool nvmet_is_pci_ctrl(struct nvmet_ctrl *ctrl) in nvmet_is_pci_ctrl() argument
748 return ctrl->port->disc_addr.trtype == NVMF_TRTYPE_PCI; in nvmet_is_pci_ctrl()
787 void nvmet_passthrough_override_cap(struct nvmet_ctrl *ctrl);
886 u8 nvmet_setup_auth(struct nvmet_ctrl *ctrl, struct nvmet_sq *sq);
888 void nvmet_destroy_auth(struct nvmet_ctrl *ctrl);
890 int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, u8 dhgroup_id);
896 static inline bool nvmet_has_auth(struct nvmet_ctrl *ctrl, struct nvmet_sq *sq) in nvmet_has_auth() argument
898 return ctrl->host_key != NULL && !nvmet_queue_tls_keyid(sq); in nvmet_has_auth()
906 static inline u8 nvmet_setup_auth(struct nvmet_ctrl *ctrl, in nvmet_setup_auth() argument
914 static inline void nvmet_destroy_auth(struct nvmet_ctrl *ctrl) {}; in nvmet_destroy_auth() argument
920 static inline bool nvmet_has_auth(struct nvmet_ctrl *ctrl, in nvmet_has_auth() argument
932 int nvmet_ctrl_init_pr(struct nvmet_ctrl *ctrl);
933 void nvmet_ctrl_destroy_pr(struct nvmet_ctrl *ctrl);