| /linux-4.4.14/drivers/mtd/nand/ |
| D | nandsim.c | 203 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0) argument 206 #define NS_STATUS_OK(ns) (NAND_STATUS_READY | (NAND_STATUS_WP * ((ns)->lines.wp == 0))) argument 209 #define NS_STATUS_FAILED(ns) (NAND_STATUS_FAIL | NS_STATUS_OK(ns)) argument 212 #define NS_RAW_OFFSET(ns) \ argument 213 (((ns)->regs.row * (ns)->geom.pgszoob) + (ns)->regs.column) 216 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) argument 560 static void nandsim_debugfs_remove(struct nandsim *ns) in nandsim_debugfs_remove() argument 563 debugfs_remove_recursive(ns->dbg.dfs_root); in nandsim_debugfs_remove() 572 static int alloc_device(struct nandsim *ns) in alloc_device() argument 591 ns->pages_written = vzalloc(BITS_TO_LONGS(ns->geom.pgnum) * in alloc_device() [all …]
|
| /linux-4.4.14/ipc/ |
| D | namespace.c | 22 struct ipc_namespace *ns; in create_ipc_ns() local 25 ns = kmalloc(sizeof(struct ipc_namespace), GFP_KERNEL); in create_ipc_ns() 26 if (ns == NULL) in create_ipc_ns() 29 err = ns_alloc_inum(&ns->ns); in create_ipc_ns() 31 kfree(ns); in create_ipc_ns() 34 ns->ns.ops = &ipcns_operations; in create_ipc_ns() 36 atomic_set(&ns->count, 1); in create_ipc_ns() 37 err = mq_init_ns(ns); in create_ipc_ns() 39 ns_free_inum(&ns->ns); in create_ipc_ns() 40 kfree(ns); in create_ipc_ns() [all …]
|
| D | shm.c | 52 struct ipc_namespace *ns; member 62 #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS]) argument 70 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp); 75 void shm_init_ns(struct ipc_namespace *ns) in shm_init_ns() argument 77 ns->shm_ctlmax = SHMMAX; in shm_init_ns() 78 ns->shm_ctlall = SHMALL; in shm_init_ns() 79 ns->shm_ctlmni = SHMMNI; in shm_init_ns() 80 ns->shm_rmid_forced = 0; in shm_init_ns() 81 ns->shm_tot = 0; in shm_init_ns() 82 ipc_init_ids(&shm_ids(ns)); in shm_init_ns() [all …]
|
| D | util.h | 25 extern void mq_clear_sbinfo(struct ipc_namespace *ns); 26 extern void mq_put_mnt(struct ipc_namespace *ns); 28 static inline void mq_clear_sbinfo(struct ipc_namespace *ns) { } in mq_clear_sbinfo() argument 29 static inline void mq_put_mnt(struct ipc_namespace *ns) { } in mq_put_mnt() argument 33 void sem_init_ns(struct ipc_namespace *ns); 34 void msg_init_ns(struct ipc_namespace *ns); 35 void shm_init_ns(struct ipc_namespace *ns); 37 void sem_exit_ns(struct ipc_namespace *ns); 38 void msg_exit_ns(struct ipc_namespace *ns); 39 void shm_exit_ns(struct ipc_namespace *ns); [all …]
|
| D | msg.c | 75 #define msg_ids(ns) ((ns)->ids[IPC_MSG_IDS]) argument 77 static inline struct msg_queue *msq_obtain_object(struct ipc_namespace *ns, int id) in msq_obtain_object() argument 79 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object() 87 static inline struct msg_queue *msq_obtain_object_check(struct ipc_namespace *ns, in msq_obtain_object_check() argument 90 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check() 98 static inline void msg_rmid(struct ipc_namespace *ns, struct msg_queue *s) in msg_rmid() argument 100 ipc_rmid(&msg_ids(ns), &s->q_perm); in msg_rmid() 119 static int newque(struct ipc_namespace *ns, struct ipc_params *params) in newque() argument 143 msq->q_qbytes = ns->msg_ctlmnb; in newque() 150 id = ipc_addid(&msg_ids(ns), &msq->q_perm, ns->msg_ctlmni); in newque() [all …]
|
| D | sem.c | 143 #define sem_ids(ns) ((ns)->ids[IPC_SEM_IDS]) argument 173 void sem_init_ns(struct ipc_namespace *ns) in sem_init_ns() argument 175 ns->sc_semmsl = SEMMSL; in sem_init_ns() 176 ns->sc_semmns = SEMMNS; in sem_init_ns() 177 ns->sc_semopm = SEMOPM; in sem_init_ns() 178 ns->sc_semmni = SEMMNI; in sem_init_ns() 179 ns->used_sems = 0; in sem_init_ns() 180 ipc_init_ids(&ns->ids[IPC_SEM_IDS]); in sem_init_ns() 184 void sem_exit_ns(struct ipc_namespace *ns) in sem_exit_ns() argument 186 free_ipcs(ns, &sem_ids(ns), freeary); in sem_exit_ns() [all …]
|
| D | util.c | 279 static int ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget_new() argument 285 err = ops->getnew(ns, params); in ipcget_new() 305 static int ipc_check_perms(struct ipc_namespace *ns, in ipc_check_perms() argument 312 if (ipcperms(ns, ipcp, params->flg)) in ipc_check_perms() 337 static int ipcget_public(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget_public() argument 355 err = ops->getnew(ns, params); in ipcget_public() 370 err = ipc_check_perms(ns, ipcp, ops, params); in ipcget_public() 484 int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag) in ipcperms() argument 499 !ns_capable(ns->user_ns, CAP_IPC_OWNER)) in ipcperms() 640 int ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget() argument [all …]
|
| D | mqueue.c | 111 struct ipc_namespace *ns; in get_ns_from_inode() local 114 ns = __get_ns_from_inode(inode); in get_ns_from_inode() 116 return ns; in get_ns_from_inode() 308 struct ipc_namespace *ns = data; in mqueue_fill_super() local 315 inode = mqueue_get_inode(sb, ns, S_IFDIR | S_ISVTX | S_IRWXUGO, NULL); in mqueue_fill_super() 330 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in mqueue_mount() local 334 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN)) in mqueue_mount() 337 data = ns; in mqueue_mount() 1407 int mq_init_ns(struct ipc_namespace *ns) in mq_init_ns() argument 1409 ns->mq_queues_count = 0; in mq_init_ns() [all …]
|
| /linux-4.4.14/drivers/staging/lustre/lustre/ldlm/ |
| D | ldlm_resource.c | 158 struct ldlm_namespace *ns = container_of(kobj, struct ldlm_namespace, in resource_count_show() local 165 cfs_hash_for_each_bucket(ns->ns_rs_hash, &bd, i) in resource_count_show() 174 struct ldlm_namespace *ns = container_of(kobj, struct ldlm_namespace, in lock_count_show() local 178 locks = lprocfs_stats_collector(ns->ns_stats, LDLM_NSS_LOCKS, in lock_count_show() 188 struct ldlm_namespace *ns = container_of(kobj, struct ldlm_namespace, in lock_unused_count_show() local 191 return sprintf(buf, "%d\n", ns->ns_nr_unused); in lock_unused_count_show() 198 struct ldlm_namespace *ns = container_of(kobj, struct ldlm_namespace, in lru_size_show() local 200 __u32 *nr = &ns->ns_max_unused; in lru_size_show() 202 if (ns_connect_lru_resize(ns)) in lru_size_show() 203 nr = &ns->ns_nr_unused; in lru_size_show() [all …]
|
| D | ldlm_pool.c | 341 struct ldlm_namespace *ns; in ldlm_cli_pool_shrink() local 344 ns = ldlm_pl2ns(pl); in ldlm_cli_pool_shrink() 349 if (!ns_connect_lru_resize(ns)) in ldlm_cli_pool_shrink() 357 spin_lock(&ns->ns_lock); in ldlm_cli_pool_shrink() 358 unused = ns->ns_nr_unused; in ldlm_cli_pool_shrink() 359 spin_unlock(&ns->ns_lock); in ldlm_cli_pool_shrink() 364 return ldlm_cancel_lru(ns, nr, LCF_ASYNC, LDLM_CANCEL_SHRINK); in ldlm_cli_pool_shrink() 561 struct ldlm_namespace *ns = ldlm_pl2ns(pl); in ldlm_pool_sysfs_init() local 565 err = kobject_init_and_add(&pl->pl_kobj, &ldlm_pl_ktype, &ns->ns_kobj, in ldlm_pool_sysfs_init() 573 struct ldlm_namespace *ns = ldlm_pl2ns(pl); in ldlm_pool_debugfs_init() local [all …]
|
| D | ldlm_request.c | 287 static void failed_lock_cleanup(struct ldlm_namespace *ns, in failed_lock_cleanup() argument 338 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_cli_enqueue_fini() local 446 rc = ldlm_lock_change_resource(ns, lock, in ldlm_cli_enqueue_fini() 497 rc = ldlm_lock_enqueue(ns, &lock, NULL, flags); in ldlm_cli_enqueue_fini() 517 failed_lock_cleanup(ns, lock, mode); in ldlm_cli_enqueue_fini() 575 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_prep_elc_req() local 584 if (ns_connect_cancelset(ns)) { in ldlm_prep_elc_req() 589 flags = ns_connect_lru_resize(ns) ? in ldlm_prep_elc_req() 591 to_free = !ns_connect_lru_resize(ns) && in ldlm_prep_elc_req() 598 count += ldlm_cancel_lru_local(ns, cancels, to_free, in ldlm_prep_elc_req() [all …]
|
| D | ldlm_internal.h | 81 static inline int ldlm_ns_empty(struct ldlm_namespace *ns) in ldlm_ns_empty() argument 83 return atomic_read(&ns->ns_bref) == 0; in ldlm_ns_empty() 102 int ldlm_cancel_lru(struct ldlm_namespace *ns, int nr, 104 int ldlm_cancel_lru_local(struct ldlm_namespace *ns, 111 void ldlm_namespace_free_prior(struct ldlm_namespace *ns, 113 void ldlm_namespace_free_post(struct ldlm_namespace *ns); 135 ldlm_lock_create(struct ldlm_namespace *ns, const struct ldlm_res_id *, 145 int ldlm_run_ast_work(struct ldlm_namespace *ns, struct list_head *rpc_list, 152 int ldlm_bl_to_thread_lock(struct ldlm_namespace *ns, struct ldlm_lock_desc *ld, 154 int ldlm_bl_to_thread_list(struct ldlm_namespace *ns, [all …]
|
| D | ldlm_lock.c | 219 struct ldlm_namespace *ns = ldlm_lock_to_ns(lock); in ldlm_lock_remove_from_lru_nolock() local 223 LASSERT(ns->ns_nr_unused > 0); in ldlm_lock_remove_from_lru_nolock() 224 ns->ns_nr_unused--; in ldlm_lock_remove_from_lru_nolock() 235 struct ldlm_namespace *ns = ldlm_lock_to_ns(lock); in ldlm_lock_remove_from_lru() local 238 spin_lock(&ns->ns_lock); in ldlm_lock_remove_from_lru() 240 spin_unlock(&ns->ns_lock); in ldlm_lock_remove_from_lru() 249 struct ldlm_namespace *ns = ldlm_lock_to_ns(lock); in ldlm_lock_add_to_lru_nolock() local 254 list_add_tail(&lock->l_lru, &ns->ns_unused_list); in ldlm_lock_add_to_lru_nolock() 257 LASSERT(ns->ns_nr_unused >= 0); in ldlm_lock_add_to_lru_nolock() 258 ns->ns_nr_unused++; in ldlm_lock_add_to_lru_nolock() [all …]
|
| D | ldlm_lockd.c | 119 void ldlm_handle_bl_callback(struct ldlm_namespace *ns, in ldlm_handle_bl_callback() argument 158 struct ldlm_namespace *ns, in ldlm_handle_cp_callback() argument 246 rc = ldlm_lock_change_resource(ns, lock, in ldlm_handle_cp_callback() 283 ldlm_run_ast_work(ns, &ast_list, LDLM_WORK_CP_AST); in ldlm_handle_cp_callback() 307 struct ldlm_namespace *ns, in ldlm_handle_gl_callback() argument 332 if (ldlm_bl_to_thread_lock(ns, NULL, lock)) in ldlm_handle_gl_callback() 333 ldlm_handle_bl_callback(ns, NULL, lock); in ldlm_handle_gl_callback() 382 struct ldlm_namespace *ns, in init_blwi() argument 394 blwi->blwi_ns = ns; in init_blwi() 416 static int ldlm_bl_to_thread(struct ldlm_namespace *ns, in ldlm_bl_to_thread() argument [all …]
|
| /linux-4.4.14/kernel/ |
| D | utsname.c | 38 struct uts_namespace *ns; in clone_uts_ns() local 41 ns = create_uts_ns(); in clone_uts_ns() 42 if (!ns) in clone_uts_ns() 45 err = ns_alloc_inum(&ns->ns); in clone_uts_ns() 47 kfree(ns); in clone_uts_ns() 51 ns->ns.ops = &utsns_operations; in clone_uts_ns() 54 memcpy(&ns->name, &old_ns->name, sizeof(ns->name)); in clone_uts_ns() 55 ns->user_ns = get_user_ns(user_ns); in clone_uts_ns() 57 return ns; in clone_uts_ns() 85 struct uts_namespace *ns; in free_uts_ns() local [all …]
|
| D | pid_namespace.c | 75 struct pid_namespace *ns = container_of(work, struct pid_namespace, proc_work); in proc_cleanup_work() local 76 pid_ns_release_proc(ns); in proc_cleanup_work() 85 struct pid_namespace *ns; in create_pid_namespace() local 96 ns = kmem_cache_zalloc(pid_ns_cachep, GFP_KERNEL); in create_pid_namespace() 97 if (ns == NULL) in create_pid_namespace() 100 ns->pidmap[0].page = kzalloc(PAGE_SIZE, GFP_KERNEL); in create_pid_namespace() 101 if (!ns->pidmap[0].page) in create_pid_namespace() 104 ns->pid_cachep = create_pid_cachep(level + 1); in create_pid_namespace() 105 if (ns->pid_cachep == NULL) in create_pid_namespace() 108 err = ns_alloc_inum(&ns->ns); in create_pid_namespace() [all …]
|
| D | user_namespace.c | 30 struct user_namespace *ns, int cap_setid, 62 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local 87 ns = kmem_cache_zalloc(user_ns_cachep, GFP_KERNEL); in create_user_ns() 88 if (!ns) in create_user_ns() 91 ret = ns_alloc_inum(&ns->ns); in create_user_ns() 93 kmem_cache_free(user_ns_cachep, ns); in create_user_ns() 96 ns->ns.ops = &userns_operations; in create_user_ns() 98 atomic_set(&ns->count, 1); in create_user_ns() 100 ns->parent = parent_ns; in create_user_ns() 101 ns->level = parent_ns->level + 1; in create_user_ns() [all …]
|
| D | pid.c | 42 #define pid_hashfn(nr, ns) \ argument 43 hash_long((unsigned long)nr + (unsigned long)ns, pidhash_shift) 82 .ns.inum = PROC_PID_INIT_INO, 84 .ns.ops = &pidns_operations, 108 struct pidmap *map = upid->ns->pidmap + nr / BITS_PER_PAGE; in free_pidmap() 239 struct pid_namespace *ns; in put_pid() local 244 ns = pid->numbers[pid->level].ns; in put_pid() 247 kmem_cache_free(ns->pid_cachep, pid); in put_pid() 248 put_pid_ns(ns); in put_pid() 268 struct pid_namespace *ns = upid->ns; in free_pid() local [all …]
|
| D | nsproxy.c | 158 void free_nsproxy(struct nsproxy *ns) in free_nsproxy() argument 160 if (ns->mnt_ns) in free_nsproxy() 161 put_mnt_ns(ns->mnt_ns); in free_nsproxy() 162 if (ns->uts_ns) in free_nsproxy() 163 put_uts_ns(ns->uts_ns); in free_nsproxy() 164 if (ns->ipc_ns) in free_nsproxy() 165 put_ipc_ns(ns->ipc_ns); in free_nsproxy() 166 if (ns->pid_ns_for_children) in free_nsproxy() 167 put_pid_ns(ns->pid_ns_for_children); in free_nsproxy() 168 put_net(ns->net_ns); in free_nsproxy() [all …]
|
| D | acct.c | 88 struct pid_namespace *ns; member 141 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get() argument 147 res = to_acct(ACCESS_ONCE(ns->bacct)); in acct_get() 159 if (res != to_acct(ACCESS_ONCE(ns->bacct))) { in acct_get() 174 cmpxchg(&acct->ns->bacct, pin, NULL); in acct_pin_kill() 194 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on() local 241 acct->ns = ns; in acct_on() 249 old = xchg(&ns->bacct, &acct->pin); in acct_on() 294 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns() argument 297 pin_kill(ns->bacct); in acct_exit_ns() [all …]
|
| D | capability.c | 296 struct user_namespace *ns, int cap) in has_ns_capability() argument 301 ret = security_capable(__task_cred(t), ns, cap); in has_ns_capability() 336 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() argument 341 ret = security_capable_noaudit(__task_cred(t), ns, cap); in has_ns_capability_noaudit() 375 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() argument 382 if (security_capable(current_cred(), ns, cap) == 0) { in ns_capable() 420 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() argument 426 if (security_capable(file->f_cred, ns, cap) == 0) in file_ns_capable() 444 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid() local 446 return ns_capable(ns, cap) && kuid_has_mapping(ns, inode->i_uid) && in capable_wrt_inode_uidgid() [all …]
|
| D | delayacct.c | 54 s64 ns = ktime_get_ns() - *start; in delayacct_end() local 57 if (ns > 0) { in delayacct_end() 59 *total += ns; in delayacct_end()
|
| /linux-4.4.14/drivers/block/drbd/ |
| D | drbd_state.c | 37 union drbd_state ns; member 53 union drbd_state ns, enum chg_state_flags flags); 56 static enum drbd_state_rv is_valid_transition(union drbd_state os, union drbd_state ns); 58 union drbd_state ns, enum sanitize_state_warnings *warn); 238 union drbd_state os, union drbd_state ns) in cl_wide_st_chg() argument 240 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg() 241 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg() 242 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in cl_wide_st_chg() 243 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S) || in cl_wide_st_chg() 244 (os.disk != D_FAILED && ns.disk == D_FAILED))) || in cl_wide_st_chg() [all …]
|
| /linux-4.4.14/arch/arm/boot/dts/ |
| D | omap3430-sdp.dts | 66 gpmc,cs-on-ns = <0>; 67 gpmc,cs-rd-off-ns = <186>; 68 gpmc,cs-wr-off-ns = <186>; 69 gpmc,adv-on-ns = <12>; 70 gpmc,adv-rd-off-ns = <48>; 71 gpmc,adv-wr-off-ns = <48>; 72 gpmc,oe-on-ns = <54>; 73 gpmc,oe-off-ns = <168>; 74 gpmc,we-on-ns = <54>; 75 gpmc,we-off-ns = <168>; [all …]
|
| D | omap-gpmc-smsc911x.dtsi | 29 gpmc,cs-on-ns = <5>; 30 gpmc,cs-rd-off-ns = <150>; 31 gpmc,cs-wr-off-ns = <150>; 32 gpmc,adv-on-ns = <0>; 33 gpmc,adv-rd-off-ns = <15>; 34 gpmc,adv-wr-off-ns = <40>; 35 gpmc,oe-on-ns = <45>; 36 gpmc,oe-off-ns = <140>; 37 gpmc,we-on-ns = <45>; 38 gpmc,we-off-ns = <140>; [all …]
|
| D | omap2430-sdp.dts | 51 gpmc,cs-on-ns = <6>; 52 gpmc,cs-rd-off-ns = <187>; 53 gpmc,cs-wr-off-ns = <187>; 54 gpmc,adv-on-ns = <18>; 55 gpmc,adv-rd-off-ns = <48>; 56 gpmc,adv-wr-off-ns = <48>; 57 gpmc,oe-on-ns = <60>; 58 gpmc,oe-off-ns = <169>; 59 gpmc,we-on-ns = <66>; 60 gpmc,we-off-ns = <169>; [all …]
|
| D | omap-gpmc-smsc9221.dtsi | 32 gpmc,cs-on-ns = <0>; 33 gpmc,cs-rd-off-ns = <42>; 34 gpmc,cs-wr-off-ns = <36>; 35 gpmc,adv-on-ns = <6>; 36 gpmc,adv-rd-off-ns = <12>; 37 gpmc,adv-wr-off-ns = <12>; 38 gpmc,oe-on-ns = <0>; 39 gpmc,oe-off-ns = <42>; 40 gpmc,we-on-ns = <0>; 41 gpmc,we-off-ns = <36>; [all …]
|
| D | omap3-overo-tobiduo-common.dtsi | 32 gpmc,cs-on-ns = <0>; 33 gpmc,cs-rd-off-ns = <42>; 34 gpmc,cs-wr-off-ns = <36>; 35 gpmc,adv-on-ns = <6>; 36 gpmc,adv-rd-off-ns = <12>; 37 gpmc,adv-wr-off-ns = <12>; 38 gpmc,oe-on-ns = <0>; 39 gpmc,oe-off-ns = <42>; 40 gpmc,we-on-ns = <0>; 41 gpmc,we-off-ns = <36>; [all …]
|
| D | omap-zoom-common.dtsi | 31 gpmc,cs-on-ns = <5>; 32 gpmc,cs-rd-off-ns = <155>; 33 gpmc,cs-wr-off-ns = <155>; 34 gpmc,adv-on-ns = <15>; 35 gpmc,adv-rd-off-ns = <40>; 36 gpmc,adv-wr-off-ns = <40>; 37 gpmc,oe-on-ns = <45>; 38 gpmc,oe-off-ns = <145>; 39 gpmc,we-on-ns = <45>; 40 gpmc,we-off-ns = <145>; [all …]
|
| D | omap2420-n8x0-common.dtsi | 58 gpmc,cs-on-ns = <0>; 59 gpmc,cs-rd-off-ns = <127>; 60 gpmc,cs-wr-off-ns = <109>; 61 gpmc,adv-on-ns = <0>; 62 gpmc,adv-rd-off-ns = <18>; 63 gpmc,adv-wr-off-ns = <18>; 64 gpmc,oe-on-ns = <27>; 65 gpmc,oe-off-ns = <127>; 66 gpmc,we-on-ns = <27>; 67 gpmc,we-off-ns = <72>; [all …]
|
| D | omap3-sb-t35.dtsi | 113 gpmc,cs-on-ns = <5>; 114 gpmc,cs-rd-off-ns = <150>; 115 gpmc,cs-wr-off-ns = <150>; 116 gpmc,adv-on-ns = <0>; 117 gpmc,adv-rd-off-ns = <15>; 118 gpmc,adv-wr-off-ns = <40>; 119 gpmc,oe-on-ns = <45>; 120 gpmc,oe-off-ns = <140>; 121 gpmc,we-on-ns = <45>; 122 gpmc,we-off-ns = <140>; [all …]
|
| D | omap2420-h4.dts | 34 gpmc,cs-on-ns = <10>; 35 gpmc,cs-rd-off-ns = <160>; 36 gpmc,cs-wr-off-ns = <160>; 37 gpmc,adv-on-ns = <20>; 38 gpmc,adv-rd-off-ns = <50>; 39 gpmc,adv-wr-off-ns = <50>; 40 gpmc,oe-on-ns = <60>; 41 gpmc,oe-off-ns = <120>; 42 gpmc,we-on-ns = <60>; 43 gpmc,we-off-ns = <120>; [all …]
|
| D | omap3-devkit8000-common.dtsi | 213 gpmc,cs-on-ns = <0>; 214 gpmc,cs-rd-off-ns = <44>; 215 gpmc,cs-wr-off-ns = <44>; 216 gpmc,adv-on-ns = <6>; 217 gpmc,adv-rd-off-ns = <34>; 218 gpmc,adv-wr-off-ns = <44>; 219 gpmc,we-off-ns = <40>; 220 gpmc,oe-off-ns = <54>; 221 gpmc,access-ns = <64>; 222 gpmc,rd-cycle-ns = <82>; [all …]
|
| D | dm8168-evm.dts | 96 gpmc,cs-on-ns = <0>; 97 gpmc,cs-rd-off-ns = <44>; 98 gpmc,cs-wr-off-ns = <44>; 99 gpmc,adv-on-ns = <6>; 100 gpmc,adv-rd-off-ns = <34>; 101 gpmc,adv-wr-off-ns = <44>; 102 gpmc,we-on-ns = <0>; 103 gpmc,we-off-ns = <40>; 104 gpmc,oe-on-ns = <0>; 105 gpmc,oe-off-ns = <54>; [all …]
|
| D | omap3-n950-n9.dtsi | 138 gpmc,cs-on-ns = <0>; 139 gpmc,cs-rd-off-ns = <87>; 140 gpmc,cs-wr-off-ns = <87>; 141 gpmc,adv-on-ns = <0>; 142 gpmc,adv-rd-off-ns = <10>; 143 gpmc,adv-wr-off-ns = <10>; 144 gpmc,oe-on-ns = <15>; 145 gpmc,oe-off-ns = <87>; 146 gpmc,we-on-ns = <0>; 147 gpmc,we-off-ns = <87>; [all …]
|
| D | omap4-duovero-parlor.dts | 147 gpmc,cs-on-ns = <10>; 148 gpmc,cs-rd-off-ns = <50>; 149 gpmc,cs-wr-off-ns = <50>; 150 gpmc,adv-on-ns = <0>; 151 gpmc,adv-rd-off-ns = <10>; 152 gpmc,adv-wr-off-ns = <10>; 153 gpmc,oe-on-ns = <15>; 154 gpmc,oe-off-ns = <50>; 155 gpmc,we-on-ns = <15>; 156 gpmc,we-off-ns = <50>; [all …]
|
| D | omap3-lilly-a83x.dtsi | 373 gpmc,wait-monitoring-ns = <0>; 375 gpmc,cs-on-ns = <0>; 376 gpmc,cs-rd-off-ns = <100>; 377 gpmc,cs-wr-off-ns = <100>; 378 gpmc,adv-on-ns = <0>; 379 gpmc,adv-rd-off-ns = <100>; 380 gpmc,adv-wr-off-ns = <100>; 381 gpmc,oe-on-ns = <5>; 382 gpmc,oe-off-ns = <75>; 383 gpmc,we-on-ns = <5>; [all …]
|
| D | exynos4212.dtsi | 56 clock-latency-ns = <200000>; 61 clock-latency-ns = <200000>; 66 clock-latency-ns = <200000>; 71 clock-latency-ns = <200000>; 76 clock-latency-ns = <200000>; 81 clock-latency-ns = <200000>; 86 clock-latency-ns = <200000>; 91 clock-latency-ns = <200000>; 96 clock-latency-ns = <200000>; 101 clock-latency-ns = <200000>; [all …]
|
| D | am335x-chilisom.dtsi | 217 gpmc,cs-on-ns = <0>; 218 gpmc,cs-rd-off-ns = <44>; 219 gpmc,cs-wr-off-ns = <44>; 220 gpmc,adv-on-ns = <6>; 221 gpmc,adv-rd-off-ns = <34>; 222 gpmc,adv-wr-off-ns = <44>; 223 gpmc,we-on-ns = <0>; 224 gpmc,we-off-ns = <40>; 225 gpmc,oe-on-ns = <0>; 226 gpmc,oe-off-ns = <54>; [all …]
|
| D | exynos4412.dtsi | 70 clock-latency-ns = <200000>; 75 clock-latency-ns = <200000>; 80 clock-latency-ns = <200000>; 85 clock-latency-ns = <200000>; 90 clock-latency-ns = <200000>; 95 clock-latency-ns = <200000>; 100 clock-latency-ns = <200000>; 106 clock-latency-ns = <200000>; 111 clock-latency-ns = <200000>; 116 clock-latency-ns = <200000>; [all …]
|
| D | omap3-lilly-dbb056.dts | 139 gpmc,cs-on-ns = <10>; 140 gpmc,cs-rd-off-ns = <65>; 141 gpmc,cs-wr-off-ns = <65>; 142 gpmc,adv-on-ns = <0>; 143 gpmc,adv-rd-off-ns = <10>; 144 gpmc,adv-wr-off-ns = <10>; 145 gpmc,oe-on-ns = <10>; 146 gpmc,oe-off-ns = <65>; 147 gpmc,we-on-ns = <10>; 148 gpmc,we-off-ns = <65>; [all …]
|
| D | am335x-igep0033.dtsi | 137 gpmc,cs-on-ns = <0>; 138 gpmc,cs-rd-off-ns = <44>; 139 gpmc,cs-wr-off-ns = <44>; 140 gpmc,adv-on-ns = <6>; 141 gpmc,adv-rd-off-ns = <34>; 142 gpmc,adv-wr-off-ns = <44>; 143 gpmc,we-on-ns = <0>; 144 gpmc,we-off-ns = <40>; 145 gpmc,oe-on-ns = <0>; 146 gpmc,oe-off-ns = <54>; [all …]
|
| D | logicpd-torpedo-som.dtsi | 46 gpmc,cs-on-ns = <0>; 47 gpmc,cs-rd-off-ns = <44>; 48 gpmc,cs-wr-off-ns = <44>; 49 gpmc,adv-on-ns = <6>; 50 gpmc,adv-rd-off-ns = <34>; 51 gpmc,adv-wr-off-ns = <44>; 52 gpmc,we-off-ns = <40>; 53 gpmc,oe-off-ns = <54>; 54 gpmc,access-ns = <64>; 55 gpmc,rd-cycle-ns = <82>; [all …]
|
| D | am335x-phycore-som.dtsi | 174 gpmc,cs-on-ns = <0>; 175 gpmc,cs-rd-off-ns = <30>; 176 gpmc,cs-wr-off-ns = <30>; 177 gpmc,adv-on-ns = <0>; 178 gpmc,adv-rd-off-ns = <30>; 179 gpmc,adv-wr-off-ns = <30>; 180 gpmc,we-on-ns = <0>; 181 gpmc,we-off-ns = <20>; 182 gpmc,oe-on-ns = <10>; 183 gpmc,oe-off-ns = <30>; [all …]
|
| D | omap3-igep.dtsi | 105 gpmc,cs-on-ns = <0>; 106 gpmc,cs-rd-off-ns = <44>; 107 gpmc,cs-wr-off-ns = <44>; 108 gpmc,adv-on-ns = <6>; 109 gpmc,adv-rd-off-ns = <34>; 110 gpmc,adv-wr-off-ns = <44>; 111 gpmc,we-off-ns = <40>; 112 gpmc,oe-off-ns = <54>; 113 gpmc,access-ns = <64>; 114 gpmc,rd-cycle-ns = <82>; [all …]
|
| D | omap3-cm-t3x.dtsi | 272 gpmc,cs-on-ns = <0>; 273 gpmc,cs-rd-off-ns = <120>; 274 gpmc,cs-wr-off-ns = <120>; 276 gpmc,adv-on-ns = <0>; 277 gpmc,adv-rd-off-ns = <120>; 278 gpmc,adv-wr-off-ns = <120>; 280 gpmc,we-on-ns = <6>; 281 gpmc,we-off-ns = <90>; 283 gpmc,oe-on-ns = <6>; 284 gpmc,oe-off-ns = <90>; [all …]
|
| D | omap3-evm-37xx.dts | 168 gpmc,cs-on-ns = <0>; 169 gpmc,cs-rd-off-ns = <44>; 170 gpmc,cs-wr-off-ns = <44>; 171 gpmc,adv-on-ns = <6>; 172 gpmc,adv-rd-off-ns = <34>; 173 gpmc,adv-wr-off-ns = <44>; 174 gpmc,we-off-ns = <40>; 175 gpmc,oe-off-ns = <54>; 176 gpmc,access-ns = <64>; 177 gpmc,rd-cycle-ns = <82>; [all …]
|
| D | omap3-n900.dts | 726 gpmc,cs-on-ns = <0>; 727 gpmc,cs-rd-off-ns = <87>; 728 gpmc,cs-wr-off-ns = <87>; 729 gpmc,adv-on-ns = <0>; 730 gpmc,adv-rd-off-ns = <10>; 731 gpmc,adv-wr-off-ns = <10>; 732 gpmc,oe-on-ns = <15>; 733 gpmc,oe-off-ns = <87>; 734 gpmc,we-on-ns = <0>; 735 gpmc,we-off-ns = <87>; [all …]
|
| D | k2l-evm.dts | 55 ti,cs-min-turnaround-ns = <12>; 56 ti,cs-read-hold-ns = <6>; 57 ti,cs-read-strobe-ns = <23>; 58 ti,cs-read-setup-ns = <9>; 59 ti,cs-write-hold-ns = <8>; 60 ti,cs-write-strobe-ns = <23>; 61 ti,cs-write-setup-ns = <8>;
|
| D | omap3-overo-base.dtsi | 236 gpmc,cs-on-ns = <0>; 237 gpmc,cs-rd-off-ns = <44>; 238 gpmc,cs-wr-off-ns = <44>; 239 gpmc,adv-on-ns = <6>; 240 gpmc,adv-rd-off-ns = <34>; 241 gpmc,adv-wr-off-ns = <44>; 242 gpmc,we-off-ns = <40>; 243 gpmc,oe-off-ns = <54>; 244 gpmc,access-ns = <64>; 245 gpmc,rd-cycle-ns = <82>; [all …]
|
| D | omap3-ldp.dts | 111 gpmc,cs-on-ns = <0>; 112 gpmc,cs-rd-off-ns = <44>; 113 gpmc,cs-wr-off-ns = <44>; 114 gpmc,adv-on-ns = <6>; 115 gpmc,adv-rd-off-ns = <34>; 116 gpmc,adv-wr-off-ns = <44>; 117 gpmc,we-off-ns = <40>; 118 gpmc,oe-off-ns = <54>; 119 gpmc,access-ns = <64>; 120 gpmc,rd-cycle-ns = <82>; [all …]
|
| D | k2e-evm.dts | 78 ti,cs-min-turnaround-ns = <12>; 79 ti,cs-read-hold-ns = <6>; 80 ti,cs-read-strobe-ns = <23>; 81 ti,cs-read-setup-ns = <9>; 82 ti,cs-write-hold-ns = <8>; 83 ti,cs-write-strobe-ns = <23>; 84 ti,cs-write-setup-ns = <8>;
|
| D | am335x-nano.dts | 263 gpmc,cs-on-ns = <0>; 264 gpmc,cs-rd-off-ns = <160>; 265 gpmc,cs-wr-off-ns = <160>; 266 gpmc,adv-on-ns = <10>; 267 gpmc,adv-rd-off-ns = <30>; 268 gpmc,adv-wr-off-ns = <30>; 269 gpmc,oe-on-ns = <40>; 270 gpmc,oe-off-ns = <160>; 271 gpmc,we-on-ns = <40>; 272 gpmc,we-off-ns = <160>; [all …]
|
| D | omap3-tao3530.dtsi | 286 gpmc,cs-on-ns = <0>; 287 gpmc,cs-rd-off-ns = <36>; 288 gpmc,cs-wr-off-ns = <36>; 289 gpmc,adv-on-ns = <6>; 290 gpmc,adv-rd-off-ns = <24>; 291 gpmc,adv-wr-off-ns = <36>; 292 gpmc,oe-on-ns = <6>; 293 gpmc,oe-off-ns = <48>; 294 gpmc,we-on-ns = <6>; 295 gpmc,we-off-ns = <30>; [all …]
|
| D | am335x-baltos-ir5221.dts | 251 gpmc,cs-on-ns = <0>; 252 gpmc,cs-rd-off-ns = <44>; 253 gpmc,cs-wr-off-ns = <44>; 254 gpmc,adv-on-ns = <6>; 255 gpmc,adv-rd-off-ns = <34>; 256 gpmc,adv-wr-off-ns = <44>; 257 gpmc,we-on-ns = <0>; 258 gpmc,we-off-ns = <40>; 259 gpmc,oe-on-ns = <0>; 260 gpmc,oe-off-ns = <54>; [all …]
|
| D | omap3-beagle.dts | 395 gpmc,cs-on-ns = <0>; 396 gpmc,cs-rd-off-ns = <36>; 397 gpmc,cs-wr-off-ns = <36>; 398 gpmc,adv-on-ns = <6>; 399 gpmc,adv-rd-off-ns = <24>; 400 gpmc,adv-wr-off-ns = <36>; 401 gpmc,oe-on-ns = <6>; 402 gpmc,oe-off-ns = <48>; 403 gpmc,we-on-ns = <6>; 404 gpmc,we-off-ns = <30>; [all …]
|
| D | k2hk-evm.dts | 99 ti,cs-min-turnaround-ns = <12>; 100 ti,cs-read-hold-ns = <6>; 101 ti,cs-read-strobe-ns = <23>; 102 ti,cs-read-setup-ns = <9>; 103 ti,cs-write-hold-ns = <8>; 104 ti,cs-write-strobe-ns = <23>; 105 ti,cs-write-setup-ns = <8>;
|
| D | rk3288-veyron.dtsi | 171 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */ 172 i2c-scl-rising-time-ns = <100>; /* 45ns measured */ 308 i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */ 309 i2c-scl-rising-time-ns = <100>; /* 40ns measured */ 323 i2c-scl-falling-time-ns = <50>; /* 10ns measured */ 324 i2c-scl-rising-time-ns = <800>; /* 600ns measured */ 331 i2c-scl-falling-time-ns = <50>; /* 11ns measured */ 332 i2c-scl-rising-time-ns = <300>; /* 225ns measured */ 339 i2c-scl-falling-time-ns = <300>; 340 i2c-scl-rising-time-ns = <1000>; [all …]
|
| D | am43x-epos-evm.dts | 572 gpmc,cs-on-ns = <0>; 573 gpmc,cs-rd-off-ns = <40>; /* tCEA + tCHZ + 1 */ 574 gpmc,cs-wr-off-ns = <40>; 575 gpmc,adv-on-ns = <0>; /* cs-on-ns */ 576 gpmc,adv-rd-off-ns = <25>; /* min( tALH + tALS + 1) */ 577 gpmc,adv-wr-off-ns = <25>; /* min( tALH + tALS + 1) */ 578 gpmc,we-on-ns = <0>; /* cs-on-ns */ 579 gpmc,we-off-ns = <20>; /* we-on-time + tWP + 2 */ 580 gpmc,oe-on-ns = <3>; /* cs-on-ns + tRR + 2 */ 581 gpmc,oe-off-ns = <30>; /* oe-on-ns + tRP + 2 */ [all …]
|
| D | omap3-gta04.dtsi | 500 gpmc,cs-on-ns = <0>; 501 gpmc,cs-rd-off-ns = <44>; 502 gpmc,cs-wr-off-ns = <44>; 503 gpmc,adv-on-ns = <6>; 504 gpmc,adv-rd-off-ns = <34>; 505 gpmc,adv-wr-off-ns = <44>; 506 gpmc,we-off-ns = <40>; 507 gpmc,oe-off-ns = <54>; 508 gpmc,access-ns = <64>; 509 gpmc,rd-cycle-ns = <82>; [all …]
|
| D | am335x-evm.dts | 528 gpmc,cs-on-ns = <0>; 529 gpmc,cs-rd-off-ns = <44>; 530 gpmc,cs-wr-off-ns = <44>; 531 gpmc,adv-on-ns = <6>; 532 gpmc,adv-rd-off-ns = <34>; 533 gpmc,adv-wr-off-ns = <44>; 534 gpmc,we-on-ns = <0>; 535 gpmc,we-off-ns = <40>; 536 gpmc,oe-on-ns = <0>; 537 gpmc,oe-off-ns = <54>; [all …]
|
| D | dra72-evm.dts | 503 gpmc,cs-on-ns = <0>; 504 gpmc,cs-rd-off-ns = <80>; 505 gpmc,cs-wr-off-ns = <80>; 506 gpmc,adv-on-ns = <0>; 507 gpmc,adv-rd-off-ns = <60>; 508 gpmc,adv-wr-off-ns = <60>; 509 gpmc,we-on-ns = <10>; 510 gpmc,we-off-ns = <50>; 511 gpmc,oe-on-ns = <4>; 512 gpmc,oe-off-ns = <40>; [all …]
|
| D | dra7-evm.dts | 751 gpmc,cs-on-ns = <0>; 752 gpmc,cs-rd-off-ns = <80>; 753 gpmc,cs-wr-off-ns = <80>; 754 gpmc,adv-on-ns = <0>; 755 gpmc,adv-rd-off-ns = <60>; 756 gpmc,adv-wr-off-ns = <60>; 757 gpmc,we-on-ns = <10>; 758 gpmc,we-off-ns = <50>; 759 gpmc,oe-on-ns = <4>; 760 gpmc,oe-off-ns = <40>; [all …]
|
| D | am437x-gp-evm.dts | 828 gpmc,cs-on-ns = <0>; 829 gpmc,cs-rd-off-ns = <40>; 830 gpmc,cs-wr-off-ns = <40>; 831 gpmc,adv-on-ns = <0>; 832 gpmc,adv-rd-off-ns = <25>; 833 gpmc,adv-wr-off-ns = <25>; 834 gpmc,we-on-ns = <0>; 835 gpmc,we-off-ns = <20>; 836 gpmc,oe-on-ns = <3>; 837 gpmc,oe-off-ns = <30>; [all …]
|
| D | omap3-pandora-common.dtsi | 554 gpmc,cs-on-ns = <0>; 555 gpmc,cs-rd-off-ns = <44>; 556 gpmc,cs-wr-off-ns = <44>; 557 gpmc,adv-on-ns = <6>; 558 gpmc,adv-rd-off-ns = <34>; 559 gpmc,adv-wr-off-ns = <44>; 560 gpmc,we-off-ns = <40>; 561 gpmc,oe-off-ns = <54>; 562 gpmc,access-ns = <64>; 563 gpmc,rd-cycle-ns = <82>; [all …]
|
| D | elpida_ecb240abacn.dtsi | 41 tRAS-max-ns = <70000>; 63 tRAS-max-ns = <70000>;
|
| D | samsung_k3pe0e000b.dtsi | 41 tRAS-max-ns = <70000>; 63 tRAS-max-ns = <70000>;
|
| /linux-4.4.14/security/apparmor/ |
| D | policy.c | 277 struct aa_namespace *ns; in alloc_namespace() local 279 ns = kzalloc(sizeof(*ns), GFP_KERNEL); in alloc_namespace() 280 AA_DEBUG("%s(%p)\n", __func__, ns); in alloc_namespace() 281 if (!ns) in alloc_namespace() 283 if (!policy_init(&ns->base, prefix, name)) in alloc_namespace() 286 INIT_LIST_HEAD(&ns->sub_ns); in alloc_namespace() 287 mutex_init(&ns->lock); in alloc_namespace() 290 ns->unconfined = aa_alloc_profile("unconfined"); in alloc_namespace() 291 if (!ns->unconfined) in alloc_namespace() 294 ns->unconfined->flags = PFLAG_IX_ON_NAME_ERROR | in alloc_namespace() [all …]
|
| D | apparmorfs.c | 421 id_len = snprintf(NULL, 0, ".%ld", profile->ns->uniq_id); in __aa_fs_profile_mkdir() 428 sprintf(profile->dirname + len, ".%ld", profile->ns->uniq_id++); in __aa_fs_profile_mkdir() 477 void __aa_fs_namespace_rmdir(struct aa_namespace *ns) in __aa_fs_namespace_rmdir() argument 483 if (!ns) in __aa_fs_namespace_rmdir() 486 list_for_each_entry(child, &ns->base.profiles, base.list) in __aa_fs_namespace_rmdir() 489 list_for_each_entry(sub, &ns->sub_ns, base.list) { in __aa_fs_namespace_rmdir() 496 securityfs_remove(ns->dents[i]); in __aa_fs_namespace_rmdir() 497 ns->dents[i] = NULL; in __aa_fs_namespace_rmdir() 501 int __aa_fs_namespace_mkdir(struct aa_namespace *ns, struct dentry *parent, in __aa_fs_namespace_mkdir() argument 510 name = ns->base.name; in __aa_fs_namespace_mkdir() [all …]
|
| D | domain.c | 96 struct aa_namespace *ns, in change_profile_perms() argument 110 } else if ((ns == profile->ns)) { in change_profile_perms() 118 state = aa_dfa_match(profile->file.dfa, start, ns->base.name); in change_profile_perms() 173 static struct aa_profile *find_attach(struct aa_namespace *ns, in find_attach() argument 242 struct aa_namespace *ns = profile->ns; in x_table_lookup() local 270 new_ns = aa_find_namespace(ns, ns_name); in x_table_lookup() 282 new_profile = aa_lookup_profile(new_ns ? new_ns : ns, xname); in x_table_lookup() 304 struct aa_namespace *ns = profile->ns; in x_to_profile() local 314 new_profile = find_attach(ns, &profile->base.profiles, in x_to_profile() 318 new_profile = find_attach(ns, &ns->base.profiles, in x_to_profile() [all …]
|
| D | procattr.c | 42 struct aa_namespace *ns = profile->ns; in aa_getprocattr() local 43 struct aa_namespace *current_ns = __aa_current_profile()->ns; in aa_getprocattr() 46 if (!aa_ns_visible(current_ns, ns)) in aa_getprocattr() 49 ns_name = aa_ns_name(current_ns, ns); in aa_getprocattr()
|
| D | policy_unpack.c | 640 static int verify_header(struct aa_ext *e, int required, const char **ns) in verify_header() argument 644 *ns = NULL; in verify_header() 665 if (*ns && strcmp(*ns, name)) in verify_header() 667 else if (!*ns) in verify_header() 668 *ns = name; in verify_header() 749 int aa_unpack(void *udata, size_t size, struct list_head *lh, const char **ns) in aa_unpack() argument 760 *ns = NULL; in aa_unpack() 763 error = verify_header(&e, e.pos == e.start, ns); in aa_unpack()
|
| /linux-4.4.14/include/linux/ |
| D | ipc_namespace.h | 62 struct ns_common ns; member 71 extern void shm_destroy_orphaned(struct ipc_namespace *ns); 73 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument 77 extern int mq_init_ns(struct ipc_namespace *ns); 112 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() argument 117 struct user_namespace *user_ns, struct ipc_namespace *ns); 119 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument 121 if (ns) in get_ipc_ns() 122 atomic_inc(&ns->count); in get_ipc_ns() 123 return ns; in get_ipc_ns() [all …]
|
| D | pid_namespace.h | 47 struct ns_common ns; member 55 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument 57 if (ns != &init_pid_ns) in get_pid_ns() 58 kref_get(&ns->kref); in get_pid_ns() 59 return ns; in get_pid_ns() 63 struct user_namespace *user_ns, struct pid_namespace *ns); 66 extern void put_pid_ns(struct pid_namespace *ns); 71 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument 73 return ns; in get_pid_ns() 77 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() argument [all …]
|
| D | user_namespace.h | 34 struct ns_common ns; member 48 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns() argument 50 if (ns) in get_user_ns() 51 atomic_inc(&ns->count); in get_user_ns() 52 return ns; in get_user_ns() 57 extern void free_user_ns(struct user_namespace *ns); 59 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns() argument 61 if (ns && atomic_dec_and_test(&ns->count)) in put_user_ns() 62 free_user_ns(ns); in put_user_ns() 74 extern bool userns_may_setgroups(const struct user_namespace *ns); [all …]
|
| D | proc_ns.h | 17 void (*put)(struct ns_common *ns); 18 int (*install)(struct nsproxy *nsproxy, struct ns_common *ns); 41 extern int pid_ns_prepare_proc(struct pid_namespace *ns); 42 extern void pid_ns_release_proc(struct pid_namespace *ns); 48 static inline int pid_ns_prepare_proc(struct pid_namespace *ns) { return 0; } in pid_ns_prepare_proc() argument 49 static inline void pid_ns_release_proc(struct pid_namespace *ns) {} in pid_ns_release_proc() argument 60 static inline int ns_alloc_inum(struct ns_common *ns) in ns_alloc_inum() argument 62 atomic_long_set(&ns->stashed, 0); in ns_alloc_inum() 63 return proc_alloc_inum(&ns->inum); in ns_alloc_inum() 66 #define ns_free_inum(ns) proc_free_inum((ns)->inum) argument
|
| D | utsname.h | 27 struct ns_common ns; member 32 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns() argument 34 kref_get(&ns->kref); in get_uts_ns() 41 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns() argument 43 kref_put(&ns->kref, free_uts_ns); in put_uts_ns() 46 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns() argument 50 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns() argument
|
| D | nsproxy.h | 68 void free_nsproxy(struct nsproxy *ns); 73 static inline void put_nsproxy(struct nsproxy *ns) in put_nsproxy() argument 75 if (atomic_dec_and_test(&ns->count)) { in put_nsproxy() 76 free_nsproxy(ns); in put_nsproxy() 80 static inline void get_nsproxy(struct nsproxy *ns) in get_nsproxy() argument 82 atomic_inc(&ns->count); in get_nsproxy()
|
| D | pid.h | 53 struct pid_namespace *ns; member 110 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns); 120 extern struct pid *alloc_pid(struct pid_namespace *ns); 122 extern void disable_pid_allocation(struct pid_namespace *ns); 136 struct pid_namespace *ns = NULL; in ns_of_pid() local 138 ns = pid->numbers[pid->level].ns; in ns_of_pid() 139 return ns; in ns_of_pid() 172 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
|
| D | timecounter.h | 82 u64 ns = (u64) cycles; in cyclecounter_cyc2ns() local 84 ns = (ns * cc->mult) + *frac; in cyclecounter_cyc2ns() 85 *frac = ns & mask; in cyclecounter_cyc2ns() 86 return ns >> cc->shift; in cyclecounter_cyc2ns()
|
| D | kernfs.h | 123 const void *ns; /* namespace tag */ member 276 const char *name, const void *ns); 290 void *priv, const void *ns); 297 void *priv, const void *ns, 308 const void *ns); 317 bool *new_sb_created, const void *ns); 319 struct super_block *kernfs_pin_sb(struct kernfs_root *root, const void *ns); 351 const void *ns) in kernfs_find_and_get_ns() argument 376 umode_t mode, void *priv, const void *ns) in kernfs_create_dir_ns() argument 382 void *priv, const void *ns, struct lock_class_key *key) in __kernfs_create_file() argument [all …]
|
| D | ktime.h | 178 s64 ns = kt.tv64; in ktime_divns() local 179 u64 tmp = ns < 0 ? -ns : ns; in ktime_divns() 182 return ns < 0 ? -tmp : tmp; in ktime_divns() 283 static inline ktime_t ns_to_ktime(u64 ns) in ns_to_ktime() argument 287 return ktime_add_ns(ktime_zero, ns); in ns_to_ktime()
|
| D | uidgid.h | 130 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() argument 132 return from_kuid(ns, uid) != (uid_t) -1; in kuid_has_mapping() 135 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument 137 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping() 178 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() argument 183 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument
|
| D | capability.h | 211 struct user_namespace *ns, int cap); 214 struct user_namespace *ns, int cap); 216 extern bool ns_capable(struct user_namespace *ns, int cap); 223 struct user_namespace *ns, int cap) in has_ns_capability() argument 232 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() argument 240 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() argument 246 extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
|
| D | projid.h | 57 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping() argument 59 return from_kprojid(ns, projid) != (projid_t)-1; in kprojid_has_mapping() 82 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping() argument
|
| D | time.h | 233 static __always_inline void timespec_add_ns(struct timespec *a, u64 ns) in timespec_add_ns() argument 235 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec_add_ns() 236 a->tv_nsec = ns; in timespec_add_ns()
|
| D | time64.h | 219 static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns) in timespec64_add_ns() argument 221 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec64_add_ns() 222 a->tv_nsec = ns; in timespec64_add_ns()
|
| D | sysfs.h | 216 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns); 230 const void *ns); 236 const void *ns); 296 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument 331 const void *ns) in sysfs_create_file_ns() argument 350 const void *ns) in sysfs_remove_file_ns() argument 395 const char *new_name, const void *ns) in sysfs_rename_link_ns() argument
|
| D | ptrace.h | 175 struct pid_namespace *ns; in ptrace_event_pid() local 178 ns = task_active_pid_ns(rcu_dereference(current->parent)); in ptrace_event_pid() 179 if (ns) in ptrace_event_pid() 180 message = pid_nr_ns(pid, ns); in ptrace_event_pid()
|
| /linux-4.4.14/security/keys/ |
| D | persistent.c | 22 static int key_create_persistent_register(struct user_namespace *ns) in key_create_persistent_register() argument 33 ns->persistent_keyring_register = reg; in key_create_persistent_register() 42 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, in key_create_persistent() argument 48 if (!ns->persistent_keyring_register) { in key_create_persistent() 49 long err = key_create_persistent_register(ns); in key_create_persistent() 53 reg_ref = make_key_ref(ns->persistent_keyring_register, true); in key_create_persistent() 64 ns->persistent_keyring_register); in key_create_persistent() 75 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, in key_get_persistent() argument 87 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); in key_get_persistent() 89 if (ns->persistent_keyring_register) { in key_get_persistent() [all …]
|
| /linux-4.4.14/drivers/clk/qcom/ |
| D | clk-rcg.c | 26 static u32 ns_to_src(struct src_sel *s, u32 ns) in ns_to_src() argument 28 ns >>= s->src_sel_shift; in ns_to_src() 29 ns &= SRC_SEL_MASK; in ns_to_src() 30 return ns; in ns_to_src() 33 static u32 src_to_ns(struct src_sel *s, u8 src, u32 ns) in src_to_ns() argument 39 ns &= ~mask; in src_to_ns() 41 ns |= src << s->src_sel_shift; in src_to_ns() 42 return ns; in src_to_ns() 49 u32 ns; in clk_rcg_get_parent() local 52 ret = regmap_read(rcg->clkr.regmap, rcg->ns_reg, &ns); in clk_rcg_get_parent() [all …]
|
| /linux-4.4.14/Documentation/devicetree/bindings/mtd/ |
| D | gpmc-nor.txt | 14 - gpmc,cs-on-ns: Chip-select assertion time 15 - gpmc,cs-rd-off-ns: Chip-select de-assertion time for reads 16 - gpmc,cs-wr-off-ns: Chip-select de-assertion time for writes 17 - gpmc,oe-on-ns: Output-enable assertion time 18 - gpmc,oe-off-ns: Output-enable de-assertion time 19 - gpmc,we-on-ns Write-enable assertion time 20 - gpmc,we-off-ns: Write-enable de-assertion time 21 - gpmc,access-ns: Start cycle to first data capture (read access) 22 - gpmc,rd-cycle-ns: Total read cycle time 23 - gpmc,wr-cycle-ns: Total write cycle time [all …]
|
| D | gpmc-nand.txt | 74 gpmc,cs-on-ns = <0>; 75 gpmc,cs-rd-off-ns = <44>; 76 gpmc,cs-wr-off-ns = <44>; 77 gpmc,adv-on-ns = <6>; 78 gpmc,adv-rd-off-ns = <34>; 79 gpmc,adv-wr-off-ns = <44>; 80 gpmc,we-off-ns = <40>; 81 gpmc,oe-off-ns = <54>; 82 gpmc,access-ns = <64>; 83 gpmc,rd-cycle-ns = <82>; [all …]
|
| /linux-4.4.14/Documentation/devicetree/bindings/net/ |
| D | gpmc-eth.txt | 29 - gpmc,cs-on-ns: Chip-select assertion time 30 - gpmc,cs-rd-off-ns: Chip-select de-assertion time for reads 31 - gpmc,cs-wr-off-ns: Chip-select de-assertion time for writes 32 - gpmc,oe-on-ns: Output-enable assertion time 33 - gpmc,oe-off-ns: Output-enable de-assertion time 34 - gpmc,we-on-ns: Write-enable assertion time 35 - gpmc,we-off-ns: Write-enable de-assertion time 36 - gpmc,access-ns: Start cycle to first data capture (read access) 37 - gpmc,rd-cycle-ns: Total read cycle time 38 - gpmc,wr-cycle-ns: Total write cycle time [all …]
|
| /linux-4.4.14/fs/ |
| D | nsfs.c | 28 struct ns_common *ns = inode->i_private; in ns_prune_dentry() local 29 atomic_long_set(&ns->stashed, 0); in ns_prune_dentry() 42 struct ns_common *ns = inode->i_private; in nsfs_evict() local 44 ns->ops->put(ns); in nsfs_evict() 54 struct ns_common *ns; in ns_get_path() local 58 ns = ns_ops->get(task); in ns_get_path() 59 if (!ns) { in ns_get_path() 64 d = atomic_long_read(&ns->stashed); in ns_get_path() 71 ns_ops->put(ns); in ns_get_path() 80 ns_ops->put(ns); in ns_get_path() [all …]
|
| D | proc_namespace.c | 22 struct mnt_namespace *ns = p->ns; in mounts_poll() local 26 poll_wait(file, &p->ns->poll, wait); in mounts_poll() 28 event = ACCESS_ONCE(ns->event); in mounts_poll() 239 struct mnt_namespace *ns = NULL; in mounts_open_common() local 255 ns = nsp->mnt_ns; in mounts_open_common() 256 get_mnt_ns(ns); in mounts_open_common() 272 m->poll_event = ns->event; in mounts_open_common() 275 p->ns = ns; in mounts_open_common() 285 put_mnt_ns(ns); in mounts_open_common() 295 put_mnt_ns(p->ns); in mounts_release()
|
| D | namespace.c | 711 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint() local 719 list_for_each_entry(mnt, &ns->list, mnt_list) { in __is_local_mountpoint() 790 static void touch_mnt_namespace(struct mnt_namespace *ns) in touch_mnt_namespace() argument 792 if (ns) { in touch_mnt_namespace() 793 ns->event = ++event; in touch_mnt_namespace() 794 wake_up_interruptible(&ns->poll); in touch_mnt_namespace() 801 static void __touch_mnt_namespace(struct mnt_namespace *ns) in __touch_mnt_namespace() argument 803 if (ns && ns->event != event) { in __touch_mnt_namespace() 804 ns->event = event; in __touch_mnt_namespace() 805 wake_up_interruptible(&ns->poll); in __touch_mnt_namespace() [all …]
|
| D | mount.h | 9 struct ns_common ns; member 103 static inline void get_mnt_ns(struct mnt_namespace *ns) in get_mnt_ns() argument 105 atomic_inc(&ns->count); in get_mnt_ns() 121 struct mnt_namespace *ns; member
|
| /linux-4.4.14/fs/proc/ |
| D | root.c | 35 struct pid_namespace *ns = (struct pid_namespace *)data; in proc_set_super() local 36 sb->s_fs_info = get_pid_ns(ns); in proc_set_super() 105 struct pid_namespace *ns; in proc_mount() local 109 ns = (struct pid_namespace *)data; in proc_mount() 112 ns = task_active_pid_ns(current); in proc_mount() 116 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN)) in proc_mount() 120 sb = sget(fs_type, proc_test_super, proc_set_super, flags, ns); in proc_mount() 131 if (!proc_parse_options(options, ns)) { in proc_mount() 153 struct pid_namespace *ns; in proc_kill_sb() local 155 ns = (struct pid_namespace *)sb->s_fs_info; in proc_kill_sb() [all …]
|
| D | thread_self.c | 12 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_thread_self_readlink() local 13 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_readlink() 14 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_readlink() 24 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_thread_self_follow_link() local 25 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_follow_link() 26 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_follow_link() 49 struct pid_namespace *ns = s->s_fs_info; in proc_setup_thread_self() local 76 ns->proc_thread_self = thread_self; in proc_setup_thread_self()
|
| D | array.c | 142 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument 155 task_tgid_nr_ns(rcu_dereference(p->real_parent), ns) : 0; in task_state() 159 tpid = task_pid_nr_ns(tracer, ns); in task_state() 161 tgid = task_tgid_nr_ns(p, ns); in task_state() 182 tgid, ngid, pid_nr_ns(pid, ns), ppid, tpid, in task_state() 201 for (g = ns->level; g <= pid->level; g++) in task_state() 203 task_tgid_nr_ns(p, pid->numbers[g].ns)); in task_state() 205 for (g = ns->level; g <= pid->level; g++) in task_state() 207 task_pid_nr_ns(p, pid->numbers[g].ns)); in task_state() 209 for (g = ns->level; g <= pid->level; g++) in task_state() [all …]
|
| D | self.c | 12 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_readlink() local 13 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_readlink() 23 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_follow_link() local 24 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_follow_link() 48 struct pid_namespace *ns = s->s_fs_info; in proc_setup_self() local 75 ns->proc_self = self; in proc_setup_self()
|
| D | base.c | 403 static int proc_pid_auxv(struct seq_file *m, struct pid_namespace *ns, in proc_pid_auxv() argument 425 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan() argument 464 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack() argument 501 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat() argument 576 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score() argument 617 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits() argument 659 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall() argument 777 struct pid_namespace *ns; in proc_single_show() local 782 ns = inode->i_sb->s_fs_info; in proc_single_show() 788 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task); in proc_single_show() [all …]
|
| D | proc_net.c | 110 struct nsproxy *ns; in get_proc_task_net() local 117 ns = task->nsproxy; in get_proc_task_net() 118 if (ns != NULL) in get_proc_task_net() 119 net = get_net(ns->net_ns); in get_proc_task_net()
|
| /linux-4.4.14/drivers/scsi/bfa/ |
| D | bfa_fcs_lport.c | 3654 static void bfa_fcs_lport_ns_sm_offline(struct bfa_fcs_lport_ns_s *ns, 3656 static void bfa_fcs_lport_ns_sm_plogi_sending(struct bfa_fcs_lport_ns_s *ns, 3658 static void bfa_fcs_lport_ns_sm_plogi(struct bfa_fcs_lport_ns_s *ns, 3660 static void bfa_fcs_lport_ns_sm_plogi_retry(struct bfa_fcs_lport_ns_s *ns, 3663 struct bfa_fcs_lport_ns_s *ns, 3665 static void bfa_fcs_lport_ns_sm_rspn_id(struct bfa_fcs_lport_ns_s *ns, 3667 static void bfa_fcs_lport_ns_sm_rspn_id_retry(struct bfa_fcs_lport_ns_s *ns, 3670 struct bfa_fcs_lport_ns_s *ns, 3672 static void bfa_fcs_lport_ns_sm_rft_id_retry(struct bfa_fcs_lport_ns_s *ns, 3674 static void bfa_fcs_lport_ns_sm_rft_id(struct bfa_fcs_lport_ns_s *ns, [all …]
|
| /linux-4.4.14/drivers/nvme/host/ |
| D | scsi.c | 523 static int nvme_trans_standard_inquiry_page(struct nvme_ns *ns, in nvme_trans_standard_inquiry_page() argument 527 struct nvme_dev *dev = ns->dev; in nvme_trans_standard_inquiry_page() 538 nvme_sc = nvme_identify_ns(dev, ns->ns_id, &id_ns); in nvme_trans_standard_inquiry_page() 567 static int nvme_trans_supported_vpd_pages(struct nvme_ns *ns, in nvme_trans_supported_vpd_pages() argument 587 static int nvme_trans_unit_serial_page(struct nvme_ns *ns, in nvme_trans_unit_serial_page() argument 591 struct nvme_dev *dev = ns->dev; in nvme_trans_unit_serial_page() 603 static int nvme_trans_device_id_page(struct nvme_ns *ns, struct sg_io_hdr *hdr, in nvme_trans_device_id_page() argument 606 struct nvme_dev *dev = ns->dev; in nvme_trans_device_id_page() 610 __be32 tmp_id = cpu_to_be32(ns->ns_id); in nvme_trans_device_id_page() 619 nvme_sc = nvme_identify_ns(dev, ns->ns_id, &id_ns); in nvme_trans_device_id_page() [all …]
|
| D | pci.c | 524 struct nvme_ns *ns = req->rq_disk->private_data; in nvme_dif_remap() local 530 if (!ns->pi_type || ns->pi_type == NVME_NS_DPS_PI_TYPE3) in nvme_dif_remap() 541 phys = nvme_block_nr(ns, blk_rq_pos(req)); in nvme_dif_remap() 542 nlb = (blk_rq_bytes(req) >> ns->lba_shift); in nvme_dif_remap() 543 ts = ns->disk->queue->integrity.tuple_size; in nvme_dif_remap() 553 static void nvme_init_integrity(struct nvme_ns *ns) in nvme_init_integrity() argument 557 switch (ns->pi_type) { in nvme_init_integrity() 569 integrity.tuple_size = ns->ms; in nvme_init_integrity() 570 blk_integrity_register(ns->disk, &integrity); in nvme_init_integrity() 571 blk_queue_max_integrity_segments(ns->queue, 1); in nvme_init_integrity() [all …]
|
| D | lightnvm.c | 276 struct nvme_ns *ns = nvmdev->q->queuedata; in nvme_nvm_identity() local 277 struct nvme_dev *dev = ns->dev; in nvme_nvm_identity() 283 c.identity.nsid = cpu_to_le32(ns->ns_id); in nvme_nvm_identity() 314 struct nvme_ns *ns = nvmdev->q->queuedata; in nvme_nvm_get_l2p_tbl() local 315 struct nvme_dev *dev = ns->dev; in nvme_nvm_get_l2p_tbl() 324 c.l2p.nsid = cpu_to_le32(ns->ns_id); in nvme_nvm_get_l2p_tbl() 363 struct nvme_ns *ns = q->queuedata; in nvme_nvm_get_bb_tbl() local 364 struct nvme_dev *dev = ns->dev; in nvme_nvm_get_bb_tbl() 371 c.get_bb.nsid = cpu_to_le32(ns->ns_id); in nvme_nvm_get_bb_tbl() 421 struct nvme_ns *ns = nvmdev->q->queuedata; in nvme_nvm_set_bb_tbl() local [all …]
|
| D | nvme.h | 114 static inline u64 nvme_block_nr(struct nvme_ns *ns, sector_t sector) in nvme_block_nr() argument 116 return (sector >> (ns->lba_shift - 9)); in nvme_block_nr() 135 int nvme_sg_io(struct nvme_ns *ns, struct sg_io_hdr __user *u_hdr); 136 int nvme_sg_io32(struct nvme_ns *ns, unsigned long arg); 140 int nvme_nvm_ns_supported(struct nvme_ns *ns, struct nvme_id_ns *id); 151 static inline int nvme_nvm_ns_supported(struct nvme_ns *ns, struct nvme_id_ns *id) in nvme_nvm_ns_supported() argument
|
| /linux-4.4.14/security/selinux/ |
| D | netif.c | 56 static inline u32 sel_netif_hashfn(const struct net *ns, int ifindex) in sel_netif_hashfn() argument 58 return (((uintptr_t)ns + ifindex) & (SEL_NETIF_HASH_SIZE - 1)); in sel_netif_hashfn() 71 static inline struct sel_netif *sel_netif_find(const struct net *ns, in sel_netif_find() argument 74 int idx = sel_netif_hashfn(ns, ifindex); in sel_netif_find() 78 if (net_eq(netif->nsec.ns, ns) && in sel_netif_find() 101 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); in sel_netif_insert() 136 static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid_slow() argument 146 dev = dev_get_by_index(ns, ifindex); in sel_netif_sid_slow() 155 netif = sel_netif_find(ns, ifindex); in sel_netif_sid_slow() 169 new->nsec.ns = ns; in sel_netif_sid_slow() [all …]
|
| /linux-4.4.14/arch/powerpc/boot/ |
| D | addnote.c | 123 long nnote, nnote2, ns; in main() local 178 ns = ph + 2 * ps; in main() 181 PUT_32(ph + PH_OFFSET, ns); in main() 183 PUT_64(ph + PH_OFFSET, ns); in main() 192 PUT_32(ns, strlen(arch) + 1); in main() 193 PUT_32(ns + 4, N_DESCR * 4); in main() 194 PUT_32(ns + 8, 0x1275); in main() 195 strcpy((char *) &buf[ns + 12], arch); in main() 196 ns += 12 + strlen(arch) + 1; in main() 197 for (i = 0; i < N_DESCR; ++i, ns += 4) in main() [all …]
|
| D | simpleboot.c | 31 const u32 *na, *ns, *reg, *timebase; in platform_init() local 46 ns = fdt_getprop(_dtb_start, node, "#size-cells", &size); in platform_init() 47 if (!ns || (size != 4)) in platform_init() 56 if (size < (*na+*ns) * sizeof(u32)) in platform_init() 66 for (i = 0; i < *ns; i++) in platform_init()
|
| /linux-4.4.14/arch/tile/kernel/vdso/ |
| D | vgettimeofday.c | 67 u64 ns; in do_realtime() local 72 ns = vdso->wall_time_snsec; in do_realtime() 73 ns += vgetsns(vdso); in do_realtime() 74 ns >>= vdso->shift; in do_realtime() 77 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime() 78 ts->tv_nsec = ns; in do_realtime() 86 u64 ns; in do_monotonic() local 91 ns = vdso->monotonic_time_snsec; in do_monotonic() 92 ns += vgetsns(vdso); in do_monotonic() 93 ns >>= vdso->shift; in do_monotonic() [all …]
|
| /linux-4.4.14/drivers/of/ |
| D | fdt_address.c | 23 #define OF_CHECK_COUNTS(na, ns) ((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \ argument 24 (ns) > 0) 44 int na, int ns, int pna); 72 int na, int ns, int pna) in fdt_bus_default_map() argument 77 s = of_read_number(range + na + pna, ns); in fdt_bus_default_map() 113 int na, int ns, int pna, const char *rprop) in fdt_translate_one() argument 134 rone = na + pna + ns; in fdt_translate_one() 136 offset = bus->map(addr, ranges, na, ns, pna); in fdt_translate_one() 170 int na, ns, pna, pns; in fdt_translate_address() local 190 bus->count_cells(blob, parent, &na, &ns); in fdt_translate_address() [all …]
|
| D | address.c | 15 #define OF_CHECK_COUNTS(na, ns) (OF_CHECK_ADDR_COUNT(na) && (ns) > 0) argument 43 int na, int ns, int pna); 62 int na, int ns, int pna) in of_bus_default_map() argument 67 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 140 static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns, in of_bus_pci_map() argument 155 s = of_read_number(range + na + pna, ns); in of_bus_pci_map() 181 int onesize, i, na, ns; in of_get_pci_address() local 192 bus->count_cells(dev, &na, &ns); in of_get_pci_address() 203 onesize = na + ns; in of_get_pci_address() 208 *size = of_read_number(prop + na, ns); in of_get_pci_address() [all …]
|
| /linux-4.4.14/fs/ntfs/ |
| D | unistr.c | 340 unsigned char *ns; in ntfs_ucstonls() local 345 ns = *outs; in ntfs_ucstonls() 347 if (ns && !ns_len) { in ntfs_ucstonls() 351 if (!ns) { in ntfs_ucstonls() 353 ns = kmalloc(ns_len + 1, GFP_NOFS); in ntfs_ucstonls() 354 if (!ns) in ntfs_ucstonls() 358 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls() 365 else if (wc == -ENAMETOOLONG && ns != *outs) { in ntfs_ucstonls() 371 memcpy(tc, ns, ns_len); in ntfs_ucstonls() 373 kfree(ns); in ntfs_ucstonls() [all …]
|
| /linux-4.4.14/drivers/staging/lustre/lustre/include/ |
| D | lustre_dlm.h | 466 static inline int ns_connect_cancelset(struct ldlm_namespace *ns) in ns_connect_cancelset() argument 468 LASSERT(ns != NULL); in ns_connect_cancelset() 469 return !!(ns->ns_connect_flags & OBD_CONNECT_CANCELSET); in ns_connect_cancelset() 475 static inline int ns_connect_lru_resize(struct ldlm_namespace *ns) in ns_connect_lru_resize() argument 477 LASSERT(ns != NULL); in ns_connect_lru_resize() 478 return !!(ns->ns_connect_flags & OBD_CONNECT_LRU_RESIZE); in ns_connect_lru_resize() 481 static inline void ns_register_cancel(struct ldlm_namespace *ns, in ns_register_cancel() argument 484 LASSERT(ns != NULL); in ns_register_cancel() 485 ns->ns_cancel_for_recovery = arg; in ns_register_cancel() 893 ldlm_ns_name(struct ldlm_namespace *ns) in ldlm_ns_name() argument [all …]
|
| /linux-4.4.14/drivers/ptp/ |
| D | ptp_ixp46x.c | 56 u64 ns; in ixp_systime_read() local 62 ns = ((u64) hi) << 32; in ixp_systime_read() 63 ns |= lo; in ixp_systime_read() 64 ns <<= TICKS_NS_SHIFT; in ixp_systime_read() 66 return ns; in ixp_systime_read() 69 static void ixp_systime_write(struct ixp46x_ts_regs *regs, u64 ns) in ixp_systime_write() argument 73 ns >>= TICKS_NS_SHIFT; in ixp_systime_write() 74 hi = ns >> 32; in ixp_systime_write() 75 lo = ns & 0xffffffff; in ixp_systime_write() 180 u64 ns; in ptp_ixp_gettime() local [all …]
|
| D | ptp_pch.c | 159 u64 ns; in pch_systime_read() local 165 ns = ((u64) hi) << 32; in pch_systime_read() 166 ns |= lo; in pch_systime_read() 167 ns <<= TICKS_NS_SHIFT; in pch_systime_read() 169 return ns; in pch_systime_read() 172 static void pch_systime_write(struct pch_ts_regs __iomem *regs, u64 ns) in pch_systime_write() argument 176 ns >>= TICKS_NS_SHIFT; in pch_systime_write() 177 hi = ns >> 32; in pch_systime_write() 178 lo = ns & 0xffffffff; in pch_systime_write() 257 u64 ns; in pch_rx_snap_read() local [all …]
|
| /linux-4.4.14/Documentation/devicetree/bindings/memory-controllers/ |
| D | ti-aemif.txt | 95 - ti,cs-min-turnaround-ns: minimum turn around time, ns 102 - ti,cs-read-setup-ns: read setup width, ns 107 - ti,cs-read-strobe-ns: read strobe width, ns 112 - ti,cs-read-hold-ns: read hold width, ns 119 - ti,cs-write-setup-ns: write setup width, ns 124 - ti,cs-write-strobe-ns: write strobe width, ns 129 - ti,cs-write-hold-ns: write hold width, ns 165 ti,cs-min-turnaround-ns = <0>; 166 ti,cs-read-hold-ns = <7>; 167 ti,cs-read-strobe-ns = <42>; [all …]
|
| /linux-4.4.14/arch/x86/entry/vdso/ |
| D | vclock_gettime.c | 221 u64 ns; in do_realtime() local 228 ns = gtod->wall_time_snsec; in do_realtime() 229 ns += vgetsns(&mode); in do_realtime() 230 ns >>= gtod->shift; in do_realtime() 233 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime() 234 ts->tv_nsec = ns; in do_realtime() 242 u64 ns; in do_monotonic() local 249 ns = gtod->monotonic_time_snsec; in do_monotonic() 250 ns += vgetsns(&mode); in do_monotonic() 251 ns >>= gtod->shift; in do_monotonic() [all …]
|
| /linux-4.4.14/fs/kernfs/ |
| D | dir.c | 208 static unsigned int kernfs_name_hash(const char *name, const void *ns) in kernfs_name_hash() argument 214 hash = (end_name_hash(hash) ^ hash_ptr((void *)ns, 31)); in kernfs_name_hash() 225 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare() argument 231 if (ns < kn->ns) in kernfs_name_compare() 233 if (ns > kn->ns) in kernfs_name_compare() 241 return kernfs_name_compare(left->hash, left->name, left->ns, right); in kernfs_sd_compare() 490 kernfs_info(dentry->d_sb)->ns != kn->ns) in kernfs_dop_revalidate() 610 if (WARN(has_ns != (bool)kn->ns, KERN_WARNING "kernfs: ns %s in '%s' for '%s'\n", in kernfs_add_one() 624 kn->hash = kernfs_name_hash(kn->name, kn->ns); in kernfs_add_one() 666 const void *ns) in kernfs_find_ns() argument [all …]
|
| D | mount.c | 105 return sb_info->root == info->root && sb_info->ns == info->ns; in kernfs_test_super() 127 return info->ns; in kernfs_super_ns() 148 bool *new_sb_created, const void *ns) in kernfs_mount_ns() argument 159 info->ns = ns; in kernfs_mount_ns() 226 struct super_block *kernfs_pin_sb(struct kernfs_root *root, const void *ns) in kernfs_pin_sb() argument 233 if (info->ns == ns) { in kernfs_pin_sb()
|
| /linux-4.4.14/drivers/net/ethernet/freescale/ |
| D | gianfar_ptp.c | 159 u64 ns; in tmr_cnt_read() local 164 ns = ((u64) hi) << 32; in tmr_cnt_read() 165 ns |= lo; in tmr_cnt_read() 166 return ns; in tmr_cnt_read() 170 static void tmr_cnt_write(struct etsects *etsects, u64 ns) in tmr_cnt_write() argument 172 u32 hi = ns >> 32; in tmr_cnt_write() 173 u32 lo = ns & 0xffffffff; in tmr_cnt_write() 182 u64 ns; in set_alarm() local 185 ns = tmr_cnt_read(etsects) + 1500000000ULL; in set_alarm() 186 ns = div_u64(ns, 1000000000UL) * 1000000000ULL; in set_alarm() [all …]
|
| D | fec_ptp.c | 116 u64 ns; in fec_ptp_enable_pps() local 164 ns = timecounter_cyc2time(&fep->tc, tempval); in fec_ptp_enable_pps() 165 ts = ns_to_timespec64(ns); in fec_ptp_enable_pps() 396 u64 ns; in fec_ptp_gettime() local 400 ns = timecounter_read(&adapter->tc); in fec_ptp_gettime() 403 *ts = ns_to_timespec64(ns); in fec_ptp_gettime() 422 u64 ns; in fec_ptp_settime() local 433 ns = timespec64_to_ns(ts); in fec_ptp_settime() 437 counter = ns & fep->cc.mask; in fec_ptp_settime() 441 timecounter_init(&fep->tc, &fep->cc, ns); in fec_ptp_settime() [all …]
|
| /linux-4.4.14/security/apparmor/include/ |
| D | policy.h | 204 struct aa_namespace *ns; member 248 struct aa_profile *aa_lookup_profile(struct aa_namespace *ns, const char *name); 249 struct aa_profile *aa_match_profile(struct aa_namespace *ns, const char *name); 263 mutex_is_locked(&p->ns->lock)); in aa_deref_parent() 365 mutex_is_locked(&orig->ns->lock)); in __aa_update_replacedby() 378 static inline struct aa_namespace *aa_get_namespace(struct aa_namespace *ns) in aa_get_namespace() argument 380 if (ns) in aa_get_namespace() 381 aa_get_profile(ns->unconfined); in aa_get_namespace() 383 return ns; in aa_get_namespace() 392 static inline void aa_put_namespace(struct aa_namespace *ns) in aa_put_namespace() argument [all …]
|
| /linux-4.4.14/Documentation/devicetree/bindings/i2c/ |
| D | i2c-designware.txt | 14 - i2c-sda-hold-time-ns : should contain the SDA hold time in nanoseconds. 17 - i2c-scl-falling-time-ns : should contain the SCL falling time in nanoseconds. 18 This value which is by default 300ns is used to compute the tLOW period. 20 - i2c-sda-falling-time-ns : should contain the SDA falling time in nanoseconds. 21 This value which is by default 300ns is used to compute the tHIGH period. 42 i2c-sda-hold-time-ns = <300>; 43 i2c-sda-falling-time-ns = <300>; 44 i2c-scl-falling-time-ns = <300>;
|
| D | i2c-rk3x.txt | 24 - i2c-scl-rising-time-ns : Number of nanoseconds the SCL signal takes to rise 26 the maximum the specification allows(1000 ns for Standard-mode, 27 300 ns for Fast-mode) which might cause slightly slower communication. 28 - i2c-scl-falling-time-ns : Number of nanoseconds the SCL signal takes to fall 30 be the maximum the specification allows (300 ns) which might cause 32 - i2c-sda-falling-time-ns : Number of nanoseconds the SDA signal takes to fall 54 i2c-scl-rising-time-ns = <800>; 55 i2c-scl-falling-time-ns = <100>;
|
| /linux-4.4.14/drivers/gpu/drm/i915/ |
| D | dvo_ns2501.c | 394 struct ns2501_priv *ns = dvo->dev_priv; in ns2501_readb() local 422 if (!ns->quiet) { in ns2501_readb() 439 struct ns2501_priv *ns = dvo->dev_priv; in ns2501_writeb() local 457 if (!ns->quiet) { in ns2501_writeb() 475 struct ns2501_priv *ns; in ns2501_init() local 478 ns = kzalloc(sizeof(struct ns2501_priv), GFP_KERNEL); in ns2501_init() 479 if (ns == NULL) in ns2501_init() 483 dvo->dev_priv = ns; in ns2501_init() 484 ns->quiet = true; in ns2501_init() 503 ns->quiet = false; in ns2501_init() [all …]
|
| /linux-4.4.14/Documentation/devicetree/bindings/bus/ |
| D | ti-gpmc.txt | 41 - gpmc,cs-on-ns: Assertion time 42 - gpmc,cs-rd-off-ns: Read deassertion time 43 - gpmc,cs-wr-off-ns: Write deassertion time 46 - gpmc,adv-on-ns: Assertion time 47 - gpmc,adv-rd-off-ns: Read deassertion time 48 - gpmc,adv-wr-off-ns: Write deassertion time 51 - gpmc,we-on-ns Assertion time 52 - gpmc,we-off-ns: Deassertion time 55 - gpmc,oe-on-ns: Assertion time 56 - gpmc,oe-off-ns: Deassertion time [all …]
|
| /linux-4.4.14/fs/sysfs/ |
| D | mount.c | 30 void *ns; in sysfs_mount() local 38 ns = kobj_ns_grab_current(KOBJ_NS_TYPE_NET); in sysfs_mount() 40 SYSFS_MAGIC, &new_sb, ns); in sysfs_mount() 42 kobj_ns_drop(KOBJ_NS_TYPE_NET, ns); in sysfs_mount() 52 void *ns = (void *)kernfs_super_ns(sb); in sysfs_kill_sb() local 55 kobj_ns_drop(KOBJ_NS_TYPE_NET, ns); in sysfs_kill_sb()
|
| D | symlink.c | 123 const void *ns = NULL; in sysfs_delete_link() local 132 ns = targ->sd->ns; in sysfs_delete_link() 134 kernfs_remove_by_name_ns(kobj->sd, name, ns); in sysfs_delete_link() 178 old_ns = targ->sd->ns; in sysfs_rename_link_ns()
|
| D | file.c | 242 umode_t mode, const void *ns) in sysfs_add_file_mode_ns() argument 300 (void *)attr, ns, key); in sysfs_add_file_mode_ns() 322 const void *ns) in sysfs_create_file_ns() argument 326 return sysfs_add_file_mode_ns(kobj->sd, attr, false, attr->mode, ns); in sysfs_create_file_ns() 411 const void *ns) in sysfs_remove_file_ns() argument 415 kernfs_remove_by_name_ns(parent, attr->name, ns); in sysfs_remove_file_ns()
|
| /linux-4.4.14/tools/testing/selftests/timers/ |
| D | nsleep-lat.c | 90 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 92 ts.tv_nsec += ns; in timespec_add() 109 int nanosleep_lat_test(int clockid, long long ns) in nanosleep_lat_test() argument 115 target.tv_sec = ns/NSEC_PER_SEC; in nanosleep_lat_test() 116 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test() 131 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) { in nanosleep_lat_test() 132 printf("Large rel latency: %lld ns :", (timespec_sub(start, end)/count)-ns); in nanosleep_lat_test() 139 target = timespec_add(start, ns); in nanosleep_lat_test()
|
| D | nanosleep.c | 102 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 104 ts.tv_nsec += ns; in timespec_add() 112 int nanosleep_test(int clockid, long long ns) in nanosleep_test() argument 119 target = timespec_add(now, ns); in nanosleep_test() 132 rel = timespec_add(rel, ns); in nanosleep_test() 133 target = timespec_add(now, ns); in nanosleep_test()
|
| D | raw_skew.c | 63 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() argument 67 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 68 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
|
| D | adjtick.c | 60 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() argument 64 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 65 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
|
| D | mqueue-lat.c | 59 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 61 ts.tv_nsec += ns; in timespec_add()
|
| /linux-4.4.14/drivers/net/ethernet/ti/ |
| D | cpts.c | 172 u64 ns; in cpts_ptp_gettime() local 177 ns = timecounter_read(&cpts->tc); in cpts_ptp_gettime() 180 *ts = ns_to_timespec64(ns); in cpts_ptp_gettime() 188 u64 ns; in cpts_ptp_settime() local 192 ns = timespec64_to_ns(ts); in cpts_ptp_settime() 195 timecounter_init(&cpts->tc, &cpts->cc, ns); in cpts_ptp_settime() 288 u64 ns = 0; in cpts_find_ts() local 312 ns = timecounter_cyc2time(&cpts->tc, event->low); in cpts_find_ts() 320 return ns; in cpts_find_ts() 325 u64 ns; in cpts_rx_timestamp() local [all …]
|
| /linux-4.4.14/tools/perf/scripts/python/ |
| D | compaction-times.py | 48 def ns(sec, nsec): function 51 def time(ns): argument 52 return "%dns" % ns if opt_ns else "%dus" % (round(ns, -3) / 1000) 70 def __init__(self, ns): argument 71 self.ns = ns 77 self.ns += rhs.ns 85 s = "%s " % time(self.ns) 97 self.ns = ns(secs, nsecs) - self.ns 168 self.ns += rhs.ns 173 self.pending = cnode(ns(secs, nsecs))
|
| D | futex-contention.py | 24 def syscalls__sys_enter_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument 32 thread_blocktime[tid] = nsecs(s, ns) 34 def syscalls__sys_exit_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument 37 elapsed = nsecs(s, ns) - thread_blocktime[tid]
|
| /linux-4.4.14/net/nfc/hci/ |
| D | llc_shdlc.c | 60 int ns; /* next seq num for send */ member 235 struct sk_buff *skb, int ns, int nr) in llc_shdlc_rcv_i_frame() argument 237 int x_ns = ns; in llc_shdlc_rcv_i_frame() 240 pr_debug("recvd I-frame %d, remote waiting frame %d\n", ns, nr); in llc_shdlc_rcv_i_frame() 264 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_i_frame() 278 if (llc_shdlc_x_lt_y_lteq_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_ack() 294 shdlc->ns = shdlc->dnr; in llc_shdlc_requeue_ack_pending() 303 if (llc_shdlc_x_lteq_y_lt_z(shdlc->dnr, y_nr, shdlc->ns)) { in llc_shdlc_rcv_rej() 361 shdlc->ns = 0; in llc_shdlc_connect_complete() 475 int ns; in llc_shdlc_handle_rcv_queue() local [all …]
|
| /linux-4.4.14/Documentation/m68k/ |
| D | README.buddha | 119 A6=1 (for example $840 for port 0, register set 0), a 780ns 136 about 30ns to the clocks on the Zorro bus, that's why the 137 values are no multiple of 71. One clock-cycle is 71ns long 142 497ns Select (7 clock cycles) , IOR/IOW after 172ns (2 clock cycles) 148 639ns Select (9 clock cycles), IOR/IOW after 243ns (3 clock cycles) 152 781ns Select (11 clock cycles), IOR/IOW after 314ns (4 clock cycles) 156 355ns Select (5 clock cycles), IOR/IOW after 101ns (1 clock cycle) 160 355ns Select (5 clock cycles), IOR/IOW after 172ns (2 clock cycles) 164 355ns Select (5 clock cycles), IOR/IOW after 243ns (3 clock cycles) 168 1065ns Select (15 clock cycles), IOR/IOW after 314ns (4 clock cycles) [all …]
|
| /linux-4.4.14/security/tomoyo/ |
| D | common.c | 343 void tomoyo_init_policy_namespace(struct tomoyo_policy_namespace *ns) in tomoyo_init_policy_namespace() argument 347 INIT_LIST_HEAD(&ns->acl_group[idx]); in tomoyo_init_policy_namespace() 349 INIT_LIST_HEAD(&ns->group_list[idx]); in tomoyo_init_policy_namespace() 351 INIT_LIST_HEAD(&ns->policy_list[idx]); in tomoyo_init_policy_namespace() 352 ns->profile_version = 20110903; in tomoyo_init_policy_namespace() 354 list_add_tail_rcu(&ns->namespace_list, &tomoyo_namespace_list); in tomoyo_init_policy_namespace() 369 container_of(head->r.ns, in tomoyo_print_namespace() 485 (struct tomoyo_policy_namespace *ns, const unsigned int profile) in tomoyo_assign_profile() argument 491 ptr = ns->profile_ptr[profile]; in tomoyo_assign_profile() 497 ptr = ns->profile_ptr[profile]; in tomoyo_assign_profile() [all …]
|
| D | domain.c | 179 list = &domain->ns->acl_group[domain->group]; in tomoyo_check_acl() 265 param->list = ¶m->ns->policy_list[TOMOYO_ID_TRANSITION_CONTROL]; in tomoyo_write_transition_control() 332 (const struct tomoyo_policy_namespace *ns, in tomoyo_transition_type() argument 340 &ns->policy_list[TOMOYO_ID_TRANSITION_CONTROL]; in tomoyo_transition_type() 402 param->list = ¶m->ns->policy_list[TOMOYO_ID_AGGREGATOR]; in tomoyo_write_aggregator() 425 struct tomoyo_policy_namespace *ns; in tomoyo_find_namespace() local 426 list_for_each_entry(ns, &tomoyo_namespace_list, namespace_list) { in tomoyo_find_namespace() 427 if (strncmp(name, ns->name, len) || in tomoyo_find_namespace() 430 return ns; in tomoyo_find_namespace() 519 !entry->ns->profile_ptr[entry->profile]) in tomoyo_assign_domain() [all …]
|
| /linux-4.4.14/net/llc/ |
| D | llc_c_ev.c | 59 static u16 llc_util_ns_inside_rx_window(u8 ns, u8 vr, u8 rw) in llc_util_ns_inside_rx_window() argument 61 return !llc_circular_between(vr, ns, in llc_util_ns_inside_rx_window() 201 const u8 ns = LLC_I_GET_NS(pdu); in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns() local 204 LLC_I_PF_IS_0(pdu) && ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns() 205 !llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns() 213 const u8 ns = LLC_I_GET_NS(pdu); in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns() local 216 LLC_I_PF_IS_1(pdu) && ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns() 217 !llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns() 225 const u8 ns = LLC_I_GET_NS(pdu); in llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns() local 227 ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns() [all …]
|
| /linux-4.4.14/arch/sparc/kernel/ |
| D | of_device_32.c | 49 int na, int ns, int pna) in of_bus_pci_map() argument 59 na - 1, ns)) in of_bus_pci_map() 121 int na, int ns, int pna) in of_bus_ambapp_map() argument 123 return of_bus_default_map(addr, range, na, ns, pna); in of_bus_ambapp_map() 190 int na, int ns, int pna) in build_one_resource() argument 212 rone = na + pna + ns; in build_one_resource() 214 if (!bus->map(addr, ranges, na, ns, pna)) in build_one_resource() 249 int na, ns; in build_device_resources() local 258 bus->count_cells(op->dev.of_node, &na, &ns); in build_device_resources() 268 num_reg /= na + ns; in build_device_resources() [all …]
|
| D | of_device_common.c | 96 const u32 *size, int na, int ns) in of_out_of_range() argument 104 b += of_read_addr(size, ns); in of_out_of_range() 111 int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna) in of_bus_default_map() argument 116 if (ns > 2) { in of_bus_default_map() 117 printk("of_device: Cannot handle size cells (%d) > 2.", ns); in of_bus_default_map() 121 if (of_out_of_range(addr, range, range + na + pna, na, ns)) in of_bus_default_map()
|
| D | of_device_common.h | 15 const u32 *size, int na, int ns); 16 int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna); 32 int na, int ns, int pna);
|
| D | of_device_64.c | 87 int na, int ns, int pna) in of_bus_simba_map() argument 102 int na, int ns, int pna) in of_bus_pci_map() argument 122 na - 1, ns)) in of_bus_pci_map() 244 int na, int ns, int pna) in build_one_resource() argument 265 rone = na + pna + ns; in build_one_resource() 267 if (!bus->map(addr, ranges, na, ns, pna)) in build_one_resource() 319 int na, ns; in build_device_resources() local 328 bus->count_cells(op->dev.of_node, &na, &ns); in build_device_resources() 338 num_reg /= na + ns; in build_device_resources() 353 const u32 *reg = (preg + (index * ((na + ns) * 4))); in build_device_resources() [all …]
|
| /linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
| D | en_clock.c | 173 u64 ns; in mlx4_en_phc_gettime() local 176 ns = timecounter_read(&mdev->clock); in mlx4_en_phc_gettime() 179 *ts = ns_to_timespec64(ns); in mlx4_en_phc_gettime() 197 u64 ns = timespec64_to_ns(ts); in mlx4_en_phc_settime() local 202 timecounter_init(&mdev->clock, &mdev->cycles, ns); in mlx4_en_phc_settime() 261 u64 ns, zero = 0; in mlx4_en_init_timestamp() local 288 ns = cyclecounter_cyc2ns(&mdev->cycles, mdev->cycles.mask, zero, &zero); in mlx4_en_init_timestamp() 289 do_div(ns, NSEC_PER_SEC / 2 / HZ); in mlx4_en_init_timestamp() 290 mdev->overflow_period = ns; in mlx4_en_init_timestamp()
|
| /linux-4.4.14/drivers/ssb/ |
| D | driver_extif.c | 86 void ssb_extif_timing_init(struct ssb_extif *extif, unsigned long ns) in ssb_extif_timing_init() argument 94 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; in ssb_extif_timing_init() 95 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; in ssb_extif_timing_init() 96 tmp |= DIV_ROUND_UP(120, ns); in ssb_extif_timing_init() 100 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; in ssb_extif_timing_init() 101 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; in ssb_extif_timing_init() 102 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; in ssb_extif_timing_init() 103 tmp |= DIV_ROUND_UP(120, ns); in ssb_extif_timing_init()
|
| D | driver_chipcommon.c | 435 unsigned long ns) in ssb_chipco_timing_init() argument 443 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ in ssb_chipco_timing_init() 444 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 40ns */ in ssb_chipco_timing_init() 445 tmp |= DIV_ROUND_UP(240, ns); /* Waitcount-0 = 240ns */ in ssb_chipco_timing_init() 449 tmp = DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_3_SHIFT; /* Waitcount-3 = 10nS */ in ssb_chipco_timing_init() 450 tmp |= DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_1_SHIFT; /* Waitcount-1 = 10nS */ in ssb_chipco_timing_init() 451 tmp |= DIV_ROUND_UP(120, ns); /* Waitcount-0 = 120nS */ in ssb_chipco_timing_init() 462 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ in ssb_chipco_timing_init() 463 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; /* Waitcount-2 = 20ns */ in ssb_chipco_timing_init() 464 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 100ns */ in ssb_chipco_timing_init() [all …]
|
| /linux-4.4.14/arch/s390/include/asm/ |
| D | timex.h | 157 unsigned long long ns; in tod_to_ns() local 159 ns = ((todval >> 32) << 23) * 125; in tod_to_ns() 160 ns += ((todval & 0xffffffff) * 125) >> 9; in tod_to_ns() 161 return ns; in tod_to_ns()
|
| /linux-4.4.14/arch/mips/include/asm/ |
| D | delay.h | 17 extern void __ndelay(unsigned long ns); 20 #define ndelay(ns) __ndelay(ns) argument
|
| /linux-4.4.14/net/l2tp/ |
| D | l2tp_core.c | 95 u32 ns; member 379 u32 ns = L2TP_SKB_CB(skb)->ns; in l2tp_recv_queue_skb() local 383 if (L2TP_SKB_CB(skbp)->ns > ns) { in l2tp_recv_queue_skb() 387 session->name, ns, L2TP_SKB_CB(skbp)->ns, in l2tp_recv_queue_skb() 456 session->name, L2TP_SKB_CB(skb)->ns, in l2tp_recv_dequeue() 472 L2TP_SKB_CB(skb)->ns); in l2tp_recv_dequeue() 474 session->nr = L2TP_SKB_CB(skb)->ns; in l2tp_recv_dequeue() 476 if (L2TP_SKB_CB(skb)->ns != session->nr) { in l2tp_recv_dequeue() 479 session->name, L2TP_SKB_CB(skb)->ns, in l2tp_recv_dequeue() 516 if (!l2tp_seq_check_rx_window(session, L2TP_SKB_CB(skb)->ns)) { in l2tp_recv_data_seq() [all …]
|
| /linux-4.4.14/arch/mips/vdso/ |
| D | gettimeofday.c | 128 u64 ns; in do_realtime() local 137 ns = get_ns(data); in do_realtime() 141 timespec_add_ns(ts, ns); in do_realtime() 150 u64 ns; in do_monotonic() local 161 ns = get_ns(data); in do_monotonic() 169 timespec_add_ns(ts, ns + to_mono_nsec); in do_monotonic()
|
| /linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
| D | ptp.c | 114 u64 ns; in e1000e_phc_gettime() local 117 ns = timecounter_read(&adapter->tc); in e1000e_phc_gettime() 120 *ts = ns_to_timespec64(ns); in e1000e_phc_gettime() 139 u64 ns; in e1000e_phc_settime() local 141 ns = timespec64_to_ns(ts); in e1000e_phc_settime() 145 timecounter_init(&adapter->tc, &adapter->cc, ns); in e1000e_phc_settime()
|
| /linux-4.4.14/net/core/ |
| D | net_namespace.c | 346 struct net *ns = p; in net_drop_ns() local 347 if (ns && atomic_dec_and_test(&ns->passive)) in net_drop_ns() 348 net_free(ns); in net_drop_ns() 469 struct ns_common *ns; in get_net_ns_by_fd() local 476 ns = get_proc_ns(file_inode(file)); in get_net_ns_by_fd() 477 if (ns->ops == &netns_operations) in get_net_ns_by_fd() 478 net = get_net(container_of(ns, struct net, ns)); in get_net_ns_by_fd() 519 net->ns.ops = &netns_operations; in net_ns_net_init() 521 return ns_alloc_inum(&net->ns); in net_ns_net_init() 526 ns_free_inum(&net->ns); in net_ns_net_exit() [all …]
|
| /linux-4.4.14/virt/kvm/arm/ |
| D | arch_timer.c | 48 static void timer_arm(struct arch_timer_cpu *timer, u64 ns) in timer_arm() argument 51 hrtimer_start(&timer->timer, ktime_add_ns(ktime_get(), ns), in timer_arm() 106 u64 ns; in kvm_timer_compute_delta() local 108 ns = cyclecounter_cyc2ns(timecounter->cc, in kvm_timer_compute_delta() 112 return ns; in kvm_timer_compute_delta() 122 u64 ns; in kvm_timer_expire() local 132 ns = kvm_timer_compute_delta(vcpu); in kvm_timer_expire() 133 if (unlikely(ns)) { in kvm_timer_expire() 134 hrtimer_forward_now(hrt, ns_to_ktime(ns)); in kvm_timer_expire()
|
| /linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
| D | i40e_ptp.c | 63 u64 ns; in i40e_ptp_read() local 69 ns = (((u64)hi) << 32) | lo; in i40e_ptp_read() 71 *ts = ns_to_timespec64(ns); in i40e_ptp_read() 86 u64 ns = timespec64_to_ns(ts); in i40e_ptp_write() local 91 wr32(hw, I40E_PRTTSYN_TIME_L, ns & 0xFFFFFFFF); in i40e_ptp_write() 92 wr32(hw, I40E_PRTTSYN_TIME_H, ns >> 32); in i40e_ptp_write() 310 u64 ns; in i40e_ptp_tx_hwtstamp() local 322 ns = (((u64)hi) << 32) | lo; in i40e_ptp_tx_hwtstamp() 324 i40e_ptp_convert_to_hwtstamp(&shhwtstamps, ns); in i40e_ptp_tx_hwtstamp() 347 u64 ns; in i40e_ptp_rx_hwtstamp() local [all …]
|
| /linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_ptp.c | 124 u64 ns = 0, clock_edge = 0; in ixgbe_ptp_setup_sdp() local 161 ns = timecounter_cyc2time(&adapter->tc, clock_edge); in ixgbe_ptp_setup_sdp() 163 div_u64_rem(ns, IXGBE_PTP_PPS_HALF_SECOND, &rem); in ixgbe_ptp_setup_sdp() 286 u64 ns; in ixgbe_ptp_gettime() local 290 ns = timecounter_read(&adapter->tc); in ixgbe_ptp_gettime() 293 *ts = ns_to_timespec64(ns); in ixgbe_ptp_gettime() 311 u64 ns; in ixgbe_ptp_settime() local 314 ns = timespec64_to_ns(ts); in ixgbe_ptp_settime() 318 timecounter_init(&adapter->tc, &adapter->cc, ns); in ixgbe_ptp_settime() 464 u64 regval = 0, ns; in ixgbe_ptp_tx_hwtstamp() local [all …]
|
| /linux-4.4.14/kernel/time/ |
| D | sched_clock.c | 145 u64 ns; in update_sched_clock() local 151 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock() 153 rd.epoch_ns = ns; in update_sched_clock() 170 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local 196 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in sched_clock_register() 204 rd.epoch_ns = ns; in sched_clock_register()
|
| D | timecounter.c | 85 u64 ns = (u64) cycles; in cc_cyc2ns_backwards() local 87 ns = ((ns * cc->mult) - frac) >> cc->shift; in cc_cyc2ns_backwards() 89 return ns; in cc_cyc2ns_backwards()
|
| /linux-4.4.14/Documentation/devicetree/bindings/opp/ |
| D | opp.txt | 115 - clock-latency-ns: Specifies the maximum possible transition latency (in 164 clock-latency-ns = <300000>; 171 clock-latency-ns = <310000>; 176 clock-latency-ns = <290000>; 243 clock-latency-ns = <300000>; 250 clock-latency-ns = <310000>; 256 lock-latency-ns = <290000>; 319 clock-latency-ns = <300000>; 326 clock-latency-ns = <310000>; 332 clock-latency-ns = <290000>; [all …]
|
| /linux-4.4.14/net/ax25/ |
| D | ax25_std_in.c | 144 static int ax25_std_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int n… in ax25_std_state3_machine() argument 226 if (ns == ax25->vr) { in ax25_std_state3_machine() 230 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_std_state3_machine() 269 static int ax25_std_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int n… in ax25_std_state4_machine() argument 381 if (ns == ax25->vr) { in ax25_std_state4_machine() 385 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_std_state4_machine() 424 int queued = 0, frametype, ns, nr, pf; in ax25_std_frame_in() local 426 frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); in ax25_std_frame_in() 436 queued = ax25_std_state3_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_std_frame_in() 439 queued = ax25_std_state4_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_std_frame_in()
|
| D | ax25_ds_in.c | 148 static int ax25_ds_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr… in ax25_ds_state3_machine() argument 241 if (ns == ax25->vr) { in ax25_ds_state3_machine() 245 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_ds_state3_machine() 284 int queued = 0, frametype, ns, nr, pf; in ax25_ds_frame_in() local 286 frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); in ax25_ds_frame_in() 296 queued = ax25_ds_state3_machine(ax25, skb, frametype, ns, nr, pf, type); in ax25_ds_frame_in()
|
| D | ax25_subr.c | 100 int ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) in ax25_decode() argument 106 *ns = *nr = *pf = 0; in ax25_decode() 111 *ns = (frame[0] >> 1) & 0x07; in ax25_decode() 126 *ns = (frame[0] >> 1) & 0x7F; in ax25_decode()
|
| /linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/ |
| D | stmmac_hwtstamp.c | 132 u64 ns; in stmmac_get_systime() local 134 ns = readl(ioaddr + PTP_STNSR); in stmmac_get_systime() 136 ns += readl(ioaddr + PTP_STSR) * 1000000000ULL; in stmmac_get_systime() 138 return ns; in stmmac_get_systime()
|
| D | stmmac_ptp.c | 113 u64 ns; in stmmac_get_time() local 117 ns = priv->hw->ptp->get_systime(priv->ioaddr); in stmmac_get_time() 121 *ts = ns_to_timespec64(ns); in stmmac_get_time()
|
| D | enh_desc.c | 351 u64 ns; in enh_desc_get_timestamp() local 355 ns = p->des6; in enh_desc_get_timestamp() 357 ns += p->des7 * 1000000000ULL; in enh_desc_get_timestamp() 360 ns = p->des2; in enh_desc_get_timestamp() 361 ns += p->des3 * 1000000000ULL; in enh_desc_get_timestamp() 364 return ns; in enh_desc_get_timestamp()
|
| /linux-4.4.14/sound/drivers/pcsp/ |
| D | pcsp_lib.c | 46 u64 ns; in pcsp_timer_update() local 82 ns = (chip->thalf ? PCSP_CALC_NS(timer_cnt) : chip->ns_rem); in pcsp_timer_update() 83 chip->ns_rem -= ns; in pcsp_timer_update() 84 return ns; in pcsp_timer_update() 132 u64 ns; in pcsp_do_timer() local 138 ns = pcsp_timer_update(chip); in pcsp_do_timer() 139 if (!ns) { in pcsp_do_timer() 147 hrtimer_forward(handle, hrtimer_get_expires(handle), ns_to_ktime(ns)); in pcsp_do_timer()
|
| /linux-4.4.14/arch/arc/boot/dts/ |
| D | abilis_tb100_dvk.dts | 48 i2c-sda-hold-time-ns = <432>; 51 i2c-sda-hold-time-ns = <432>; 54 i2c-sda-hold-time-ns = <432>; 57 i2c-sda-hold-time-ns = <432>; 60 i2c-sda-hold-time-ns = <432>;
|
| D | abilis_tb101_dvk.dts | 48 i2c-sda-hold-time-ns = <432>; 51 i2c-sda-hold-time-ns = <432>; 54 i2c-sda-hold-time-ns = <432>; 57 i2c-sda-hold-time-ns = <432>; 60 i2c-sda-hold-time-ns = <432>;
|
| /linux-4.4.14/Documentation/filesystems/ |
| D | sysfs-tagging.txt | 21 void *ns member of its kernfs_node. If a directory entry is tagged, 23 and KOBJ_NS_TYPES, and ns will point to the namespace to which it 27 *ns[KOBJ_NS_TYPES]. When a task in a tagging namespace 30 s_fs_info->ns[kobj_nstype] set to the new namespace. Note that 34 kernfs_node->ns pointers pointing to it.
|
| /linux-4.4.14/drivers/net/ |
| D | sb1000.c | 748 int ioaddr, ns; in sb1000_rx() local 773 for (ns = 0; ns < NPIDS; ns++) { in sb1000_rx() 774 session_id = lp->rx_session_id[ns]; in sb1000_rx() 775 frame_id = lp->rx_frame_id[ns]; in sb1000_rx() 796 skb = lp->rx_skb[ns]; in sb1000_rx() 807 lp->rx_frame_id[ns] = 0x30 | ((st[1] + 1) & 0x0f); in sb1000_rx() 834 lp->rx_dlen[ns] = dlen; in sb1000_rx() 850 lp->rx_skb[ns] = skb; in sb1000_rx() 863 skb = lp->rx_skb[ns]; in sb1000_rx() 866 dlen = lp->rx_dlen[ns]; in sb1000_rx() [all …]
|
| /linux-4.4.14/drivers/staging/comedi/drivers/ |
| D | comedi_8254.c | 376 unsigned int ns; in comedi_8254_cascade_ns_to_timer() local 398 ns = i8254->osc_base * d1 * d2; in comedi_8254_cascade_ns_to_timer() 399 if (ns <= *nanosec && ns > ns_glb) { in comedi_8254_cascade_ns_to_timer() 400 ns_glb = ns; in comedi_8254_cascade_ns_to_timer() 404 if (ns >= *nanosec && ns < ns_lub) { in comedi_8254_cascade_ns_to_timer() 405 ns_lub = ns; in comedi_8254_cascade_ns_to_timer()
|
| /linux-4.4.14/drivers/net/ethernet/intel/igb/ |
| D | igb_ptp.c | 171 u64 ns; in igb_ptp_systim_to_hwtstamp() local 180 ns = timecounter_cyc2time(&adapter->tc, systim); in igb_ptp_systim_to_hwtstamp() 185 hwtstamps->hwtstamp = ns_to_ktime(ns); in igb_ptp_systim_to_hwtstamp() 292 u64 ns; in igb_ptp_gettime_82576() local 296 ns = timecounter_read(&igb->tc); in igb_ptp_gettime_82576() 300 *ts = ns_to_timespec64(ns); in igb_ptp_gettime_82576() 327 u64 ns; in igb_ptp_settime_82576() local 329 ns = timespec64_to_ns(ts); in igb_ptp_settime_82576() 333 timecounter_init(&igb->tc, &igb->cc, ns); in igb_ptp_settime_82576() 484 s64 ns; in igb_ptp_feature_enable_i210() local [all …]
|
| /linux-4.4.14/drivers/spi/ |
| D | spi-bitbang.c | 66 unsigned ns, in bitbang_txrx_8() argument 79 word = txrx_word(spi, ns, word, bits); in bitbang_txrx_8() 92 unsigned ns, in bitbang_txrx_16() argument 105 word = txrx_word(spi, ns, word, bits); in bitbang_txrx_16() 118 unsigned ns, in bitbang_txrx_32() argument 131 word = txrx_word(spi, ns, word, bits); in bitbang_txrx_32()
|
| /linux-4.4.14/net/rose/ |
| D | rose_in.c | 104 static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr,… in rose_state3_machine() argument 165 if (ns == rose->vr) { in rose_state3_machine() 266 int queued = 0, frametype, ns, nr, q, d, m; in rose_process_rx_frame() local 271 frametype = rose_decode(skb, &ns, &nr, &q, &d, &m); in rose_process_rx_frame() 281 queued = rose_state3_machine(sk, skb, frametype, ns, nr, q, d, m); in rose_process_rx_frame()
|
| /linux-4.4.14/net/netrom/ |
| D | nr_in.c | 155 unsigned short nr, ns; in nr_state3_machine() local 159 ns = skb->data[17]; in nr_state3_machine() 237 ns = skbn->data[17]; in nr_state3_machine() 238 if (ns == nrom->vr) { in nr_state3_machine() 245 } else if (nr_in_rx_window(sk, ns)) { in nr_state3_machine()
|
| /linux-4.4.14/Documentation/devicetree/bindings/lpddr2/ |
| D | lpddr2-timings.txt | 13 a different unit have a suffix indicating the unit such as 'tRAS-max-ns' 28 - tRAS-max-ns 51 tRAS-max-ns = <70000>;
|
| /linux-4.4.14/arch/mips/lib/ |
| D | delay.c | 58 void __ndelay(unsigned long ns) in __ndelay() argument 62 __delay((ns * 0x00000005ull * HZ * lpj) >> 32); in __ndelay()
|
| /linux-4.4.14/include/linux/regulator/ |
| D | fixed.h | 73 #define regulator_register_fixed(id, s, ns) regulator_register_always_on(id, \ argument 74 "fixed-dummy", s, ns, 0)
|
| /linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/ |
| D | cxgb2.c | 299 struct net_device_stats *ns = &p->netstats; in t1_get_stats() local 306 ns->tx_packets = pstats->TxUnicastFramesOK + in t1_get_stats() 309 ns->rx_packets = pstats->RxUnicastFramesOK + in t1_get_stats() 312 ns->tx_bytes = pstats->TxOctetsOK; in t1_get_stats() 313 ns->rx_bytes = pstats->RxOctetsOK; in t1_get_stats() 315 ns->tx_errors = pstats->TxLateCollisions + pstats->TxLengthErrors + in t1_get_stats() 317 ns->rx_errors = pstats->RxDataErrors + pstats->RxJabberErrors + in t1_get_stats() 322 ns->multicast = pstats->RxMulticastFramesOK; in t1_get_stats() 323 ns->collisions = pstats->TxTotalCollisions; in t1_get_stats() 326 ns->rx_length_errors = pstats->RxFrameTooLongErrors + in t1_get_stats() [all …]
|
| /linux-4.4.14/Documentation/devicetree/bindings/iio/frequency/ |
| D | adf4350.txt | 24 - adi,lock-detect-precision-6ns-enable: Enables 6ns lock detect precision. 25 Default = 10ns. 44 - adi,anti-backlash-3ns-enable: Enables 3ns antibacklash pulse width
|
| /linux-4.4.14/arch/powerpc/include/asm/ |
| D | eeh.h | 432 int ns) in eeh_readsb() argument 434 _insb(addr, buf, ns); in eeh_readsb() 435 if (EEH_POSSIBLE_ERROR((*(((u8*)buf)+ns-1)), u8)) in eeh_readsb() 440 int ns) in eeh_readsw() argument 442 _insw(addr, buf, ns); in eeh_readsw() 443 if (EEH_POSSIBLE_ERROR((*(((u16*)buf)+ns-1)), u16)) in eeh_readsw()
|
| /linux-4.4.14/lib/ |
| D | kobject.c | 1028 void *ns = NULL; in kobj_ns_grab_current() local 1033 ns = kobj_ns_ops_tbl[type]->grab_current_ns(); in kobj_ns_grab_current() 1036 return ns; in kobj_ns_grab_current() 1041 const void *ns = NULL; in kobj_ns_netlink() local 1046 ns = kobj_ns_ops_tbl[type]->netlink_ns(sk); in kobj_ns_netlink() 1049 return ns; in kobj_ns_netlink() 1054 const void *ns = NULL; in kobj_ns_initial() local 1059 ns = kobj_ns_ops_tbl[type]->initial_ns(); in kobj_ns_initial() 1062 return ns; in kobj_ns_initial() 1065 void kobj_ns_drop(enum kobj_ns_type type, void *ns) in kobj_ns_drop() argument [all …]
|
| D | kobject_uevent.c | 103 const void *sock_ns, *ns; in kobj_bcast_filter() local 104 ns = kobj->ktype->namespace(kobj); in kobj_bcast_filter() 106 return sock_ns != ns; in kobj_bcast_filter() 120 const void *init_ns, *ns; in kobj_usermode_filter() local 121 ns = kobj->ktype->namespace(kobj); in kobj_usermode_filter() 123 return ns != init_ns; in kobj_usermode_filter()
|
| /linux-4.4.14/init/ |
| D | version.c | 38 .ns.inum = PROC_UTS_INIT_INO, 40 .ns.ops = &utsns_operations,
|
| /linux-4.4.14/drivers/media/i2c/cx25840/ |
| D | cx25840-ir.c | 153 static inline u16 ns_to_clock_divider(unsigned int ns) in ns_to_clock_divider() argument 156 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_clock_divider() 207 static inline u16 ns_to_lpf_count(unsigned int ns) in ns_to_lpf_count() argument 210 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count() 258 static u16 ns_to_pulse_width_count(u32 ns, u16 divider) 268 n = ((u64) ns) * CX25840_IR_REFCLK_FREQ / 1000000; /* millicycles */ 306 static u64 ns_to_pulse_clocks(u32 ns) in ns_to_pulse_clocks() argument 310 clocks = CX25840_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */ in ns_to_pulse_clocks() 443 static u32 txclk_tx_s_max_pulse_width(struct i2c_client *c, u32 ns, in txclk_tx_s_max_pulse_width() argument 448 if (ns > IR_MAX_DURATION) in txclk_tx_s_max_pulse_width() [all …]
|
| /linux-4.4.14/tools/perf/util/ |
| D | tsc.c | 6 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) in perf_time_to_tsc() argument 10 t = ns - tc->time_zero; in perf_time_to_tsc()
|
| /linux-4.4.14/drivers/net/ethernet/adi/ |
| D | bfin_mac.c | 856 u64 ns; in bfin_tx_hwtstamp() local 862 ns = regval << lp->shift; in bfin_tx_hwtstamp() 863 shhwtstamps.hwtstamp = ns_to_ktime(ns); in bfin_tx_hwtstamp() 873 u64 regval, ns; in bfin_rx_hwtstamp() local 887 ns = regval << lp->shift; in bfin_rx_hwtstamp() 889 shhwtstamps->hwtstamp = ns_to_ktime(ns); in bfin_rx_hwtstamp() 917 u64 ns; in bfin_ptp_time_read() local 923 ns = ((u64) hi) << 32; in bfin_ptp_time_read() 924 ns |= lo; in bfin_ptp_time_read() 925 ns <<= lp->shift; in bfin_ptp_time_read() [all …]
|
| /linux-4.4.14/net/x25/ |
| D | x25_in.c | 204 static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, … in x25_state3_machine() argument 257 if ((ns != x25->vr) || !x25_validate_nr(sk, nr)) { in x25_state3_machine() 270 if (ns == x25->vr) { in x25_state3_machine() 384 int queued = 0, frametype, ns, nr, q, d, m; in x25_process_rx_frame() local 389 frametype = x25_decode(sk, skb, &ns, &nr, &q, &d, &m); in x25_process_rx_frame() 399 queued = x25_state3_machine(sk, skb, frametype, ns, nr, q, d, m); in x25_process_rx_frame()
|
| /linux-4.4.14/include/trace/events/ |
| D | kvm.h | 41 TP_PROTO(__u64 ns, bool waited), 42 TP_ARGS(ns, waited), 45 __field( __u64, ns ) 50 __entry->ns = ns; 56 __entry->ns)
|
| /linux-4.4.14/drivers/media/pci/cx23885/ |
| D | cx23888-ir.c | 187 static inline u16 ns_to_clock_divider(unsigned int ns) in ns_to_clock_divider() argument 190 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_clock_divider() 241 static inline u16 ns_to_lpf_count(unsigned int ns) in ns_to_lpf_count() argument 244 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count() 314 static u64 ns_to_pulse_clocks(u32 ns) in ns_to_pulse_clocks() argument 318 clocks = CX23888_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */ in ns_to_pulse_clocks() 458 static u32 txclk_tx_s_max_pulse_width(struct cx23885_dev *dev, u32 ns, in txclk_tx_s_max_pulse_width() argument 463 if (ns > IR_MAX_DURATION) in txclk_tx_s_max_pulse_width() 464 ns = IR_MAX_DURATION; in txclk_tx_s_max_pulse_width() 465 pulse_clocks = ns_to_pulse_clocks(ns); in txclk_tx_s_max_pulse_width() [all …]
|
| /linux-4.4.14/drivers/pcmcia/ |
| D | i82365.c | 448 static u_int __init set_bridge_opts(u_short s, u_short ns) in set_bridge_opts() argument 454 for (i = s; i < s+ns; i++) { in set_bridge_opts() 565 static int to_cycles(int ns) in to_cycles() argument 567 return ns/cycle_time; in to_cycles() 673 static void __init add_pcic(int ns, int type) in add_pcic() argument 677 struct i82365_socket *t = &socket[sockets-ns]; in add_pcic() 679 base = sockets-ns; in add_pcic() 684 printk(", %d socket%s\n", ns, ((ns > 1) ? "s" : "")); in add_pcic() 692 mask &= I365_MASK & set_bridge_opts(base, ns); in add_pcic() 727 for (i = 0; i < ns; i++) { in add_pcic() [all …]
|
| /linux-4.4.14/drivers/net/ethernet/renesas/ |
| D | ravb_ptp.c | 69 static int ravb_ptp_update_compare(struct ravb_private *priv, u32 ns) in ravb_ptp_update_compare() argument 80 if (ns < gti_ns_plus_1) in ravb_ptp_update_compare() 81 ns = gti_ns_plus_1; in ravb_ptp_update_compare() 82 else if (ns > 0 - gti_ns_plus_1) in ravb_ptp_update_compare() 83 ns = 0 - gti_ns_plus_1; in ravb_ptp_update_compare() 88 ravb_write(ndev, ns, GPTC); in ravb_ptp_update_compare()
|
| /linux-4.4.14/arch/unicore32/lib/ |
| D | clear_user.S | 38 strusr r2, r0, 4, ns, rept=2 41 strusr r2, r0, 4, ns
|
| /linux-4.4.14/arch/cris/arch-v10/kernel/ |
| D | time.c | 31 unsigned long ns; in get_ns_in_jiffie() local 52 ns = ( (TIMER0_DIV - timer_count) * ((1000000000/HZ)/TIMER0_DIV )) + in get_ns_in_jiffie() 54 return ns; in get_ns_in_jiffie()
|