/linux-4.1.27/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.1.27/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(&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() 487 int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag) in ipcperms() argument 502 !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 | 112 struct ipc_namespace *ns; in get_ns_from_inode() local 115 ns = __get_ns_from_inode(inode); in get_ns_from_inode() 117 return ns; in get_ns_from_inode() 309 struct ipc_namespace *ns = data; in mqueue_fill_super() local 316 inode = mqueue_get_inode(sb, ns, S_IFDIR | S_ISVTX | S_IRWXUGO, NULL); in mqueue_fill_super() 331 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in mqueue_mount() local 335 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN)) in mqueue_mount() 338 data = ns; in mqueue_mount() 1395 int mq_init_ns(struct ipc_namespace *ns) in mq_init_ns() argument 1397 ns->mq_queues_count = 0; in mq_init_ns() [all …]
|
D | ipc_sysctl.c | 55 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in proc_ipc_dointvec_minmax_orphans() local 60 if (ns->shm_rmid_forced) in proc_ipc_dointvec_minmax_orphans() 61 shm_destroy_orphaned(ns); in proc_ipc_dointvec_minmax_orphans()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_resource.c | 159 struct ldlm_namespace *ns = m->private; in lprocfs_ns_resources_seq_show() local 165 cfs_hash_for_each_bucket(ns->ns_rs_hash, &bd, i) in lprocfs_ns_resources_seq_show() 173 struct ldlm_namespace *ns = m->private; in lprocfs_ns_locks_seq_show() local 176 locks = lprocfs_stats_collector(ns->ns_stats, LDLM_NSS_LOCKS, in lprocfs_ns_locks_seq_show() 184 struct ldlm_namespace *ns = m->private; in lprocfs_lru_size_seq_show() local 185 __u32 *nr = &ns->ns_max_unused; in lprocfs_lru_size_seq_show() 187 if (ns_connect_lru_resize(ns)) in lprocfs_lru_size_seq_show() 188 nr = &ns->ns_nr_unused; in lprocfs_lru_size_seq_show() 196 struct ldlm_namespace *ns = ((struct seq_file *)file->private_data)->private; in lprocfs_lru_size_seq_write() local 209 ldlm_ns_name(ns)); in lprocfs_lru_size_seq_write() [all …]
|
D | ldlm_pool.c | 531 struct ldlm_namespace *ns; in ldlm_cli_pool_shrink() local 534 ns = ldlm_pl2ns(pl); in ldlm_cli_pool_shrink() 539 if (!ns_connect_lru_resize(ns)) in ldlm_cli_pool_shrink() 547 spin_lock(&ns->ns_lock); in ldlm_cli_pool_shrink() 548 unused = ns->ns_nr_unused; in ldlm_cli_pool_shrink() 549 spin_unlock(&ns->ns_lock); in ldlm_cli_pool_shrink() 554 return ldlm_cancel_lru(ns, nr, LCF_ASYNC, LDLM_CANCEL_SHRINK); in ldlm_cli_pool_shrink() 743 struct ldlm_namespace *ns = ldlm_pl2ns(pl); in ldlm_pool_proc_init() local 753 parent_ns_proc = ns->ns_proc_dir_entry; in ldlm_pool_proc_init() 756 ldlm_ns_name(ns)); in ldlm_pool_proc_init() [all …]
|
D | ldlm_request.c | 395 int ldlm_cli_enqueue_local(struct ldlm_namespace *ns, in ldlm_cli_enqueue_local() argument 414 if (unlikely(ns_is_client(ns))) { in ldlm_cli_enqueue_local() 419 lock = ldlm_lock_create(ns, res_id, type, mode, &cbs, data, lvb_len, in ldlm_cli_enqueue_local() 442 err = ldlm_lock_enqueue(ns, &lock, policy, flags); in ldlm_cli_enqueue_local() 460 static void failed_lock_cleanup(struct ldlm_namespace *ns, in failed_lock_cleanup() argument 511 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_cli_enqueue_fini() local 619 rc = ldlm_lock_change_resource(ns, lock, in ldlm_cli_enqueue_fini() 670 rc = ldlm_lock_enqueue(ns, &lock, NULL, flags); in ldlm_cli_enqueue_fini() 690 failed_lock_cleanup(ns, lock, mode); in ldlm_cli_enqueue_fini() 748 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_prep_elc_req() local [all …]
|
D | ldlm_internal.h | 88 static inline int ldlm_ns_empty(struct ldlm_namespace *ns) in ldlm_ns_empty() argument 90 return atomic_read(&ns->ns_bref) == 0; in ldlm_ns_empty() 109 int ldlm_cancel_lru(struct ldlm_namespace *ns, int nr, 111 int ldlm_cancel_lru_local(struct ldlm_namespace *ns, 121 void ldlm_namespace_free_prior(struct ldlm_namespace *ns, 123 void ldlm_namespace_free_post(struct ldlm_namespace *ns); 145 ldlm_lock_create(struct ldlm_namespace *ns, const struct ldlm_res_id *, 157 int ldlm_run_ast_work(struct ldlm_namespace *ns, struct list_head *rpc_list, 170 int ldlm_bl_to_thread_lock(struct ldlm_namespace *ns, struct ldlm_lock_desc *ld, 172 int ldlm_bl_to_thread_list(struct ldlm_namespace *ns, [all …]
|
D | ldlm_lock.c | 155 void ldlm_register_intent(struct ldlm_namespace *ns, ldlm_res_policy arg) in ldlm_register_intent() argument 157 ns->ns_policy = arg; in ldlm_register_intent() 229 struct ldlm_namespace *ns = ldlm_lock_to_ns(lock); in ldlm_lock_remove_from_lru_nolock() local 233 LASSERT(ns->ns_nr_unused > 0); in ldlm_lock_remove_from_lru_nolock() 234 ns->ns_nr_unused--; in ldlm_lock_remove_from_lru_nolock() 245 struct ldlm_namespace *ns = ldlm_lock_to_ns(lock); in ldlm_lock_remove_from_lru() local 253 spin_lock(&ns->ns_lock); in ldlm_lock_remove_from_lru() 255 spin_unlock(&ns->ns_lock); in ldlm_lock_remove_from_lru() 264 struct ldlm_namespace *ns = ldlm_lock_to_ns(lock); in ldlm_lock_add_to_lru_nolock() local 269 list_add_tail(&lock->l_lru, &ns->ns_unused_list); in ldlm_lock_add_to_lru_nolock() [all …]
|
D | ldlm_lockd.c | 142 void ldlm_handle_bl_callback(struct ldlm_namespace *ns, in ldlm_handle_bl_callback() argument 181 struct ldlm_namespace *ns, in ldlm_handle_cp_callback() argument 269 rc = ldlm_lock_change_resource(ns, lock, in ldlm_handle_cp_callback() 306 ldlm_run_ast_work(ns, &ast_list, LDLM_WORK_CP_AST); in ldlm_handle_cp_callback() 330 struct ldlm_namespace *ns, in ldlm_handle_gl_callback() argument 355 if (ldlm_bl_to_thread_lock(ns, NULL, lock)) in ldlm_handle_gl_callback() 356 ldlm_handle_bl_callback(ns, NULL, lock); in ldlm_handle_gl_callback() 405 struct ldlm_namespace *ns, in init_blwi() argument 417 blwi->blwi_ns = ns; in init_blwi() 439 static int ldlm_bl_to_thread(struct ldlm_namespace *ns, in ldlm_bl_to_thread() argument [all …]
|
/linux-4.1.27/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, 61 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local 86 ns = kmem_cache_zalloc(user_ns_cachep, GFP_KERNEL); in create_user_ns() 87 if (!ns) in create_user_ns() 90 ret = ns_alloc_inum(&ns->ns); in create_user_ns() 92 kmem_cache_free(user_ns_cachep, ns); in create_user_ns() 95 ns->ns.ops = &userns_operations; in create_user_ns() 97 atomic_set(&ns->count, 1); in create_user_ns() 99 ns->parent = parent_ns; in create_user_ns() 100 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()
|
D | sys.c | 331 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE2() local 337 krgid = make_kgid(ns, rgid); in SYSCALL_DEFINE2() 338 kegid = make_kgid(ns, egid); in SYSCALL_DEFINE2() 388 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE1() local 394 kgid = make_kgid(ns, gid); in SYSCALL_DEFINE1() 464 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE2() local 470 kruid = make_kuid(ns, ruid); in SYSCALL_DEFINE2() 471 keuid = make_kuid(ns, euid); in SYSCALL_DEFINE2() 535 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE1() local 541 kuid = make_kuid(ns, uid); in SYSCALL_DEFINE1() [all …]
|
/linux-4.1.27/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 …]
|
D | drbd_worker.c | 845 union drbd_state os, ns; in drbd_resync_finished() local 898 ns = os; in drbd_resync_finished() 899 ns.conn = C_CONNECTED; in drbd_resync_finished() 938 ns.disk = D_INCONSISTENT; in drbd_resync_finished() 939 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished() 941 ns.disk = D_UP_TO_DATE; in drbd_resync_finished() 942 ns.pdsk = D_INCONSISTENT; in drbd_resync_finished() 945 ns.disk = D_UP_TO_DATE; in drbd_resync_finished() 946 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished() 975 _drbd_set_state(device, ns, CS_VERBOSE, NULL); in drbd_resync_finished() [all …]
|
/linux-4.1.27/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 | 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 | 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 | 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 | omap3-devkit8000.dts | 117 gpmc,cs-on-ns = <0>; 118 gpmc,cs-rd-off-ns = <44>; 119 gpmc,cs-wr-off-ns = <44>; 120 gpmc,adv-on-ns = <6>; 121 gpmc,adv-rd-off-ns = <34>; 122 gpmc,adv-wr-off-ns = <44>; 123 gpmc,we-off-ns = <40>; 124 gpmc,oe-off-ns = <54>; 125 gpmc,access-ns = <64>; 126 gpmc,rd-cycle-ns = <82>; [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 | omap3-igep.dtsi | 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 | 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-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 | 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 | am43x-epos-evm.dts | 484 gpmc,cs-on-ns = <0>; 485 gpmc,cs-rd-off-ns = <40>; /* tCEA + tCHZ + 1 */ 486 gpmc,cs-wr-off-ns = <40>; 487 gpmc,adv-on-ns = <0>; /* cs-on-ns */ 488 gpmc,adv-rd-off-ns = <25>; /* min( tALH + tALS + 1) */ 489 gpmc,adv-wr-off-ns = <25>; /* min( tALH + tALS + 1) */ 490 gpmc,we-on-ns = <0>; /* cs-on-ns */ 491 gpmc,we-off-ns = <20>; /* we-on-time + tWP + 2 */ 492 gpmc,oe-on-ns = <3>; /* cs-on-ns + tRR + 2 */ 493 gpmc,oe-off-ns = <30>; /* oe-on-ns + tRP + 2 */ [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 | dra72-evm.dts | 304 gpmc,cs-on-ns = <0>; 305 gpmc,cs-rd-off-ns = <80>; 306 gpmc,cs-wr-off-ns = <80>; 307 gpmc,adv-on-ns = <0>; 308 gpmc,adv-rd-off-ns = <60>; 309 gpmc,adv-wr-off-ns = <60>; 310 gpmc,we-on-ns = <10>; 311 gpmc,we-off-ns = <50>; 312 gpmc,oe-on-ns = <4>; 313 gpmc,oe-off-ns = <40>; [all …]
|
D | dra7-evm.dts | 580 gpmc,cs-on-ns = <0>; 581 gpmc,cs-rd-off-ns = <80>; 582 gpmc,cs-wr-off-ns = <80>; 583 gpmc,adv-on-ns = <0>; 584 gpmc,adv-rd-off-ns = <60>; 585 gpmc,adv-wr-off-ns = <60>; 586 gpmc,we-on-ns = <10>; 587 gpmc,we-off-ns = <50>; 588 gpmc,oe-on-ns = <4>; 589 gpmc,oe-off-ns = <40>; [all …]
|
D | am335x-evm.dts | 455 gpmc,cs-on-ns = <0>; 456 gpmc,cs-rd-off-ns = <44>; 457 gpmc,cs-wr-off-ns = <44>; 458 gpmc,adv-on-ns = <6>; 459 gpmc,adv-rd-off-ns = <34>; 460 gpmc,adv-wr-off-ns = <44>; 461 gpmc,we-on-ns = <0>; 462 gpmc,we-off-ns = <40>; 463 gpmc,oe-on-ns = <0>; 464 gpmc,oe-off-ns = <54>; [all …]
|
D | am437x-gp-evm.dts | 525 gpmc,cs-on-ns = <0>; 526 gpmc,cs-rd-off-ns = <40>; 527 gpmc,cs-wr-off-ns = <40>; 528 gpmc,adv-on-ns = <0>; 529 gpmc,adv-rd-off-ns = <25>; 530 gpmc,adv-wr-off-ns = <25>; 531 gpmc,we-on-ns = <0>; 532 gpmc,we-off-ns = <20>; 533 gpmc,oe-on-ns = <3>; 534 gpmc,oe-off-ns = <30>; [all …]
|
D | omap3-gta04.dtsi | 472 gpmc,cs-on-ns = <0>; 473 gpmc,cs-rd-off-ns = <44>; 474 gpmc,cs-wr-off-ns = <44>; 475 gpmc,adv-on-ns = <6>; 476 gpmc,adv-rd-off-ns = <34>; 477 gpmc,adv-wr-off-ns = <44>; 478 gpmc,we-off-ns = <40>; 479 gpmc,oe-off-ns = <54>; 480 gpmc,access-ns = <64>; 481 gpmc,rd-cycle-ns = <82>; [all …]
|
D | omap3-pandora-common.dtsi | 508 gpmc,cs-on-ns = <0>; 509 gpmc,cs-rd-off-ns = <44>; 510 gpmc,cs-wr-off-ns = <44>; 511 gpmc,adv-on-ns = <6>; 512 gpmc,adv-rd-off-ns = <34>; 513 gpmc,adv-wr-off-ns = <44>; 514 gpmc,we-off-ns = <40>; 515 gpmc,oe-off-ns = <54>; 516 gpmc,access-ns = <64>; 517 gpmc,rd-cycle-ns = <82>; [all …]
|
D | samsung_k3pe0e000b.dtsi | 41 tRAS-max-ns = <70000>; 63 tRAS-max-ns = <70000>;
|
D | elpida_ecb240abacn.dtsi | 41 tRAS-max-ns = <70000>; 63 tRAS-max-ns = <70000>;
|
/linux-4.1.27/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()
|
D | audit.c | 134 if (profile->ns != root_ns) { in audit_pre() 136 audit_log_untrustedstring(ab, profile->ns->base.hname); in audit_pre()
|
/linux-4.1.27/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 275 const char *name, const void *ns); 288 void *priv, const void *ns); 295 void *priv, const void *ns, 306 const void *ns); 315 bool *new_sb_created, const void *ns); 317 struct super_block *kernfs_pin_sb(struct kernfs_root *root, const void *ns); 346 const void *ns) in kernfs_find_and_get_ns() argument 367 umode_t mode, void *priv, const void *ns) in kernfs_create_dir_ns() argument 373 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 | nvme.h | 144 static inline u64 nvme_block_nr(struct nvme_ns *ns, sector_t sector) in nvme_block_nr() argument 146 return (sector >> (ns->lba_shift - 9)); in nvme_block_nr() 163 int nvme_submit_flush_data(struct nvme_queue *nvmeq, struct nvme_ns *ns); 175 int nvme_sg_io(struct nvme_ns *ns, struct sg_io_hdr __user *u_hdr); 176 int nvme_sg_io32(struct nvme_ns *ns, unsigned long arg);
|
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 | time64.h | 182 static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns) in timespec64_add_ns() argument 184 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec64_add_ns() 185 a->tv_nsec = ns; in timespec64_add_ns()
|
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 | sysfs.h | 206 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns); 220 const void *ns); 226 const void *ns); 283 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument 318 const void *ns) in sysfs_create_file_ns() argument 337 const void *ns) in sysfs_remove_file_ns() argument 382 const char *new_name, const void *ns) in sysfs_rename_link_ns() argument
|
D | ptrace.h | 174 struct pid_namespace *ns; in ptrace_event_pid() local 177 ns = task_active_pid_ns(rcu_dereference(current->parent)); in ptrace_event_pid() 178 if (ns) in ptrace_event_pid() 179 message = pid_nr_ns(pid, ns); in ptrace_event_pid()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/fs/ |
D | nsfs.c | 27 struct ns_common *ns = inode->i_private; in ns_prune_dentry() local 28 atomic_long_set(&ns->stashed, 0); in ns_prune_dentry() 41 struct ns_common *ns = inode->i_private; in nsfs_evict() local 43 ns->ops->put(ns); in nsfs_evict() 53 struct ns_common *ns; in ns_get_path() local 57 ns = ns_ops->get(task); in ns_get_path() 58 if (!ns) { in ns_get_path() 63 d = atomic_long_read(&ns->stashed); in ns_get_path() 70 ns_ops->put(ns); in ns_get_path() 79 ns_ops->put(ns); in ns_get_path() [all …]
|
D | proc_namespace.c | 21 struct mnt_namespace *ns = p->ns; in mounts_poll() local 25 poll_wait(file, &p->ns->poll, wait); in mounts_poll() 27 event = ACCESS_ONCE(ns->event); in mounts_poll() 238 struct mnt_namespace *ns = NULL; in mounts_open_common() local 253 ns = nsp->mnt_ns; in mounts_open_common() 254 get_mnt_ns(ns); in mounts_open_common() 275 p->ns = ns; in mounts_open_common() 277 p->m.poll_event = ns->event; in mounts_open_common() 288 put_mnt_ns(ns); in mounts_open_common() 297 put_mnt_ns(p->ns); in mounts_release()
|
D | namespace.c | 700 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint() local 708 list_for_each_entry(mnt, &ns->list, mnt_list) { in __is_local_mountpoint() 779 static void touch_mnt_namespace(struct mnt_namespace *ns) in touch_mnt_namespace() argument 781 if (ns) { in touch_mnt_namespace() 782 ns->event = ++event; in touch_mnt_namespace() 783 wake_up_interruptible(&ns->poll); in touch_mnt_namespace() 790 static void __touch_mnt_namespace(struct mnt_namespace *ns) in __touch_mnt_namespace() argument 792 if (ns && ns->event != event) { in __touch_mnt_namespace() 793 ns->event = event; in __touch_mnt_namespace() 794 wake_up_interruptible(&ns->poll); in __touch_mnt_namespace() [all …]
|
D | mount.h | 9 struct ns_common ns; member 102 static inline void get_mnt_ns(struct mnt_namespace *ns) in get_mnt_ns() argument 104 atomic_inc(&ns->count); in get_mnt_ns() 121 struct mnt_namespace *ns; member
|
/linux-4.1.27/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.1.27/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() 151 struct pid_namespace *ns; in proc_kill_sb() local 153 ns = (struct pid_namespace *)sb->s_fs_info; in proc_kill_sb() [all …]
|
D | thread_self.c | 13 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_thread_self_readlink() local 14 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_readlink() 15 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_readlink() 25 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_thread_self_follow_link() local 26 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_follow_link() 27 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_follow_link() 51 struct pid_namespace *ns = s->s_fs_info; in proc_setup_thread_self() local 78 ns->proc_thread_self = thread_self; in proc_setup_thread_self()
|
D | array.c | 134 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument 147 task_tgid_nr_ns(rcu_dereference(p->real_parent), ns) : 0; in task_state() 151 tpid = task_pid_nr_ns(tracer, ns); in task_state() 153 tgid = task_tgid_nr_ns(p, ns); in task_state() 174 tgid, ngid, pid_nr_ns(pid, ns), ppid, tpid, in task_state() 193 for (g = ns->level; g <= pid->level; g++) in task_state() 195 task_tgid_nr_ns(p, pid->numbers[g].ns)); in task_state() 197 for (g = ns->level; g <= pid->level; g++) in task_state() 199 task_pid_nr_ns(p, pid->numbers[g].ns)); in task_state() 201 for (g = ns->level; g <= pid->level; g++) in task_state() [all …]
|
D | self.c | 13 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_readlink() local 14 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_readlink() 24 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_follow_link() local 25 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_follow_link() 50 struct pid_namespace *ns = s->s_fs_info; in proc_setup_self() local 77 ns->proc_self = self; in proc_setup_self()
|
D | base.c | 199 static int proc_pid_cmdline(struct seq_file *m, struct pid_namespace *ns, in proc_pid_cmdline() argument 211 static int proc_pid_auxv(struct seq_file *m, struct pid_namespace *ns, in proc_pid_auxv() argument 233 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan() argument 272 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack() argument 309 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat() argument 381 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score() argument 422 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits() argument 464 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall() argument 582 struct pid_namespace *ns; in proc_single_show() local 587 ns = inode->i_sb->s_fs_info; 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.1.27/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.1.27/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.1.27/drivers/block/ |
D | nvme-scsi.c | 671 static int nvme_trans_standard_inquiry_page(struct nvme_ns *ns, in nvme_trans_standard_inquiry_page() argument 675 struct nvme_dev *dev = ns->dev; in nvme_trans_standard_inquiry_page() 695 nvme_sc = nvme_identify(dev, ns->ns_id, 0, dma_addr); in nvme_trans_standard_inquiry_page() 737 static int nvme_trans_supported_vpd_pages(struct nvme_ns *ns, in nvme_trans_supported_vpd_pages() argument 760 static int nvme_trans_unit_serial_page(struct nvme_ns *ns, in nvme_trans_unit_serial_page() argument 764 struct nvme_dev *dev = ns->dev; in nvme_trans_unit_serial_page() 779 static int nvme_trans_device_id_page(struct nvme_ns *ns, struct sg_io_hdr *hdr, in nvme_trans_device_id_page() argument 782 struct nvme_dev *dev = ns->dev; in nvme_trans_device_id_page() 788 __be32 tmp_id = cpu_to_be32(ns->ns_id); in nvme_trans_device_id_page() 804 nvme_sc = nvme_identify(dev, ns->ns_id, 0, dma_addr); in nvme_trans_device_id_page() [all …]
|
D | nvme-core.c | 506 struct nvme_ns *ns = req->rq_disk->private_data; in nvme_dif_remap() local 512 if (!ns->pi_type || ns->pi_type == NVME_NS_DPS_PI_TYPE3) in nvme_dif_remap() 523 phys = nvme_block_nr(ns, blk_rq_pos(req)); in nvme_dif_remap() 524 nlb = (blk_rq_bytes(req) >> ns->lba_shift); in nvme_dif_remap() 525 ts = ns->disk->integrity->tuple_size; in nvme_dif_remap() 551 static void nvme_init_integrity(struct nvme_ns *ns) in nvme_init_integrity() argument 555 switch (ns->pi_type) { in nvme_init_integrity() 567 integrity.tuple_size = ns->ms; in nvme_init_integrity() 568 blk_integrity_register(ns->disk, &integrity); in nvme_init_integrity() 569 blk_queue_max_integrity_segments(ns->queue, 1); in nvme_init_integrity() [all …]
|
/linux-4.1.27/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.1.27/drivers/staging/lustre/lustre/include/ |
D | lustre_dlm.h | 509 static inline int ns_is_client(struct ldlm_namespace *ns) in ns_is_client() argument 511 LASSERT(ns != NULL); in ns_is_client() 512 LASSERT(!(ns->ns_client & ~(LDLM_NAMESPACE_CLIENT | in ns_is_client() 514 LASSERT(ns->ns_client == LDLM_NAMESPACE_CLIENT || in ns_is_client() 515 ns->ns_client == LDLM_NAMESPACE_SERVER); in ns_is_client() 516 return ns->ns_client == LDLM_NAMESPACE_CLIENT; in ns_is_client() 522 static inline int ns_is_server(struct ldlm_namespace *ns) in ns_is_server() argument 524 LASSERT(ns != NULL); in ns_is_server() 525 LASSERT(!(ns->ns_client & ~(LDLM_NAMESPACE_CLIENT | in ns_is_server() 527 LASSERT(ns->ns_client == LDLM_NAMESPACE_CLIENT || in ns_is_server() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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 165 ns = timecounter_cyc2time(&fep->tc, tempval); in fec_ptp_enable_pps() 166 ts.tv_sec = div_u64_rem(ns, 1000000000ULL, &remainder); in fec_ptp_enable_pps() 397 u64 ns; in fec_ptp_gettime() local 401 ns = timecounter_read(&adapter->tc); in fec_ptp_gettime() 404 *ts = ns_to_timespec64(ns); in fec_ptp_gettime() 423 u64 ns; in fec_ptp_settime() local 434 ns = timespec64_to_ns(ts); in fec_ptp_settime() 438 counter = ns & fep->cc.mask; in fec_ptp_settime() 442 timecounter_init(&fep->tc, &fep->cc, ns); in fec_ptp_settime() [all …]
|
/linux-4.1.27/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.1.27/drivers/gpu/drm/i915/ |
D | dvo_ns2501.c | 379 struct ns2501_priv *ns = dvo->dev_priv; in ns2501_readb() local 407 if (!ns->quiet) { in ns2501_readb() 424 struct ns2501_priv *ns = dvo->dev_priv; in ns2501_writeb() local 442 if (!ns->quiet) { in ns2501_writeb() 460 struct ns2501_priv *ns; in ns2501_init() local 463 ns = kzalloc(sizeof(struct ns2501_priv), GFP_KERNEL); in ns2501_init() 464 if (ns == NULL) in ns2501_init() 468 dvo->dev_priv = ns; in ns2501_init() 469 ns->quiet = true; in ns2501_init() 488 ns->quiet = false; in ns2501_init() [all …]
|
/linux-4.1.27/arch/x86/vdso/ |
D | vclock_gettime.c | 233 u64 ns; in do_realtime() local 240 ns = gtod->wall_time_snsec; in do_realtime() 241 ns += vgetsns(&mode); in do_realtime() 242 ns >>= gtod->shift; in do_realtime() 245 ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_realtime() 246 ts->tv_nsec = ns; in do_realtime() 254 u64 ns; in do_monotonic() local 261 ns = gtod->monotonic_time_snsec; in do_monotonic() 262 ns += vgetsns(&mode); in do_monotonic() 263 ns >>= gtod->shift; in do_monotonic() [all …]
|
/linux-4.1.27/fs/kernfs/ |
D | dir.c | 185 static unsigned int kernfs_name_hash(const char *name, const void *ns) in kernfs_name_hash() argument 191 hash = (end_name_hash(hash) ^ hash_ptr((void *)ns, 31)); in kernfs_name_hash() 202 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare() argument 208 if (ns < kn->ns) in kernfs_name_compare() 210 if (ns > kn->ns) in kernfs_name_compare() 218 return kernfs_name_compare(left->hash, left->name, left->ns, right); in kernfs_sd_compare() 467 kernfs_info(dentry->d_sb)->ns != kn->ns) in kernfs_dop_revalidate() 587 if (WARN(has_ns != (bool)kn->ns, KERN_WARNING "kernfs: ns %s in '%s' for '%s'\n", in kernfs_add_one() 601 kn->hash = kernfs_name_hash(kn->name, kn->ns); in kernfs_add_one() 643 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.1.27/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 …]
|
D | apparmorfs.h | 100 void __aa_fs_namespace_rmdir(struct aa_namespace *ns); 101 int __aa_fs_namespace_mkdir(struct aa_namespace *ns, struct dentry *parent,
|
/linux-4.1.27/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.1.27/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() 48 void *ns = (void *)kernfs_super_ns(sb); in sysfs_kill_sb() local 51 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 | 240 umode_t mode, const void *ns) in sysfs_add_file_mode_ns() argument 298 (void *)attr, ns, key); in sysfs_add_file_mode_ns() 320 const void *ns) in sysfs_create_file_ns() argument 324 return sysfs_add_file_mode_ns(kobj->sd, attr, false, attr->mode, ns); in sysfs_create_file_ns() 409 const void *ns) in sysfs_remove_file_ns() argument 413 kernfs_remove_by_name_ns(parent, attr->name, ns); in sysfs_remove_file_ns()
|
D | dir.c | 41 int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument 56 S_IRWXU | S_IRUGO | S_IXUGO, kobj, ns); in sysfs_create_dir_ns()
|
/linux-4.1.27/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.1.27/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 | 101 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 103 ts.tv_nsec += ns; in timespec_add() 111 int nanosleep_test(int clockid, long long ns) in nanosleep_test() argument 118 target = timespec_add(now, ns); in nanosleep_test() 131 rel = timespec_add(rel, ns); in nanosleep_test() 132 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 | 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.1.27/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.1.27/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.1.27/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.1.27/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 …]
|
D | gc.c | 514 struct tomoyo_policy_namespace *ns; in tomoyo_collect_entry() local 527 list_for_each_entry(ns, &tomoyo_namespace_list, namespace_list) { in tomoyo_collect_entry() 529 tomoyo_collect_member(id, &ns->policy_list[id]); in tomoyo_collect_entry() 531 tomoyo_collect_acl(&ns->acl_group[i]); in tomoyo_collect_entry() 544 list_for_each_entry(ns, &tomoyo_namespace_list, namespace_list) { in tomoyo_collect_entry() 546 struct list_head *list = &ns->group_list[i]; in tomoyo_collect_entry()
|
/linux-4.1.27/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.1.27/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.1.27/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 281 ns = cyclecounter_cyc2ns(&mdev->cycles, mdev->cycles.mask, zero, &zero); in mlx4_en_init_timestamp() 282 do_div(ns, NSEC_PER_SEC / 2 / HZ); in mlx4_en_init_timestamp() 283 mdev->overflow_period = ns; in mlx4_en_init_timestamp()
|
/linux-4.1.27/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 …]
|
D | driver_mipscore.c | 296 unsigned long hz, ns; in ssb_mipscore_init() local 308 ns = 1000000000 / hz; in ssb_mipscore_init() 311 ssb_extif_timing_init(&bus->extif, ns); in ssb_mipscore_init() 313 ssb_chipco_timing_init(&bus->chipco, ns); in ssb_mipscore_init()
|
/linux-4.1.27/tools/perf/scripts/python/ |
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.1.27/arch/s390/include/asm/ |
D | timex.h | 156 unsigned long long ns; in tod_to_ns() local 158 ns = ((todval >> 32) << 23) * 125; in tod_to_ns() 159 ns += ((todval & 0xffffffff) * 125) >> 9; in tod_to_ns() 160 return ns; in tod_to_ns()
|
/linux-4.1.27/arch/mips/include/asm/ |
D | delay.h | 17 extern void __ndelay(unsigned long ns); 20 #define ndelay(ns) __ndelay(ns) argument
|
/linux-4.1.27/net/core/ |
D | net_namespace.c | 306 struct net *ns = p; in net_drop_ns() local 307 if (ns && atomic_dec_and_test(&ns->passive)) in net_drop_ns() 308 net_free(ns); in net_drop_ns() 424 struct ns_common *ns; in get_net_ns_by_fd() local 431 ns = get_proc_ns(file_inode(file)); in get_net_ns_by_fd() 432 if (ns->ops == &netns_operations) in get_net_ns_by_fd() 433 net = get_net(container_of(ns, struct net, ns)); in get_net_ns_by_fd() 474 net->ns.ops = &netns_operations; in net_ns_net_init() 476 return ns_alloc_inum(&net->ns); in net_ns_net_init() 481 ns_free_inum(&net->ns); in net_ns_net_exit() [all …]
|
D | net-sysfs.c | 851 const void *ns = NULL; in rx_queue_namespace() local 854 ns = dev->class->namespace(dev); in rx_queue_namespace() 856 return ns; in rx_queue_namespace() 1246 const void *ns = NULL; in netdev_queue_namespace() local 1249 ns = dev->class->namespace(dev); in netdev_queue_namespace() 1251 return ns; in netdev_queue_namespace() 1375 struct net *ns = current->nsproxy->net_ns; in net_grab_current_ns() local 1377 if (ns) in net_grab_current_ns() 1378 atomic_inc(&ns->passive); in net_grab_current_ns() 1380 return ns; in net_grab_current_ns() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 64 u64 ns; in i40e_ptp_read() local 70 ns = (((u64)hi) << 32) | lo; in i40e_ptp_read() 72 *ts = ns_to_timespec64(ns); in i40e_ptp_read() 87 u64 ns = timespec64_to_ns(ts); in i40e_ptp_write() local 92 wr32(hw, I40E_PRTTSYN_TIME_L, ns & 0xFFFFFFFF); in i40e_ptp_write() 93 wr32(hw, I40E_PRTTSYN_TIME_H, ns >> 32); in i40e_ptp_write() 311 u64 ns; in i40e_ptp_tx_hwtstamp() local 323 ns = (((u64)hi) << 32) | lo; in i40e_ptp_tx_hwtstamp() 325 i40e_ptp_convert_to_hwtstamp(&shhwtstamps, ns); in i40e_ptp_tx_hwtstamp() 348 u64 ns; in i40e_ptp_rx_hwtstamp() local [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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()
|
D | norm_desc.c | 234 u64 ns; in ndesc_get_timestamp() local 236 ns = p->des2; in ndesc_get_timestamp() 238 ns += p->des3 * 1000000000ULL; in ndesc_get_timestamp() 240 return ns; in ndesc_get_timestamp()
|
/linux-4.1.27/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.1.27/arch/arc/boot/dts/ |
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>;
|
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>;
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/virt/kvm/arm/ |
D | arch_timer.c | 46 static void timer_arm(struct arch_timer_cpu *timer, u64 ns) in timer_arm() argument 49 hrtimer_start(&timer->timer, ktime_add_ns(ktime_get(), ns), in timer_arm() 166 u64 ns; in kvm_timer_sync_hwstate() local 182 ns = cyclecounter_cyc2ns(timecounter->cc, cval - now, timecounter->mask, in kvm_timer_sync_hwstate() 184 timer_arm(timer, ns); in kvm_timer_sync_hwstate()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/spi/ |
D | spi-bitbang.c | 64 unsigned ns, in bitbang_txrx_8() argument 77 word = txrx_word(spi, ns, word, bits); in bitbang_txrx_8() 90 unsigned ns, in bitbang_txrx_16() argument 103 word = txrx_word(spi, ns, word, bits); in bitbang_txrx_16() 116 unsigned ns, in bitbang_txrx_32() argument 129 word = txrx_word(spi, ns, word, bits); in bitbang_txrx_32()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | eeh.h | 427 int ns) in eeh_readsb() argument 429 _insb(addr, buf, ns); in eeh_readsb() 430 if (EEH_POSSIBLE_ERROR((*(((u8*)buf)+ns-1)), u8)) in eeh_readsb() 435 int ns) in eeh_readsw() argument 437 _insw(addr, buf, ns); in eeh_readsw() 438 if (EEH_POSSIBLE_ERROR((*(((u16*)buf)+ns-1)), u16)) in eeh_readsw()
|
/linux-4.1.27/init/ |
D | version.c | 38 .ns.inum = PROC_UTS_INIT_INO, 40 .ns.ops = &utsns_operations,
|
/linux-4.1.27/lib/ |
D | kobject.c | 1010 void *ns = NULL; in kobj_ns_grab_current() local 1015 ns = kobj_ns_ops_tbl[type]->grab_current_ns(); in kobj_ns_grab_current() 1018 return ns; in kobj_ns_grab_current() 1023 const void *ns = NULL; in kobj_ns_netlink() local 1028 ns = kobj_ns_ops_tbl[type]->netlink_ns(sk); in kobj_ns_netlink() 1031 return ns; in kobj_ns_netlink() 1036 const void *ns = NULL; in kobj_ns_initial() local 1041 ns = kobj_ns_ops_tbl[type]->initial_ns(); in kobj_ns_initial() 1044 return ns; in kobj_ns_initial() 1047 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.1.27/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() 470 s64 ns; in igb_ptp_feature_enable_i210() local [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/unicore32/lib/ |
D | clear_user.S | 38 strusr r2, r0, 4, ns, rept=2 41 strusr r2, r0, 4, ns
|
/linux-4.1.27/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()
|
/linux-4.1.27/security/ |
D | commoncap.c | 79 struct user_namespace *ns = targ_ns; in cap_capable() local 87 if (ns == cred->user_ns) in cap_capable() 91 if (ns == &init_user_ns) in cap_capable() 98 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable() 105 ns = ns->parent; in cap_capable()
|
/linux-4.1.27/Documentation/devicetree/bindings/arm/exynos/ |
D | smp-sysram.txt | 15 "samsung,exynos4210-sysram-ns" : for Non-secure SYSRAM 35 compatible = "samsung,exynos4210-sysram-ns";
|
/linux-4.1.27/drivers/clk/st/ |
D | clkgen-fsyn.c | 800 unsigned long ns; in clk_fs216c65_get_rate() local 807 ns = (fs->nsdiv ? 1 : 3); in clk_fs216c65_get_rate() 809 res = (uint64_t)(s * ns * P15 * (uint64_t)(m + 33)); in clk_fs216c65_get_rate() 810 res = res - (s * ns * fs->pe); in clk_fs216c65_get_rate() 823 unsigned long ns; in clk_fs432c65_get_rate() local 827 ns = (fs->nsdiv ? 1 : 3); in clk_fs432c65_get_rate() 829 res = (uint64_t)(sd * ns * P15 * (uint64_t)(m + 33)); in clk_fs432c65_get_rate() 830 res = res - (sd * ns * fs->pe); in clk_fs432c65_get_rate() 842 unsigned long ns; in clk_fs660c32_dig_get_rate() local 853 ns = (fs->nsdiv == 1) ? 1 : 3; in clk_fs660c32_dig_get_rate() [all …]
|
/linux-4.1.27/drivers/video/fbdev/riva/ |
D | riva_hw.c | 253 long ns; in nv3_iterate() local 273 ns = 1000000 * ainfo->vburst_size/(state->memory_width/8)/state->mclk_khz; in nv3_iterate() 274 vfsize = ns * ainfo->vdrain_rate / 1000000; in nv3_iterate() 285 ns = 1000000 * (ainfo->gburst_size/(state->memory_width/8))/state->mclk_khz; in nv3_iterate() 286 gfsize = (ns * (long) ainfo->gdrain_rate)/1000000; in nv3_iterate() 340 … ns = 1000000 * (vmisses*state->mem_page_miss + state->mem_latency)/state->mclk_khz; in nv3_iterate() 341 vlwm = ns * ainfo->vdrain_rate/ 1000000; in nv3_iterate() 344 …ns = 1000000*(misses*state->mem_page_miss + ainfo->vburst_size)/(state->memory_width/8)/state->mcl… in nv3_iterate() 345 ainfo->vocc = ainfo->vocc + ainfo->vburst_size - ns*ainfo->vdrain_rate/1000000; in nv3_iterate() 346 ainfo->gocc = ainfo->gocc - ns*ainfo->gdrain_rate/1000000; in nv3_iterate() [all …]
|
/linux-4.1.27/arch/cris/arch-v32/kernel/ |
D | time.c | 62 unsigned long ns; in get_ns_in_jiffie() local 65 ns = (TIMER0_DIV - data) * 10; in get_ns_in_jiffie() 66 return ns; in get_ns_in_jiffie()
|