Home
last modified time | relevance | path

Searched refs:ns (Results 1 - 25 of 57) sorted by relevance

123

/device/soc/rockchip/common/sdk_linux/ipc/
H A Dshm.c67 struct ipc_namespace *ns; member
76 struct ipc_namespace *ns; member
86 #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS])
93 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
98 void shm_init_ns(struct ipc_namespace *ns) in shm_init_ns() argument
100 ns->shm_ctlmax = SHMMAX; in shm_init_ns()
101 ns->shm_ctlall = SHMALL; in shm_init_ns()
102 ns->shm_ctlmni = SHMMNI; in shm_init_ns()
103 ns in shm_init_ns()
112 do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) do_shm_rmid() argument
130 shm_exit_ns(struct ipc_namespace *ns) shm_exit_ns() argument
159 shm_obtain_object(struct ipc_namespace *ns, int id) shm_obtain_object() argument
170 shm_obtain_object_check(struct ipc_namespace *ns, int id) shm_obtain_object_check() argument
185 shm_lock(struct ipc_namespace *ns, int id) shm_lock() argument
315 shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) shm_destroy() argument
363 struct ipc_namespace *ns = sfd->ns; shm_close() local
391 struct ipc_namespace *ns = data; shm_try_destroy_orphaned() local
412 shm_destroy_orphaned(struct ipc_namespace *ns) shm_destroy_orphaned() argument
426 struct ipc_namespace *ns; exit_shm() local
691 newseg(struct ipc_namespace *ns, struct ipc_params *params) newseg() argument
828 struct ipc_namespace *ns; ksys_shmget() local
958 shm_get_stat(struct ipc_namespace *ns, unsigned long *rss, unsigned long *swp) shm_get_stat() argument
989 shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, struct shmid64_ds *shmid64) shmctl_down() argument
1039 shmctl_ipc_info(struct ipc_namespace *ns, struct shminfo64 *shminfo) shmctl_ipc_info() argument
1058 shmctl_shm_info(struct ipc_namespace *ns, struct shm_info *shm_info) shmctl_shm_info() argument
1078 shmctl_stat(struct ipc_namespace *ns, int shmid, int cmd, struct shmid64_ds *tbuf) shmctl_stat() argument
1163 shmctl_do_lock(struct ipc_namespace *ns, int shmid, int cmd) shmctl_do_lock() argument
1243 struct ipc_namespace *ns; ksys_shmctl() local
1442 struct ipc_namespace *ns; compat_ksys_shmctl() local
1540 struct ipc_namespace *ns; do_shmat() local
[all...]
H A Dmsg.c99 #define msg_ids(ns) ((ns)->ids[IPC_MSG_IDS])
101 static inline struct msg_queue *msq_obtain_object(struct ipc_namespace *ns, int id) in msq_obtain_object() argument
103 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object()
112 static inline struct msg_queue *msq_obtain_object_check(struct ipc_namespace *ns, int id) in msq_obtain_object_check() argument
114 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check()
123 static inline void msg_rmid(struct ipc_namespace *ns, struct msg_queue *s) in msg_rmid() argument
125 ipc_rmid(&msg_ids(ns), &s->q_perm); in msg_rmid()
139 * @ns: namespace
144 static int newque(struct ipc_namespace *ns, struc argument
287 struct ipc_namespace *ns; ksys_msgget() local
390 msgctl_down(struct ipc_namespace *ns, int msqid, int cmd, struct ipc64_perm *perm, int msg_qbytes) msgctl_down() argument
464 msgctl_info(struct ipc_namespace *ns, int msqid, int cmd, struct msginfo *msginfo) msgctl_info() argument
500 msgctl_stat(struct ipc_namespace *ns, int msqid, int cmd, struct msqid64_ds *p) msgctl_stat() argument
582 struct ipc_namespace *ns; ksys_msgctl() local
724 struct ipc_namespace *ns; compat_ksys_msgctl() local
850 struct ipc_namespace *ns; do_msgsnd() local
1112 struct ipc_namespace *ns; do_msgrcv() local
1318 msg_init_ns(struct ipc_namespace *ns) msg_init_ns() argument
1330 msg_exit_ns(struct ipc_namespace *ns) msg_exit_ns() argument
[all...]
H A Dsem.c168 #define sem_ids(ns) ((ns)->ids[IPC_SEM_IDS])
246 void sem_init_ns(struct ipc_namespace *ns) in sem_init_ns() argument
248 ns->sc_semmsl = SEMMSL; in sem_init_ns()
249 ns->sc_semmns = SEMMNS; in sem_init_ns()
250 ns->sc_semopm = SEMOPM; in sem_init_ns()
251 ns->sc_semmni = SEMMNI; in sem_init_ns()
252 ns->used_sems = 0; in sem_init_ns()
253 ipc_init_ids(&ns->ids[IPC_SEM_IDS]); in sem_init_ns()
257 void sem_exit_ns(struct ipc_namespace *ns) in sem_exit_ns() argument
474 sem_obtain_object(struct ipc_namespace *ns, int id) sem_obtain_object() argument
485 sem_obtain_object_check(struct ipc_namespace *ns, int id) sem_obtain_object_check() argument
502 sem_rmid(struct ipc_namespace *ns, struct sem_array *s) sem_rmid() argument
530 newary(struct ipc_namespace *ns, struct ipc_params *params) newary() argument
606 struct ipc_namespace *ns; ksys_semget() local
1169 freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) freeary() argument
1265 semctl_stat(struct ipc_namespace *ns, int semid, int cmd, struct semid64_ds *semid64) semctl_stat() argument
1340 semctl_info(struct ipc_namespace *ns, int semid, int cmd, void __user *p) semctl_info() argument
1376 semctl_setval(struct ipc_namespace *ns, int semid, int semnum, int val) semctl_setval() argument
1436 semctl_main(struct ipc_namespace *ns, int semid, int semnum, int cmd, void __user *p) semctl_main() argument
1636 semctl_down(struct ipc_namespace *ns, int semid, int cmd, struct semid64_ds *semid64) semctl_down() argument
1688 struct ipc_namespace *ns; ksys_semctl() local
1814 struct ipc_namespace *ns; compat_ksys_semctl() local
1949 find_alloc_undo(struct ipc_namespace *ns, int semid) find_alloc_undo() argument
2040 struct ipc_namespace *ns; do_semtimedop() local
[all...]
H A Dutil.c331 * @ns: ipc namespace
339 static int ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, in ipcget_new() argument
345 err = ops->getnew(ns, params); in ipcget_new()
352 * @ns: ipc namespace
365 static int ipc_check_perms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, in ipc_check_perms() argument
370 if (ipcperms(ns, ipcp, params->flg)) { in ipc_check_perms()
384 * @ns: ipc namespace
396 static int ipcget_public(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, in ipcget_public() argument
414 err = ops->getnew(ns, params); in ipcget_public()
431 err = ipc_check_perms(ns, ipc in ipcget_public()
523 ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag) ipcperms() argument
646 ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params) ipcget() argument
695 ipcctl_obtain_check(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm) ipcctl_obtain_check() argument
745 struct ipc_namespace *ns; global() member
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
H A Dosal_notifier.c42 struct nb_node *ns = osal_list_entry(this, struct nb_node, node); in osal_find_ob() local
43 if (ns->nb == nb) { in osal_find_ob()
44 return ns->osal_nb; in osal_find_ob()
60 struct nb_node *ns = osal_list_entry(this, struct nb_node, node); in osal_del_nb() local
61 if (ns->osal_nb == nb) { in osal_del_nb()
63 kfree(ns); in osal_del_nb()
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Drockchip_debug.c134 int i = 0, j = 0, el, ns; in rockchip_debug_dump_pmpcsr() local
151 ns = 1; in rockchip_debug_dump_pmpcsr()
153 ns = 0; in rockchip_debug_dump_pmpcsr()
165 output->printf(output, "\tEL%d(%s) PC: <0x%px> %pS\n", el, ns ? "NS" : "S", pc, pc); in rockchip_debug_dump_pmpcsr()
257 int i = 0, j, el, ns; in rockchip_panic_notify_pmpcsr() local
281 ns = 1; in rockchip_panic_notify_pmpcsr()
283 ns = 0; in rockchip_panic_notify_pmpcsr()
295 pr_err("\tEL%d(%s) PC: <0x%px> %pS\n", el, ns ? "NS" : "S", pc, pc); in rockchip_panic_notify_pmpcsr()
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
H A Dbridge_v30.c116 u64 ns = ktime_get_ns(); in bridge_frame_end() local
137 dev->dbg.interval = ns - dev->dbg.timestamp; in bridge_frame_end()
138 dev->dbg.timestamp = ns; in bridge_frame_end()
146 ns = 0; in bridge_frame_end()
147 rkisp_dmarx_get_frame(ispdev, &hw->cur_buf->frame_id, NULL, &ns, true); in bridge_frame_end()
148 if (!ns) { in bridge_frame_end()
149 ns = ktime_get_ns(); in bridge_frame_end()
151 hw->cur_buf->frame_timestamp = ns; in bridge_frame_end()
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Drockchip_debug.c138 int i = 0, j = 0, el, ns; in rockchip_debug_dump_pmpcsr() local
158 ns = 1; in rockchip_debug_dump_pmpcsr()
160 ns = 0; in rockchip_debug_dump_pmpcsr()
171 el, ns?"NS":"S", pc, pc); in rockchip_debug_dump_pmpcsr()
267 int i = 0, j, el, ns; in rockchip_panic_notify_pmpcsr() local
293 ns = 1; in rockchip_panic_notify_pmpcsr()
295 ns = 0; in rockchip_panic_notify_pmpcsr()
306 el, ns?"NS":"S", pc, pc); in rockchip_panic_notify_pmpcsr()
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
H A Dbridge_v30.c117 u64 ns = ktime_get_ns(); in bridge_frame_end() local
138 dev->dbg.interval = ns - dev->dbg.timestamp; in bridge_frame_end()
139 dev->dbg.timestamp = ns; in bridge_frame_end()
147 ns = 0; in bridge_frame_end()
149 NULL, &ns, true); in bridge_frame_end()
150 if (!ns) in bridge_frame_end()
151 ns = ktime_get_ns(); in bridge_frame_end()
152 hw->cur_buf->frame_timestamp = ns; in bridge_frame_end()
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/
H A Dtime.c74 UINT64 tick, ns; in OsTimeSpec2Tick() local
76 ns = (UINT64)tp->tv_sec * OS_SYS_NS_PER_SECOND + tp->tv_nsec; in OsTimeSpec2Tick()
78 tick = (ns * LOSCFG_BASE_CORE_TICK_PER_SECOND + (OS_SYS_NS_PER_SECOND - 1)) / OS_SYS_NS_PER_SECOND; in OsTimeSpec2Tick()
87 UINT64 ns = ((UINT64)tick * OS_SYS_NS_PER_SECOND) / LOSCFG_BASE_CORE_TICK_PER_SECOND; in OsTick2TimeSpec() local
88 tp->tv_sec = (time_t)(ns / OS_SYS_NS_PER_SECOND); in OsTick2TimeSpec()
89 tp->tv_nsec = (long)(ns % OS_SYS_NS_PER_SECOND); in OsTick2TimeSpec()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
H A Dosal_timer.c161 uint64_t ns = ktime_to_ns(ktime_get()); in osal_get_timeofday() local
162 tv->tv_sec = osal_div64_u64(ns, S_TO_NS); in osal_get_timeofday()
163 tv->tv_usec = osal_div_u64(osal_div64_u64_rem(ns, S_TO_NS), US_TO_NS); in osal_get_timeofday()
/device/soc/rockchip/common/sdk_linux/kernel/cgroup/
H A Dcgroup-v1.c191 struct pid_namespace *ns; member
237 put_pid_ns(l->key.ns); in cgroup_pidlist_destroy_work_fn()
295 struct pid_namespace *ns = task_active_pid_ns(current); in cgroup_pidlist_find() local
299 list_for_each_entry(l, &cgrp->pidlists, links) if (l->key.type == type && l->key.ns == ns) return l; in cgroup_pidlist_find()
329 l->key.ns = get_pid_ns(task_active_pid_ns(current)); in cgroup_pidlist_find_create()
581 if ((ctx->ns->user_ns != &init_user_ns) ||
1265 if (ctx->ns != &init_cgroup_ns) {
1290 if (!ns_capable(ctx->ns->user_ns, CAP_SYS_ADMIN)) {
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Dsched.h1523 * task_xid_nr_ns() : id seen from the ns specified;
1527 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
1534 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() argument
1536 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns()
1564 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns() argument
1566 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns()
1574 static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_session_nr_ns() argument
1576 return __task_pid_nr_ns(tsk, PIDTYPE_SID, ns); in task_session_nr_ns()
1584 static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_tgid_nr_ns() argument
1586 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, ns); in task_tgid_nr_ns()
1594 task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) task_ppid_nr_ns() argument
[all...]
/device/soc/hisilicon/common/hal/display/source/display_device/src/core/
H A Dhdi_display.h35 virtual void Vsync(unsigned int sequence, uint64_t ns);
106 virtual int32_t WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
/device/soc/rockchip/common/hardware/display/src/display_device/
H A Dhdi_display.h35 virtual void Vsync(unsigned int sequence, uint64_t ns);
116 virtual int32_t WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
H A Ddrm_display.cpp198 int32_t DrmDisplay::WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
208 DISPLAY_CHK_RETURN((ns == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in ns is nullptr")); in WaitForVBlank()
212 *ns = static_cast<uint64_t>(vbl.reply.tval_sec * nPerS + vbl.reply.tval_usec * nPerUS); in WaitForVBlank()
/device/soc/rockchip/rk3399/hardware/display/src/display_device/
H A Dhdi_display.h35 virtual void Vsync(unsigned int sequence, uint64_t ns);
110 virtual int32_t WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
H A Ddrm_display.cpp194 int32_t DrmDisplay::WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
204 DISPLAY_CHK_RETURN((ns == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in ns is nullptr")); in WaitForVBlank()
207 *ns = static_cast<uint64_t>(vbl.reply.tval_sec * nPerS + vbl.reply.tval_usec * nPerUS); in WaitForVBlank()
/device/soc/rockchip/rk3566/hardware/display/src/display_device/
H A Dhdi_display.h35 virtual void Vsync(unsigned int sequence, uint64_t ns);
110 virtual int32_t WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
H A Ddrm_display.cpp197 int32_t DrmDisplay::WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
207 DISPLAY_CHK_RETURN((ns == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in ns is nullptr")); in WaitForVBlank()
210 *ns = static_cast<uint64_t>(vbl.reply.tval_sec * nPerS + vbl.reply.tval_usec * nPerUS); in WaitForVBlank()
/device/soc/rockchip/rk3568/hardware/display/src/display_device/
H A Dhdi_display.h35 virtual void Vsync(unsigned int sequence, uint64_t ns);
110 virtual int32_t WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
H A Ddrm_display.cpp197 int32_t DrmDisplay::WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
207 DISPLAY_CHK_RETURN((ns == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in ns is nullptr")); in WaitForVBlank()
210 *ns = static_cast<uint64_t>(vbl.reply.tval_sec * nPerS + vbl.reply.tval_usec * nPerUS); in WaitForVBlank()
/device/soc/rockchip/rk3588/hardware/display/src/display_device/
H A Dhdi_display.h35 virtual void Vsync(unsigned int sequence, uint64_t ns);
110 virtual int32_t WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
/device/soc/rockchip/rk3588/kernel/include/linux/
H A Dcpufreq_times.h26 int proc_time_in_state_show(struct seq_file *m, struct pid_namespace *ns,
/device/soc/hisilicon/common/hal/display/source/display_device/src/drm/
H A Ddrm_display.cpp168 int32_t DrmDisplay::WaitForVBlank(uint64_t *ns) in WaitForVBlank() argument
178 DISPLAY_CHK_RETURN((ns == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in ns is nullptr")); in WaitForVBlank()
181 *ns = static_cast<uint64_t>(vbl.reply.tval_sec * nPerS + vbl.reply.tval_usec * nPerUS); in WaitForVBlank()

Completed in 18 milliseconds

123