/linux-master/arch/sparc/kernel/ |
H A D | of_device_32.c | 51 int na, int ns, int pna) 61 na - 1, ns)) 123 int na, int ns, int pna) 125 return of_bus_default_map(addr, range, na, ns, pna); 192 int na, int ns, int pna) 214 rone = na + pna + ns; 216 if (!bus->map(addr, ranges, na, ns, pna)) 251 int na, ns; local 260 bus->count_cells(op->dev.of_node, &na, &ns); 270 num_reg /= na + ns; 50 of_bus_pci_map(u32 *addr, const u32 *range, int na, int ns, int pna) argument 122 of_bus_ambapp_map(u32 *addr, const u32 *range, int na, int ns, int pna) argument 188 build_one_resource(struct device_node *parent, struct of_bus *bus, struct of_bus *pbus, u32 *addr, int na, int ns, int pna) argument [all...] |
H A D | of_device_common.c | 98 const u32 *size, int na, int ns) 106 b += of_read_addr(size, ns); 113 int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna) argument 118 if (ns > 2) { 119 printk("of_device: Cannot handle size cells (%d) > 2.", ns); 123 if (of_out_of_range(addr, range, range + na + pna, na, ns)) 97 of_out_of_range(const u32 *addr, const u32 *base, const u32 *size, int na, int ns) argument
|
/linux-master/drivers/nvme/target/ |
H A D | nvmet.h | 95 static inline struct device *nvmet_ns_dev(struct nvmet_ns *ns) argument 97 return ns->bdev ? disk_to_dev(ns->bdev->bd_disk) : NULL; 367 struct nvmet_ns *ns; member in struct:nvmet_req 508 void nvmet_put_namespace(struct nvmet_ns *ns); 509 int nvmet_ns_enable(struct nvmet_ns *ns); 510 void nvmet_ns_disable(struct nvmet_ns *ns); 512 void nvmet_ns_free(struct nvmet_ns *ns); 586 int nvmet_bdev_ns_enable(struct nvmet_ns *ns); 587 int nvmet_file_ns_enable(struct nvmet_ns *ns); 682 nvmet_ns_has_pi(struct nvmet_ns *ns) argument 689 nvmet_sect_to_lba(struct nvmet_ns *ns, sector_t sect) argument 694 nvmet_lba_to_sect(struct nvmet_ns *ns, __le64 lba) argument [all...] |
/linux-master/drivers/ptp/ |
H A D | ptp_pch.c | 148 u64 ns; local 150 ns = ioread64_lo_hi(®s->systime_lo); 152 return ns << TICKS_NS_SHIFT; 155 static void pch_systime_write(struct pch_ts_regs __iomem *regs, u64 ns) argument 157 iowrite64_lo_hi(ns >> TICKS_NS_SHIFT, ®s->systime_lo); 222 u64 ns; local 224 ns = ioread64_lo_hi(&chip->regs->rx_snap_lo); 226 return ns << TICKS_NS_SHIFT; 233 u64 ns; local 235 ns 370 u64 ns; local 386 u64 ns; local [all...] |
H A D | ptp_qoriq.c | 30 u64 ns; local 35 ns = ((u64) hi) << 32; 36 ns |= lo; 37 return ns; 41 static void tmr_cnt_write(struct ptp_qoriq *ptp_qoriq, u64 ns) argument 44 u32 hi = ns >> 32; 45 u32 lo = ns & 0xffffffff; 55 u64 ns; local 59 ns = ((u64) hi) << 32; 60 ns | 78 u64 ns; local 263 u64 ns; local 282 u64 ns; local [all...] |
H A D | ptp_fc3.h | 38 s64 ns; member in struct:idtfc3
|
/linux-master/lib/vdso/ |
H A D | gettimeofday.c | 29 static __always_inline u64 vdso_shift_ns(u64 ns, u32 shift) argument 31 return ns >> shift; 78 u64 cycles, ns; local 99 ns = vdso_calc_ns(vd, cycles, vdso_ts->nsec); 105 ns += offs->nsec; 111 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); 112 ts->tv_nsec = ns; 134 u64 cycles, sec, ns; local 167 ns 378 u64 ns; local [all...] |
/linux-master/tools/testing/selftests/rcutorture/bin/ |
H A D | config2csv.sh | 51 ns = asorti(s, ss); 53 for (j = 1; j <= ns; j++) 58 for (j = 1; j <= ns; j++) {
|
/linux-master/drivers/video/backlight/ |
H A D | ktd253-backlight.c | 26 #define KTD253_T_LOW_NS (200 + 10) /* Additional 10ns as safety factor */ 27 #define KTD253_T_HIGH_NS (200 + 10) /* Additional 10ns as safety factor */ 60 u64 ns; local 62 ns = ktime_get_ns(); 66 ns = ktime_get_ns() - ns; 67 if (ns >= KTD253_T_OFF_CRIT_NS) { 68 dev_err(ktd253->dev, "PCM on backlight took too long (%llu ns)\n", ns);
|
/linux-master/include/linux/ |
H A D | uidgid.h | 123 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) argument 125 return from_kuid(ns, uid) != (uid_t) -1; 128 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) argument 130 return from_kgid(ns, gid) != (gid_t) -1; 174 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) argument 179 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) argument
|
H A D | time64.h | 153 * @ns: unsigned nanoseconds value to be added 158 static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns) argument 160 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); 161 a->tv_nsec = ns;
|
H A D | kobject_ns.h | 57 void kobj_ns_drop(enum kobj_ns_type type, void *ns);
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | dvo_ns2501.c | 395 struct ns2501_priv *ns = dvo->dev_priv; local 423 if (!ns->quiet) { 440 struct ns2501_priv *ns = dvo->dev_priv; local 458 if (!ns->quiet) { 476 struct ns2501_priv *ns; local 479 ns = kzalloc(sizeof(*ns), GFP_KERNEL); 480 if (ns == NULL) 484 dvo->dev_priv = ns; 485 ns 554 struct ns2501_priv *ns = dvo->dev_priv; local 658 struct ns2501_priv *ns = dvo->dev_priv; local 694 struct ns2501_priv *ns = dvo->dev_priv; local [all...] |
/linux-master/fs/proc/ |
H A D | thread_self.c | 15 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); local 16 pid_t tgid = task_tgid_nr_ns(current, ns); 17 pid_t pid = task_pid_nr_ns(current, ns);
|
/linux-master/fs/ |
H A D | proc_namespace.c | 25 struct mnt_namespace *ns = p->ns; local 29 poll_wait(file, &p->ns->poll, wait); 31 event = READ_ONCE(ns->event); 243 struct mnt_namespace *ns = NULL; local 259 ns = nsp->mnt_ns; 260 get_mnt_ns(ns); 276 m->poll_event = ns->event; 279 p->ns = ns; [all...] |
/linux-master/tools/perf/util/ |
H A D | tsc.h | 25 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc);
|
/linux-master/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_ptp.c | 83 u64 ns; local 89 ns = timecounter_read(&ptp->tc); 92 DP_VERBOSE(edev, QED_MSG_DEBUG, "PTP gettime called, ns = %llu\n", ns); 94 *ts = ns_to_timespec64(ns); 104 u64 ns; local 109 ns = timespec64_to_ns(ts); 111 DP_VERBOSE(edev, QED_MSG_DEBUG, "PTP settime called, ns = %llu\n", ns); 115 timecounter_init(&ptp->tc, &ptp->cc, ns); 142 u64 timestamp, ns; local 529 u64 timestamp, ns; local [all...] |
/linux-master/kernel/time/ |
H A D | sched_clock.c | 4 * counters to full 64-bit ns values. 103 unsigned long long ns; local 105 ns = sched_clock_noinstr(); 107 return ns; 141 u64 ns; local 147 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); 149 rd.epoch_ns = ns; 166 u64 res, wrap, new_mask, new_epoch, cyc, ns; local 178 /* Calculate the mult/shift to convert counter ticks to ns. */ 193 ns [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | ipsec_fs_roce.h | 17 struct mlx5_flow_namespace *ns,
|
/linux-master/security/apparmor/include/ |
H A D | policy.h | 198 * @ns: namespace the profile is in 228 struct aa_ns *ns; member in struct:aa_profile 253 #define profiles_ns(P) ((P)->ns) 265 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, 267 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name); 391 struct aa_label *label, struct aa_ns *ns); 393 struct aa_label *label, struct aa_ns *ns); 395 struct aa_label *label, struct aa_ns *ns, 397 bool aa_current_policy_view_capable(struct aa_ns *ns); 398 bool aa_current_policy_admin_capable(struct aa_ns *ns); [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | fib_nexthop_multiprefix.sh | 74 local ns=${1} 76 ip netns exec ${ns} sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1 77 case ${ns} in 79 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0 82 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1 83 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1 90 local ns 101 for ns in ${h[0]} ${r[1]} ${h[1]} ${h[2]} ${h[3]} 103 create_ns ${ns}
|
/linux-master/tools/perf/scripts/python/ |
H A D | compaction-times.py | 48 def ns(sec, nsec): function 51 def time(ns): 52 return "%dns" % ns if opt_ns else "%dus" % (round(ns, -3) / 1000) 70 def __init__(self, ns): 71 self.ns = ns 77 self.ns += rhs.ns 85 s = "%s " % time(self.ns) [all...] |
/linux-master/drivers/net/ethernet/intel/e1000e/ |
H A D | ptp.c | 89 * clock values in ns. 138 * clock values in ns. 158 * Read the timecounter and return the correct value in ns after converting 168 u64 cycles, ns; local 174 ns = timecounter_cyc2time(&adapter->tc, cycles); 178 *ts = ns_to_timespec64(ns); 197 u64 ns; local 199 ns = timespec64_to_ns(ts); 203 timecounter_init(&adapter->tc, &adapter->cc, ns); 231 u64 ns; local [all...] |
/linux-master/fs/kernfs/ |
H A D | dir.c | 306 * kernfs_name_hash - calculate hash of @ns + @name 308 * @ns: Namespace tag to hash 310 * Return: 31-bit hash of ns + name (so it fits in an off_t) 312 static unsigned int kernfs_name_hash(const char *name, const void *ns) argument 314 unsigned long hash = init_name_hash(ns); 329 const void *ns, const struct kernfs_node *kn) 335 if (ns < kn->ns) 337 if (ns > kn->ns) 328 kernfs_name_compare(unsigned int hash, const char *name, const void *ns, const struct kernfs_node *kn) argument 837 kernfs_find_ns(struct kernfs_node *parent, const unsigned char *name, const void *ns) argument 870 kernfs_walk_ns(struct kernfs_node *parent, const unsigned char *path, const void *ns) argument 912 kernfs_find_and_get_ns(struct kernfs_node *parent, const char *name, const void *ns) argument 938 kernfs_walk_and_get_ns(struct kernfs_node *parent, const char *path, const void *ns) argument 1052 kernfs_create_dir_ns(struct kernfs_node *parent, const char *name, umode_t mode, kuid_t uid, kgid_t gid, void *priv, const void *ns) argument 1197 const void *ns = NULL; local 1676 kernfs_remove_by_name_ns(struct kernfs_node *parent, const char *name, const void *ns) argument 1792 kernfs_dir_pos(const void *ns, struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) argument 1826 kernfs_dir_next_pos(const void *ns, struct kernfs_node *parent, ino_t ino, struct kernfs_node *pos) argument 1848 const void *ns = NULL; local [all...] |
/linux-master/net/nfc/hci/ |
H A D | llc_shdlc.c | 49 int ns; /* next seq num for send */ member in struct:llc_shdlc 222 struct sk_buff *skb, int ns, int nr) 224 int x_ns = ns; 227 pr_debug("recvd I-frame %d, remote waiting frame %d\n", ns, nr); 251 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { 265 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { 275 pr_debug("ns reset to %d\n", shdlc->dnr); 281 shdlc->ns = shdlc->dnr; 290 if (llc_shdlc_x_lteq_y_lt_z(shdlc->dnr, y_nr, shdlc->ns)) { 348 shdlc->ns 221 llc_shdlc_rcv_i_frame(struct llc_shdlc *shdlc, struct sk_buff *skb, int ns, int nr) argument 458 int ns; local 499 llc_shdlc_w_used(int ns, int dnr) argument [all...] |