/linux-6.12.1/drivers/net/netdevsim/ |
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 …]
|
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 82 struct netdevsim *ns = netdev_priv(dev); in nsim_set_ringparam() local 94 struct netdevsim *ns = netdev_priv(dev); in nsim_get_channels() local 103 struct netdevsim *ns = netdev_priv(dev); in nsim_set_channels() local 118 struct netdevsim *ns = netdev_priv(dev); in nsim_get_fecparam() local [all …]
|
D | netdev.c | 52 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local 102 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() local 115 struct netdevsim *ns = netdev_priv(dev); in nsim_get_stats64() local 134 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac() local 148 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_vlan() local 163 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rate() local 182 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_spoofchk() local 194 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rss_query_en() local 206 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_trust() local 219 struct netdevsim *ns = netdev_priv(dev); in nsim_get_vf_config() local [all …]
|
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() 180 static int nsim_xdp_offload_prog(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_xdp_offload_prog() 193 nsim_xdp_set_prog(struct netdevsim *ns, struct netdev_bpf *bpf, in nsim_xdp_set_prog() 293 static int nsim_setup_prog_checks(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_setup_prog_checks() 307 nsim_setup_prog_hw_checks(struct netdevsim *ns, struct netdev_bpf *bpf) in nsim_setup_prog_hw_checks() 484 nsim_bpf_map_alloc(struct netdevsim *ns, struct bpf_offloaded_map *offmap) in nsim_bpf_map_alloc() [all …]
|
D | ipsec.c | 16 struct netdevsim *ns = filp->private_data; in nsim_dbg_netdev_ops_read() local 133 struct netdevsim *ns; in nsim_ipsec_add_sa() local 202 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_del_sa() local 219 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_offload_ok() local 233 bool nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb) in nsim_ipsec_tx() 280 void nsim_ipsec_init(struct netdevsim *ns) in nsim_ipsec_init() 296 void nsim_ipsec_teardown(struct netdevsim *ns) in nsim_ipsec_teardown()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
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-6.12.1/ipc/ |
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 108 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() 123 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, in free_ipcs() 146 static void free_ipc_ns(struct ipc_namespace *ns) in free_ipc_ns() 198 void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns() 209 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns() 216 struct ipc_namespace *ns = NULL; in ipcns_get() local 228 static void ipcns_put(struct ns_common *ns) in ipcns_put() 236 struct ipc_namespace *ns = to_ipc_ns(new); in ipcns_install() local [all …]
|
/linux-6.12.1/kernel/time/ |
D | namespace.c | 59 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() 81 struct time_namespace *ns; in clone_time_ns() local 180 struct time_namespace *ns) in timens_setup_vdso_data() 220 struct time_namespace *ns) in timens_set_vvar_page() 247 void free_time_ns(struct time_namespace *ns) in free_time_ns() 256 static struct time_namespace *to_time_ns(struct ns_common *ns) in to_time_ns() 263 struct time_namespace *ns = NULL; in timens_get() local 279 struct time_namespace *ns = NULL; in timens_for_children_get() local 293 static void timens_put(struct ns_common *ns) in timens_put() 298 void timens_commit(struct task_struct *tsk, struct time_namespace *ns) in timens_commit() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
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() 629 static int mlx5_cmd_dr_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_packet_reformat_alloc() 679 static void mlx5_cmd_dr_packet_reformat_dealloc(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_dr_packet_reformat_dealloc() [all …]
|
/linux-6.12.1/security/apparmor/ |
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.12.1/kernel/ |
D | pid_namespace.c | 63 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() 76 struct pid_namespace *ns; in create_pid_namespace() local 130 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns() local 138 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace() 156 void put_pid_ns(struct pid_namespace *ns) in put_pid_ns() 326 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns() 333 struct pid_namespace *ns; in pidns_get() local 346 struct pid_namespace *ns = NULL; in pidns_for_children_get() local 367 static void pidns_put(struct ns_common *ns) in pidns_put() 372 static int pidns_install(struct nsset *nsset, struct ns_common *ns) in pidns_install() [all …]
|
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()
|
D | user_namespace.c | 33 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces() 84 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local 198 struct user_namespace *parent, *ns = in free_user_ns() local 228 void __put_user_ns(struct user_namespace *ns) in __put_user_ns() 411 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid() 479 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() 546 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid() 604 struct user_namespace *ns = seq->private; in uid_m_show() local 625 struct user_namespace *ns = seq->private; in gid_m_show() local 646 struct user_namespace *ns = seq->private; in projid_m_show() local [all …]
|
D | capability.c | 281 struct user_namespace *ns, int cap) in has_ns_capability() 322 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() 351 static bool ns_capable_common(struct user_namespace *ns, in ns_capable_common() 381 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() 399 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit() 418 bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid() 453 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() 475 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, in privileged_wrt_inode_uidgid() 496 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid() local 511 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) in ptracer_capable()
|
/linux-6.12.1/include/linux/ |
D | pid_namespace.h | 40 struct ns_common ns; member 51 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() 59 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 69 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 84 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() 89 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 95 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() 102 static inline void put_pid_ns(struct pid_namespace *ns) in put_pid_ns() 106 static inline void zap_pid_ns_processes(struct pid_namespace *ns) in zap_pid_ns_processes()
|
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() 142 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() 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() 168 static inline struct ipc_namespace *get_ipc_ns_not_zero(struct ipc_namespace *ns) in get_ipc_ns_not_zero() 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() [all …]
|
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 55 #define __EXPORT_SYMBOL(sym, license, ns) \ argument 70 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", __stringify(ns)) argument 71 #define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "GPL", __stringify(ns)) argument
|
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()
|
D | user_namespace.h | 82 struct ns_common ns; member 119 struct user_namespace *ns; member 149 static inline long get_userns_rlimit_max(struct user_namespace *ns, enum rlimit_type type) in get_userns_rlimit_max() 154 static inline void set_userns_rlimit_max(struct user_namespace *ns, in set_userns_rlimit_max() 162 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns() 173 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns() 195 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns() 213 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns() 217 static inline bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups() 233 static inline struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
|
/linux-6.12.1/fs/ |
D | nsfs.c | 32 struct ns_common *ns = inode->i_private; in ns_dname() local 47 struct ns_common *ns = inode->i_private; in nsfs_evict() local 55 struct ns_common *ns; in ns_get_path_cb() local 95 int open_namespace(struct ns_common *ns) in open_namespace() 118 int open_related_ns(struct ns_common *ns, in open_related_ns() 119 struct ns_common *(*get_ns)(struct ns_common *ns)) in open_related_ns() 161 struct ns_common *ns = get_proc_ns(file_inode(filp)); in ns_ioctl() local 323 struct ns_common *ns; in ns_get_name() local 348 bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino) in ns_match() 357 const struct ns_common *ns = inode->i_private; in nsfs_show_path() local [all …]
|
/linux-6.12.1/kernel/cgroup/ |
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.12.1/drivers/nvme/host/ |
D | multipath.c | 88 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req() local 131 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_start_request() local 150 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_end_request() local 164 struct nvme_ns *ns; in nvme_kick_requeue_lists() local 187 bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path() 208 struct nvme_ns *ns; in nvme_mpath_clear_ctrl_paths() local 219 void nvme_mpath_revalidate_paths(struct nvme_ns *ns) in nvme_mpath_revalidate_paths() 238 static bool nvme_path_is_disabled(struct nvme_ns *ns) in nvme_path_is_disabled() 258 struct nvme_ns *found = NULL, *fallback = NULL, *ns; in __nvme_find_path() local 296 struct nvme_ns *ns) in nvme_next_ns() [all …]
|
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 176 struct nvme_ns *ns = q->queuedata; in nvme_submit_user_cmd() local 212 static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio) in nvme_submit_io() 275 struct nvme_ns *ns, __u32 nsid) in nvme_validate_passthru_nsid() 288 static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd() 336 static int nvme_user_cmd64(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd64() 452 static int nvme_uring_cmd_io(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_uring_cmd_io() 564 static int nvme_ns_ioctl(struct nvme_ns *ns, unsigned int cmd, in nvme_ns_ioctl() 597 struct nvme_ns *ns = bdev->bd_disk->private_data; in nvme_ioctl() local [all …]
|
/linux-6.12.1/drivers/mtd/nand/raw/ |
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() 608 static void ns_free_device(struct nandsim *ns) in ns_free_device() [all …]
|
/linux-6.12.1/net/ipv6/ |
D | ioam6.c | 23 static void ioam6_ns_release(struct ioam6_namespace *ns) in ioam6_ns_release() 35 struct ioam6_namespace *ns = (struct ioam6_namespace *)ptr; in ioam6_free_ns() local 51 const struct ioam6_namespace *ns = obj; in ioam6_ns_cmpfn() local 110 struct ioam6_namespace *ns; in ioam6_genl_addns() local 164 struct ioam6_namespace *ns; in ioam6_genl_delns() local 201 static int __ioam6_genl_dumpns_element(struct ioam6_namespace *ns, in __ioam6_genl_dumpns_element() 277 struct ioam6_namespace *ns; in ioam6_genl_dumpns() local 363 struct ioam6_namespace *ns; in ioam6_genl_delsc() local 403 struct ioam6_namespace *ns; in __ioam6_genl_dumpsc_element() local 500 struct ioam6_namespace *ns, *ns_ref; in ioam6_genl_ns_set_schema() local [all …]
|