Home
last modified time | relevance | path

Searched defs:ns (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/linux/drivers/net/netdevsim/
H A Dethtool.c14 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 Dnetdev.c59 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local
118 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() local
132 struct netdevsim *ns = netdev_priv(dev); in nsim_get_stats64() local
151 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac() local
165 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_vlan() local
180 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rate() local
199 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_spoofchk() local
211 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_rss_query_en() local
223 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_trust() local
236 struct netdevsim *ns = netdev_priv(dev); in nsim_get_vf_config() local
[all …]
H A Dbpf.c41 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()
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()
[all …]
H A Dudp_tunnels.c15 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/ipc/
H A Dnamespace.c28 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 …]
H A Dutil.h61 static inline void mq_clear_sbinfo(struct ipc_namespace *ns) { } in mq_clear_sbinfo()
73 static inline void sem_init_ns(struct ipc_namespace *ns) { } in sem_init_ns()
74 static inline int msg_init_ns(struct ipc_namespace *ns) { return 0; } in msg_init_ns()
75 static inline void shm_init_ns(struct ipc_namespace *ns) { } in shm_init_ns()
77 static inline void sem_exit_ns(struct ipc_namespace *ns) { } in sem_exit_ns()
78 static inline void msg_exit_ns(struct ipc_namespace *ns) { } in msg_exit_ns()
79 static inline void shm_exit_ns(struct ipc_namespace *ns) { } in shm_exit_ns()
248 static inline int sem_check_semmni(struct ipc_namespace *ns) { in sem_check_semmni()
H A Dshm.c77 struct ipc_namespace *ns; member
86 struct ipc_namespace *ns; member
96 #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS]) argument
109 void shm_init_ns(struct ipc_namespace *ns) in shm_init_ns()
123 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in do_shm_rmid()
140 void shm_exit_ns(struct ipc_namespace *ns) in shm_exit_ns()
167 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object()
177 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check()
191 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock()
329 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) in shm_destroy()
[all …]
/linux/security/apparmor/
H A Dpolicy_ns.c107 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 Dpid_namespace.c63 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces()
78 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()
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()
[all …]
H A Dutsname.c20 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()
/linux/include/linux/
H A Dipc_namespace.h80 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 …]
H A Dpid_namespace.h41 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 Dexport.h33 #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
H A Dtime_namespace.h26 struct ns_common ns; member
40 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns()
53 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns()
102 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host() local
112 struct time_namespace *ns) in vdso_join_timens()
118 struct time_namespace *ns) in timens_commit()
122 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns()
127 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns()
H A Dutsname.h28 struct ns_common ns; member
33 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns()
42 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns()
50 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns()
54 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns()
/linux/kernel/cgroup/
H A Dnamespace.c12 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/fs/
H A Dnsfs.c32 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
374 bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino) in ns_match()
383 const struct ns_common *ns = inode->i_private; in nsfs_show_path() local
[all …]
/linux/drivers/nvme/host/
H A Dmultipath.c139 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
201 struct nvme_ns *ns = rq->q->queuedata; in nvme_mpath_end_request() local
215 struct nvme_ns *ns; in nvme_kick_requeue_lists() local
239 bool nvme_mpath_clear_current_path(struct nvme_ns *ns) in nvme_mpath_clear_current_path()
260 struct nvme_ns *ns; in nvme_mpath_clear_ctrl_paths() local
272 void nvme_mpath_revalidate_paths(struct nvme_ns *ns) in nvme_mpath_revalidate_paths()
292 static bool nvme_path_is_disabled(struct nvme_ns *ns) in nvme_path_is_disabled()
312 struct nvme_ns *found = NULL, *fallback = NULL, *ns; in __nvme_find_path() local
351 struct nvme_ns *ns) in nvme_next_ns()
[all …]
H A Dioctl.c17 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
211 static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio) in nvme_submit_io()
274 struct nvme_ns *ns, __u32 nsid) in nvme_validate_passthru_nsid()
286 static int nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd()
334 static int nvme_user_cmd64(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_user_cmd64()
443 static int nvme_uring_cmd_io(struct nvme_ctrl *ctrl, struct nvme_ns *ns, in nvme_uring_cmd_io()
577 static int nvme_ns_ioctl(struct nvme_ns *ns, unsigned int cmd, in nvme_ns_ioctl()
610 struct nvme_ns *ns = bdev->bd_disk->private_data; in nvme_ioctl() local
[all …]
H A Dzns.c38 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()
H A Dcore.c339 struct nvme_ns *ns = req->q->queuedata; in nvme_log_error() local
370 struct nvme_ns *ns = req->q->queuedata; in nvme_log_err_passthru() local
428 struct nvme_ns *ns = req->q->queuedata; in nvme_end_req_zoned() local
690 struct nvme_ns *ns = container_of(kref, struct nvme_ns, kref); in nvme_free_ns() local
698 bool nvme_get_ns(struct nvme_ns *ns) in nvme_get_ns()
703 void nvme_put_ns(struct nvme_ns *ns) in nvme_put_ns()
724 struct nvme_ns *ns = req->q->disk->private_data; in nvme_init_request() local
812 static inline void nvme_setup_flush(struct nvme_ns *ns, in nvme_setup_flush()
820 static blk_status_t nvme_setup_discard(struct nvme_ns *ns, struct request *req, in nvme_setup_discard()
896 static void nvme_set_ref_tag(struct nvme_ns *ns, struct nvme_command *cmnd, in nvme_set_ref_tag()
[all …]
/linux/drivers/mtd/nand/raw/
H A Dnandsim.c189 #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/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dfs_hws.c130 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()
300 static int mlx5_cmd_hws_destroy_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_destroy_flow_table()
323 static int mlx5_cmd_hws_modify_flow_table(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_modify_flow_table()
333 static int mlx5_cmd_hws_update_root_ft(struct mlx5_flow_root_namespace *ns, in mlx5_cmd_hws_update_root_ft()
[all …]
/linux/security/keys/
H A Dpersistent.c20 static int key_create_persistent_register(struct user_namespace *ns) in key_create_persistent_register()
40 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, in key_create_persistent()
73 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, in key_get_persistent()
131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent() local
/linux/security/selinux/
H A Dnetif.c52 static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex) in sel_netif_hashfn() argument
67 static inline struct sel_netif *sel_netif_find(const struct net *ns, in sel_netif_find() argument
132 sel_netif_sid_slow(struct net * ns,int ifindex,u32 * sid) sel_netif_sid_slow() argument
191 sel_netif_sid(struct net * ns,int ifindex,u32 * sid) sel_netif_sid() argument
217 sel_netif_kill(const struct net * ns,int ifindex) sel_netif_kill() argument
[all...]

12345678910>>...16