Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 800) sorted by relevance

12345678910>>...32

/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
199 (((ns)->regs.row * (ns)->geom.pgszoob) + (ns)
202 NS_RAW_OFFSET_OOB(ns) global() argument
205 NS_PAGE_BYTE_SHIFT(ns) global() argument
500 ns_debugfs_create(struct nandsim * ns) ns_debugfs_create() argument
525 ns_debugfs_remove(struct nandsim * ns) ns_debugfs_remove() argument
536 ns_alloc_device(struct nandsim * ns) ns_alloc_device() argument
607 ns_free_device(struct nandsim * ns) ns_free_device() argument
642 struct nandsim *ns = nand_get_controller_data(chip); ns_init() local
788 ns_free(struct nandsim * ns) ns_free() argument
801 ns_parse_badblocks(struct nandsim * ns,struct mtd_info * mtd) ns_parse_badblocks() argument
1137 ns_accept_addr_byte(struct nandsim * ns,u_char bt) ns_accept_addr_byte() argument
1155 ns_switch_to_ready_state(struct nandsim * ns,u_char status) ns_switch_to_ready_state() argument
1215 ns_find_operation(struct nandsim * ns,uint32_t flag) ns_find_operation() argument
1300 ns_put_pages(struct nandsim * ns) ns_put_pages() argument
1309 ns_get_pages(struct nandsim * ns,struct file * file,size_t count,loff_t pos) ns_get_pages() argument
1340 ns_read_file(struct nandsim * ns,struct file * file,void * buf,size_t count,loff_t pos) ns_read_file() argument
1357 ns_write_file(struct nandsim * ns,struct file * file,void * buf,size_t count,loff_t pos) ns_write_file() argument
1377 NS_GET_PAGE(struct nandsim * ns) NS_GET_PAGE() argument
1385 NS_PAGE_BYTE_OFF(struct nandsim * ns) NS_PAGE_BYTE_OFF() argument
1390 ns_do_read_error(struct nandsim * ns,int num) ns_do_read_error() argument
1402 ns_do_bit_flips(struct nandsim * ns,int num) ns_do_bit_flips() argument
1422 ns_read_page(struct nandsim * ns,int num) ns_read_page() argument
1467 ns_erase_sector(struct nandsim * ns) ns_erase_sector() argument
1495 ns_prog_page(struct nandsim * ns,int num) ns_prog_page() argument
1570 ns_do_state_action(struct nandsim * ns,uint32_t action) ns_do_state_action() argument
1720 ns_switch_state(struct nandsim * ns) ns_switch_state() argument
1864 struct nandsim *ns = nand_get_controller_data(chip); ns_nand_read_byte() local
1925 struct nandsim *ns = nand_get_controller_data(chip); ns_nand_write_byte() local
2083 struct nandsim *ns = nand_get_controller_data(chip); ns_nand_write_buf() local
2110 struct nandsim *ns = nand_get_controller_data(chip); ns_nand_read_buf() local
2160 struct nandsim *ns = nand_get_controller_data(chip); ns_exec_op() local
2263 struct nandsim *ns; ns_init_module() local
2428 struct nandsim *ns = nand_get_controller_data(chip); ns_cleanup_module() local
[all...]
/linux/tools/testing/selftests/net/forwarding/
H A Dfib_offload_lib.sh7 local ns=$1; shift
13 ip -n $ns -j -p -$family route show $route \
29 local ns=$1; shift
34 busywait 5000 __fib_trap_check $ns $family "$route" $should_fail
39 local ns=$1; shift
43 fib_trap_check $ns 4 "$route" $should_fail
48 local ns=$1; shift
52 fib_trap_check $ns 6 "$route" $should_fail
57 local ns=$1; shift
63 ip -n $ns link add name dummy$i type dummy
[all …]
/linux/security/apparmor/
H A Dpolicy_ns.c57 * aa_ns_name - Find the ns name to display for @view from @curr
71 /* at this point if a ns is visible it is in a view ns in aa_ns_name()
72 * thus the curr ns.hname is a prefix of its name. in aa_ns_name()
107 struct aa_ns *ns; in alloc_ns() local
109 ns = kzalloc_obj(*ns); in alloc_ns()
110 AA_DEBUG(DEBUG_POLICY, "%s(%p)\n", __func__, ns); in alloc_ns()
111 if (!ns) in alloc_ns()
113 if (!aa_policy_init(&ns in alloc_ns()
148 aa_free_ns(struct aa_ns * ns) aa_free_ns() argument
176 struct aa_ns *ns = view; __aa_lookupn_ns() local
207 struct aa_ns *ns = NULL; aa_lookupn_ns() local
219 struct aa_ns *ns; __aa_create_ns() local
261 struct aa_ns *ns; __aa_find_or_create_ns() local
286 struct aa_ns *ns; aa_prepare_ns() local
306 destroy_ns(struct aa_ns * ns) destroy_ns() argument
336 __aa_remove_ns(struct aa_ns * ns) __aa_remove_ns() argument
352 struct aa_ns *ns, *tmp; __ns_list_release() local
391 struct aa_ns *ns = root_ns; aa_free_root_ns() local
[all...]
/linux/kernel/
H A Dnscommon.c12 static void ns_debug(struct ns_common *ns, const struct proc_ns_operations *ops) in ns_debug()
14 switch (ns->ns_type) { in ns_debug()
57 int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, in __ns_common_init()
62 refcount_set(&ns->__ns_ref, 1); in __ns_common_init()
63 ns->stashed = NULL; in __ns_common_init()
65 ns->ns_security = NULL; in __ns_common_init()
67 ns->ops = ops; in __ns_common_init()
68 ns->ns_type = ns_type; in __ns_common_init()
69 ns_tree_node_init(&ns->ns_tree_node); in __ns_common_init()
70 ns_tree_node_init(&ns in __ns_common_init()
11 ns_debug(struct ns_common * ns,const struct proc_ns_operations * ops) ns_debug() argument
56 __ns_common_init(struct ns_common * ns,u32 ns_type,const struct proc_ns_operations * ops,int inum) __ns_common_init() argument
92 __ns_common_free(struct ns_common * ns) __ns_common_free() argument
97 ns_owner(struct ns_common * ns) ns_owner() argument
164 __ns_ref_active_put(struct ns_common * ns) __ns_ref_active_put() argument
282 __ns_ref_active_get(struct ns_common * ns) __ns_ref_active_get() argument
[all...]
H A Dpid_namespace.c64 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() argument
66 return inc_ucount(ns, current_euid(), UCOUNT_PID_NAMESPACES); in inc_pid_namespaces()
79 struct pid_namespace *ns; in create_pid_namespace() local
96 ns = kmem_cache_zalloc(pid_ns_cachep, GFP_KERNEL); in create_pid_namespace()
97 if (ns == NULL) in create_pid_namespace()
100 idr_init(&ns->idr); in create_pid_namespace()
102 ns->pid_cachep = create_pid_cachep(level); in create_pid_namespace()
103 if (ns->pid_cachep == NULL) in create_pid_namespace()
106 err = ns_common_init(ns); in create_pid_namespace()
110 ns->pid_max = PID_MAX_LIMIT; in create_pid_namespace()
[all …]
H A Dutsname.c21 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() argument
23 return inc_ucount(ns, current_euid(), UCOUNT_UTS_NAMESPACES); in inc_uts_namespaces()
39 struct uts_namespace *ns; in clone_uts_ns() local
49 ns = kmem_cache_zalloc(uts_ns_cache, GFP_KERNEL); in clone_uts_ns()
50 if (!ns) in clone_uts_ns()
53 err = ns_common_init(ns); in clone_uts_ns()
57 ns->ucounts = ucounts; in clone_uts_ns()
59 memcpy(&ns->name, &old_ns->name, sizeof(ns->name)); in clone_uts_ns()
60 ns->user_ns = get_user_ns(user_ns); in clone_uts_ns()
62 ns_tree_add(ns); in clone_uts_ns()
[all …]
H A Dnstree.c197 void __ns_tree_add(struct ns_common *ns, struct ns_tree_root *ns_tree) in __ns_tree_add_raw() argument
200 const struct proc_ns_operations *ops = ns->ops; in __ns_tree_add_raw()
202 VFS_WARN_ON_ONCE(!ns->ns_id); in __ns_tree_add_raw()
207 node = ns_tree_node_add(&ns->ns_tree_node, ns_tree, ns_cmp); in __ns_tree_add_raw()
210 ns_tree_node_add(&ns->ns_unified_node, &ns_unified_root, ns_cmp_unified); in __ns_tree_add_raw()
217 user_ns = ops->owner(ns); in __ns_tree_add_raw()
219 struct ns_common *owner = &user_ns->ns; in __ns_tree_add_raw()
223 ns_tree_node_add(&ns->ns_owner_node, &owner->ns_owner_root, ns_cmp_owner); in __ns_tree_add_raw()
226 VFS_WARN_ON_ONCE(ns != to_ns_common(&init_user_ns)); in __ns_tree_add_raw()
233 void __ns_tree_remove(struct ns_common *ns, struc argument
265 const struct ns_common *ns = node_to_ns(node); ns_find() local
277 const struct ns_common *ns = node_to_ns_unified(node); ns_find_unified() local
365 __ns_tree_adjoined_rcu(struct ns_common * ns,struct ns_tree_root * ns_tree,bool previous) __ns_tree_adjoined_rcu() argument
392 __ns_tree_gen_id(struct ns_common * ns,u64 id) __ns_tree_gen_id() argument
476 struct ns_common *ns; lookup_ns_owner_at() local
496 struct ns_common *ns; lookup_ns_id() local
510 ns_requested(const struct klistns * kls,const struct ns_common * ns) ns_requested() argument
516 may_list_ns(const struct klistns * kls,struct ns_common * ns) may_list_ns() argument
525 ns_put(struct ns_common * ns) ns_put() argument
549 struct ns_common *ns = NULL, *first_ns = NULL, *prev = NULL; do_listns_userns() local
639 struct ns_common *ns; lookup_ns_id_at() local
672 next_ns_common(struct ns_common * ns,struct ns_tree_root * ns_tree) next_ns_common() argument
680 ns_common_is_head(struct ns_common * ns,const struct list_head * head,struct ns_tree_root * ns_tree) ns_common_is_head() argument
693 struct ns_common *ns, *first_ns = NULL, *prev = NULL; do_listns() local
[all...]
H A Duser_namespace.c31 struct user_namespace *ns, int cap_setid,
35 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces() argument
37 return inc_ucount(ns, uid, UCOUNT_USER_NAMESPACES); in inc_user_namespaces()
89 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns()
127 ns = kmem_cache_zalloc(user_ns_cachep, GFP_KERNEL); in create_user_ns()
128 if (!ns) in create_user_ns()
131 ns->parent_could_setfcap = cap_raised(new->cap_effective, CAP_SETFCAP); in create_user_ns()
133 ret = ns_common_init(ns); in create_user_ns()
138 ns->parent = parent_ns; in create_user_ns()
139 ns in create_user_ns()
86 struct user_namespace *ns, *parent_ns = new->user_ns; create_user_ns() local
197 struct user_namespace *parent, *ns = free_user_ns() local
229 __put_user_ns(struct user_namespace * ns) __put_user_ns() argument
420 make_kuid(struct user_namespace * ns,uid_t uid) make_kuid() argument
488 make_kgid(struct user_namespace * ns,gid_t gid) make_kgid() argument
555 make_kprojid(struct user_namespace * ns,projid_t projid) make_kprojid() argument
613 struct user_namespace *ns = seq->private; uid_m_show() local
634 struct user_namespace *ns = seq->private; gid_m_show() local
655 struct user_namespace *ns = seq->private; projid_m_show() local
692 struct user_namespace *ns = seq->private; uid_m_start() local
699 struct user_namespace *ns = seq->private; gid_m_start() local
706 struct user_namespace *ns = seq->private; projid_m_start() local
1153 struct user_namespace *ns = seq->private; proc_uid_map_write() local
1170 struct user_namespace *ns = seq->private; proc_gid_map_write() local
1187 struct user_namespace *ns = seq->private; proc_projid_map_write() local
1202 new_idmap_permitted(const struct file * file,struct user_namespace * ns,int cap_setid,struct uid_gid_map * new_map) new_idmap_permitted() argument
1245 struct user_namespace *ns = seq->private; proc_setgroups_show() local
1258 struct user_namespace *ns = seq->private; proc_setgroups_write() local
1321 userns_may_setgroups(const struct user_namespace * ns) userns_may_setgroups() argument
1344 const struct user_namespace *ns; in_userns() local
1367 userns_put(struct ns_common * ns) userns_put() argument
1372 userns_install(struct nsset * nsset,struct ns_common * ns) userns_install() argument
1406 ns_get_owner(struct ns_common * ns) ns_get_owner() argument
1424 userns_owner(struct ns_common * ns) userns_owner() argument
[all...]
/linux/ipc/
H A Dnamespace.c29 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() argument
31 return inc_ucount(ns, current_euid(), UCOUNT_IPC_NAMESPACES); in inc_ipc_namespaces()
42 struct ipc_namespace *ns; in create_ipc_ns() local
61 ns = kzalloc_obj(struct ipc_namespace, GFP_KERNEL_ACCOUNT); in create_ipc_ns()
62 if (ns == NULL) in create_ipc_ns()
65 err = ns_common_init(ns); in create_ipc_ns()
69 ns->user_ns = get_user_ns(user_ns); in create_ipc_ns()
70 ns->ucounts = ucounts; in create_ipc_ns()
72 err = mq_init_ns(ns); in create_ipc_ns()
77 if (!setup_mq_sysctls(ns)) in create_ipc_ns()
112 copy_ipcs(u64 flags,struct user_namespace * user_ns,struct ipc_namespace * ns) copy_ipcs() argument
127 free_ipcs(struct ipc_namespace * ns,struct ipc_ids * ids,void (* free)(struct ipc_namespace *,struct kern_ipc_perm *)) free_ipcs() argument
150 free_ipc_ns(struct ipc_namespace * ns) free_ipc_ns() argument
202 put_ipc_ns(struct ipc_namespace * ns) put_ipc_ns() argument
216 struct ipc_namespace *ns = NULL; ipcns_get() local
228 ipcns_put(struct ns_common * ns) ipcns_put() argument
236 struct ipc_namespace *ns = to_ipc_ns(new); ipcns_install() local
246 ipcns_owner(struct ns_common * ns) ipcns_owner() argument
[all...]
/linux/fs/
H A Dnsfs.c46 struct ns_common *ns = inode->i_private; in ns_dname() local
47 const struct proc_ns_operations *ns_ops = ns->ops; in ns_dname()
60 struct ns_common *ns = inode->i_private; in nsfs_evict() local
62 __ns_ref_active_put(ns); in nsfs_evict()
64 ns->ops->put(ns); in nsfs_evict()
70 struct ns_common *ns; in ns_get_path_cb() local
72 ns = ns_get_cb(private_data); in ns_get_path_cb()
73 if (!ns) in ns_get_path_cb()
76 return path_from_stashed(&ns in ns_get_path_cb()
102 open_namespace_file(struct ns_common * ns) open_namespace_file() argument
123 open_namespace(struct ns_common * ns) open_namespace() argument
136 open_related_ns(struct ns_common * ns,struct ns_common * (* get_ns)(struct ns_common * ns)) open_related_ns() argument
137 open_related_ns(struct ns_common * ns,struct ns_common * (* get_ns)(struct ns_common * ns)) open_related_ns() argument
219 struct ns_common *ns; ns_ioctl() local
373 struct ns_common *ns; ns_get_name() local
398 ns_match(const struct ns_common * ns,dev_t dev,ino_t ino) ns_match() argument
407 const struct ns_common *ns = inode->i_private; nsfs_show_path() local
423 struct ns_common *ns = data; nsfs_init_inode() local
444 struct ns_common *ns = data; nsfs_put_data() local
460 struct ns_common *ns = inode->i_private; nsfs_encode_fh() local
479 is_current_namespace(struct ns_common * ns) is_current_namespace() argument
524 struct ns_common *ns; nsfs_fh_to_dentry() local
691 nsproxy_ns_active_get(struct nsproxy * ns) nsproxy_ns_active_get() argument
703 nsproxy_ns_active_put(struct nsproxy * ns) nsproxy_ns_active_put() argument
[all...]
/linux/drivers/net/netdevsim/
H A Dethtool.c14 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pause_stats() local
16 if (ns->ethtool.pauseparam.report_stats_rx) in nsim_get_pause_stats()
18 if (ns->ethtool.pauseparam.report_stats_tx) in nsim_get_pause_stats()
25 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pauseparam() local
28 pause->rx_pause = ns->ethtool.pauseparam.rx; in nsim_get_pauseparam()
29 pause->tx_pause = ns->ethtool.pauseparam.tx; in nsim_get_pauseparam()
35 struct netdevsim *ns = netdev_priv(dev); in nsim_set_pauseparam() local
40 ns->ethtool.pauseparam.rx = pause->rx_pause; in nsim_set_pauseparam()
41 ns->ethtool.pauseparam.tx = pause->tx_pause; in nsim_set_pauseparam()
50 struct netdevsim *ns in nsim_get_coalesce() local
61 struct netdevsim *ns = netdev_priv(dev); nsim_set_coalesce() local
72 struct netdevsim *ns = netdev_priv(dev); nsim_get_ringparam() local
86 struct netdevsim *ns = netdev_priv(dev); nsim_set_ringparam() local
98 struct netdevsim *ns = netdev_priv(dev); nsim_get_channels() local
107 struct netdevsim *ns = netdev_priv(dev); nsim_wake_queues() local
123 struct netdevsim *ns = netdev_priv(dev); nsim_set_channels() local
143 struct netdevsim *ns = netdev_priv(dev); nsim_get_fecparam() local
154 struct netdevsim *ns = netdev_priv(dev); nsim_set_fecparam() local
201 struct netdevsim *ns = netdev_priv(dev); nsim_get_ts_info() local
228 nsim_ethtool_ring_init(struct netdevsim * ns) nsim_ethtool_ring_init() argument
238 nsim_ethtool_init(struct netdevsim * ns) nsim_ethtool_init() argument
277 nsim_ethtool_fini(struct netdevsim * ns) nsim_ethtool_fini() argument
[all...]
H A Dnetdev.c42 struct netdevsim *ns = netdev_priv(dev); in nsim_start_peer_tx_queue() local
50 peer_ns = rcu_dereference(ns->peer); in nsim_start_peer_tx_queue()
125 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local
136 if (!nsim_ipsec_tx(ns, skb)) in nsim_start_xmit()
141 peer_ns = ns; in nsim_start_xmit()
144 peer_ns = rcu_dereference(ns->peer); in nsim_start_xmit()
150 dr = nsim_do_psp(skb, ns, peer_ns, &psp_ext); in nsim_start_xmit()
205 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu()
207 if (ns->xdp.prog && !ns in nsim_change_mtu()
197 struct netdevsim *ns = netdev_priv(dev); nsim_change_mtu() local
210 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_mac() local
224 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_vlan() local
239 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_rate() local
258 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_spoofchk() local
270 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_rss_query_en() local
282 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_trust() local
295 struct netdevsim *ns = netdev_priv(dev); nsim_get_vf_config() local
318 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_link_state() local
341 struct netdevsim *ns = netdev_priv(dev); nsim_set_features() local
369 struct netdevsim *ns; nsim_rcv() local
438 nsim_init_napi(struct netdevsim * ns) nsim_init_napi() argument
488 nsim_enable_napi(struct netdevsim * ns) nsim_enable_napi() argument
503 struct netdevsim *ns = netdev_priv(dev); nsim_open() local
524 nsim_del_napi(struct netdevsim * ns) nsim_del_napi() argument
546 struct netdevsim *ns = netdev_priv(dev); nsim_stop() local
563 struct netdevsim *ns = netdev_priv(dev); nsim_vlan_rx_add_vid() local
578 struct netdevsim *ns = netdev_priv(dev); nsim_vlan_rx_kill_vid() local
756 struct netdevsim *ns = netdev_priv(dev); nsim_queue_mem_alloc() local
790 struct netdevsim *ns = netdev_priv(dev); nsim_queue_mem_free() local
806 struct netdevsim *ns = netdev_priv(dev); nsim_queue_start() local
839 struct netdevsim *ns = netdev_priv(dev); nsim_queue_stop() local
867 struct netdevsim *ns = file->private_data; nsim_qreset_write() local
910 struct netdevsim *ns = file->private_data; nsim_pp_hold_read() local
923 struct netdevsim *ns = file->private_data; nsim_pp_hold_write() local
963 struct netdevsim *ns = s->private; nsim_vlan_show() local
1004 nsim_queue_init(struct netdevsim * ns) nsim_queue_init() argument
1028 nsim_queue_uninit(struct netdevsim * ns) nsim_queue_uninit() argument
1040 nsim_init_netdevsim(struct netdevsim * ns) nsim_init_netdevsim() argument
1111 nsim_init_netdevsim_vf(struct netdevsim * ns) nsim_init_netdevsim_vf() argument
1122 nsim_exit_netdevsim(struct netdevsim * ns) nsim_exit_netdevsim() argument
1133 struct netdevsim *ns; nsim_create() local
1175 nsim_destroy(struct netdevsim * ns) nsim_destroy() argument
[all...]
H A Dpsp.c18 nsim_do_psp(struct sk_buff *skb, struct netdevsim *ns, in nsim_do_psp() argument
46 atomic64_inc(&ns->psp.tx_packets); in nsim_do_psp()
47 atomic64_add(psp_len, &ns->psp.tx_bytes); in nsim_do_psp()
128 struct netdevsim *ns = psd->drv_priv; in nsim_psp_set_config()
132 if ((ns->psp.spi & PSP_SPI_KEY_ID) == PSP_SPI_KEY_ID) { in nsim_rx_spi_alloc()
137 assoc->spi = cpu_to_be32(++ns->psp.spi); in nsim_rx_spi_alloc()
140 assoc->key[i] = ns->psp.spi + i; in nsim_rx_spi_alloc()
147 struct netdevsim *ns = psd->drv_priv; in nsim_rx_spi_alloc()
152 if (ns->psp.spi & PSP_SPI_KEY_PHASE) in nsim_assoc_add()
153 ns in nsim_assoc_add()
135 struct netdevsim *ns = psd->drv_priv; nsim_rx_spi_alloc() local
155 struct netdevsim *ns = psd->drv_priv; nsim_assoc_add() local
167 struct netdevsim *ns = psd->drv_priv; nsim_key_rotate() local
182 struct netdevsim *ns = psd->drv_priv; nsim_assoc_del() local
191 struct netdevsim *ns = psd->drv_priv; nsim_get_stats() local
221 __nsim_psp_uninit(struct netdevsim * ns,bool teardown) __nsim_psp_uninit() argument
236 nsim_psp_uninit(struct netdevsim * ns) nsim_psp_uninit() argument
247 struct netdevsim *ns = file->private_data; nsim_psp_rereg_write() local
274 nsim_psp_init(struct netdevsim * ns) nsim_psp_init() argument
[all...]
H A Dudp_tunnels.c15 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_set_port() local
18 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_set_port()
19 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_set_port()
22 if (ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_set_port()
26 ns->udp_ports.ports[table][entry] = in nsim_udp_tunnel_set_port()
41 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_unset_port() local
44 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_unset_port()
45 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_unset_port()
50 if (val == ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_unset_port()
51 ns->udp_ports.ports[table][entry] = 0; in nsim_udp_tunnel_unset_port()
[all …]
/linux/include/linux/
H A Dns_common.h5 #include <linux/ns/ns_common_types.h>
11 bool is_current_namespace(struct ns_common *ns);
12 int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops,
14 void __ns_common_free(struct ns_common *ns);
15 struct ns_common *__must_check ns_owner(struct ns_common *ns);
17 static __always_inline bool is_ns_init_inum(const struct ns_common *ns) in is_ns_init_inum()
19 VFS_WARN_ON_ONCE(ns->inum == 0); in is_ns_init_inum()
20 return unlikely(in_range(ns->inum, MNT_NS_INIT_INO, in is_ns_init_inum()
24 static __always_inline bool is_ns_init_id(const struct ns_common *ns) in is_ns_init_id()
26 VFS_WARN_ON_ONCE(ns in is_ns_init_id()
16 is_ns_init_inum(const struct ns_common * ns) is_ns_init_inum() argument
23 is_ns_init_id(const struct ns_common * ns) is_ns_init_id() argument
60 __ns_ref_active_read(const struct ns_common * ns) __ns_ref_active_read() argument
65 __ns_ref_read(const struct ns_common * ns) __ns_ref_read() argument
70 __ns_ref_put(struct ns_common * ns) __ns_ref_put() argument
84 __ns_ref_get(struct ns_common * ns) __ns_ref_get() argument
97 __ns_ref_inc(struct ns_common * ns) __ns_ref_inc() argument
107 __ns_ref_dec_and_lock(struct ns_common * ns,spinlock_t * ns_lock) __ns_ref_dec_and_lock() argument
136 ns_get_unless_inactive(struct ns_common * ns) ns_get_unless_inactive() argument
[all...]
H A Dipc_namespace.h80 struct ns_common ns; member
87 extern void shm_destroy_orphaned(struct ipc_namespace *ns);
89 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument
93 extern int mq_init_ns(struct ipc_namespace *ns);
128 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() argument
132 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns) in to_ipc_ns() argument
134 return container_of(ns, struct ipc_namespace, ns); in to_ipc_ns()
138 struct user_namespace *user_ns, struct ipc_namespace *ns);
140 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument
142 if (ns) in get_ipc_ns()
[all …]
/linux/tools/testing/selftests/net/
H A Dxfrm_policy.sh31 local ns=$1
38 ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tunnel priority 100 action allow
40 ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tunnel priority 100 action allow
44 local ns=$1
52 ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $rnet dst $lnet
53 ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 $KEY_SHA mode tunnel sel src $lnet dst $rnet
55 do_esp_policy $ns $me $remote $lnet $rnet
72 local ns=$1
75 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
78 ip -net $ns xfr
[all...]
/linux/drivers/block/drbd/
H A Ddrbd_state.c26 union drbd_state ns; member
281 union drbd_state ns, enum chg_state_flags flags,
285 static enum drbd_state_rv is_valid_transition(union drbd_state os, union drbd_state ns);
287 union drbd_state ns, enum sanitize_state_warnings *warn);
468 union drbd_state os, union drbd_state ns) in cl_wide_st_chg() argument
470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg()
471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg()
472 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in cl_wide_st_chg()
473 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S) || in cl_wide_st_chg()
474 (os.disk != D_FAILED && ns.disk == D_FAILED))) || in cl_wide_st_chg()
[all …]
/linux/drivers/nvme/host/
H A Dmultipath.c149 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req() local
154 nvme_mpath_clear_current_path(ns); in nvme_failover_req()
155 atomic_long_inc(&ns->failover); in nvme_failover_req()
162 if (nvme_is_ana_error(status) && ns->ctrl->ana_log_buf) { in nvme_failover_req()
163 set_bit(NVME_NS_ANA_PENDING, &ns->flags); in nvme_failover_req()
164 queue_work(nvme_wq, &ns->ctrl->ana_work); in nvme_failover_req()
167 spin_lock_irqsave(&ns->head->requeue_lock, flags); in nvme_failover_req()
169 bio_set_dev(bio, ns->head->disk->part0); in nvme_failover_req()
170 blk_steal_bios(&ns->head->requeue_list, req); in nvme_failover_req()
171 spin_unlock_irqrestore(&ns in nvme_failover_req()
180 struct nvme_ns *ns = rq->q->queuedata; nvme_mpath_start_request() local
204 struct nvme_ns *ns = rq->q->queuedata; nvme_mpath_end_request() local
218 struct nvme_ns *ns; nvme_kick_requeue_lists() local
242 nvme_mpath_clear_current_path(struct nvme_ns * ns) nvme_mpath_clear_current_path() argument
259 struct nvme_ns *ns; nvme_mpath_clear_ctrl_paths() local
274 struct nvme_ns *ns; nvme_mpath_revalidate_paths() local
310 nvme_path_is_disabled(struct nvme_ns * ns) nvme_path_is_disabled() argument
331 struct nvme_ns *found = NULL, *fallback = NULL, *ns; __nvme_find_path() local
370 nvme_next_ns(struct nvme_ns_head * head,struct nvme_ns * ns) nvme_next_ns() argument
383 struct nvme_ns *ns, *found = NULL; nvme_round_robin_path() local
432 struct nvme_ns *best_opt = NULL, *best_nonopt = NULL, *ns; nvme_queue_depth_path() local
467 nvme_path_is_optimized(struct nvme_ns * ns) nvme_path_is_optimized() argument
477 struct nvme_ns *ns; nvme_numa_path() local
502 struct nvme_ns *ns; nvme_available_path() local
537 struct nvme_ns *ns; nvme_ns_head_submit_bio() local
596 struct nvme_ns *ns; nvme_ns_head_get_unique_id() local
612 struct nvme_ns *ns; nvme_ns_head_report_zones() local
786 nvme_mpath_set_live(struct nvme_ns * ns) nvme_mpath_set_live() argument
880 nvme_update_ns_ana_state(struct nvme_ana_group_desc * desc,struct nvme_ns * ns) nvme_update_ns_ana_state() argument
923 struct nvme_ns *ns; nvme_update_ana_state() local
1095 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); ana_state_show() local
1104 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); queue_depth_show() local
1119 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); numa_nodes_show() local
1186 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); multipath_failover_count_show() local
1196 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); multipath_failover_count_store() local
1283 struct nvme_ns *ns; nvme_mpath_add_sysfs_link() local
1343 nvme_mpath_remove_sysfs_link(struct nvme_ns * ns) nvme_mpath_remove_sysfs_link() argument
1358 nvme_mpath_add_disk(struct nvme_ns * ns,__le32 anagrpid) nvme_mpath_add_disk() argument
[all...]
H A Dzns.c38 int nvme_query_zone_info(struct nvme_ns *ns, unsigned lbaf, in nvme_query_zone_info() argument
41 struct nvme_effects_log *log = ns->head->effects; in nvme_query_zone_info()
49 if (test_and_clear_bit(NVME_NS_FORCE_RO, &ns->flags)) in nvme_query_zone_info()
50 dev_warn(ns->ctrl->device, in nvme_query_zone_info()
52 ns->head->ns_id); in nvme_query_zone_info()
54 set_bit(NVME_NS_FORCE_RO, &ns->flags); in nvme_query_zone_info()
55 dev_warn(ns->ctrl->device, in nvme_query_zone_info()
57 ns->head->ns_id); in nvme_query_zone_info()
61 if (!ns->ctrl->max_zone_append) { in nvme_query_zone_info()
62 status = nvme_set_max_append(ns->ctrl); in nvme_query_zone_info()
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-cpu-opp.dtsi9 clock-latency-ns = <100000>;
15 clock-latency-ns = <100000>;
21 clock-latency-ns = <100000>;
27 clock-latency-ns = <100000>;
33 clock-latency-ns = <100000>;
39 clock-latency-ns = <100000>;
45 clock-latency-ns = <100000>;
52 clock-latency-ns = <100000>;
59 clock-latency-ns = <100000>;
66 clock-latency-ns = <100000>;
[all …]
H A Dtegra20-cpu-opp.dtsi9 clock-latency-ns = <400000>;
16 clock-latency-ns = <400000>;
23 clock-latency-ns = <400000>;
29 clock-latency-ns = <400000>;
35 clock-latency-ns = <400000>;
41 clock-latency-ns = <400000>;
48 clock-latency-ns = <400000>;
54 clock-latency-ns = <400000>;
60 clock-latency-ns = <400000>;
66 clock-latency-ns = <400000>;
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib.sh96 local ns="testns1"
100 ip -n $ns link add name dummy1 type dummy
101 ip -n $ns link set dev dummy1 up
103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1
104 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1
108 fib4_trap_check $ns "table main 192.0.2.1/32 dev dummy1" true
111 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1
116 fib4_trap_check $ns "table main 192.0.2.2/32 dev dummy1" false
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_seg6local.c37 int ns; in cleanup() local
39 for (ns = 1; ns < 7; ns++) in cleanup()
40 SYS_NOFAIL("ip netns del %s%d", NETNS_BASE, ns); in cleanup()
45 int ns; in setup() local
47 for (ns = 1; ns < 7; ns++) in setup()
48 SYS(fail, "ip netns add %s%d", NETNS_BASE, ns); in setup()
52 for (ns = 1; ns < 6; ns++) { in setup()
53 int local_id = ns * 2 - 1; in setup()
54 int peer_id = ns * 2; in setup()
55 int next_ns = ns + 1; in setup()
[all …]
/linux/kernel/cgroup/
H A Dnamespace.c12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces() argument
14 return inc_ucount(ns, current_euid(), UCOUNT_CGROUP_NAMESPACES); in inc_cgroup_namespaces()
36 void free_cgroup_ns(struct cgroup_namespace *ns) in free_cgroup_ns() argument
38 ns_tree_remove(ns); in free_cgroup_ns()
39 put_css_set(ns->root_cset); in free_cgroup_ns()
40 dec_cgroup_namespaces(ns->ucounts); in free_cgroup_ns()
41 put_user_ns(ns->user_ns); in free_cgroup_ns()
42 ns_common_free(ns); in free_cgroup_ns()
44 kfree_rcu(ns, ns in free_cgroup_ns()
92 cgroupns_install(struct nsset * nsset,struct ns_common * ns) cgroupns_install() argument
114 struct cgroup_namespace *ns = NULL; cgroupns_get() local
128 cgroupns_put(struct ns_common * ns) cgroupns_put() argument
133 cgroupns_owner(struct ns_common * ns) cgroupns_owner() argument
[all...]

12345678910>>...32