/linux-master/drivers/of/ |
H A D | address.c | 23 #define OF_CHECK_COUNTS(na, ns) (OF_CHECK_ADDR_COUNT(na) && (ns) > 0) 46 int na, int ns, int pna, int fna); 66 int na, int ns, int pna, int fna) 71 s = of_read_number(range + na + pna, ns); 104 int ns, int pna, int fna) 110 return of_bus_default_map(addr, range, na, ns, pna, fna); 183 static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns, argument 195 return of_bus_default_map(addr, range, na, ns, pna, fna); 300 static u64 of_bus_isa_map(__be32 *addr, const __be32 *range, int na, int ns, argument 65 of_bus_default_map(__be32 *addr, const __be32 *range, int na, int ns, int pna, int fna) argument 103 of_bus_default_flags_map(__be32 *addr, const __be32 *range, int na, int ns, int pna, int fna) argument 410 of_translate_one(struct device_node *parent, struct of_bus *bus, struct of_bus *pbus, __be32 *addr, int na, int ns, int pna, const char *rprop) argument 498 int na, ns, pna, pns; local 651 int na, ns; local 682 int onesize, i, na, ns; local 782 int ns = parser->ns; local [all...] |
/linux-master/drivers/ssb/ |
H A D | driver_extif.c | 86 void ssb_extif_timing_init(struct ssb_extif *extif, unsigned long ns) argument 94 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; 95 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; 96 tmp |= DIV_ROUND_UP(120, ns); 100 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; 101 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; 102 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; 103 tmp |= DIV_ROUND_UP(120, ns);
|
/linux-master/drivers/phy/broadcom/ |
H A D | Makefile | 5 obj-$(CONFIG_PHY_BCM_NS_USB2) += phy-bcm-ns-usb2.o 6 obj-$(CONFIG_PHY_BCM_NS_USB3) += phy-bcm-ns-usb3.o
|
/linux-master/fs/proc/ |
H A D | self.c | 15 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); local 16 pid_t tgid = task_tgid_nr_ns(current, ns);
|
H A D | array.c | 148 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, argument 161 task_tgid_nr_ns(rcu_dereference(p->real_parent), ns) : 0; 165 tpid = task_pid_nr_ns(tracer, ns); 167 tgid = task_tgid_nr_ns(p, ns); 186 seq_put_decimal_ull(m, "\nPid:\t", pid_nr_ns(pid, ns)); 210 for (g = ns->level; g <= pid->level; g++) 211 seq_put_decimal_ull(m, "\t", task_tgid_nr_ns(p, pid->numbers[g].ns)); 213 for (g = ns->level; g <= pid->level; g++) 214 seq_put_decimal_ull(m, "\t", task_pid_nr_ns(p, pid->numbers[g].ns)); 216 for (g = ns 439 proc_pid_status(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 467 do_task_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task, int whole) argument 671 proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 677 proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 683 proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument [all...] |
/linux-master/drivers/platform/x86/intel/pmt/ |
H A D | class.h | 64 struct intel_pmt_namespace *ns, 67 struct intel_pmt_namespace *ns);
|
/linux-master/fs/ |
H A D | namespace.c | 755 struct mnt_namespace *ns = current->nsproxy->mnt_ns; local 760 rbtree_postorder_for_each_entry_safe(mnt, n, &ns->mounts, mnt_node) { 866 static void touch_mnt_namespace(struct mnt_namespace *ns) argument 868 if (ns) { 869 ns->event = ++event; 870 wake_up_interruptible(&ns->poll); 877 static void __touch_mnt_namespace(struct mnt_namespace *ns) argument 879 if (ns && ns->event != event) { 880 ns 1016 mnt_add_to_ns(struct mnt_namespace *ns, struct mount *mnt) argument 1431 mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id) argument 1652 struct mnt_namespace *ns; local 1946 to_mnt_ns(struct ns_common *ns) argument 2056 struct mnt_namespace *ns; local 2206 count_mounts(struct mnt_namespace *ns, struct mount *mnt) argument 2308 struct mnt_namespace *ns = top_mnt->mnt_ns; local 2657 struct mnt_namespace *ns = alloc_mnt_ns(user_ns, true); local 3118 struct mnt_namespace *ns; local 3697 inc_mnt_namespaces(struct user_namespace *ns) argument 3707 free_mnt_ns(struct mnt_namespace *ns) argument 3760 copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns, struct user_namespace *user_ns, struct fs_struct *new_fs) argument 3842 struct mnt_namespace *ns; local 3946 struct mnt_namespace *ns; local 4511 struct ns_common *ns; local 4704 lookup_mnt_in_ns(u64 id, struct mnt_namespace *ns) argument 5086 struct mnt_namespace *ns = current->nsproxy->mnt_ns; local 5137 struct mnt_namespace *ns; local 5197 put_mnt_ns(struct mnt_namespace *ns) argument 5272 mnt_already_visible(struct mnt_namespace *ns, const struct super_block *sb, int *new_mnt_flags) argument 5339 struct mnt_namespace *ns = current->nsproxy->mnt_ns; local 5374 struct ns_common *ns = NULL; local 5388 mntns_put(struct ns_common *ns) argument 5393 mntns_install(struct nsset *nsset, struct ns_common *ns) argument 5437 mntns_owner(struct ns_common *ns) argument [all...] |
/linux-master/include/net/ |
H A D | ioam6.h | 33 struct ioam6_namespace __rcu *ns; member in struct:ioam6_schema 59 struct ioam6_namespace *ns,
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_core.c | 473 static struct fs_prio *find_prio(struct mlx5_flow_namespace *ns, argument 478 fs_for_each_prio(iter_prio, ns) { 520 struct mlx5_flow_namespace *ns; local 529 ns = container_of(root, struct mlx5_flow_namespace, node); 530 return container_of(ns, struct mlx5_flow_root_namespace, ns); 990 fs_get_obj(prio, next_ns ? ft->ns->node.parent : ft->node.parent); 1042 /* return directly if not under the first sub ns of prio_chains prio */ 1177 iter->ft->ns == new_next_ft->ns) 1229 __mlx5_create_flow_table(struct mlx5_flow_namespace *ns, struct mlx5_flow_table_attr *ft_attr, enum fs_flow_table_op_mod op_mod, u16 vport) argument 1314 mlx5_create_flow_table(struct mlx5_flow_namespace *ns, struct mlx5_flow_table_attr *ft_attr) argument 1328 mlx5_create_vport_flow_table(struct mlx5_flow_namespace *ns, struct mlx5_flow_table_attr *ft_attr, u16 vport) argument 1335 mlx5_create_lag_demux_flow_table(struct mlx5_flow_namespace *ns, int prio, u32 level) argument 1350 mlx5_create_auto_grouped_flow_table(struct mlx5_flow_namespace *ns, struct mlx5_flow_table_attr *ft_attr) argument 2442 struct mlx5_flow_namespace *ns; local 2562 _fs_create_prio(struct mlx5_flow_namespace *ns, unsigned int prio, int num_levels, enum fs_node_type type) argument 2583 fs_create_prio_chained(struct mlx5_flow_namespace *ns, unsigned int prio, int num_levels) argument 2590 fs_create_prio(struct mlx5_flow_namespace *ns, unsigned int prio, int num_levels) argument 2596 fs_init_namespace(struct mlx5_flow_namespace *ns) argument 2607 struct mlx5_flow_namespace *ns; local 2622 create_leaf_prios(struct mlx5_flow_namespace *ns, int prio, struct init_tree_node *prio_metadata) argument 2723 struct mlx5_flow_namespace *ns; local 2737 struct mlx5_flow_namespace *ns; local 2761 set_prio_attrs_in_ns(struct mlx5_flow_namespace *ns, int acc_level) argument 2775 struct mlx5_flow_namespace *ns; local 2797 struct mlx5_flow_namespace *ns = &root_ns->ns; local 2812 struct mlx5_flow_namespace *ns = NULL; local 2971 store_fdb_sub_ns_prio_chain(struct mlx5_flow_steering *steering, struct mlx5_flow_namespace *ns) argument 2985 struct mlx5_flow_namespace *ns; local 3052 struct mlx5_flow_namespace *ns; local 3263 struct mlx5_flow_namespace *ns; local 3596 struct mlx5_flow_namespace *ns; local 3738 mlx5_flow_namespace_set_peer(struct mlx5_flow_root_namespace *ns, struct mlx5_flow_root_namespace *peer_ns, u16 peer_vhca_id) argument 3755 mlx5_flow_namespace_set_mode(struct mlx5_flow_namespace *ns, enum mlx5_flow_steering_mode mode) argument [all...] |
/linux-master/ipc/ |
H A D | util.c | 331 * @ns: ipc namespace 339 static int ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, argument 345 err = ops->getnew(ns, params); 352 * @ns: ipc namespace 365 static int ipc_check_perms(struct ipc_namespace *ns, argument 372 if (ipcperms(ns, ipcp, params->flg)) 385 * @ns: ipc namespace 397 static int ipcget_public(struct ipc_namespace *ns, struct ipc_ids *ids, argument 415 err = ops->getnew(ns, params); 430 err = ipc_check_perms(ns, ipc 553 ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag) argument 673 ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params) argument 722 ipcctl_obtain_check(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm) argument 774 struct ipc_namespace *ns; member in struct:ipc_proc_iter [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | helper.c | 9 esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size) argument 19 acl_supported = (ns == MLX5_FLOW_NAMESPACE_ESW_INGRESS) ? 28 ns == MLX5_FLOW_NAMESPACE_ESW_INGRESS ? "ingress" : "egress"); 30 root_ns = mlx5_get_flow_vport_acl_namespace(dev, ns, vport->index); 44 ns == MLX5_FLOW_NAMESPACE_ESW_INGRESS ? "ingress" : "egress", err);
|
/linux-master/drivers/ptp/ |
H A D | ptp_mock.c | 19 /* Timestamps from ktime_get_raw() have 1 ns resolution, so the scale factor 80 u64 ns = timespec64_to_ns(ts); local 83 timecounter_init(&phc->tc, &phc->cc, ns); 92 u64 ns; local 95 ns = timecounter_read(&phc->tc); 98 *ts = ns_to_timespec64(ns);
|
/linux-master/drivers/net/dsa/hirschmann/ |
H A D | hellcreek_hwtstamp.c | 220 u64 ns = 0; local 260 ns = hellcreek_ptp_hwtstamp_read(hellcreek, data_reg); 261 ns += hellcreek_ptp_gettime_seconds(hellcreek, ns); 268 shhwtstamps.hwtstamp = ns_to_ktime(ns); 310 u64 ns; local 315 ns = hellcreek_get_reserved_field(hdr); 320 ns += hellcreek_ptp_gettime_seconds(hellcreek, ns); 326 shwt->hwtstamp = ns_to_ktime(ns); [all...] |
/linux-master/drivers/net/ethernet/intel/igb/ |
H A D | igb_ptp.c | 14 /* The 82580 timesync updates the system timer every 8ns by 8ns, 167 u64 ns; local 177 ns = timecounter_cyc2time(&adapter->tc, systim); 180 hwtstamps->hwtstamp = ns_to_ktime(ns); 184 /* Upper 32 bits contain s, lower 32 bits contain ns. */ 268 u64 ns; local 277 ns = timecounter_cyc2time(&igb->tc, ((u64)hi << 32) | lo); 281 *ts = ns_to_timespec64(ns); 295 u64 ns; local 342 u64 ns; local 501 s64 ns; local 651 s64 ns; local 851 u64 ns; local [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | bpf_offload.py | 146 def tool(name, args, flags, JSON=True, ns="", fail=True, include_stderr=False): 151 if ns: 152 ns = "ip netns exec %s " % (ns) 153 elif ns is None: 154 ns = "" 157 ret, stdout, stderr = cmd(ns + name + " " + params + args, 160 ret, stdout = cmd(ns + name + " " + params + args, 173 def bpftool(args, JSON=True, ns="", fail=True, include_stderr=False): 174 return tool("bpftool", args, {"json":"-p"}, JSON=JSON, ns 738 ns = mknetns() variable 1118 ns = mknetns() variable [all...] |
H A D | l2tp.sh | 48 local ns 53 ns="$1" 61 out=$(eval ip netns exec ${ns} ${cmd} 2>&1) 77 local ns=$1 85 ip -netns ${ns} addr add dev lo ${addr} 88 ip -netns ${ns} -6 addr add dev lo ${addr6} 91 ip -netns ${ns} ro add unreachable default metric 8192 92 ip -netns ${ns} -6 ro add unreachable default metric 8192 94 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1 95 ip netns exec ${ns} sysct [all...] |
H A D | route_localnet.sh | 6 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 33 local -r ns="$(ip netns list|grep $PEER_NS)" 34 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
|
H A D | udpgro_bench.sh | 8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)" 14 local -r ns="$(ip netns list|grep $PEER_NS)" 17 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xfrm_info.c | 137 static int setup_xfrm_tunnel_ns(const char *ns, const char *ipv4_local, argument 142 ESP_DUMMY_PARAMS "if_id %d", ns, ipv4_local, ipv4_remote, if_id); 146 ESP_DUMMY_PARAMS "if_id %d", ns, ipv4_remote, ipv4_local, if_id); 150 "if_id %d tmpl src %s dst %s proto esp mode tunnel if_id %d", ns, 155 "if_id %d tmpl src %s dst %s proto esp mode tunnel if_id %d", ns, 203 static int setup_xfrmi_external_dev(const char *ns) argument 229 nstoken = open_netns(ns);
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_hwtstamp.c | 46 /* 0.465ns accuracy */ 79 /* nanoseconds field is in decimal format with granularity of 1ns/bit */ 82 /* nanoseconds field is in binary format with granularity of ~0.466ns/bit */ 191 u64 ns, sec0, sec1; local 198 ns = readl_relaxed(ioaddr + PTP_STNSR); 204 *systime = ns + (sec1 * 1000000000ULL); 209 u64 ns; local 211 ns = readl(ptpaddr + PTP_ATNR); 212 ns += readl(ptpaddr + PTP_ATSR) * NSEC_PER_SEC; 214 *ptp_time = ns; [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_dtime.c | 142 __u8 inet_proto = 0, ns = 0; local 156 ns = SRC_NS; 158 ns = DST_NS; 167 ns = SRC_NS; 169 ns = DST_NS; 180 if (!ns || inet_proto != get_proto()) 203 if ((ns == SRC_NS && dport == dst_ns_port) || 204 (ns == DST_NS && sport == dst_ns_port)) 205 return (ns << 8 | inet_proto);
|
/linux-master/arch/powerpc/include/asm/vdso/ |
H A D | gettimeofday.h | 119 static __always_inline u64 vdso_shift_ns(u64 ns, unsigned long shift) argument 121 u32 hi = ns >> 32; 122 u32 lo = ns;
|
/linux-master/tools/testing/selftests/timers/ |
H A D | raw_skew.c | 51 struct timespec nsec_to_ts(long long ns) argument 55 ts.tv_sec = ns/NSEC_PER_SEC; 56 ts.tv_nsec = ns%NSEC_PER_SEC;
|
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_ptp.c | 37 * and denominator. For example, 2.5ns, the quotient is 2, 79 u64 ns; local 81 ns = readl(hdev->ptp->io_base + HCLGE_PTP_TX_TS_NSEC_REG) & 93 ns += (((u64)hi) << 32 | lo) * NSEC_PER_SEC; 94 hwts.hwtstamp = ns_to_ktime(ns); 108 u64 ns = nsec; local 122 ns += (((u64)sec_h) << HCLGE_PTP_SEC_H_OFFSET | sec) * NSEC_PER_SEC; 123 skb_hwtstamps(skb)->hwtstamp = ns_to_ktime(ns); 134 u64 ns; local 137 ns 183 s64 ns; local [all...] |
/linux-master/security/tomoyo/ |
H A D | common.c | 335 * @ns: Pointer to "struct tomoyo_policy_namespace". 339 void tomoyo_init_policy_namespace(struct tomoyo_policy_namespace *ns) argument 344 INIT_LIST_HEAD(&ns->acl_group[idx]); 346 INIT_LIST_HEAD(&ns->group_list[idx]); 348 INIT_LIST_HEAD(&ns->policy_list[idx]); 349 ns->profile_version = 20150505; 351 list_add_tail_rcu(&ns->namespace_list, &tomoyo_namespace_list); 366 container_of(head->r.ns, 477 * @ns: Pointer to "struct tomoyo_policy_namespace". 483 (struct tomoyo_policy_namespace *ns, cons 482 tomoyo_assign_profile(struct tomoyo_policy_namespace *ns, const unsigned int profile) argument 526 tomoyo_profile(const struct tomoyo_policy_namespace *ns, const u8 profile) argument 739 struct tomoyo_policy_namespace *ns = local 1118 tomoyo_write_domain2(struct tomoyo_policy_namespace *ns, struct list_head *list, char *data, const bool is_delete) argument 1167 struct tomoyo_policy_namespace *ns; local 1791 struct tomoyo_policy_namespace *ns = local 1850 struct tomoyo_policy_namespace *ns = local 1910 struct tomoyo_policy_namespace *ns = local 2534 struct list_head *ns; local 2774 struct tomoyo_policy_namespace *ns = domain->ns; local [all...] |