Searched refs:ns (Results 51 - 75 of 676) sorted by relevance

1234567891011>>

/linux-master/drivers/clk/qcom/
H A Dclk-rcg.c18 static u32 ns_to_src(struct src_sel *s, u32 ns) argument
20 ns >>= s->src_sel_shift;
21 ns &= SRC_SEL_MASK;
22 return ns;
25 static u32 src_to_ns(struct src_sel *s, u8 src, u32 ns) argument
31 ns &= ~mask;
33 ns |= src << s->src_sel_shift;
34 return ns;
41 u32 ns; local
44 ret = regmap_read(rcg->clkr.regmap, rcg->ns_reg, &ns);
68 u32 ns, reg; local
97 u32 ns; local
113 ns_to_pre_div(struct pre_div *p, u32 ns) argument
120 pre_div_to_ns(struct pre_div *p, u8 pre_div, u32 ns) argument
149 ns_m_to_n(struct mn *mn, u32 ns, u32 m) argument
163 mn_to_ns(struct mn *mn, u32 m, u32 n, u32 ns) argument
200 u32 ns, md, reg; local
294 u32 ns, md, reg; local
345 u32 pre_div, m = 0, n = 0, ns, md, mode = 0; local
370 u32 m, n, pre_div, ns, md, mode, reg; local
476 u32 ns, md, ctl; local
567 u32 ns, src; local
638 u32 ns, src; local
711 u32 ns; local
[all...]
/linux-master/kernel/
H A Dcapability.c270 * has_ns_capability - Does a task have a capability in a specific user ns
272 * @ns: target user namespace
281 struct user_namespace *ns, int cap)
286 ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NONE);
310 * in a specific user ns.
312 * @ns: target user namespace
322 struct user_namespace *ns, int cap)
327 ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NOAUDIT);
335 * initial user ns
351 static bool ns_capable_common(struct user_namespace *ns, argument
280 has_ns_capability(struct task_struct *t, struct user_namespace *ns, int cap) argument
321 has_ns_capability_noaudit(struct task_struct *t, struct user_namespace *ns, int cap) argument
381 ns_capable(struct user_namespace *ns, int cap) argument
399 ns_capable_noaudit(struct user_namespace *ns, int cap) argument
418 ns_capable_setid(struct user_namespace *ns, int cap) argument
453 file_ns_capable(const struct file *file, struct user_namespace *ns, int cap) argument
475 privileged_wrt_inode_uidgid(struct user_namespace *ns, struct mnt_idmap *idmap, const struct inode *inode) argument
496 struct user_namespace *ns = current_user_ns(); local
511 ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) argument
[all...]
H A Dpid.c59 .ns = &init_pid_ns,
80 .ns.count = REFCOUNT_INIT(2),
86 .ns.inum = PROC_PID_INIT_INO,
88 .ns.ops = &pidns_operations,
114 struct pid_namespace *ns; local
119 ns = pid->numbers[pid->level].ns;
121 kmem_cache_free(ns->pid_cachep, pid);
122 put_pid_ns(ns);
142 struct pid_namespace *ns local
166 alloc_pid(struct pid_namespace *ns, pid_t *set_tid, size_t set_tid_size) argument
311 disable_pid_allocation(struct pid_namespace *ns) argument
318 find_pid_ns(int nr, struct pid_namespace *ns) argument
426 find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) argument
485 pid_nr_ns(struct pid *pid, struct pid_namespace *ns) argument
505 __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns) argument
531 find_ge_pid(int nr, struct pid_namespace *ns) argument
[all...]
H A Dpid_sysctl.h11 struct pid_namespace *ns = task_active_pid_ns(current); local
15 if (write && !ns_capable(ns->user_ns, CAP_SYS_ADMIN))
21 parent_scope = pidns_memfd_noexec_scope(ns->parent);
22 /* Equivalent to pidns_memfd_noexec_scope(ns). */
23 scope = max(READ_ONCE(ns->memfd_noexec_scope), parent_scope);
30 WRITE_ONCE(ns->memfd_noexec_scope, scope);
H A Dnsproxy.c190 void free_nsproxy(struct nsproxy *ns) argument
192 if (ns->mnt_ns)
193 put_mnt_ns(ns->mnt_ns);
194 if (ns->uts_ns)
195 put_uts_ns(ns->uts_ns);
196 if (ns->ipc_ns)
197 put_ipc_ns(ns->ipc_ns);
198 if (ns->pid_ns_for_children)
199 put_pid_ns(ns->pid_ns_for_children);
200 if (ns
241 struct nsproxy *ns; local
363 validate_ns(struct nsset *nsset, struct ns_common *ns) argument
549 struct ns_common *ns = NULL; local
[all...]
/linux-master/arch/sparc/vdso/
H A Dvclock_gettime.c150 u64 ns; local
155 ns = vvar->wall_time_snsec;
156 ns += vgetsns(vvar);
157 ns >>= vvar->clock.shift;
160 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns);
161 ts->tv_nsec = ns;
170 u64 ns; local
175 ns = vvar->wall_time_snsec;
176 ns
190 u64 ns; local
210 u64 ns; local
[all...]
/linux-master/ipc/
H A Dutil.h59 extern void mq_clear_sbinfo(struct ipc_namespace *ns);
61 static inline void mq_clear_sbinfo(struct ipc_namespace *ns) { } argument
65 void sem_init_ns(struct ipc_namespace *ns);
66 int msg_init_ns(struct ipc_namespace *ns);
67 void shm_init_ns(struct ipc_namespace *ns);
69 void sem_exit_ns(struct ipc_namespace *ns);
70 void msg_exit_ns(struct ipc_namespace *ns);
71 void shm_exit_ns(struct ipc_namespace *ns);
73 static inline void sem_init_ns(struct ipc_namespace *ns) { } argument
74 static inline int msg_init_ns(struct ipc_namespace *ns) { retur argument
75 shm_init_ns(struct ipc_namespace *ns) argument
77 sem_exit_ns(struct ipc_namespace *ns) argument
78 msg_exit_ns(struct ipc_namespace *ns) argument
79 shm_exit_ns(struct ipc_namespace *ns) argument
248 sem_check_semmni(struct ipc_namespace *ns) argument
[all...]
H A Dshm.c77 struct ipc_namespace *ns; member in struct:shmid_kernel
86 struct ipc_namespace *ns; member in struct:shm_file_data
96 #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS])
104 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
109 void shm_init_ns(struct ipc_namespace *ns) argument
111 ns->shm_ctlmax = SHMMAX;
112 ns->shm_ctlall = SHMALL;
113 ns->shm_ctlmni = SHMMNI;
114 ns
123 do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) argument
140 shm_exit_ns(struct ipc_namespace *ns) argument
167 shm_obtain_object(struct ipc_namespace *ns, int id) argument
177 shm_obtain_object_check(struct ipc_namespace *ns, int id) argument
191 shm_lock(struct ipc_namespace *ns, int id) argument
329 shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) argument
372 struct ipc_namespace *ns = sfd->ns; local
411 struct ipc_namespace *ns = data; local
431 shm_destroy_orphaned(struct ipc_namespace *ns) argument
444 struct ipc_namespace *ns; local
697 newseg(struct ipc_namespace *ns, struct ipc_params *params) argument
825 struct ipc_namespace *ns; local
957 shm_get_stat(struct ipc_namespace *ns, unsigned long *rss, unsigned long *swp) argument
988 shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, struct shmid64_ds *shmid64) argument
1038 shmctl_ipc_info(struct ipc_namespace *ns, struct shminfo64 *shminfo) argument
1057 shmctl_shm_info(struct ipc_namespace *ns, struct shm_info *shm_info) argument
1077 shmctl_stat(struct ipc_namespace *ns, int shmid, int cmd, struct shmid64_ds *tbuf) argument
1161 shmctl_do_lock(struct ipc_namespace *ns, int shmid, int cmd) argument
1240 struct ipc_namespace *ns; local
1434 struct ipc_namespace *ns; local
1525 struct ipc_namespace *ns; local
[all...]
/linux-master/tools/testing/selftests/net/
H A Dudpgro_fwd.sh7 readonly BASE="ns-$(mktemp -u XXXXXX)"
24 local ns
28 for ns in $NS_SRC $NS_DST; do
29 ip netns del $ns 2>/dev/null
37 local ns
39 for ns in $NS_SRC $NS_DST; do
40 ip netns add $ns
41 ip -n $ns link set dev lo up
44 ip netns exec $ns sysctl -qw net.ipv6.conf.default.router_solicitations=0
45 ip netns exec $ns sysct
[all...]
/linux-master/drivers/net/netdevsim/
H A Dipsec.c16 struct netdevsim *ns = filp->private_data; local
17 struct nsim_ipsec *ipsec = &ns->ipsec;
133 struct netdevsim *ns; local
139 ns = netdev_priv(dev);
140 ipsec = &ns->ipsec;
202 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); local
203 struct nsim_ipsec *ipsec = &ns->ipsec;
208 netdev_err(ns->netdev, "Invalid SA for delete sa_idx=%d\n",
219 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); local
220 struct nsim_ipsec *ipsec = &ns
233 nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb) argument
280 nsim_ipsec_init(struct netdevsim *ns) argument
296 nsim_ipsec_teardown(struct netdevsim *ns) argument
[all...]
/linux-master/tools/testing/selftests/net/lib/py/
H A Dutils.py11 def __init__(self, comm, shell=True, fail=True, ns=None, background=False, host=None, timeout=5):
12 if ns:
13 comm = f'ip netns exec {ns} ' + comm
49 def __init__(self, comm, shell=True, fail=None, ns=None, host=None,
52 shell=shell, fail=fail, ns=ns, host=host)
63 def tool(name, args, json=None, ns=None, host=None):
68 cmd_obj = cmd(cmd_str, ns=ns, host=host)
74 def ip(args, json=None, ns
[all...]
/linux-master/arch/powerpc/boot/
H A Daddnote.c119 long nnote, nnote2, ns; local
174 ns = ph + 2 * ps;
177 PUT_32(ph + PH_OFFSET, ns);
179 PUT_64(ph + PH_OFFSET, ns);
188 PUT_32(ns, strlen(arch) + 1);
189 PUT_32(ns + 4, N_DESCR * 4);
190 PUT_32(ns + 8, 0x1275);
191 strcpy((char *) &buf[ns + 12], arch);
192 ns += 12 + strlen(arch) + 1;
193 for (i = 0; i < N_DESCR; ++i, ns
[all...]
H A Dsimpleboot.c28 const u32 *na, *ns, *reg, *timebase; local
43 ns = fdt_getprop(_dtb_start, node, "#size-cells", &size);
44 if (!ns || (size != 4))
53 if (size < (*na+*ns) * sizeof(u32))
63 for (i = 0; i < *ns; i++)
/linux-master/include/linux/
H A Dpid.h45 * find_pid_ns() using the int nr and struct pid_namespace *ns.
52 struct pid_namespace *ns; member in struct:upid
121 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
130 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
133 extern void disable_pid_allocation(struct pid_namespace *ns);
143 * the resulting NULL pid-ns.
147 struct pid_namespace *ns = NULL; local
149 ns = pid->numbers[pid->level].ns;
150 return ns;
235 task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) argument
266 task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) argument
277 task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) argument
287 task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) argument
297 task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) argument
[all...]
H A Dtimecounter.h75 u64 ns = (u64) cycles; local
77 ns = (ns * cc->mult) + *frac;
78 *frac = ns & mask;
79 return ns >> cc->shift;
/linux-master/drivers/nvme/host/
H A Dioctl.c16 static bool nvme_cmd_allowed(struct nvme_ns *ns, struct nvme_command *c, argument
42 if (!ns) {
61 effects = nvme_command_effects(ns->ctrl, ns, c->common.opcode);
126 struct nvme_ns *ns = q->queuedata; local
127 struct block_device *bdev = ns ? ns->disk->part0 : NULL;
178 struct nvme_ns *ns = q->queuedata; local
200 effects = nvme_passthru_start(ctrl, ns, cmd->common.opcode);
209 nvme_passthru_end(ctrl, ns, effect
214 nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio) argument
276 nvme_validate_passthru_nsid(struct nvme_ctrl *ctrl, struct nvme_ns *ns, __u32 nsid) argument
290 nvme_user_cmd(struct nvme_ctrl *ctrl, struct nvme_ns *ns, struct nvme_passthru_cmd __user *ucmd, unsigned int flags, bool open_for_write) argument
338 nvme_user_cmd64(struct nvme_ctrl *ctrl, struct nvme_ns *ns, struct nvme_passthru_cmd64 __user *ucmd, unsigned int flags, bool open_for_write) argument
451 nvme_uring_cmd_io(struct nvme_ctrl *ctrl, struct nvme_ns *ns, struct io_uring_cmd *ioucmd, unsigned int issue_flags, bool vec) argument
563 nvme_ns_ioctl(struct nvme_ns *ns, unsigned int cmd, void __user *argp, unsigned int flags, bool open_for_write) argument
596 struct nvme_ns *ns = bdev->bd_disk->private_data; local
611 struct nvme_ns *ns = local
631 nvme_ns_uring_cmd(struct nvme_ns *ns, struct io_uring_cmd *ioucmd, unsigned int issue_flags) argument
659 struct nvme_ns *ns = container_of(file_inode(ioucmd->file)->i_cdev, local
699 struct nvme_ns *ns; local
734 struct nvme_ns *ns; local
758 struct nvme_ns *ns = nvme_find_path(head); local
798 struct nvme_ns *ns; local
[all...]
/linux-master/arch/sparc/kernel/
H A Dof_device_common.h16 const u32 *size, int na, int ns);
17 int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna);
33 int na, int ns, int pna);
/linux-master/drivers/thermal/broadcom/
H A DMakefile5 obj-$(CONFIG_BCM_NS_THERMAL) += ns-thermal.o
/linux-master/fs/sysfs/
H A Dsysfs.h32 kgid_t gid, const void *ns);
35 kuid_t uid, kgid_t gid, const void *ns);
/linux-master/scripts/
H A Dnsdeps30 $srctree/scripts/coccinelle/misc/add_namespace.cocci -D nsdeps -D ns=$1 $2
39 for ns in $namespaces; do
40 echo "Adding namespace $ns to module $mod.ko."
41 generate_deps_for_ns $ns "$mod_source_files"
/linux-master/arch/loongarch/lib/
H A Ddelay.c38 void __ndelay(unsigned long ns) argument
40 __delay((ns * 0x00000005ull * HZ * lpj_fine) >> 32);
/linux-master/tools/testing/selftests/timers/
H A Dnsleep-lat.c79 struct timespec timespec_add(struct timespec ts, unsigned long long ns) argument
81 ts.tv_nsec += ns;
98 int nanosleep_lat_test(int clockid, long long ns) argument
104 target.tv_sec = ns/NSEC_PER_SEC;
105 target.tv_nsec = ns%NSEC_PER_SEC;
120 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) {
121 ksft_print_msg("Large rel latency: %lld ns :", (timespec_sub(start, end)/count)-ns);
128 target = timespec_add(start, ns);
135 ksft_print_msg("Large abs latency: %lld ns
[all...]
/linux-master/tools/testing/selftests/tc-testing/plugin-lib/
H A DnsPlugin.py22 self.sub_class = 'ns/SubPlugin'
47 ns = self.args.NAMES['NS']
48 f = open('/run/netns/{}'.format(ns))
119 ns = self.args.NAMES["NS"];
127 netns.create(ns)
128 netns.pushns(newns=ns)
130 ip.link('add', ifname=dev1, kind='veth', peer={'ifname': dev0, 'net_ns_fd':'/proc/1/ns/net'})
165 ns = self.args.NAMES['NS']
167 cmds.append(self._replace_keywords('netns add {}'.format(ns)))
169 cmds.append(self._replace_keywords('link set $DEV1 netns {}'.format(ns)))
[all...]
/linux-master/drivers/nvme/target/
H A Dzns.c35 bool nvmet_bdev_zns_enable(struct nvmet_ns *ns) argument
37 u8 zasl = nvmet_zasl(bdev_max_zone_append_sectors(ns->bdev));
38 struct gendisk *bd_disk = ns->bdev->bd_disk;
41 if (ns->subsys->zasl) {
42 if (ns->subsys->zasl > zasl)
45 ns->subsys->zasl = zasl;
52 if (get_capacity(bd_disk) & (bdev_zone_sectors(ns->bdev) - 1))
59 ret = blkdev_report_zones(ns->bdev, 0, bdev_nr_zones(ns->bdev),
64 ns
[all...]
/linux-master/drivers/ptp/
H A Dptp_dte.c30 /* Full wrap around is 44bits in ns (~4.887 hrs) */
52 static void dte_write_nco(void __iomem *regs, s64 ns) argument
56 sum2 = (u32)((ns >> DTE_NCO_SUM2_SHIFT) & DTE_NCO_SUM2_MASK);
62 sum3 = (u32)(((ns >> DTE_NCO_SUM3_SHIFT) & DTE_NCO_SUM3_MASK) <<
73 s64 ns; local
76 * ignoring sum1 (4 bits) gives a 16ns resolution, which
81 ns = ((s64)sum3 << DTE_NCO_SUM3_SHIFT) |
84 return ns;
89 s64 ns; local
91 ns
118 s64 ns = 0; local
[all...]

Completed in 383 milliseconds

1234567891011>>