Lines Matching refs:NvmeNamespace
322 static inline uint16_t nvme_make_pid(NvmeNamespace *ns, uint16_t rg, in nvme_make_pid()
334 static inline bool nvme_ph_valid(NvmeNamespace *ns, uint16_t ph) in nvme_ph_valid()
344 static inline uint16_t nvme_pid2ph(NvmeNamespace *ns, uint16_t pid) in nvme_pid2ph()
355 static inline uint16_t nvme_pid2rg(NvmeNamespace *ns, uint16_t pid) in nvme_pid2rg()
366 static inline bool nvme_parse_pid(NvmeNamespace *ns, uint16_t pid, in nvme_parse_pid()
375 static void nvme_assign_zone_state(NvmeNamespace *ns, NvmeZone *zone, in nvme_assign_zone_state()
417 static uint16_t nvme_zns_check_resources(NvmeNamespace *ns, uint32_t act, in nvme_zns_check_resources()
443 static uint16_t nvme_aor_check(NvmeNamespace *ns, uint32_t act, uint32_t opn) in nvme_aor_check()
474 static bool nvme_update_ruh(NvmeCtrl *n, NvmeNamespace *ns, uint16_t pid) in nvme_update_ruh()
737 static void nvme_sg_split(NvmeSg *sg, NvmeNamespace *ns, NvmeSg *data, in nvme_sg_split()
1226 NvmeNamespace *ns = req->ns; in nvme_map_data()
1256 NvmeNamespace *ns = req->ns; in nvme_map_mdata()
1408 NvmeNamespace *ns = req->ns; in nvme_bounce_data()
1425 NvmeNamespace *ns = req->ns; in nvme_bounce_mdata()
1677 static inline uint16_t nvme_check_bounds(NvmeNamespace *ns, uint64_t slba, in nvme_check_bounds()
1690 static int nvme_block_status_all(NvmeNamespace *ns, uint64_t slba, in nvme_block_status_all()
1727 static uint16_t nvme_check_dulbe(NvmeNamespace *ns, uint64_t slba, in nvme_check_dulbe()
1789 static inline uint32_t nvme_zone_idx(NvmeNamespace *ns, uint64_t slba) in nvme_zone_idx()
1795 static inline NvmeZone *nvme_get_zone_by_slba(NvmeNamespace *ns, uint64_t slba) in nvme_get_zone_by_slba()
1832 static uint16_t nvme_check_zone_write(NvmeNamespace *ns, NvmeZone *zone, in nvme_check_zone_write()
1886 static uint16_t nvme_check_zone_read(NvmeNamespace *ns, uint64_t slba, in nvme_check_zone_read()
1923 static uint16_t nvme_zrm_finish(NvmeNamespace *ns, NvmeZone *zone) in nvme_zrm_finish()
1953 static uint16_t nvme_zrm_close(NvmeNamespace *ns, NvmeZone *zone) in nvme_zrm_close()
1969 static uint16_t nvme_zrm_reset(NvmeNamespace *ns, NvmeZone *zone) in nvme_zrm_reset()
1999 static void nvme_zrm_auto_transition_zone(NvmeNamespace *ns) in nvme_zrm_auto_transition_zone()
2021 static uint16_t nvme_zrm_open_flags(NvmeCtrl *n, NvmeNamespace *ns, in nvme_zrm_open_flags()
2079 static inline uint16_t nvme_zrm_auto(NvmeCtrl *n, NvmeNamespace *ns, in nvme_zrm_auto()
2085 static void nvme_advance_zone_wp(NvmeNamespace *ns, NvmeZone *zone, in nvme_advance_zone_wp()
2095 static void nvme_zoned_zrwa_implicit_flush(NvmeNamespace *ns, NvmeZone *zone, in nvme_zoned_zrwa_implicit_flush()
2109 static void nvme_finalize_zoned_write(NvmeNamespace *ns, NvmeRequest *req) in nvme_finalize_zoned_write()
2160 NvmeNamespace *ns = req->ns; in nvme_rw_complete_cb()
2184 NvmeNamespace *ns = req->ns; in nvme_rw_cb()
2235 NvmeNamespace *ns = req->ns; in nvme_verify_cb()
2290 NvmeNamespace *ns = req->ns; in nvme_verify_mdata_in_cb()
2332 NvmeNamespace *ns = req->ns; in nvme_compare_mdata_cb()
2422 NvmeNamespace *ns = req->ns; in nvme_compare_data_cb()
2522 NvmeNamespace *ns = req->ns; in nvme_dsm_md_cb()
2564 NvmeNamespace *ns = req->ns; in nvme_dsm_cb()
2612 NvmeNamespace *ns = req->ns; in nvme_dsm()
2651 NvmeNamespace *ns = req->ns; in nvme_verify()
2730 NvmeNamespace *sns;
2754 NvmeNamespace *ns = req->ns; in nvme_copy_done()
2878 static inline uint16_t nvme_check_copy_mcl(NvmeNamespace *ns, in nvme_check_copy_mcl()
2901 NvmeNamespace *dns = req->ns; in nvme_copy_out_completed_cb()
2928 NvmeNamespace *dns = req->ns; in nvme_copy_out_cb()
2960 NvmeNamespace *sns = iocb->sns; in nvme_copy_in_completed_cb()
2961 NvmeNamespace *dns = req->ns; in nvme_copy_in_completed_cb()
3069 NvmeNamespace *sns = iocb->sns; in nvme_copy_in_cb()
3098 static inline bool nvme_copy_ns_format_match(NvmeNamespace *sns, in nvme_copy_ns_format_match()
3099 NvmeNamespace *dns) in nvme_copy_ns_format_match()
3104 static bool nvme_copy_matching_ns_format(NvmeNamespace *sns, NvmeNamespace *dns, in nvme_copy_matching_ns_format()
3124 static inline bool nvme_copy_corresp_pi_match(NvmeNamespace *sns, in nvme_copy_corresp_pi_match()
3125 NvmeNamespace *dns) in nvme_copy_corresp_pi_match()
3132 static bool nvme_copy_corresp_pi_format(NvmeNamespace *sns, NvmeNamespace *dns, in nvme_copy_corresp_pi_format()
3154 NvmeNamespace *sns; in nvme_do_copy()
3155 NvmeNamespace *dns = req->ns; in nvme_do_copy()
3304 NvmeNamespace *ns = req->ns; in nvme_copy()
3395 NvmeNamespace *ns = req->ns; in nvme_compare()
3460 NvmeNamespace *ns;
3487 NvmeNamespace *ns = iocb->ns; in nvme_flush_ns_cb()
3583 NvmeNamespace *ns = req->ns; in nvme_read()
3656 NvmeNamespace *ns = req->ns; in nvme_do_write_fdp()
3692 NvmeNamespace *ns = req->ns; in nvme_do_write()
3844 static uint16_t nvme_get_mgmt_zone_slba_idx(NvmeNamespace *ns, NvmeCmd *c, in nvme_get_mgmt_zone_slba_idx()
3868 typedef uint16_t (*op_handler_t)(NvmeNamespace *, NvmeZone *, NvmeZoneState,
3879 static uint16_t nvme_open_zone(NvmeNamespace *ns, NvmeZone *zone, in nvme_open_zone()
3902 static uint16_t nvme_close_zone(NvmeNamespace *ns, NvmeZone *zone, in nvme_close_zone()
3908 static uint16_t nvme_finish_zone(NvmeNamespace *ns, NvmeZone *zone, in nvme_finish_zone()
3914 static uint16_t nvme_offline_zone(NvmeNamespace *ns, NvmeZone *zone, in nvme_offline_zone()
3928 static uint16_t nvme_set_zd_ext(NvmeNamespace *ns, NvmeZone *zone) in nvme_set_zd_ext()
3947 static uint16_t nvme_bulk_proc_zone(NvmeNamespace *ns, NvmeZone *zone, in nvme_bulk_proc_zone()
3980 static uint16_t nvme_do_zone_op(NvmeNamespace *ns, NvmeZone *zone, in nvme_do_zone_op()
4057 NvmeNamespace *ns = req->ns; in nvme_zone_reset_cancel()
4080 NvmeNamespace *ns = req->ns; in nvme_zone_reset_epilogue_cb()
4104 NvmeNamespace *ns = req->ns; in nvme_zone_reset_cb()
4164 NvmeNamespace *ns = req->ns; in nvme_zone_mgmt_send_zrwa_flush()
4202 NvmeNamespace *ns = req->ns; in nvme_zone_mgmt_send()
4352 NvmeNamespace *ns = req->ns; in nvme_zone_mgmt_recv()
4459 NvmeNamespace *ns = req->ns; in nvme_io_mgmt_recv_ruhs()
4532 NvmeNamespace *ns = req->ns; in nvme_io_mgmt_send_ruh_update()
4584 NvmeNamespace *ns; in nvme_io_cmd()
4884 static void nvme_set_blk_stats(NvmeNamespace *ns, struct nvme_stats *stats) in nvme_set_blk_stats()
4901 NvmeNamespace *ns; in nvme_smart_info()
4974 NvmeNamespace *ns = nvme_subsys_ns(n->subsys, i); in nvme_endgrp_info()
5575 NvmeNamespace *ns; in nvme_identify_ns()
5612 NvmeNamespace *ns; in nvme_identify_ctrl_list()
5685 NvmeNamespace *ns; in nvme_identify_ns_csi()
5721 NvmeNamespace *ns; in nvme_identify_nslist()
5768 NvmeNamespace *ns; in nvme_identify_nslist_csi()
5835 NvmeNamespace *ns; in nvme_identify_ns_descr_list()
6059 static uint16_t nvme_get_feature_fdp_events(NvmeCtrl *n, NvmeNamespace *ns, in nvme_get_feature_fdp_events()
6132 NvmeNamespace *ns; in nvme_get_feature()
6331 static uint16_t nvme_set_feature_fdp_events(NvmeCtrl *n, NvmeNamespace *ns, in nvme_set_feature_fdp_events()
6378 NvmeNamespace *ns = NULL; in nvme_set_feature()
6570 NvmeNamespace *ns = nvme_ns(n, nsid); in nvme_update_dmrsl()
6580 static void nvme_select_iocs_ns(NvmeCtrl *n, NvmeNamespace *ns) in nvme_select_iocs_ns()
6603 NvmeNamespace *ns; in nvme_ns_attachment()
6692 NvmeNamespace *ns;
6720 static void nvme_format_set(NvmeNamespace *ns, uint8_t lbaf, uint8_t mset, in nvme_format_set()
6739 NvmeNamespace *ns = iocb->ns; in nvme_format_ns_cb()
6771 static uint16_t nvme_format_check(NvmeNamespace *ns, uint8_t lbaf, uint8_t pi) in nvme_format_check()
7114 NvmeNamespace *ns; in nvme_directive_receive()
7325 NvmeNamespace *ns; in nvme_ctrl_reset()
7393 NvmeNamespace *ns; in nvme_ctrl_shutdown()
7412 NvmeNamespace *ns; in nvme_select_iocs()
8600 void nvme_attach_ns(NvmeCtrl *n, NvmeNamespace *ns) in nvme_attach_ns()
8616 NvmeNamespace *ns; in nvme_realize()
8665 NvmeNamespace *ns; in nvme_exit()