| /linux-6.15/drivers/net/netdevsim/ |
| H A D | macsec.c | 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 342 void nsim_macsec_init(struct netdevsim *ns) in nsim_macsec_init() [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_set_channels() local 122 struct netdevsim *ns = netdev_priv(dev); in nsim_get_fecparam() local [all …]
|
| H A D | netdev.c | 58 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local 117 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() local 131 struct netdevsim *ns = netdev_priv(dev); in nsim_get_stats64() local 150 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac() local 164 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_vlan() local 179 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rate() local 198 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_spoofchk() local 210 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rss_query_en() local 222 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_trust() local 235 struct netdevsim *ns = netdev_priv(dev); in nsim_get_vf_config() local [all …]
|
| H A D | bpf.c | 41 struct netdevsim *ns; member 87 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active() 104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload() 123 struct netdevsim *ns = cb_priv; in nsim_bpf_setup_tc_block_cb() local 173 int nsim_bpf_disable_tc(struct netdevsim *ns) in nsim_bpf_disable_tc() 193 nsim_xdp_set_prog(struct netdevsim *ns, struct netdev_bpf *bpf, in nsim_xdp_set_prog() 308 nsim_setup_prog_hw_checks(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_setup_prog_hw_checks() 485 nsim_bpf_map_alloc(struct netdevsim *ns, struct bpf_offloaded_map *offmap) in nsim_bpf_map_alloc() 550 struct netdevsim *ns = netdev_priv(dev); in nsim_bpf() local 616 int nsim_bpf_init(struct netdevsim *ns) in nsim_bpf_init() [all …]
|
| H A D | udp_tunnels.c | 15 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_set_port() local 44 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_unset_port() local 73 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_sync_table() local 113 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnels_info_reset_write() local 135 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnels_info_create() local 201 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnels_info_destroy() local
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_cmd.c | 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() 141 static int mlx5_cmd_stub_set_peer(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_set_peer() 148 static int mlx5_cmd_stub_create_ns(struct mlx5_flow_root_namespace *ns) in mlx5_cmd_stub_create_ns() 172 struct mlx5_flow_namespace *ns; in mlx5_cmd_set_slave_root_fdb() local 205 mlx5_cmd_stub_create_match_definer(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_stub_create_match_definer() 211 static int mlx5_cmd_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_update_root_ft() 750 static int mlx5_cmd_create_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_create_fte() 761 static int mlx5_cmd_update_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_update_fte() [all …]
|
| /linux-6.15/ipc/ |
| H A D | namespace.c | 28 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() 41 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() 211 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns() 218 struct ipc_namespace *ns = NULL; in ipcns_get() local 230 static void ipcns_put(struct ns_common *ns) in ipcns_put() 238 struct ipc_namespace *ns = to_ipc_ns(new); in ipcns_install() local [all …]
|
| /linux-6.15/kernel/time/ |
| H A D | namespace.c | 81 struct time_namespace *ns; in clone_time_ns() local 180 struct time_namespace *ns) in timens_setup_vdso_clock_data() 220 struct time_namespace *ns) in timens_set_vvar_page() 249 void free_time_ns(struct time_namespace *ns) in free_time_ns() 265 struct time_namespace *ns = NULL; in timens_get() local 281 struct time_namespace *ns = NULL; in timens_for_children_get() local 295 static void timens_put(struct ns_common *ns) in timens_put() 309 struct time_namespace *ns = to_time_ns(new); in timens_install() local 331 struct time_namespace *ns = to_time_ns(nsc); in timens_on_fork() local 369 struct ns_common *ns; in proc_timens_show_offsets() local [all …]
|
| /linux-6.15/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() 126 static int mlx5_cmd_dr_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_modify_flow_table() 252 static int mlx5_cmd_dr_create_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_create_fte() 722 mlx5_cmd_dr_destroy_match_definer(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_destroy_match_definer() 734 static int mlx5_cmd_dr_delete_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_delete_fte() 758 static int mlx5_cmd_dr_update_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_update_fte() 788 static int mlx5_cmd_dr_set_peer(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_set_peer() 801 static int mlx5_cmd_dr_create_ns(struct mlx5_flow_root_namespace *ns) in mlx5_cmd_dr_create_ns() [all …]
|
| /linux-6.15/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-6.15/kernel/ |
| H A D | pid_namespace.c | 63 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() 78 struct pid_namespace *ns; in create_pid_namespace() local 150 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace() 162 struct pid_namespace *ns = in destroy_pid_namespace_work() local 184 void put_pid_ns(struct pid_namespace *ns) in put_pid_ns() 347 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns() 354 struct pid_namespace *ns; in pidns_get() local 367 struct pid_namespace *ns = NULL; in pidns_for_children_get() local 388 static void pidns_put(struct ns_common *ns) in pidns_put() 425 static struct ns_common *pidns_get_parent(struct ns_common *ns) in pidns_get_parent() [all …]
|
| H A D | utsname.c | 20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() 48 struct uts_namespace *ns; in clone_uts_ns() local 106 void free_uts_ns(struct uts_namespace *ns) in free_uts_ns() 114 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns() 121 struct uts_namespace *ns = NULL; in utsns_get() local 135 static void utsns_put(struct ns_common *ns) in utsns_put() 143 struct uts_namespace *ns = to_uts_ns(new); in utsns_install() local 155 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
|
| H A D | user_namespace.c | 198 struct user_namespace *parent, *ns = in free_user_ns() local 612 struct user_namespace *ns = seq->private; in uid_m_show() local 633 struct user_namespace *ns = seq->private; in gid_m_show() local 654 struct user_namespace *ns = seq->private; in projid_m_show() local 691 struct user_namespace *ns = seq->private; in uid_m_start() local 698 struct user_namespace *ns = seq->private; in gid_m_start() local 705 struct user_namespace *ns = seq->private; in projid_m_start() local 1122 struct user_namespace *ns = seq->private; in proc_uid_map_write() local 1139 struct user_namespace *ns = seq->private; in proc_gid_map_write() local 1156 struct user_namespace *ns = seq->private; in proc_projid_map_write() 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-6.15/drivers/nvme/host/ |
| H A D | multipath.c | 164 struct nvme_ns *ns; in nvme_kick_requeue_lists() local 209 struct nvme_ns *ns; in nvme_mpath_clear_ctrl_paths() local 300 struct nvme_ns *ns) in nvme_next_ns() 403 struct nvme_ns *ns; in nvme_numa_path() local 427 struct nvme_ns *ns; in nvme_available_path() local 452 struct nvme_ns *ns; in nvme_ns_head_submit_bio() local 503 struct nvme_ns *ns; in nvme_ns_head_get_unique_id() local 519 struct nvme_ns *ns; in nvme_ns_head_report_zones() local 757 struct nvme_ns *ns) in nvme_update_ns_ana_state() 800 struct nvme_ns *ns; in nvme_update_ana_state() local [all …]
|
| H A D | ioctl.c | 17 static bool nvme_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c, in nvme_cmd_allowed() 120 struct nvme_ns *ns = q->queuedata; in nvme_map_user_request() local 172 struct nvme_ns *ns = q->queuedata; in nvme_submit_user_cmd() local 274 struct nvme_ns *ns, __u32 nsid) in nvme_validate_passthru_nsid() 582 static int nvme_ns_ioctl(struct nvme_ns *ns, unsigned int cmd, in nvme_ns_ioctl() 615 struct nvme_ns *ns = bdev->bd_disk->private_data; in nvme_ioctl() local 630 struct nvme_ns *ns = in nvme_ns_chr_ioctl() local 716 struct nvme_ns *ns; in nvme_ns_head_ioctl() local 751 struct nvme_ns *ns; in nvme_ns_head_chr_ioctl() local 775 struct nvme_ns *ns = nvme_find_path(head); in nvme_ns_head_chr_uring_cmd() local [all …]
|
| H A D | zns.c | 38 int nvme_query_zone_info(struct nvme_ns *ns, unsigned lbaf, in nvme_query_zone_info() 108 void nvme_update_zone_info(struct nvme_ns *ns, struct queue_limits *lim, in nvme_update_zone_info() 119 static void *nvme_zns_alloc_report_buffer(struct nvme_ns *ns, in nvme_zns_alloc_report_buffer() 149 static int nvme_zone_parse_entry(struct nvme_ns *ns, in nvme_zone_parse_entry() 175 int nvme_ns_report_zones(struct nvme_ns *ns, sector_t sector, in nvme_ns_report_zones() 234 blk_status_t nvme_setup_zone_mgmt_send(struct nvme_ns *ns, struct request *req, in nvme_setup_zone_mgmt_send()
|
| /linux-6.15/kernel/cgroup/ |
| H A D | namespace.c | 12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces() 40 void free_cgroup_ns(struct cgroup_namespace *ns) in free_cgroup_ns() 93 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns) in to_cg_ns() 98 static int cgroupns_install(struct nsset *nsset, struct ns_common *ns) in cgroupns_install() 120 struct cgroup_namespace *ns = NULL; in cgroupns_get() local 134 static void cgroupns_put(struct ns_common *ns) in cgroupns_put() 139 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
|
| /linux-6.15/include/linux/ |
| 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() 135 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() 155 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() 163 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() 173 static inline void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns() 185 static inline void retire_mq_sysctls(struct ipc_namespace *ns) in retire_mq_sysctls() 189 static inline bool setup_mq_sysctls(struct ipc_namespace *ns) in setup_mq_sysctls() 203 static inline void retire_ipc_sysctls(struct ipc_namespace *ns) in retire_ipc_sysctls() [all …]
|
| H A D | pid_namespace.h | 41 struct ns_common ns; member 57 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() 65 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 75 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 90 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() 95 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 101 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() 108 static inline void put_pid_ns(struct pid_namespace *ns) in put_pid_ns() 112 static inline void zap_pid_ns_processes(struct pid_namespace *ns) in zap_pid_ns_processes()
|
| H A D | export.h | 27 #define ___EXPORT_SYMBOL(sym, license, ns) \ argument 42 #define __EXPORT_SYMBOL(sym, license, ns) argument 46 #define __EXPORT_SYMBOL(sym, license, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 50 #define __EXPORT_SYMBOL(sym, license, ns) \ argument 69 #define __EXPORT_SYMBOL(sym, license, ns) \ argument 85 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", ns) argument 86 #define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "GPL", ns) argument
|
| H A D | time_namespace.h | 25 struct ns_common ns; member 39 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns() 52 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns() 101 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host() local 111 struct time_namespace *ns) in vdso_join_timens() 117 struct time_namespace *ns) in timens_commit() 121 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns() 126 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns()
|
| /linux-6.15/fs/ |
| H A D | nsfs.c | 32 struct ns_common *ns = inode->i_private; in ns_dname() local 46 struct ns_common *ns = inode->i_private; in nsfs_evict() local 54 struct ns_common *ns; in ns_get_path_cb() local 94 int open_namespace(struct ns_common *ns) in open_namespace() 117 int open_related_ns(struct ns_common *ns, in open_related_ns() 118 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns() 186 struct ns_common *ns; in ns_ioctl() local 349 struct ns_common *ns; in ns_get_name() local 383 const struct ns_common *ns = inode->i_private; in nsfs_show_path() local 398 struct ns_common *ns = data; in nsfs_init_inode() local [all …]
|
| /linux-6.15/drivers/mtd/nand/raw/ |
| H A D | nandsim.c | 189 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0) argument 198 #define NS_RAW_OFFSET(ns) \ 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() 608 static void ns_free_device(struct nandsim *ns) in ns_free_device() 789 static void ns_free(struct nandsim *ns) in ns_free() 1301 static void ns_put_pages(struct nandsim *ns) in ns_put_pages() 1468 static void ns_erase_sector(struct nandsim *ns) in ns_erase_sector() 1721 static void ns_switch_state(struct nandsim *ns) in ns_switch_state() [all …]
|
| /linux-6.15/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() 333 static int mlx5_cmd_hws_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_update_root_ft() 696 static void mlx5_fs_destroy_fs_action(struct mlx5_flow_root_namespace *ns, in mlx5_fs_destroy_fs_action() 717 mlx5_fs_destroy_fs_actions(struct mlx5_flow_root_namespace *ns, in mlx5_fs_destroy_fs_actions() 1074 static int mlx5_cmd_hws_create_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_create_fte() 1119 static int mlx5_cmd_hws_delete_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_delete_fte() 1138 static int mlx5_cmd_hws_update_fte(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_update_fte() [all …]
|