/linux-master/include/linux/mlx5/ |
H A D | fs.h | 214 mlx5_create_flow_table(struct mlx5_flow_namespace *ns, 218 mlx5_create_auto_grouped_flow_table(struct mlx5_flow_namespace *ns, 222 mlx5_create_vport_flow_table(struct mlx5_flow_namespace *ns, 225 struct mlx5_flow_namespace *ns,
|
/linux-master/include/linux/ |
H A D | ptrace.h | 179 struct pid_namespace *ns; local 182 ns = task_active_pid_ns(rcu_dereference(current->parent)); 183 if (ns) 184 message = pid_nr_ns(pid, ns);
|
/linux-master/net/netrom/ |
H A D | nr_in.c | 152 unsigned short nr, ns; local 233 ns = skbn->data[17]; 234 if (ns == nrom->vr) { 241 } else if (nr_in_rx_window(sk, ns)) {
|
/linux-master/tools/testing/selftests/drivers/net/lib/py/ |
H A D | env.py | 138 self._ns_peer = NetdevSimDev(ns=self._netns) 140 with open("/proc/self/ns/net") as nsfd0, \ 151 ip(f" addr add dev {self._ns_peer.nsims[0].ifname} {self.nsim_v4_pfx}2/24", ns=self._netns) 152 ip(f"-6 addr add dev {self._ns_peer.nsims[0].ifname} {self.nsim_v6_pfx}2/64 nodad", ns=self._netns) 153 ip(f" link set dev {self._ns_peer.nsims[0].ifname} up", ns=self._netns)
|
/linux-master/fs/ |
H A D | pidfs.c | 58 struct pid_namespace *ns; local 62 ns = proc_pid_ns(file_inode(m->file)->i_sb); 63 nr = pid_nr_ns(pid, ns); 74 * ns, i.e. the pid namespace associated with the procfs 78 for (i = ns->level + 1; i <= pid->level; i++)
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ptp.c | 313 * Read the timecounter and return the correct value in ns after converting 320 u64 ns; local 322 ns = t4_read_reg(adapter, T5_PORT_REG(0, MAC_PORT_PTP_SUM_LO_A)); 323 ns |= (u64)t4_read_reg(adapter, 327 *ts = ns_to_timespec64(ns); 345 u64 ns; local 356 ns = timespec64_to_ns(ts); 357 c.u.ts.tm = cpu_to_be64(ns);
|
/linux-master/net/bridge/ |
H A D | br_arp_nd_proxy.c | 251 __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) 284 sizeof(struct ipv6hdr)) - sizeof(*ns); 285 for (i = 0; i < ns_olen - 1; i += (ns->opt[i + 1] << 3)) { 286 if (!ns->opt[i + 1]) { 290 if (ns->opt[i] == ND_OPT_SOURCE_LL_ADDR) { 291 daddr = ns->opt + i + sizeof(struct nd_opt_hdr); 327 na->target = ns->target; 249 br_nd_send(struct net_bridge *br, struct net_bridge_port *p, struct sk_buff *request, struct neighbour *n, __be16 vlan_proto, u16 vlan_tci, struct nd_msg *ns) argument
|
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_stats.c | 211 struct rtnl_link_stats64 ns; local 227 ionic_get_stats64(lif->netdev, &ns); 228 stats->hw_tx_dropped = ns.tx_dropped; 229 stats->hw_rx_dropped = ns.rx_dropped; 230 stats->hw_rx_over_errors = ns.rx_over_errors; 231 stats->hw_rx_missed_errors = ns.rx_missed_errors; 232 stats->hw_tx_aborted_errors = ns.tx_aborted_errors;
|
H A D | ionic_phc.c | 386 u64 ns; local 392 ns = timespec64_to_ns(ts); 396 timecounter_init(&phc->tc, &phc->cc, ns); 415 u64 tick, ns; local 425 ns = timecounter_cyc2time(&phc->tc, tick); 429 *ts = ns_to_timespec64(ns); 470 u64 ns; local 476 ns = timecounter_cyc2time(&lif->phc->tc, tick); 479 return ns_to_ktime(ns);
|
/linux-master/include/net/ |
H A D | net_namespace.h | 92 struct ns_common ns; member in struct:net 206 struct ns_common *get_net_ns(struct ns_common *ns); 228 static inline struct ns_common *get_net_ns(struct ns_common *ns) argument 258 refcount_inc(&net->ns.count); 269 if (!refcount_inc_not_zero(&net->ns.count)) 277 if (refcount_dec_and_test(&net->ns.count)) 289 return refcount_read(&net->ns.count) != 0;
|
/linux-master/drivers/net/ethernet/freescale/ |
H A D | fec_ptp.c | 105 u64 ns; local 141 ns = timecounter_cyc2time(&fep->tc, tempval); 142 ts = ns_to_timespec64(ns); 151 * - ts.tv_nsec is close to be zero(For example 20ns); Since the timer 279 * cyclecounter structure used to construct a ns counter from the 303 * structures for use in generated a ns counter from the arbitrary 317 /* 1ns counter */ 332 /* reset the ns time counter */ 439 * read the timecounter and return the correct value on ns, 446 u64 ns; local 479 u64 ns; local [all...] |
/linux-master/net/mctp/ |
H A D | neigh.c | 302 struct netns_mctp *ns = &net->mctp; local 304 INIT_LIST_HEAD(&ns->neighbours); 305 mutex_init(&ns->neigh_lock); 311 struct netns_mctp *ns = &net->mctp; local 314 list_for_each_entry(neigh, &ns->neighbours, list)
|
/linux-master/fs/sysfs/ |
H A D | file.c | 269 kgid_t gid, const void *ns) 308 PAGE_SIZE, ops, (void *)attr, ns, key); 319 kuid_t uid, kgid_t gid, const void *ns) 343 battr->size, ops, (void *)attr, ns, key); 353 * sysfs_create_file_ns - create an attribute file for an object with custom ns 356 * @ns: namespace the new file should belong to 359 const void *ns) 368 return sysfs_add_file_mode_ns(kobj->sd, attr, attr->mode, uid, gid, ns); 494 * sysfs_remove_file_ns - remove an object attribute with a custom ns tag 497 * @ns 267 sysfs_add_file_mode_ns(struct kernfs_node *parent, const struct attribute *attr, umode_t mode, kuid_t uid, kgid_t gid, const void *ns) argument 317 sysfs_add_bin_file_mode_ns(struct kernfs_node *parent, const struct bin_attribute *battr, umode_t mode, kuid_t uid, kgid_t gid, const void *ns) argument 358 sysfs_create_file_ns(struct kobject *kobj, const struct attribute *attr, const void *ns) argument 501 sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, const void *ns) argument [all...] |
/linux-master/drivers/media/i2c/cx25840/ |
H A D | cx25840-ir.c | 125 * (0xffff + 1) * 1000 / 108/2 MHz = 1,213,629.629... ns 161 * 0xffff * 1000 / 108/2 MHz = 1,213,611.11... ns 173 static inline u16 ns_to_lpf_count(unsigned int ns) argument 176 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); 181 /* Duration of the Low Pass Filter rejection window in ns */ 200 * not readable, hence the << 2. This function returns ns. 216 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ 224 static u16 ns_to_pulse_width_count(u32 ns, u16 divider) 234 n = ((u64) ns) * CX25840_IR_REFCLK_FREQ / 1000000; /* millicycles */ 272 static u64 ns_to_pulse_clocks(u32 ns) argument 409 txclk_tx_s_max_pulse_width(struct i2c_client *c, u32 ns, u16 *divider) argument 422 rxclk_rx_s_max_pulse_width(struct i2c_client *c, u32 ns, u16 *divider) argument [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_ptp.c | 11 /* Represents 1ppm adjustment in 2^59 format with 6.037735849ns as reference 16 /* Represents 1ppb adjustment in 2^29 format with 6.037735849ns as reference 547 s64 ns; local 575 ns = lan_rd(lan966x, PTP_TOD_NSEC(pin)); 576 ns &= PTP_TOD_NSEC_TOD_NSEC; 580 if ((ns & 0xFFFFFFF0) == 0x3FFFFFF0) { 582 ns &= 0xf; 583 ns += 999999984; 585 time = ktime_set(s, ns); 688 s64 ns; local [all...] |
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ptp.c | 18 * period of 6.4ns. In order to convert the scale counter into 20 * used. The SYSTIME registers need to be converted to ns values by use 32 * For the X540, MaxWidth is 31 bits, and the base period is 6.4 ns 33 * For the 82599, MaxWidth is 24 bits, and the base period is 6.4 ns 37 * At 1Gb link, the period is multiplied by 10. (64ns) 38 * At 100Mb link, the period is multiplied by 100. (640ns) 91 * clock cycle, the X550 will add 12.5 ns + TIMINCA which can result in a range 111 * provided. This register represents a + or minus nearly 0.5 ns adjustment to 112 * the base frequency. It is measured in 2^-32 ns units, with the high bit being 128 * For the X550, the Max adjustment is +/- 0.5 ns, an 165 u64 ns = 0, clock_edge = 0, clock_period; local 244 u64 ns = 0, clock_edge = 0; local 402 u64 ns; local 554 u64 ns, stamp; local 605 u64 ns = timespec64_to_ns(ts); local [all...] |
/linux-master/include/linux/mtd/ |
H A D | rawnand.h | 776 #define NAND_OP_CMD(id, ns) \ 780 .delay_ns = ns, \ 783 #define NAND_OP_ADDR(ncycles, cycles, ns) \ 790 .delay_ns = ns, \ 793 #define NAND_OP_DATA_IN(l, b, ns) \ 801 .delay_ns = ns, \ 804 #define NAND_OP_DATA_OUT(l, b, ns) \ 812 .delay_ns = ns, \ 815 #define NAND_OP_8BIT_DATA_IN(l, b, ns) \ 823 .delay_ns = ns, \ [all...] |
/linux-master/drivers/ptp/ |
H A D | ptp_ines.c | 259 u64 ns = 0; local 274 ns = ts->sec * 1000000000ULL + ts->nsec; 282 return ns; 291 u64 ns = 0; local 322 ns = ts.sec * 1000000000ULL + ts.nsec; 328 return ns; 478 u64 ns; local 483 ns = ines_find_rxts(port, skb, type); 484 if (!ns) 488 ssh->hwtstamp = ns_to_ktime(ns); 648 u64 ns; local [all...] |
/linux-master/security/tomoyo/ |
H A D | gc.c | 528 struct tomoyo_policy_namespace *ns; local 543 list_for_each_entry(ns, &tomoyo_namespace_list, namespace_list) { 545 tomoyo_collect_member(id, &ns->policy_list[id]); 547 tomoyo_collect_acl(&ns->acl_group[i]); 561 list_for_each_entry(ns, &tomoyo_namespace_list, namespace_list) { 563 struct list_head *list = &ns->group_list[i];
|
/linux-master/net/x25/ |
H A D | x25_in.c | 208 static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m) argument 261 if ((ns != x25->vr) || !x25_validate_nr(sk, nr)) { 274 if (ns == x25->vr) { 418 int queued = 0, frametype, ns, nr, q, d, m; local 423 frametype = x25_decode(sk, skb, &ns, &nr, &q, &d, &m); 433 queued = x25_state3_machine(sk, skb, frametype, ns, nr, q, d, m);
|
/linux-master/arch/powerpc/kvm/ |
H A D | trace_hv.h | 455 TP_PROTO(int do_sleep, __u64 ns), 457 TP_ARGS(do_sleep, ns), 460 __field(__u64, ns) 466 __entry->ns = ns; 471 TP_printk("%s time %llu ns, tgid=%d", 473 __entry->ns, __entry->tgid)
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | enh_desc.c | 382 u64 ns; local 386 ns = le32_to_cpu(p->des6); 388 ns += le32_to_cpu(p->des7) * 1000000000ULL; 391 ns = le32_to_cpu(p->des2); 392 ns += le32_to_cpu(p->des3) * 1000000000ULL; 395 *ts = ns;
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | ptp.c | 22 * Raw timestamps are in units of 10-ns clock periods. 34 * Raw timestamps are in units of 8-ns clock periods. 247 u64 ns; local 250 ns = timecounter_read(&chip->tstamp_tc); 253 *ts = ns_to_timespec64(ns); 262 u64 ns; local 264 ns = timespec64_to_ns(ts); 267 timecounter_init(&chip->tstamp_tc, &chip->tstamp_cc, ns);
|
/linux-master/include/trace/events/ |
H A D | kvm.h | 44 TP_PROTO(__u64 ns, bool waited, bool valid), 45 TP_ARGS(ns, waited, valid), 48 __field( __u64, ns ) 54 __entry->ns = ns; 59 TP_printk("%s time %lld ns, polling %s", 61 __entry->ns,
|
/linux-master/fs/proc/ |
H A D | base.c | 387 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, argument 429 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, argument 477 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, argument 551 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, argument 597 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, argument 641 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, argument 769 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); local 778 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task); 1441 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); local 1447 proc_sched_show_task(p, ns, 2443 struct pid_namespace *ns; member in struct:timers_private 3030 proc_tid_io_accounting(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 3036 proc_tgid_io_accounting(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 3047 struct user_namespace *ns = NULL; local 3079 struct user_namespace *ns = seq->private; local 3125 struct user_namespace *ns = NULL; local 3160 struct user_namespace *ns = seq->private; local 3175 proc_pid_personality(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 3187 proc_pid_patch_state(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 3196 proc_pid_ksm_merging_pages(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 3209 proc_pid_ksm_stat(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 3228 proc_stack_depth(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) argument 3448 struct pid_namespace *ns; local 3486 next_tgid(struct pid_namespace *ns, struct tgid_iter iter) argument 3516 struct pid_namespace *ns = proc_pid_ns(file_inode(file)->i_sb); local 3754 struct pid_namespace *ns; local 3797 first_tid(struct pid *pid, int tid, loff_t f_pos, struct pid_namespace *ns) argument 3864 struct pid_namespace *ns; local [all...] |