| /linux/drivers/net/netdevsim/ |
| H A D | macsec.c | 6 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) in nsim_macsec_find_secy() 32 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_secy() local 61 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_secy() local 79 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_secy() local 101 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_rxsc() local 136 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_rxsc() local 163 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_rxsc() local 194 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_rxsa() local 221 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_upd_rxsa() local 248 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_del_rxsa() local [all …]
|
| H A D | ethtool.c | 14 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pause_stats() local 25 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pauseparam() local 35 struct netdevsim *ns = netdev_priv(dev); in nsim_set_pauseparam() local 50 struct netdevsim *ns = netdev_priv(dev); in nsim_get_coalesce() local 61 struct netdevsim *ns = netdev_priv(dev); in nsim_set_coalesce() local 72 struct netdevsim *ns = netdev_priv(dev); in nsim_get_ringparam() local 86 struct netdevsim *ns = netdev_priv(dev); in nsim_set_ringparam() local 98 struct netdevsim *ns = netdev_priv(dev); in nsim_get_channels() local 107 struct netdevsim *ns = netdev_priv(dev); in nsim_wake_queues() local 123 struct netdevsim *ns = netdev_priv(dev); in nsim_set_channels() local [all …]
|
| H A D | netdev.c | 42 struct netdevsim *ns = netdev_priv(dev); in nsim_start_peer_tx_queue() local 122 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local 185 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() local 204 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac() local 218 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_vlan() local 233 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rate() local 252 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_spoofchk() local 264 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rss_query_en() local 276 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_trust() local 289 struct netdevsim *ns = netdev_priv(dev); in nsim_get_vf_config() local [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_cmd.c | 43 static int mlx5_cmd_stub_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_update_root_ft() 51 static int mlx5_cmd_stub_create_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_create_flow_table() 63 static int mlx5_cmd_stub_destroy_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_destroy_flow_table() 69 static int mlx5_cmd_stub_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_modify_flow_table() 76 static int mlx5_cmd_stub_create_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_create_flow_group() 84 static int mlx5_cmd_stub_destroy_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_destroy_flow_group() 91 static int mlx5_cmd_stub_create_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_create_fte() 99 static int mlx5_cmd_stub_update_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_update_fte() 108 static int mlx5_cmd_stub_delete_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_delete_fte() 115 static int mlx5_cmd_stub_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_packet_reformat_alloc() [all …]
|
| /linux/ipc/ |
| H A D | namespace.c | 29 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() 42 struct ipc_namespace *ns; in create_ipc_ns() local 110 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() 125 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, in free_ipcs() 148 static void free_ipc_ns(struct ipc_namespace *ns) in free_ipc_ns() 200 void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns() 214 struct ipc_namespace *ns = NULL; in ipcns_get() local 226 static void ipcns_put(struct ns_common *ns) in ipcns_put() 234 struct ipc_namespace *ns = to_ipc_ns(new); in ipcns_install() local 244 static struct user_namespace *ipcns_owner(struct ns_common *ns) in ipcns_owner()
|
| /linux/kernel/time/ |
| H A D | namespace.c | 60 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() 82 struct time_namespace *ns; in clone_time_ns() local 179 struct time_namespace *ns) in timens_setup_vdso_clock_data() 219 struct time_namespace *ns) in timens_set_vvar_page() 253 void free_time_ns(struct time_namespace *ns) in free_time_ns() 266 struct time_namespace *ns = NULL; in timens_get() local 282 struct time_namespace *ns = NULL; in timens_for_children_get() local 296 static void timens_put(struct ns_common *ns) in timens_put() 301 void timens_commit(struct task_struct *tsk, struct time_namespace *ns) in timens_commit() 310 struct time_namespace *ns = to_time_ns(new); in timens_install() local [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | fs_dr.c | 12 static int mlx5_cmd_dr_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_update_root_ft() 21 static int set_miss_action(struct mlx5_flow_root_namespace *ns, in set_miss_action() 56 static int mlx5_cmd_dr_create_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_flow_table() 99 static int mlx5_cmd_dr_destroy_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_destroy_flow_table() 126 static int mlx5_cmd_dr_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_modify_flow_table() 136 static int mlx5_cmd_dr_create_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_flow_group() 170 static int mlx5_cmd_dr_destroy_flow_group(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_destroy_flow_group() 252 static int mlx5_cmd_dr_create_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_fte() 634 static int mlx5_cmd_dr_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_packet_reformat_alloc() 684 static void mlx5_cmd_dr_packet_reformat_dealloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_packet_reformat_dealloc() [all …]
|
| /linux/security/apparmor/ |
| H A D | policy_ns.c | 107 struct aa_ns *ns; in alloc_ns() local 148 void aa_free_ns(struct aa_ns *ns) in aa_free_ns() 176 struct aa_ns *ns = view; in __aa_lookupn_ns() local 207 struct aa_ns *ns = NULL; in aa_lookupn_ns() local 219 struct aa_ns *ns; in __aa_create_ns() local 259 struct aa_ns *ns; in __aa_find_or_create_ns() local 284 struct aa_ns *ns; in aa_prepare_ns() local 304 static void destroy_ns(struct aa_ns *ns) in destroy_ns() 334 void __aa_remove_ns(struct aa_ns *ns) in __aa_remove_ns() 350 struct aa_ns *ns, *tmp; in __ns_list_release() local [all …]
|
| /linux/kernel/ |
| H A D | pid_namespace.c | 64 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() 79 struct pid_namespace *ns; in create_pid_namespace() local 142 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns() local 150 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace() 163 struct pid_namespace *ns = in destroy_pid_namespace_work() local 185 void put_pid_ns(struct pid_namespace *ns) in put_pid_ns() 350 struct pid_namespace *ns; in pidns_get() local 363 struct pid_namespace *ns = NULL; in pidns_for_children_get() local 384 static void pidns_put(struct ns_common *ns) in pidns_put() 392 struct pid_namespace *ns; in pidns_is_ancestor() local [all …]
|
| H A D | utsname.c | 21 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() 39 struct uts_namespace *ns; in clone_uts_ns() local 96 void free_uts_ns(struct uts_namespace *ns) in free_uts_ns() 108 struct uts_namespace *ns = NULL; in utsns_get() local 122 static void utsns_put(struct ns_common *ns) in utsns_put() 130 struct uts_namespace *ns = to_uts_ns(new); in utsns_install() local 142 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
|
| H A D | user_namespace.c | 34 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces() 85 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local 199 struct user_namespace *parent, *ns = in free_user_ns() local 231 void __put_user_ns(struct user_namespace *ns) in __put_user_ns() 422 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid() 490 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() 557 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid() 615 struct user_namespace *ns = seq->private; in uid_m_show() local 636 struct user_namespace *ns = seq->private; in gid_m_show() local 657 struct user_namespace *ns = seq->private; in projid_m_show() local [all …]
|
| H A D | capability.c | 277 struct user_namespace *ns, int cap) in has_ns_capability() 302 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() 331 static bool ns_capable_common(struct user_namespace *ns, in ns_capable_common() 361 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() 379 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit() 398 bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid() 433 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() 455 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, in privileged_wrt_inode_uidgid() 476 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid() local 491 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) in ptracer_capable()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-pidns.c | 40 FIXTURE(ns) in FIXTURE() argument 46 FIXTURE_SETUP(ns) in FIXTURE_SETUP() argument 94 FIXTURE_TEARDOWN(ns) in FIXTURE_TEARDOWN() argument 103 TEST_F(ns, pidns_mount_string_path) in TEST_F() argument 115 TEST_F(ns, pidns_fsconfig_string_path) in TEST_F() argument 133 TEST_F(ns, pidns_fsconfig_fd) in TEST_F() argument 151 TEST_F(ns, pidns_reconfigure_remount) in TEST_F() argument 165 TEST_F(ns, pidns_reconfigure_fsconfig_string_path) in TEST_F() argument 188 TEST_F(ns, pidns_reconfigure_fsconfig_fd) in TEST_F() argument
|
| /linux/include/linux/ |
| H A D | cgroup_namespace.h | 8 struct ns_common ns; member 18 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns) in to_cg_ns() 32 static inline void get_cgroup_ns(struct cgroup_namespace *ns) in get_cgroup_ns() 37 static inline void put_cgroup_ns(struct cgroup_namespace *ns) in put_cgroup_ns() 45 static inline void free_cgroup_ns(struct cgroup_namespace *ns) { } in free_cgroup_ns() 53 static inline void get_cgroup_ns(struct cgroup_namespace *ns) { } in get_cgroup_ns() 54 static inline void put_cgroup_ns(struct cgroup_namespace *ns) { } in put_cgroup_ns()
|
| H A D | ipc_namespace.h | 80 struct ns_common ns; member 89 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() 128 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() 132 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns() 140 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() 147 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() 160 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() 168 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() 173 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() 178 static inline void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns() [all …]
|
| H A D | pid_namespace.h | 41 struct ns_common ns; member 57 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns() 62 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() 70 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 80 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 98 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() 103 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 109 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() 116 static inline void put_pid_ns(struct pid_namespace *ns) in put_pid_ns() 120 static inline void zap_pid_ns_processes(struct pid_namespace *ns) in zap_pid_ns_processes()
|
| H A D | uts_namespace.h | 15 struct ns_common ns; member 21 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns() 26 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns() 35 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns() 43 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns() 47 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns()
|
| H A D | time_namespace.h | 26 struct ns_common ns; member 36 static inline struct time_namespace *to_time_ns(struct ns_common *ns) in to_time_ns() 45 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns() 58 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns() 107 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host() local 121 struct time_namespace *ns) in vdso_join_timens() 127 struct time_namespace *ns) in timens_commit() 131 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns() 136 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns()
|
| H A D | export.h | 33 #define ___EXPORT_SYMBOL(sym, license, ns...) \ argument 48 #define __EXPORT_SYMBOL(sym, license, ns) argument 52 #define __EXPORT_SYMBOL(sym, license, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 56 #define __EXPORT_SYMBOL(sym, license, ns) \ argument 75 #define __EXPORT_SYMBOL(sym, license, ns) \ argument 91 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", ns) argument 92 #define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "GPL", ns) argument
|
| /linux/fs/ |
| H A D | nsfs.c | 46 struct ns_common *ns = inode->i_private; in ns_dname() local 60 struct ns_common *ns = inode->i_private; in nsfs_evict() local 68 struct ns_common *ns; in ns_get_path_cb() local 108 int open_namespace(struct ns_common *ns) in open_namespace() 131 int open_related_ns(struct ns_common *ns, in open_related_ns() 132 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns() 203 struct ns_common *ns; in ns_ioctl() local 366 struct ns_common *ns; in ns_get_name() local 391 bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino) in ns_match() 400 const struct ns_common *ns = inode->i_private; in nsfs_show_path() local [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | multipath.c | 139 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req() local 182 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_start_request() local 203 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_end_request() local 217 struct nvme_ns *ns; in nvme_kick_requeue_lists() local 241 bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path() 262 struct nvme_ns *ns; in nvme_mpath_clear_ctrl_paths() local 274 void nvme_mpath_revalidate_paths(struct nvme_ns *ns) in nvme_mpath_revalidate_paths() 294 static bool nvme_path_is_disabled(struct nvme_ns *ns) in nvme_path_is_disabled() 314 struct nvme_ns *found = NULL, *fallback = NULL, *ns; in __nvme_find_path() local 353 struct nvme_ns *ns) in nvme_next_ns() [all …]
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | fclog.c | 29 FIXTURE(ns) in FIXTURE() argument 34 FIXTURE_SETUP(ns) in FIXTURE_SETUP() argument 45 FIXTURE_TEARDOWN(ns) in FIXTURE_TEARDOWN() argument 51 TEST_F(ns, fscontext_log_enodata) in TEST_F() argument 64 TEST_F(ns, fscontext_log_errorfc) in TEST_F() argument 80 TEST_F(ns, fscontext_log_errorfc_after_fsmount) in TEST_F() argument 105 TEST_F(ns, fscontext_log_emsgsize) in TEST_F() argument
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | fs_hws.c | 130 static int mlx5_cmd_hws_create_ns(struct mlx5_flow_root_namespace *ns) in mlx5_cmd_hws_create_ns() 154 static int mlx5_cmd_hws_destroy_ns(struct mlx5_flow_root_namespace *ns) in mlx5_cmd_hws_destroy_ns() 160 static int mlx5_cmd_hws_set_peer(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_set_peer() 173 static int mlx5_fs_set_ft_default_miss(struct mlx5_flow_root_namespace *ns, in mlx5_fs_set_ft_default_miss() 197 static int mlx5_fs_add_flow_table_dest_action(struct mlx5_flow_root_namespace *ns, in mlx5_fs_add_flow_table_dest_action() 220 static int mlx5_fs_del_flow_table_dest_action(struct mlx5_flow_root_namespace *ns, in mlx5_fs_del_flow_table_dest_action() 241 static int mlx5_cmd_hws_create_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_create_flow_table() 301 static int mlx5_cmd_hws_destroy_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_destroy_flow_table() 324 static int mlx5_cmd_hws_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_modify_flow_table() 334 static int mlx5_cmd_hws_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_update_root_ft() [all …]
|
| /linux/kernel/cgroup/ |
| H A D | namespace.c | 12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces() 37 void free_cgroup_ns(struct cgroup_namespace *ns) in free_cgroup_ns() 92 static int cgroupns_install(struct nsset *nsset, struct ns_common *ns) in cgroupns_install() 114 struct cgroup_namespace *ns = NULL; in cgroupns_get() local 128 static void cgroupns_put(struct ns_common *ns) in cgroupns_put() 133 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nandsim.c | 189 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0) argument 192 #define NS_STATUS_OK(ns) (NAND_STATUS_READY | (NAND_STATUS_WP * ((ns)->lines.wp == 0))) argument 195 #define NS_STATUS_FAILED(ns) (NAND_STATUS_FAIL | NS_STATUS_OK(ns)) argument 198 #define NS_RAW_OFFSET(ns) \ argument 202 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) argument 205 #define NS_PAGE_BYTE_SHIFT(ns) ((ns)->regs.column + (ns)->regs.off) argument 500 static int ns_debugfs_create(struct nandsim *ns) in ns_debugfs_create() 525 static void ns_debugfs_remove(struct nandsim *ns) in ns_debugfs_remove() 536 static int __init ns_alloc_device(struct nandsim *ns) in ns_alloc_device() 607 static void ns_free_device(struct nandsim *ns) in ns_free_device() [all …]
|