| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | fib_offload_lib.sh | 7 local ns=$1; shift 13 ip -n $ns -j -p -$family route show $route \ 17 if [[ $ret -ne 0 ]]; then 18 return 0 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 [all …]
|
| /linux/drivers/net/netdevsim/ |
| H A D | netdev.c | 42 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() 122 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local 133 if (!nsim_ipsec_tx(ns, skb)) in nsim_start_xmit() 136 peer_ns = rcu_dereference(ns->peer); in nsim_start_xmit() 140 dr = nsim_do_psp(skb, ns, peer_ns, &psp_ext); in nsim_start_xmit() 185 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() local 187 if (ns->xdp.prog && !ns->xdp.prog->aux->xdp_has_frags && in nsim_change_mtu() 193 return 0; in nsim_change_mtu() 204 struct netdevsim *ns = netdev_priv(dev); in nsim_set_vf_mac() local [all …]
|
| H A D | udp_tunnels.c | 15 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 …]
|
| H A D | bpf.c | 41 struct netdevsim *ns; member 58 return 0; in nsim_bpf_string_show() 66 int ret = 0; in nsim_bpf_verify_insn() 84 return 0; in nsim_bpf_finalize() 87 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active() argument 89 return ns->xdp_hw.prog; in nsim_xdp_offload_active() 104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload() argument 106 nsim_prog_set_loaded(ns->bpf_offloaded, false); in nsim_bpf_offload() 108 WARN(!!ns->bpf_offloaded != oldprog, in nsim_bpf_offload() 111 ns->bpf_offloaded = prog; in nsim_bpf_offload() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | xfrm_policy.sh | 22 ret=0 25 KEY_SHA=0xdeadbeef1234567890abcdefabcdefabcdefabcd 26 KEY_AES=0x0123456789abcdef0123456789012345 27 SPI1=0x1 28 SPI2=0x2 31 local ns=$1 38 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu… 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 … [all …]
|
| /linux/arch/arm/boot/dts/nvidia/ |
| H A D | tegra30-cpu-opp.dtsi | 9 clock-latency-ns = <100000>; 10 opp-supported-hw = <0x1F 0x31FE>; 15 clock-latency-ns = <100000>; 16 opp-supported-hw = <0x1F 0x0C01>; 21 clock-latency-ns = <100000>; 22 opp-supported-hw = <0x1F 0x0200>; 27 clock-latency-ns = <100000>; 28 opp-supported-hw = <0x1F 0x31FE>; 33 clock-latency-ns = <100000>; 34 opp-supported-hw = <0x1F 0x0C01>; [all …]
|
| H A D | tegra20-cpu-opp.dtsi | 9 clock-latency-ns = <400000>; 10 opp-supported-hw = <0x0F 0x0003>; 16 clock-latency-ns = <400000>; 17 opp-supported-hw = <0x0F 0x0004>; 23 clock-latency-ns = <400000>; 24 opp-supported-hw = <0x0F 0x0003>; 29 clock-latency-ns = <400000>; 30 opp-supported-hw = <0x0F 0x0004>; 35 clock-latency-ns = <400000>; 36 opp-supported-hw = <0x0C 0x0003>; [all …]
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_state.c | 26 union drbd_state ns; member 49 *n_devices = 0; in count_objects() 50 *n_connections = 0; in count_objects() 76 for (n = 0; n < n_devices; n++) in alloc_state_change() 78 for (n = 0; n < n_connections; n++) in alloc_state_change() 164 resource_state_change = &state_change->resource[0]; in remember_new_state() 173 for (n = 0; n < state_change->n_devices; n++) { in remember_new_state() 181 for (n = 0; n < state_change->n_connections; n++) { in remember_new_state() 192 for (n = 0; n < state_change->n_devices * state_change->n_connections; n++) { in remember_new_state() 213 struct drbd_resource_state_change *resource_state_change = &state_change->resource[0]; in copy_old_to_new_state_change() [all …]
|
| /linux/fs/ |
| H A D | nsfs.c | 46 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->ops->put(ns); in nsfs_evict() 68 struct ns_common *ns; in ns_get_path_cb() local 70 ns = ns_get_cb(private_data); in ns_get_path_cb() 71 if (!ns) in ns_get_path_cb() 74 return path_from_stashed(&ns->stashed, nsfs_mnt, ns, path); in ns_get_path_cb() 102 * @ns: the namespace to open 104 * This will consume a reference to @ns indendent of success or failure. [all …]
|
| /linux/kernel/time/ |
| H A D | namespace.c | 50 tim = 0; in do_timens_ktime_to_host() 60 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() argument 62 return inc_ucount(ns, current_euid(), UCOUNT_TIME_NAMESPACES); in inc_time_namespaces() 82 struct time_namespace *ns; in clone_time_ns() local 92 ns = kzalloc(sizeof(*ns), GFP_KERNEL_ACCOUNT); in clone_time_ns() 93 if (!ns) in clone_time_ns() 96 ns->vvar_page = alloc_page(GFP_KERNEL_ACCOUNT | __GFP_ZERO); in clone_time_ns() 97 if (!ns->vvar_page) in clone_time_ns() 100 err = ns_common_init(ns); in clone_time_ns() 104 ns->ucounts = ucounts; in clone_time_ns() [all …]
|
| /linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | gate.json | 15 0, 20 … "cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100", 21 "expExitCode": "0", 23 "matchPattern": "action order [0-9]*: .*priority 1.*index 100 ref", 42 0, 47 …derTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns index… 48 "expExitCode": "0", 50 "matchPattern": "action order [0-9]*: .*base-time 200s.*index 10 ref", 69 0, 74 …erTest": "$TC action add action gate cycle-time 200000000000ns sched-entry close 100000000ns index… [all …]
|
| /linux/ipc/ |
| H A D | namespace.c | 29 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(sizeof(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() [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | msm8996pro.dtsi | 14 * nibble of supported hw, so speed bin 0 becomes 0x10, speed bin 1 15 * becomes 0x20, speed 2 becomes 0x40. 25 opp-supported-hw = <0x70>; 26 clock-latency-ns = <200000>; 31 opp-supported-hw = <0x70>; 32 clock-latency-ns = <200000>; 37 opp-supported-hw = <0x70>; 38 clock-latency-ns = <200000>; 43 opp-supported-hw = <0x70>; 44 clock-latency-ns = <200000>; [all …]
|
| /linux/kernel/ |
| H A D | pid_namespace.c | 42 /* Level 0 is init_pid_ns.pid_cachep */ in create_pid_cachep() 57 *pkc = kmem_cache_create(name, len, 0, in create_pid_cachep() 64 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() [all …]
|
| H A D | ucount.c | 12 .ns = &init_user_ns, 20 [0 ... UCOUNTS_HASHTABLE_ENTRIES - 1] = HLIST_NULLS_HEAD_INIT(0) 24 #define ucounts_hashfn(ns, uid) \ argument 25 hash_long((unsigned long)__kuid_val(uid) + (unsigned long)(ns), \ 27 #define ucounts_hashentry(ns, uid) \ argument 28 (ucounts_hashtable + ucounts_hashfn(ns, uid)) 63 static long ue_zero = 0; 95 bool setup_userns_sysctls(struct user_namespace *ns) in setup_userns_sysctls() argument 101 setup_sysctl_set(&ns->set, &set_root, set_is_seen); in setup_userns_sysctls() 105 for (i = 0; i < UCOUNT_COUNTS; i++) { in setup_userns_sysctls() [all …]
|
| H A D | user_namespace.c | 30 struct user_namespace *ns, int cap_setid, 34 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces() argument 36 return inc_ucount(ns, uid, UCOUNT_USER_NAMESPACES); in inc_user_namespaces() 85 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local 119 if (ret < 0) in create_user_ns() 123 ns = kmem_cache_zalloc(user_ns_cachep, GFP_KERNEL); in create_user_ns() 124 if (!ns) in create_user_ns() 127 ns->parent_could_setfcap = cap_raised(new->cap_effective, CAP_SETFCAP); in create_user_ns() 129 ret = ns_common_init(ns); in create_user_ns() 134 ns->parent = parent_ns; in create_user_ns() [all …]
|
| /linux/drivers/nvme/target/ |
| H A D | io-cmd-file.c | 16 void nvmet_file_ns_revalidate(struct nvmet_ns *ns) in nvmet_file_ns_revalidate() argument 18 ns->size = i_size_read(ns->file->f_mapping->host); in nvmet_file_ns_revalidate() 21 void nvmet_file_ns_disable(struct nvmet_ns *ns) in nvmet_file_ns_disable() argument 23 if (ns->file) { in nvmet_file_ns_disable() 24 if (ns->buffered_io) in nvmet_file_ns_disable() 26 mempool_destroy(ns->bvec_pool); in nvmet_file_ns_disable() 27 ns->bvec_pool = NULL; in nvmet_file_ns_disable() 28 fput(ns->file); in nvmet_file_ns_disable() 29 ns->file = NULL; in nvmet_file_ns_disable() 33 int nvmet_file_ns_enable(struct nvmet_ns *ns) in nvmet_file_ns_enable() argument [all …]
|
| H A D | io-cmd-bdev.c | 15 /* Logical blocks per physical block, 0's based. */ in nvmet_bdev_set_limits() 38 /* NPWG = Namespace Preferred Write Granularity. 0's based */ in nvmet_bdev_set_limits() 40 /* NPWA = Namespace Preferred Write Alignment. 0's based */ in nvmet_bdev_set_limits() 42 /* NPDG = Namespace Preferred Deallocate Granularity. 0's based */ in nvmet_bdev_set_limits() 52 id->dlfeat = (1 << 3) | 0x1; in nvmet_bdev_set_limits() 55 void nvmet_bdev_ns_disable(struct nvmet_ns *ns) in nvmet_bdev_ns_disable() argument 57 if (ns->bdev_file) { in nvmet_bdev_ns_disable() 58 fput(ns->bdev_file); in nvmet_bdev_ns_disable() 59 ns->bdev = NULL; in nvmet_bdev_ns_disable() 60 ns->bdev_file = NULL; in nvmet_bdev_ns_disable() [all …]
|
| /linux/drivers/clk/qcom/ |
| H A D | clk-rcg.c | 18 static u32 ns_to_src(struct src_sel *s, u32 ns) in ns_to_src() argument 20 ns >>= s->src_sel_shift; in ns_to_src() 21 ns &= SRC_SEL_MASK; in ns_to_src() 22 return ns; in ns_to_src() 25 static u32 src_to_ns(struct src_sel *s, u8 src, u32 ns) in src_to_ns() argument 31 ns &= ~mask; in src_to_ns() 33 ns |= src << s->src_sel_shift; in src_to_ns() 34 return ns; in src_to_ns() 41 u32 ns; in clk_rcg_get_parent() local 44 ret = regmap_read(rcg->clkr.regmap, rcg->ns_reg, &ns); in clk_rcg_get_parent() [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | omap2430-sdp.dts | 15 reg = <0x80000000 0x8000000>; /* 128 MB */ 23 reg = <0x48>; 36 ranges = <5 0 0x08000000 0x01000000>; 41 reg = <5 0x300 0xf>; 43 gpmc,sync-clk-ps = <0>; 48 gpmc,cs-on-ns = <6>; 49 gpmc,cs-rd-off-ns = <187>; 50 gpmc,cs-wr-off-ns = <187>; 51 gpmc,adv-on-ns = <18>; 52 gpmc,adv-rd-off-ns = <48>; [all …]
|
| H A D | omap3-overo-tobiduo-common.dtsi | 16 reg = <5 0 0xff>; 21 smsc2: ethernet@4,0 { 25 gpmc,mux-add-data = <0>; 26 gpmc,cs-on-ns = <0>; 27 gpmc,cs-rd-off-ns = <42>; 28 gpmc,cs-wr-off-ns = <36>; 29 gpmc,adv-on-ns = <6>; 30 gpmc,adv-rd-off-ns = <12>; 31 gpmc,adv-wr-off-ns = <12>; 32 gpmc,oe-on-ns = <0>; [all …]
|
| H A D | omap-gpmc-smsc911x.dtsi | 30 gpmc,cs-on-ns = <5>; 31 gpmc,cs-rd-off-ns = <150>; 32 gpmc,cs-wr-off-ns = <150>; 33 gpmc,adv-on-ns = <0>; 34 gpmc,adv-rd-off-ns = <15>; 35 gpmc,adv-wr-off-ns = <40>; 36 gpmc,oe-on-ns = <45>; 37 gpmc,oe-off-ns = <140>; 38 gpmc,we-on-ns = <45>; 39 gpmc,we-off-ns = <140>; [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | zns.c | 35 return 0; in nvme_set_max_append() 38 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() [all …]
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | fib.sh | 6 lib_dir=$(dirname $0)/../../../net/forwarding 32 NUM_NETIFS=0 96 local ns="testns1" 98 RET=0 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 [all …]
|
| /linux/Documentation/devicetree/bindings/memory-controllers/ |
| H A D | atmel,ebi.txt | 83 - atmel,smc-ncs-rd-setup-ns 84 - atmel,smc-nrd-setup-ns 85 - atmel,smc-ncs-wr-setup-ns 86 - atmel,smc-nwe-setup-ns 87 - atmel,smc-ncs-rd-pulse-ns 88 - atmel,smc-nrd-pulse-ns 89 - atmel,smc-ncs-wr-pulse-ns 90 - atmel,smc-nwe-pulse-ns 91 - atmel,smc-nwe-cycle-ns 92 - atmel,smc-nrd-cycle-ns [all …]
|