| /linux/drivers/nvme/target/ |
| H A D | core.c | 67 req->error_loc = offsetof(struct nvme_rw_command, nsid); in errno_to_nvme_status() 121 u32 nsid = 0; in nvmet_max_nsid() local 124 nsid = cur->nsid; in nvmet_max_nsid() 126 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() 436 u32 nsid = le32_to_cpu(req->cmd->common.nsid); in nvmet_req_find_ns() local [all …]
|
| H A D | trace.h | 78 __field(u32, nsid) 91 __entry->nsid = le32_to_cpu(cmd->common.nsid); 100 __entry->qid, __entry->cid, __entry->nsid,
|
| H A D | admin-cmd.c | 295 req->cmd->common.nsid = cpu_to_le32(le16_to_cpu( in nvmet_execute_get_log_page_rmi() 341 if (req->cmd->get_log_page.nsid == cpu_to_le32(NVME_NSID_ALL)) in nvmet_execute_get_log_page_smart() 479 desc->nsids[count++] = cpu_to_le32(ns->nsid); in nvmet_format_ana_group() 501 req->cmd->common.nsid = cpu_to_le32(le16_to_cpu( in nvmet_execute_get_log_page_endgrp() 806 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) { in nvmet_execute_identify_ns() 807 req->error_loc = offsetof(struct nvme_identify, nsid); in nvmet_execute_identify_ns() 827 nvmet_ns_changed(req->ns->subsys, req->ns->nsid); in nvmet_execute_identify_ns() 876 id->endgid = cpu_to_le16(req->ns->nsid); in nvmet_execute_identify_ns() 921 if (ns->nsid <= min_endgid) in nvmet_execute_identify_endgrp_list() 924 list[i++] = cpu_to_le16(ns->nsid); in nvmet_execute_identify_endgrp_list() [all …]
|
| H A D | pr.c | 41 u32 nsid = le32_to_cpu(req->cmd->common.nsid); in nvmet_set_feat_resv_notif_mask() local 52 if (nsid != U32_MAX) { in nvmet_set_feat_resv_notif_mask() 133 u32 nsid) in nvmet_pr_add_resv_log() argument 145 log.nsid = cpu_to_le32(nsid); in nvmet_pr_add_resv_log() 149 ctrl->cntlid, log_type, nsid); in nvmet_pr_add_resv_log() 170 NVME_PR_LOG_RESERVATION_RELEASED, ns->nsid); in nvmet_pr_resv_released() 189 nvmet_pr_add_resv_log(ctrl, log_type, ns->nsid); in nvmet_pr_send_event_to_host()
|
| H A D | passthru.c | 308 u32 nsid = le32_to_cpu(req->cmd->common.nsid); in nvmet_passthru_execute_cmd() local 310 ns = nvme_find_get_ns(ctrl, nsid); in nvmet_passthru_execute_cmd() 312 pr_err("failed to get passthru ns nsid:%u\n", nsid); in nvmet_passthru_execute_cmd()
|
| H A D | zns.c | 101 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) { in nvmet_execute_identify_ns_zns() 102 req->error_loc = offsetof(struct nvme_identify, nsid); in nvmet_execute_identify_ns_zns() 119 nvmet_ns_changed(req->ns->subsys, req->ns->nsid); in nvmet_execute_identify_ns_zns() 125 req->error_loc = offsetof(struct nvme_identify, nsid); in nvmet_execute_identify_ns_zns()
|
| H A D | configfs.c | 767 nvmet_ns_changed(ns->subsys, ns->nsid); in nvmet_ns_revalidate_size_store() 790 pr_err("the ns:%d is already enabled.\n", ns->nsid); in nvmet_ns_resv_enable_store() 838 u32 nsid; in nvmet_ns_make() local 840 ret = kstrtou32(name, 0, &nsid); in nvmet_ns_make() 845 if (nsid == 0 || nsid == NVME_NSID_ALL) { in nvmet_ns_make() 846 pr_err("invalid nsid %#x", nsid); in nvmet_ns_make() 851 ns = nvmet_ns_alloc(subsys, nsid); in nvmet_ns_make() 856 pr_info("adding nsid %d to subsystem %s\n", nsid, subsys->subsysnqn); in nvmet_ns_make()
|
| H A D | nvmet.h | 106 u32 nsid; member 633 struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid); 713 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid);
|
| H A D | io-cmd-bdev.c | 157 req->error_loc = offsetof(struct nvme_rw_command, nsid); in blk_to_nvme_status()
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | nsid_test.c | 26 FIXTURE(nsid) { in FIXTURE() argument 30 FIXTURE_SETUP(nsid) { in FIXTURE_SETUP() argument 34 FIXTURE_TEARDOWN(nsid) { in FIXTURE_TEARDOWN() argument 66 TEST_F(nsid, mntns_separate) in TEST_F() argument 172 TEST_F(nsid, cgroupns_separate) in TEST_F() argument 278 TEST_F(nsid, ipcns_separate) in TEST_F() argument 384 TEST_F(nsid, utsns_separate) in TEST_F() argument 490 TEST_F(nsid, userns_separate) in TEST_F() argument 598 TEST_F(nsid, timens_separate) in TEST_F() argument 723 TEST_F(nsid, pidns_separate) in TEST_F() argument [all …]
|
| /linux/include/uapi/linux/ |
| H A D | nvme_ioctl.h | 31 __u32 nsid; member 52 __u32 nsid; member 78 __u32 nsid; member
|
| /linux/drivers/nvme/host/ |
| H A D | ioctl.c | 255 c.rw.nsid = cpu_to_le32(ns->head->ns_id); in nvme_submit_io() 269 struct nvme_ns *ns, __u32 nsid) in nvme_validate_passthru_nsid() argument 271 if (ns && nsid != ns->head->ns_id) { in nvme_validate_passthru_nsid() 274 current->comm, nsid, ns->head->ns_id); in nvme_validate_passthru_nsid() 295 if (!nvme_validate_passthru_nsid(ctrl, ns, cmd.nsid)) in nvme_user_cmd() 301 c.common.nsid = cpu_to_le32(cmd.nsid); in nvme_user_cmd() 342 if (!nvme_validate_passthru_nsid(ctrl, ns, cmd.nsid)) in nvme_user_cmd64() 348 c.common.nsid = cpu_to_le32(cmd.nsid); in nvme_user_cmd64() 460 c.common.nsid = cpu_to_le32(cmd->nsid); in nvme_uring_cmd_io() 461 if (!nvme_validate_passthru_nsid(ctrl, ns, le32_to_cpu(c.common.nsid))) in nvme_uring_cmd_io()
|
| H A D | trace.h | 58 __field(u32, nsid) 68 __entry->nsid = le32_to_cpu(cmd->common.nsid); 77 __entry->qid, __entry->cid, __entry->nsid,
|
| H A D | pr.c | 61 c->common.nsid = cpu_to_le32(ns->head->ns_id); in nvme_send_ns_head_pr_command() 71 c->common.nsid = cpu_to_le32(ns->head->ns_id); in nvme_send_ns_pr_command()
|
| H A D | multipath.c | 925 unsigned nsid; in nvme_update_ana_state() local 927 nsid = le32_to_cpu(desc->nsids[n]); in nvme_update_ana_state() 928 if (ns->head->ns_id < nsid) in nvme_update_ana_state() 930 if (ns->head->ns_id == nsid) in nvme_update_ana_state() 934 if (ns->head->ns_id > nsid) in nvme_update_ana_state()
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 64 __u32 nsid; member 258 fill = snprintf(pos, left, "%u %u %u\n", map->nsid, map->hostid, map->range); in map_ids_from_idmap() 307 int get_userns_fd(unsigned long nsid, unsigned long hostid, unsigned long range) in get_userns_fd() argument 312 .nsid = nsid, in get_userns_fd() 318 .nsid = nsid, in get_userns_fd()
|
| /linux/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()
|
| /linux/include/linux/ |
| H A D | nvme.h | 1075 __le32 nsid; member 1093 __le32 nsid; member 1139 __le32 nsid; member 1165 __le32 nsid; member 1191 __le32 nsid; member 1207 __le32 nsid; member 1223 __le32 nsid; member 1447 __le32 nsid; member 1465 __le32 nsid; member 1545 __le32 nsid; member [all …]
|
| /linux/net/core/ |
| H A D | net_namespace.c | 679 * added to net_namespace_list can assign nsid pointer in cleanup_net() 683 * Note, that unhash_nsid() does not delete nsid links in cleanup_net() 853 int nsid, err; in rtnl_net_newid() 860 NL_SET_ERR_MSG(extack, "nsid is missing"); in rtnl_net_newid() 863 nsid = nla_get_s32(tb[NETNSA_NSID]); in rtnl_net_newid() 887 "Peer netns already has a nsid assigned"); in rtnl_net_newid() 891 err = alloc_netid(net, peer, nsid); in rtnl_net_newid() 897 } else if (err == -ENOSPC && nsid >= 0) { in rtnl_net_newid() 900 NL_SET_ERR_MSG(extack, "The specified nsid is already used"); in rtnl_net_newid() 920 int nsid; 852 int nsid, err; rtnl_net_newid() local 919 int nsid; global() member [all...] |
| /linux/arch/s390/include/asm/ |
| H A D | ipl.h | 97 u32 nsid; member
|
| /linux/tools/testing/selftests/net/ |
| H A D | arp_ndisc_evict_nocarrier.sh | 21 nsid=100
|
| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 1146 static int map_ids(pid_t pid, unsigned long nsid, unsigned long hostid, in map_ids() argument 1152 snprintf(map, sizeof(map), "%lu %lu %lu", nsid, hostid, range); in map_ids() 1158 snprintf(map, sizeof(map), "%lu %lu %lu", nsid, hostid, range); in map_ids() 1205 static int get_userns_fd(unsigned long nsid, unsigned long hostid, unsigned long range) in get_userns_fd() argument 1215 ret = map_ids(pid, nsid, hostid, range); in get_userns_fd()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_overlay.c | 70 header->body.nsid = SVGA_ESCAPE_NSID_VMWARE; in fill_escape()
|
| /linux/drivers/gpu/drm/vmwgfx/device_include/ |
| H A D | svga_reg.h | 789 uint32 nsid; member
|
| /linux/security/selinux/ |
| H A D | selinuxfs.c | 744 u32 osid, nsid, tsid; in sel_write_validatetrans() local 790 rc = security_context_str_to_sid(newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans() 798 rc = security_validate_transition_user(osid, nsid, tsid, tclass); in sel_write_validatetrans()
|