Home
last modified time | relevance | path

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

12345678910>>...43

/linux-6.3-rc2/drivers/mtd/nand/raw/
A Dnandsim.c659 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; in ns_init()
661 ns->geom.totszoob = ns->geom.totsz + (uint64_t)ns->geom.pgnum * ns->geom.oobsz; in ns_init()
664 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in ns_init()
665 ns->geom.secszoob = ns->geom.secsz + ns->geom.oobsz * ns->geom.pgsec; in ns_init()
1266 ns->state = ns->op[ns->stateidx]; in ns_find_operation()
1267 ns->nxstate = ns->op[ns->stateidx + 1]; in ns_find_operation()
1296 ns->pstates[ns->npstates++] = ns->state; in ns_find_operation()
1525 tx = ns_write_file(ns, ns->cfile, ns->file_buf, in ns_prog_page()
1678 num, ns->regs.row, ns->regs.column, NS_RAW_OFFSET(ns) + ns->regs.off); in ns_do_state_action()
1731 ns->nxstate = ns->op[ns->stateidx + 1]; in ns_switch_state()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/forwarding/
A Dfib_offload_lib.sh7 local ns=$1; shift
29 local ns=$1; shift
39 local ns=$1; shift
48 local ns=$1; shift
57 local ns=$1; shift
91 local ns=$1; shift
120 local ns=$1; shift
149 local ns=$1; shift
186 local ns=$1; shift
219 local ns=$1; shift
[all …]
/linux-6.3-rc2/security/apparmor/
A Dpolicy_ns.c109 ns = kzalloc(sizeof(*ns), GFP_KERNEL); in alloc_ns()
111 if (!ns) in alloc_ns()
126 ns->unconfined->ns = ns; in alloc_ns()
150 if (!ns) in aa_free_ns()
157 ns->unconfined->ns = NULL; in aa_free_ns()
264 if (!ns) in __aa_create_ns()
267 mutex_lock_nested(&ns->lock, ns->level); in __aa_create_ns()
303 if (!ns) in __aa_find_or_create_ns()
327 if (!ns) in aa_prepare_ns()
343 if (!ns) in destroy_ns()
[all …]
A Dpolicy.c448 AA_BUG(!ns); in __create_missing_ancestors()
467 profile->ns = aa_get_ns(ns); in __create_missing_ancestors()
562 if (!ns) in aa_fqlookupn_profile()
569 else if (ns) in aa_fqlookupn_profile()
601 profile->ns = aa_get_ns(parent->ns); in aa_alloc_null()
780 if (!ns) in aa_policy_view_capable()
1060 ns = NULL; in aa_replace_profiles()
1067 mutex_lock_nested(&ns->lock, ns->level); in aa_replace_profiles()
1106 ent->new->ns = aa_get_ns(ns); in aa_replace_profiles()
1294 if (!ns) { in aa_remove_profiles()
[all …]
/linux-6.3-rc2/ipc/
A Dnamespace.c64 err = ns_alloc_inum(&ns->ns); in create_ipc_ns()
67 ns->ns.ops = &ipcns_operations; in create_ipc_ns()
69 refcount_set(&ns->ns.count, 1); in create_ipc_ns()
91 return ns; in create_ipc_ns()
98 ns_free_inum(&ns->ns); in create_ipc_ns()
100 kfree(ns); in create_ipc_ns()
162 ns_free_inum(&ns->ns); in free_ipc_ns()
163 kfree(ns); in free_ipc_ns()
200 if (refcount_dec_and_lock(&ns->ns.count, &mq_lock)) { in put_ipc_ns()
211 return container_of(ns, struct ipc_namespace, ns); in to_ipc_ns()
[all …]
/linux-6.3-rc2/drivers/net/netdevsim/
A Dethtool.c52 memcpy(coal, &ns->ethtool.coalesce, sizeof(ns->ethtool.coalesce)); in nsim_get_coalesce()
63 memcpy(&ns->ethtool.coalesce, coal, sizeof(ns->ethtool.coalesce)); in nsim_set_coalesce()
74 memcpy(ring, &ns->ethtool.ring, sizeof(ns->ethtool.ring)); in nsim_get_ringparam()
120 if (ns->ethtool.get_err) in nsim_get_fecparam()
121 return -ns->ethtool.get_err; in nsim_get_fecparam()
122 memcpy(fecparam, &ns->ethtool.fec, sizeof(ns->ethtool.fec)); in nsim_get_fecparam()
132 if (ns->ethtool.set_err) in nsim_set_fecparam()
133 return -ns->ethtool.set_err; in nsim_set_fecparam()
134 memcpy(&ns->ethtool.fec, fecparam, sizeof(ns->ethtool.fec)); in nsim_set_fecparam()
172 nsim_ethtool_ring_init(ns); in nsim_ethtool_init()
[all …]
A Dnetdev.c37 ns->tx_packets++; in nsim_start_xmit()
38 ns->tx_bytes += skb->len; in nsim_start_xmit()
224 ns, ns, true); in nsim_setup_tc()
298 err = nsim_udp_tunnels_info_create(ns->nsim_dev, ns->netdev); in nsim_init_netdevsim()
307 nsim_ipsec_init(ns); in nsim_init_netdevsim()
317 nsim_bpf_uninit(ns); in nsim_init_netdevsim()
339 struct netdevsim *ns; in nsim_create() local
348 ns = netdev_priv(dev); in nsim_create()
349 ns->netdev = dev; in nsim_create()
363 return ns; in nsim_create()
[all …]
A Dudp_tunnels.c19 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_set_port()
21 if (ns->udp_ports.sleep) in nsim_udp_tunnel_set_port()
22 msleep(ns->udp_ports.sleep); in nsim_udp_tunnel_set_port()
50 if (ns->udp_ports.sleep) in nsim_udp_tunnel_unset_port()
51 msleep(ns->udp_ports.sleep); in nsim_udp_tunnel_unset_port()
115 memset(ns->udp_ports.ports, 0, sizeof(ns->udp_ports.__ports)); in nsim_udp_tunnels_info_reset_write()
143 ns->udp_ports.ports = ns->udp_ports.__ports; in nsim_udp_tunnels_info_create()
151 ns->udp_ports.dfs_ports[0].array = ns->udp_ports.ports[0]; in nsim_udp_tunnels_info_create()
154 ns->nsim_dev_port->ddir, in nsim_udp_tunnels_info_create()
157 ns->udp_ports.dfs_ports[1].array = ns->udp_ports.ports[1]; in nsim_udp_tunnels_info_create()
[all …]
/linux-6.3-rc2/kernel/time/
A Dnamespace.c91 ns = kmalloc(sizeof(*ns), GFP_KERNEL_ACCOUNT); in clone_time_ns()
92 if (!ns) in clone_time_ns()
95 refcount_set(&ns->ns.count, 1); in clone_time_ns()
101 err = ns_alloc_inum(&ns->ns); in clone_time_ns()
106 ns->ns.ops = &timens_operations; in clone_time_ns()
110 return ns; in clone_time_ns()
115 kfree(ns); in clone_time_ns()
251 ns_free_inum(&ns->ns); in free_time_ns()
274 return ns ? &ns->ns : NULL; in timens_get()
290 return ns ? &ns->ns : NULL; in timens_for_children_get()
[all …]
/linux-6.3-rc2/kernel/
A Dpid_namespace.c102 err = ns_alloc_inum(&ns->ns); in create_pid_namespace()
105 ns->ns.ops = &pidns_operations; in create_pid_namespace()
107 refcount_set(&ns->ns.count, 1); in create_pid_namespace()
116 return ns; in create_pid_namespace()
139 ns_free_inum(&ns->ns); in destroy_pid_namespace()
161 if (!refcount_dec_and_test(&ns->ns.count)) in put_pid_ns()
351 return container_of(ns, struct pid_namespace, ns); in to_pid_ns()
360 if (ns) in pidns_get()
364 return ns ? &ns->ns : NULL; in pidns_get()
378 if (ns) { in pidns_for_children_get()
[all …]
A Dutsname.c58 ns = create_uts_ns(); in clone_uts_ns()
59 if (!ns) in clone_uts_ns()
62 err = ns_alloc_inum(&ns->ns); in clone_uts_ns()
67 ns->ns.ops = &utsns_operations; in clone_uts_ns()
70 memcpy(&ns->name, &old_ns->name, sizeof(ns->name)); in clone_uts_ns()
73 return ns; in clone_uts_ns()
110 ns_free_inum(&ns->ns); in free_uts_ns()
116 return container_of(ns, struct uts_namespace, ns); in to_uts_ns()
128 get_uts_ns(ns); in utsns_get()
132 return ns ? &ns->ns : NULL; in utsns_get()
[all …]
A Duser_namespace.c123 if (!ns) in create_user_ns()
127 ret = ns_alloc_inum(&ns->ns); in create_user_ns()
130 ns->ns.ops = &userns_operations; in create_user_ns()
132 refcount_set(&ns->ns.count, 1); in create_user_ns()
167 ns_free_inum(&ns->ns); in create_user_ns()
218 ns_free_inum(&ns->ns); in free_user_ns()
1118 if ((seq_ns != ns) && (seq_ns != ns->parent)) in proc_uid_map_write()
1122 &ns->uid_map, &ns->parent->uid_map); in proc_uid_map_write()
1139 &ns->gid_map, &ns->parent->gid_map); in proc_gid_map_write()
1304 for (ns = child; ns->level > ancestor->level; ns = ns->parent) in in_userns()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/
A Dunicast_extensions.sh76 nettest -B -N bar-ns -O foo-ns -r $1 || return 1
77 nettest -B -N foo-ns -O bar-ns -r $2 || return 1
114 nettest -B -N bar-ns -O foo-ns -r $1 || return 1
115 nettest -B -N foo-ns -O bar-ns -r $4 || return 1
124 ip netns add foo-ns
125 ip netns add bar-ns
126 ip link add foo netns foo-ns type veth peer name bar netns bar-ns
133 ip netns del foo-ns
134 ip netns del bar-ns
150 ip netns add foo-ns
[all …]
/linux-6.3-rc2/include/linux/
A Dipc_namespace.h80 struct ns_common ns; member
93 extern int mq_init_ns(struct ipc_namespace *ns);
137 if (ns) in get_ipc_ns()
138 refcount_inc(&ns->ns.count); in get_ipc_ns()
139 return ns; in get_ipc_ns()
144 if (ns) { in get_ipc_ns_not_zero()
145 if (refcount_inc_not_zero(&ns->ns.count)) in get_ipc_ns_not_zero()
146 return ns; in get_ipc_ns_not_zero()
160 return ns; in copy_ipcs()
165 return ns; in get_ipc_ns()
[all …]
/linux-6.3-rc2/drivers/block/drbd/
A Ddrbd_state.c857 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()
1078 if (ns.conn == C_STANDALONE && ns.disk == D_DISKLESS && ns.role == R_SECONDARY) in sanitize_state()
1083 if (ns.conn > C_CONNECTED && (ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) { in sanitize_state()
1194 (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) && in sanitize_state()
1203 if (ns.aftr_isp || ns.peer_isp || ns.user_isp) { in sanitize_state()
1274 ns = sanitize_state(device, os, ns, &ssw); in _drbd_set_state()
1472 ascw->ns = ns; in _drbd_set_state()
1677 && (ns < D_INCONSISTENT || ns == D_UNKNOWN || ns == D_OUTDATED)) in lost_contact_to_peer_data()
1687 && (ns == D_DISKLESS || ns == D_FAILED || ns == D_OUTDATED)) in lost_contact_to_peer_data()
1714 sib.ns = ns; in after_state_ch()
[all …]
/linux-6.3-rc2/drivers/nvme/host/
A Dzns.c61 dev_warn(ns->ctrl->device, in nvme_update_zone_info()
63 ns->head->ns_id); in nvme_update_zone_info()
66 dev_warn(ns->ctrl->device, in nvme_update_zone_info()
68 ns->head->ns_id); in nvme_update_zone_info()
96 dev_warn(ns->ctrl->device, in nvme_update_zone_info()
103 ns->zsze = nvme_lba_to_sect(ns, le64_to_cpu(id->lbafe[lbaf].zsze)); in nvme_update_zone_info()
105 dev_warn(ns->ctrl->device, in nvme_update_zone_info()
107 ns->zsze, ns->head->ns_id); in nvme_update_zone_info()
132 get_capacity(ns->disk) >> ilog2(ns->zsze)); in nvme_zns_alloc_report_buffer()
166 zone.len = ns->zsze; in nvme_zone_parse_entry()
[all …]
A Dmultipath.c250 found = ns; in __nvme_find_path()
276 if (ns) in nvme_next_ns()
277 return ns; in nvme_next_ns()
293 ns && ns != old; in nvme_round_robin_path()
294 ns = nvme_next_ns(head, ns)) { in nvme_round_robin_path()
299 found = ns; in nvme_round_robin_path()
303 found = ns; in nvme_round_robin_path()
343 return ns; in nvme_find_path()
427 if (ns) in nvme_ns_head_report_zones()
867 if (blk_queue_is_zoned(ns->queue) && ns->head->disk) in nvme_mpath_add_disk()
[all …]
/linux-6.3-rc2/arch/arm/boot/dts/
A Domap3430-sdp.dts63 gpmc,cs-on-ns = <0>;
66 gpmc,adv-on-ns = <12>;
69 gpmc,oe-on-ns = <54>;
70 gpmc,oe-off-ns = <168>;
71 gpmc,we-on-ns = <54>;
113 gpmc,cs-on-ns = <0>;
116 gpmc,adv-on-ns = <6>;
119 gpmc,oe-on-ns = <6>;
121 gpmc,we-on-ns = <6>;
159 gpmc,cs-on-ns = <0>;
[all …]
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 …]
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 …]
A Domap-gpmc-smsc911x.dtsi30 gpmc,cs-on-ns = <5>;
31 gpmc,cs-rd-off-ns = <150>;
33 gpmc,adv-on-ns = <0>;
36 gpmc,oe-on-ns = <45>;
37 gpmc,oe-off-ns = <140>;
38 gpmc,we-on-ns = <45>;
39 gpmc,we-off-ns = <140>;
40 gpmc,rd-cycle-ns = <155>;
41 gpmc,wr-cycle-ns = <155>;
42 gpmc,access-ns = <120>;
[all …]
/linux-6.3-rc2/kernel/cgroup/
A Dnamespace.c30 ret = ns_alloc_inum(&new_ns->ns); in alloc_cgroup_ns()
42 put_css_set(ns->root_cset); in free_cgroup_ns()
44 put_user_ns(ns->user_ns); in free_cgroup_ns()
45 ns_free_inum(&ns->ns); in free_cgroup_ns()
46 kfree(ns); in free_cgroup_ns()
95 return container_of(ns, struct cgroup_namespace, ns); in to_cg_ns()
126 ns = nsproxy->cgroup_ns; in cgroupns_get()
127 get_cgroup_ns(ns); in cgroupns_get()
131 return ns ? &ns->ns : NULL; in cgroupns_get()
136 put_cgroup_ns(to_cg_ns(ns)); in cgroupns_put()
[all …]
/linux-6.3-rc2/tools/testing/selftests/drivers/net/mlxsw/
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
107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1
115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1
128 ip -n $ns link del dev dummy1
193 local ns="testns1"
197 ip -n $ns link add name dummy1 type dummy
198 ip -n $ns link set dev dummy1 up
[all …]
/linux-6.3-rc2/fs/
A Dnsfs.c56 ns->ops->put(ns); in nsfs_evict()
74 ns->ops->put(ns); in __ns_get_path()
83 ns->ops->put(ns); in __ns_get_path()
91 inode->i_private = ns; in __ns_get_path()
117 if (!ns) in ns_get_path_cb()
203 return open_related_ns(ns, ns->ops->get_parent); in ns_ioctl()
205 return ns->ops->type; in ns_ioctl()
209 user_ns = container_of(ns, struct user_namespace, ns); in ns_ioctl()
221 struct ns_common *ns; in ns_get_name() local
225 if (ns) { in ns_get_name()
[all …]
/linux-6.3-rc2/arch/arm64/boot/dts/qcom/
A Dmsm8996pro.dtsi26 clock-latency-ns = <200000>;
31 clock-latency-ns = <200000>;
36 clock-latency-ns = <200000>;
41 clock-latency-ns = <200000>;
46 clock-latency-ns = <200000>;
51 clock-latency-ns = <200000>;
56 clock-latency-ns = <200000>;
61 clock-latency-ns = <200000>;
66 clock-latency-ns = <200000>;
71 clock-latency-ns = <200000>;
[all …]

Completed in 77 milliseconds

12345678910>>...43