| /linux/drivers/mtd/nand/raw/ |
| H A 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 199 (((ns)->regs.row * (ns)->geom.pgszoob) + (ns)->regs.column) 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 491 DEFINE_SHOW_ATTRIBUTE(ns); 500 static int ns_debugfs_create(struct nandsim *ns) in ns_debugfs_create() argument 515 ns->dent = debugfs_create_file("nandsim_wear_report", 0400, root, ns, in ns_debugfs_create() [all …]
|
| /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 \ 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 D | policy_ns.c | 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->base, prefix, name, GFP_KERNEL)) in alloc_ns() 116 INIT_LIST_HEAD(&ns->sub_ns); in alloc_ns() 117 INIT_LIST_HEAD(&ns->rawdata_list); in alloc_ns() 118 mutex_init(&ns->lock); in alloc_ns() 119 init_waitqueue_head(&ns->wait); in alloc_ns() 122 ns->unconfined = alloc_unconfined("unconfined"); in alloc_ns() [all …]
|
| /linux/kernel/ |
| H A D | nscommon.c | 11 static void ns_debug(struct ns_common *ns, const struct proc_ns_operations *ops) in ns_debug() argument 13 switch (ns->ns_type) { in ns_debug() 56 int __ns_common_init(struct ns_common *ns, u32 ns_type, const struct proc_ns_operations *ops, int i… in __ns_common_init() argument 60 refcount_set(&ns->__ns_ref, 1); in __ns_common_init() 61 ns->stashed = NULL; in __ns_common_init() 62 ns->ops = ops; in __ns_common_init() 63 ns->ns_id = 0; in __ns_common_init() 64 ns->ns_type = ns_type; in __ns_common_init() 65 ns_tree_node_init(&ns->ns_tree_node); in __ns_common_init() 66 ns_tree_node_init(&ns->ns_unified_node); in __ns_common_init() [all …]
|
| H A D | utsname.c | 21 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 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 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() 135 ns->level = parent_ns->level + 1; in create_user_ns() [all …]
|
| H A D | nstree.c | 197 void __ns_tree_add_raw(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, struct ns_tree_root *ns_tree) in __ns_tree_remove() argument [all …]
|
| H A D | ucount.c | 12 .ns = &init_user_ns, 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)) 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() 106 tbl[i].data = &ns->ucount_max[i]; in setup_userns_sysctls() 108 ns->sysctls = __register_sysctl_table(&ns->set, "user", tbl, in setup_userns_sysctls() 111 if (!ns->sysctls) { in setup_userns_sysctls() [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_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_tree_gen_id(ns); in create_ipc_ns() 70 ns->user_ns = get_user_ns(user_ns); in create_ipc_ns() 71 ns->ucounts = ucounts; in create_ipc_ns() 73 err = mq_init_ns(ns); in create_ipc_ns() [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_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 692 nsproxy_ns_active_get(struct nsproxy * ns) nsproxy_ns_active_get() argument 704 nsproxy_ns_active_put(struct nsproxy * ns) nsproxy_ns_active_put() argument [all...] |
| /linux/include/linux/ |
| H A D | ns_common.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, int i… 13 void __ns_common_free(struct ns_common *ns); 14 struct ns_common *__must_check ns_owner(struct ns_common *ns); 16 static __always_inline bool is_ns_init_inum(const struct ns_common *ns) in is_ns_init_inum() argument 18 VFS_WARN_ON_ONCE(ns->inum == 0); in is_ns_init_inum() 19 return unlikely(in_range(ns->inum, MNT_NS_INIT_INO, in is_ns_init_inum() 23 static __always_inline bool is_ns_init_id(const struct ns_common *ns) in is_ns_init_id() argument 25 VFS_WARN_ON_ONCE(ns->ns_id == 0); in is_ns_init_id() 26 return ns->ns_id <= NS_LAST_INIT_ID; in is_ns_init_id() [all …]
|
| H A D | ipc_namespace.h | 80 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 …]
|
| H A D | user_namespace.h | 84 struct ns_common ns; member 121 struct user_namespace *ns; member 132 bool setup_userns_sysctls(struct user_namespace *ns); 133 void retire_userns_sysctls(struct user_namespace *ns); 134 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); 136 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid); 158 static inline long get_userns_rlimit_max(struct user_namespace *ns, enum rlimit_type type) in get_userns_rlimit_max() argument 160 return READ_ONCE(ns->rlimit_max[type]); in get_userns_rlimit_max() 163 static inline void set_userns_rlimit_max(struct user_namespace *ns, in set_userns_rlimit_max() argument 166 ns->rlimit_max[type] = max <= LONG_MAX ? max : LONG_MAX; in set_userns_rlimit_max() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | xfrm_policy.sh | 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 … 53 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 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 xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block [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() 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() 197 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() 199 if (ns->xdp.prog && !ns in nsim_change_mtu() 196 struct netdevsim *ns = netdev_priv(dev); nsim_change_mtu() local 209 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_mac() local 223 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_vlan() local 238 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_rate() local 257 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_spoofchk() local 269 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_rss_query_en() local 281 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_trust() local 294 struct netdevsim *ns = netdev_priv(dev); nsim_get_vf_config() local 317 struct netdevsim *ns = netdev_priv(dev); nsim_set_vf_link_state() local 340 struct netdevsim *ns = netdev_priv(dev); nsim_set_features() local 368 struct netdevsim *ns; nsim_rcv() local 437 nsim_init_napi(struct netdevsim * ns) nsim_init_napi() argument 487 nsim_enable_napi(struct netdevsim * ns) nsim_enable_napi() argument 502 struct netdevsim *ns = netdev_priv(dev); nsim_open() local 523 nsim_del_napi(struct netdevsim * ns) nsim_del_napi() argument 544 struct netdevsim *ns = netdev_priv(dev); nsim_stop() local 561 struct netdevsim *ns = netdev_priv(dev); nsim_vlan_rx_add_vid() local 576 struct netdevsim *ns = netdev_priv(dev); nsim_vlan_rx_kill_vid() local 754 struct netdevsim *ns = netdev_priv(dev); nsim_queue_mem_alloc() local 788 struct netdevsim *ns = netdev_priv(dev); nsim_queue_mem_free() local 804 struct netdevsim *ns = netdev_priv(dev); nsim_queue_start() local 836 struct netdevsim *ns = netdev_priv(dev); nsim_queue_stop() local 864 struct netdevsim *ns = file->private_data; nsim_qreset_write() local 907 struct netdevsim *ns = file->private_data; nsim_pp_hold_read() local 920 struct netdevsim *ns = file->private_data; nsim_pp_hold_write() local 960 struct netdevsim *ns = s->private; nsim_vlan_show() local 1001 nsim_queue_init(struct netdevsim * ns) nsim_queue_init() argument 1025 nsim_queue_uninit(struct netdevsim * ns) nsim_queue_uninit() argument 1037 nsim_init_netdevsim(struct netdevsim * ns) nsim_init_netdevsim() argument 1108 nsim_init_netdevsim_vf(struct netdevsim * ns) nsim_init_netdevsim_vf() argument 1119 nsim_exit_netdevsim(struct netdevsim * ns) nsim_exit_netdevsim() argument 1130 struct netdevsim *ns; nsim_create() local 1171 nsim_destroy(struct netdevsim * ns) nsim_destroy() argument [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 | psp.c | 18 nsim_do_psp(struct sk_buff *skb, struct netdevsim *ns, in nsim_do_psp() argument 41 if (*ptr != ns) { in nsim_do_psp() 53 atomic64_inc(&ns->psp.tx_packets); in nsim_do_psp() 54 atomic64_add(psp_len, &ns->psp.tx_bytes); in nsim_do_psp() 133 struct netdevsim *ns = psd->drv_priv; in nsim_rx_spi_alloc() 137 if ((ns->psp.spi & PSP_SPI_KEY_ID) == PSP_SPI_KEY_ID) { in nsim_rx_spi_alloc() 142 assoc->spi = cpu_to_be32(++ns->psp.spi); in nsim_rx_spi_alloc() 145 assoc->key[i] = ns->psp.spi + i; in nsim_rx_spi_alloc() 153 struct netdevsim *ns = psd->drv_priv; in nsim_assoc_add() local 158 ns in nsim_assoc_add() 134 struct netdevsim *ns = psd->drv_priv; nsim_rx_spi_alloc() local 170 struct netdevsim *ns = psd->drv_priv; nsim_assoc_del() local 179 struct netdevsim *ns = psd->drv_priv; nsim_get_stats() local 213 __nsim_psp_uninit(struct netdevsim * ns,bool teardown) __nsim_psp_uninit() argument 228 nsim_psp_uninit(struct netdevsim * ns) nsim_psp_uninit() argument 239 struct netdevsim *ns = file->private_data; nsim_psp_rereg_write() local 266 nsim_psp_init(struct netdevsim * ns) nsim_psp_init() argument [all...] |
| H A D | bpf.c | 41 struct netdevsim *ns; member 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() 112 ns->bpf_offloaded_id = prog ? prog->aux->id : 0; in nsim_bpf_offload() 123 struct netdevsim *ns = cb_priv; in nsim_bpf_setup_tc_block_cb() local 126 if (!tc_cls_can_offload_and_chain0(ns in nsim_bpf_setup_tc_block_cb() 173 nsim_bpf_disable_tc(struct netdevsim * ns) nsim_bpf_disable_tc() argument 180 nsim_xdp_offload_prog(struct netdevsim * ns,struct netdev_bpf * bpf) nsim_xdp_offload_prog() argument 193 nsim_xdp_set_prog(struct netdevsim * ns,struct netdev_bpf * bpf,struct xdp_attachment_info * xdp) nsim_xdp_set_prog() argument 299 nsim_setup_prog_checks(struct netdevsim * ns,struct netdev_bpf * bpf) nsim_setup_prog_checks() argument 314 nsim_setup_prog_hw_checks(struct netdevsim * ns,struct netdev_bpf * bpf) nsim_setup_prog_hw_checks() argument 491 nsim_bpf_map_alloc(struct netdevsim * ns,struct bpf_offloaded_map * offmap) nsim_bpf_map_alloc() argument 556 struct netdevsim *ns = netdev_priv(dev); nsim_bpf() local 622 nsim_bpf_init(struct netdevsim * ns) nsim_bpf_init() argument 654 nsim_bpf_uninit(struct netdevsim * ns) nsim_bpf_uninit() argument [all...] |
| /linux/drivers/block/drbd/ |
| H A D | drbd_state.c | 26 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 D | multipath.c | 149 struct nvme_ns *ns = req->q->queuedata; in nvme_failover_req() 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_mpath_start_request() 169 bio_set_dev(bio, ns->head->disk->part0); in nvme_mpath_start_request() local 170 blk_steal_bios(&ns->head->requeue_list, req); in nvme_mpath_start_request() 171 spin_unlock_irqrestore(&ns in nvme_mpath_start_request() 139 struct nvme_ns *ns = req->q->queuedata; nvme_failover_req() local 190 struct nvme_ns *ns = rq->q->queuedata; nvme_mpath_end_request() local 204 struct nvme_ns *ns; nvme_kick_requeue_lists() local 228 nvme_mpath_clear_current_path(struct nvme_ns * ns) nvme_mpath_clear_current_path() argument 245 struct nvme_ns *ns; nvme_mpath_clear_ctrl_paths() local 257 nvme_mpath_revalidate_paths(struct nvme_ns * ns) nvme_mpath_revalidate_paths() argument 277 nvme_path_is_disabled(struct nvme_ns * ns) nvme_path_is_disabled() argument 297 struct nvme_ns *found = NULL, *fallback = NULL, *ns; __nvme_find_path() local 336 nvme_next_ns(struct nvme_ns_head * head,struct nvme_ns * ns) nvme_next_ns() argument 347 struct nvme_ns *ns, *found = NULL; nvme_round_robin_path() local 395 struct nvme_ns *best_opt = NULL, *best_nonopt = NULL, *ns; nvme_queue_depth_path() local 430 nvme_path_is_optimized(struct nvme_ns * ns) nvme_path_is_optimized() argument 439 struct nvme_ns *ns; nvme_numa_path() local 463 struct nvme_ns *ns; nvme_available_path() local 498 struct nvme_ns *ns; nvme_ns_head_submit_bio() local 549 struct nvme_ns *ns; nvme_ns_head_get_unique_id() local 565 struct nvme_ns *ns; nvme_ns_head_report_zones() local 758 nvme_mpath_set_live(struct nvme_ns * ns) nvme_mpath_set_live() argument 849 nvme_update_ns_ana_state(struct nvme_ana_group_desc * desc,struct nvme_ns * ns) nvme_update_ns_ana_state() argument 892 struct nvme_ns *ns; nvme_update_ana_state() local 1066 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); ana_state_show() local 1075 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); queue_depth_show() local 1090 struct nvme_ns *ns = nvme_get_ns_from_dev(dev); numa_nodes_show() local 1170 struct nvme_ns *ns; nvme_mpath_add_sysfs_link() local 1230 nvme_mpath_remove_sysfs_link(struct nvme_ns * ns) nvme_mpath_remove_sysfs_link() argument 1245 nvme_mpath_add_disk(struct nvme_ns * ns,__le32 anagrpid) nvme_mpath_add_disk() argument [all...] |
| H A D | zns.c | 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() 62 status = nvme_set_max_append(ns->ctrl); in nvme_query_zone_info() [all …]
|
| /linux/arch/arm/boot/dts/nvidia/ |
| H A D | tegra30-cpu-opp.dtsi | 9 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 D | tegra20-cpu-opp.dtsi | 9 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 D | fib.sh | 96 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 D | lwt_seg6local.c | 37 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 …]
|