/kernel/linux/linux-5.10/drivers/nvme/target/ |
H A D | core.c | 72 req->error_loc = offsetof(struct nvme_rw_command, nsid); in errno_to_nvme_status() 118 unsigned long nsid = 0; in nvmet_max_nsid() local 123 nsid = cur->nsid; in nvmet_max_nsid() 125 return nsid; in nvmet_max_nsid() 211 static void nvmet_add_to_changed_ns_log(struct nvmet_ctrl *ctrl, __le32 nsid) in nvmet_add_to_changed_ns_log() argument 220 if (ctrl->changed_ns_list[i] == nsid) in nvmet_add_to_changed_ns_log() 230 ctrl->changed_ns_list[ctrl->nr_changed_ns++] = nsid; in nvmet_add_to_changed_ns_log() 235 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) in nvmet_ns_changed() argument 242 nvmet_add_to_changed_ns_log(ctrl, cpu_to_le32(nsid)); in nvmet_ns_changed() 420 nvmet_find_namespace(struct nvmet_ctrl *ctrl, __le32 nsid) nvmet_find_namespace() argument 664 nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid) nvmet_ns_alloc() argument [all...] |
H A D | admin-cmd.c | 80 ns = nvmet_find_namespace(req->sq->ctrl, req->cmd->get_log_page.nsid); in nvmet_get_smart_log_nsid() 83 le32_to_cpu(req->cmd->get_log_page.nsid)); in nvmet_get_smart_log_nsid() 84 req->error_loc = offsetof(struct nvme_rw_command, nsid); in nvmet_get_smart_log_nsid() 152 if (req->cmd->get_log_page.nsid == cpu_to_le32(NVME_NSID_ALL)) in nvmet_execute_get_log_page_smart() 236 desc->nsids[count++] = cpu_to_le32(ns->nsid); in nvmet_format_ana_group() 475 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) { in nvmet_execute_identify_ns() 476 req->error_loc = offsetof(struct nvme_identify, nsid); in nvmet_execute_identify_ns() 488 req->ns = nvmet_find_namespace(ctrl, req->cmd->identify.nsid); in nvmet_execute_identify_ns() 559 u32 min_nsid = le32_to_cpu(req->cmd->identify.nsid); in nvmet_execute_identify_nslist() 571 if (ns->nsid < in nvmet_execute_identify_nslist() [all...] |
H A D | trace.h | 70 __field(u32, nsid) 83 __entry->nsid = le32_to_cpu(cmd->common.nsid); 88 TP_printk("nvmet%s: %sqid=%d, cmdid=%u, nsid=%u, flags=%#x, " 92 __entry->qid, __entry->cid, __entry->nsid,
|
H A D | passthru.c | 235 u32 nsid = le32_to_cpu(req->cmd->common.nsid); in nvmet_passthru_execute_cmd() local 237 ns = nvme_find_get_ns(ctrl, nsid); in nvmet_passthru_execute_cmd() 239 pr_err("failed to get passthru ns nsid:%u\n", nsid); in nvmet_passthru_execute_cmd()
|
/kernel/linux/linux-6.6/drivers/nvme/target/ |
H A D | core.c | 73 req->error_loc = offsetof(struct nvme_rw_command, nsid); in errno_to_nvme_status() 127 u32 nsid = 0; in nvmet_max_nsid() local 130 nsid = cur->nsid; in nvmet_max_nsid() 132 return nsid; in nvmet_max_nsid() 217 static void nvmet_add_to_changed_ns_log(struct nvmet_ctrl *ctrl, __le32 nsid) in nvmet_add_to_changed_ns_log() argument 226 if (ctrl->changed_ns_list[i] == nsid) in nvmet_add_to_changed_ns_log() 236 ctrl->changed_ns_list[ctrl->nr_changed_ns++] = nsid; in nvmet_add_to_changed_ns_log() 241 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) in nvmet_ns_changed() argument 248 nvmet_add_to_changed_ns_log(ctrl, cpu_to_le32(nsid)); in nvmet_ns_changed() 427 u32 nsid = le32_to_cpu(req->cmd->common.nsid); nvmet_req_find_ns() local 671 nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid) nvmet_ns_alloc() argument [all...] |
H A D | trace.h | 72 __field(u32, nsid) 85 __entry->nsid = le32_to_cpu(cmd->common.nsid); 90 TP_printk("nvmet%s: %sqid=%d, cmdid=%u, nsid=%u, flags=%#x, " 94 __entry->qid, __entry->cid, __entry->nsid,
|
H A D | admin-cmd.c | 146 if (req->cmd->get_log_page.nsid == cpu_to_le32(NVME_NSID_ALL)) in nvmet_execute_get_log_page_smart() 264 desc->nsids[count++] = cpu_to_le32(ns->nsid); in nvmet_format_ana_group() 497 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) { in nvmet_execute_identify_ns() 498 req->error_loc = offsetof(struct nvme_identify, nsid); in nvmet_execute_identify_ns() 518 nvmet_ns_changed(req->ns->subsys, req->ns->nsid); in nvmet_execute_identify_ns() 585 u32 min_nsid = le32_to_cpu(req->cmd->identify.nsid); in nvmet_execute_identify_nslist() 597 if (ns->nsid <= min_nsid) in nvmet_execute_identify_nslist() 599 list[i++] = cpu_to_le32(ns->nsid); in nvmet_execute_identify_nslist() 755 pr_err("write protect flush failed nsid: %u\n", req->ns->nsid); in nvmet_write_protect_flush_sync() [all...] |
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | nvme_ioctl.h | 31 __u32 nsid; member 52 __u32 nsid; member 78 __u32 nsid; member
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | trace.h | 58 __field(u32, nsid) 68 __entry->nsid = le32_to_cpu(cmd->common.nsid); 75 TP_printk("nvme%d: %sqid=%d, cmdid=%u, nsid=%u, flags=0x%x, meta=0x%x, cmd=(%s %s)", 77 __entry->qid, __entry->cid, __entry->nsid,
|
H A D | core.c | 93 unsigned nsid); 569 c.directive.nsid = cpu_to_le32(NVME_NSID_ALL); in nvme_toggle_streams() 589 struct streams_directive_params *s, u32 nsid) in nvme_get_stream_params() 597 c.directive.nsid = cpu_to_le32(nsid); in nvme_get_stream_params() 676 cmnd->common.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_flush() 737 cmnd->dsm.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_discard() 756 cmnd->write_zeroes.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_write_zeroes() 785 cmnd->rw.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_rw() 1326 static int nvme_identify_ns_descs(struct nvme_ctrl *ctrl, unsigned nsid, in nvme_identify_ns_descs() argument 588 nvme_get_stream_params(struct nvme_ctrl *ctrl, struct streams_directive_params *s, u32 nsid) nvme_get_stream_params() argument 1379 nvme_identify_ns(struct nvme_ctrl *ctrl, unsigned nsid, struct nvme_ns_ids *ids, struct nvme_id_ns **id) nvme_identify_ns() argument 3000 nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, u8 csi, void *log, size_t size, u64 offset) nvme_get_log() argument 3738 nvme_find_ns_head(struct nvme_subsystem *subsys, unsigned nsid) nvme_find_ns_head() argument 3768 nvme_alloc_ns_head(struct nvme_ctrl *ctrl, unsigned nsid, struct nvme_ns_ids *ids) nvme_alloc_ns_head() argument 3830 nvme_init_ns_head(struct nvme_ns *ns, unsigned nsid, struct nvme_ns_ids *ids, bool is_shared) nvme_init_ns_head() argument 3873 nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid) nvme_find_get_ns() argument 3909 nvme_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid, struct nvme_ns_ids *ids) nvme_alloc_ns() argument 4031 nvme_ns_remove_by_nsid(struct nvme_ctrl *ctrl, u32 nsid) nvme_ns_remove_by_nsid() argument 4077 nvme_validate_or_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid) nvme_validate_or_alloc_ns() argument 4118 nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl, unsigned nsid) nvme_remove_invalid_namespaces() argument 4163 u32 nsid = le32_to_cpu(ns_list[i]); nvme_scan_ns_list() local [all...] |
H A D | zns.c | 78 c.identify.nsid = cpu_to_le32(ns->head->ns_id); in nvme_update_zone_info() 183 c.zmr.nsid = cpu_to_le32(ns->head->ns_id); in nvme_ns_report_zones() 249 c->zms.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_zone_mgmt_send()
|
/kernel/linux/linux-6.6/drivers/nvme/host/ |
H A D | trace.h | 58 __field(u32, nsid) 68 __entry->nsid = le32_to_cpu(cmd->common.nsid); 75 TP_printk("nvme%d: %sqid=%d, cmdid=%u, nsid=%u, flags=0x%x, meta=0x%x, cmd=(%s %s)", 77 __entry->qid, __entry->cid, __entry->nsid,
|
H A D | core.c | 36 u32 nsid; member 125 unsigned nsid); 765 cmnd->common.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_flush() 827 cmnd->dsm.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_discard() 870 cmnd->write_zeroes.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_write_zeroes() 910 cmnd->rw.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_rw() 1407 c.identify.nsid = cpu_to_le32(info->nsid); in nvme_identify_ns_descs() 1418 "Identify Descriptors failed (nsid=%u, status=0x%x)\n", in nvme_identify_ns_descs() 1419 info->nsid, statu in nvme_identify_ns_descs() 1447 nvme_identify_ns(struct nvme_ctrl *ctrl, unsigned nsid, struct nvme_id_ns **id) nvme_identify_ns() argument 2855 nvme_get_log(struct nvme_ctrl *ctrl, u32 nsid, u8 log_page, u8 lsp, u8 csi, void *log, size_t size, u64 offset) nvme_get_log() argument 3269 nvme_find_ns_head(struct nvme_ctrl *ctrl, unsigned nsid) nvme_find_ns_head() argument 3559 nvme_find_get_ns(struct nvme_ctrl *ctrl, unsigned nsid) nvme_find_get_ns() argument 3741 nvme_ns_remove_by_nsid(struct nvme_ctrl *ctrl, u32 nsid) nvme_ns_remove_by_nsid() argument 3773 nvme_scan_ns(struct nvme_ctrl *ctrl, unsigned nsid) nvme_scan_ns() argument 3818 nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl, unsigned nsid) nvme_remove_invalid_namespaces() argument 3863 u32 nsid = le32_to_cpu(ns_list[i]); nvme_scan_ns_list() local [all...] |
H A D | ioctl.c | 315 c.rw.nsid = cpu_to_le32(ns->head->ns_id); in nvme_submit_io() 329 struct nvme_ns *ns, __u32 nsid) in nvme_validate_passthru_nsid() 331 if (ns && nsid != ns->head->ns_id) { in nvme_validate_passthru_nsid() 333 "%s: nsid (%u) in cmd does not match nsid (%u)" in nvme_validate_passthru_nsid() 335 current->comm, nsid, ns->head->ns_id); in nvme_validate_passthru_nsid() 356 if (!nvme_validate_passthru_nsid(ctrl, ns, cmd.nsid)) in nvme_user_cmd() 362 c.common.nsid = cpu_to_le32(cmd.nsid); in nvme_user_cmd() 403 if (!nvme_validate_passthru_nsid(ctrl, ns, cmd.nsid)) in nvme_user_cmd64() 328 nvme_validate_passthru_nsid(struct nvme_ctrl *ctrl, struct nvme_ns *ns, __u32 nsid) nvme_validate_passthru_nsid() argument [all...] |
H A D | zns.c | 82 c.identify.nsid = cpu_to_le32(ns->head->ns_id); in nvme_update_zone_info() 193 c.zmr.nsid = cpu_to_le32(ns->head->ns_id); in nvme_ns_report_zones() 241 c->zms.nsid = cpu_to_le32(ns->head->ns_id); in nvme_setup_zone_mgmt_send()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | nvme_ioctl.h | 31 __u32 nsid; member 52 __u32 nsid; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | nvme_ioctl.h | 40 __u32 nsid; member 60 __u32 nsid; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | nvme_ioctl.h | 40 __u32 nsid; member 60 __u32 nsid; member
|
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | ip6t_srh.c | 120 struct in6_addr *psid, *nsid, *lsid; in srh1_mt6() local 223 nsid = skb_header_pointer(skb, nsidoff, sizeof(_nsid), &_nsid); in srh1_mt6() 224 if (!nsid) in srh1_mt6() 227 ipv6_masked_addr_cmp(nsid, &srhinfo->nsid_msk, in srh1_mt6()
|
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | ip6t_srh.c | 120 struct in6_addr *psid, *nsid, *lsid; in srh1_mt6() local 223 nsid = skb_header_pointer(skb, nsidoff, sizeof(_nsid), &_nsid); in srh1_mt6() 224 if (!nsid) in srh1_mt6() 227 ipv6_masked_addr_cmp(nsid, &srhinfo->nsid_msk, in srh1_mt6()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | nvme.h | 796 __le32 nsid; member 812 __le32 nsid; member 855 __le32 nsid; member 881 __le32 nsid; member 907 __le32 nsid; member 923 __le32 nsid; member 1094 __le32 nsid; member 1111 __le32 nsid; member 1191 __le32 nsid; member 1201 __le32 nsid; member 1225 __le32 nsid; global() member 1440 __le32 nsid; global() member [all...] |
/kernel/linux/linux-5.10/net/core/ |
H A D | net_namespace.c | 587 * added to net_namespace_list can assign nsid pointer in cleanup_net() 591 * Note, that unhash_nsid() does not delete nsid links in cleanup_net() 764 int nsid, err; in rtnl_net_newid() local 771 NL_SET_ERR_MSG(extack, "nsid is missing"); in rtnl_net_newid() 774 nsid = nla_get_s32(tb[NETNSA_NSID]); in rtnl_net_newid() 798 "Peer netns already has a nsid assigned"); in rtnl_net_newid() 802 err = alloc_netid(net, peer, nsid); in rtnl_net_newid() 808 } else if (err == -ENOSPC && nsid >= 0) { in rtnl_net_newid() 811 NL_SET_ERR_MSG(extack, "The specified nsid is already used"); in rtnl_net_newid() 831 int nsid; member [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | net_namespace.c | 583 * added to net_namespace_list can assign nsid pointer in cleanup_net() 587 * Note, that unhash_nsid() does not delete nsid links in cleanup_net() 753 int nsid, err; in rtnl_net_newid() local 760 NL_SET_ERR_MSG(extack, "nsid is missing"); in rtnl_net_newid() 763 nsid = nla_get_s32(tb[NETNSA_NSID]); in rtnl_net_newid() 787 "Peer netns already has a nsid assigned"); in rtnl_net_newid() 791 err = alloc_netid(net, peer, nsid); in rtnl_net_newid() 797 } else if (err == -ENOSPC && nsid >= 0) { in rtnl_net_newid() 800 NL_SET_ERR_MSG(extack, "The specified nsid is already used"); in rtnl_net_newid() 820 int nsid; member [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | arp_ndisc_evict_nocarrier.sh | 20 nsid=100 39 ip netns set ${n} $((nsid++))
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | nvme.h | 949 __le32 nsid; member 967 __le32 nsid; member 1012 __le32 nsid; member 1038 __le32 nsid; member 1064 __le32 nsid; member 1080 __le32 nsid; member 1265 __le32 nsid; member 1282 __le32 nsid; member 1362 __le32 nsid; member 1372 __le32 nsid; member 1396 __le32 nsid; global() member 1824 __le32 nsid; global() member [all...] |