/linux-4.19.296/fs/ |
D | seq_file.c | 25 static void seq_set_overflow(struct seq_file *m) in seq_set_overflow() argument 27 m->count = m->size; in seq_set_overflow() 94 static int traverse(struct seq_file *m, loff_t offset) in traverse() argument 100 m->version = 0; in traverse() 101 m->index = 0; in traverse() 102 m->count = m->from = 0; in traverse() 106 if (!m->buf) { in traverse() 107 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse() 108 if (!m->buf) in traverse() 111 p = m->op->start(m, &m->index); in traverse() [all …]
|
D | proc_namespace.c | 23 struct seq_file *m = file->private_data; in mounts_poll() local 24 struct proc_mounts *p = m->private; in mounts_poll() 32 if (m->poll_event != event) { in mounts_poll() 33 m->poll_event = event; in mounts_poll() 45 static int show_sb_opts(struct seq_file *m, struct super_block *sb) in show_sb_opts() argument 58 seq_puts(m, fs_infop->str); in show_sb_opts() 61 return security_sb_show_options(m, sb); in show_sb_opts() 64 static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) in show_mnt_opts() argument 79 seq_puts(m, fs_infop->str); in show_mnt_opts() 83 static inline void mangle(struct seq_file *m, const char *s) in mangle() argument [all …]
|
D | pnode.c | 41 struct mount *m = mnt; in get_peer_under_root() local 45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root() 46 return m; in get_peer_under_root() 48 m = next_peer(m); in get_peer_under_root() 49 } while (m != mnt); in get_peer_under_root() 62 struct mount *m; in get_dominating_id() local 64 for (m = mnt->mnt_master; m != NULL; m = m->mnt_master) { in get_dominating_id() 65 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id() 94 struct mount *m; in do_make_slave() local 100 for (m = master = next_peer(mnt); m != mnt; m = next_peer(m)) { in do_make_slave() [all …]
|
D | pnode.h | 14 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED) argument 15 #define IS_MNT_SLAVE(m) ((m)->mnt_master) argument 16 #define IS_MNT_NEW(m) (!(m)->mnt_ns) argument 17 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED) argument 18 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE) argument 19 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED) argument 20 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED) argument 21 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED) argument 22 #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED) argument
|
/linux-4.19.296/fs/proc/ |
D | meminfo.c | 24 void __attribute__((weak)) arch_report_meminfo(struct seq_file *m) in arch_report_meminfo() argument 28 static void show_val_kb(struct seq_file *m, const char *s, unsigned long num) in show_val_kb() argument 30 seq_put_decimal_ull_width(m, s, num << (PAGE_SHIFT - 10), 8); in show_val_kb() 31 seq_write(m, " kB\n", 4); in show_val_kb() 34 static int meminfo_proc_show(struct seq_file *m, void *v) in meminfo_proc_show() argument 57 show_val_kb(m, "MemTotal: ", i.totalram); in meminfo_proc_show() 58 show_val_kb(m, "MemFree: ", i.freeram); in meminfo_proc_show() 59 show_val_kb(m, "MemAvailable: ", available); in meminfo_proc_show() 60 show_val_kb(m, "Buffers: ", i.bufferram); in meminfo_proc_show() 61 show_val_kb(m, "Cached: ", cached); in meminfo_proc_show() [all …]
|
D | array.c | 99 void proc_task_name(struct seq_file *m, struct task_struct *p, bool escape) in proc_task_name() argument 111 size = seq_get_buf(m, &buf); in proc_task_name() 121 seq_commit(m, ret); in proc_task_name() 152 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument 155 struct user_namespace *user_ns = seq_user_ns(m); in task_state() 184 seq_printf(m, "Umask:\t%#04o\n", umask); in task_state() 185 seq_puts(m, "State:\t"); in task_state() 186 seq_puts(m, get_task_state(p)); in task_state() 188 seq_put_decimal_ull(m, "\nTgid:\t", tgid); in task_state() 189 seq_put_decimal_ull(m, "\nNgid:\t", ngid); in task_state() [all …]
|
D | proc_tty.c | 28 static void show_tty_range(struct seq_file *m, struct tty_driver *p, in show_tty_range() argument 31 seq_printf(m, "%-20s ", p->driver_name ? p->driver_name : "unknown"); in show_tty_range() 32 seq_printf(m, "/dev/%-8s ", p->name); in show_tty_range() 34 seq_printf(m, "%3d %d-%d ", MAJOR(from), MINOR(from), in show_tty_range() 37 seq_printf(m, "%3d %7d ", MAJOR(from), MINOR(from)); in show_tty_range() 41 seq_puts(m, "system"); in show_tty_range() 43 seq_puts(m, ":/dev/tty"); in show_tty_range() 45 seq_puts(m, ":console"); in show_tty_range() 47 seq_puts(m, ":vtmaster"); in show_tty_range() 50 seq_puts(m, "console"); in show_tty_range() [all …]
|
/linux-4.19.296/lib/ |
D | win_minmax.c | 29 static u32 minmax_subwin_update(struct minmax *m, u32 win, in minmax_subwin_update() argument 32 u32 dt = val->t - m->s[0].t; in minmax_subwin_update() 42 m->s[0] = m->s[1]; in minmax_subwin_update() 43 m->s[1] = m->s[2]; in minmax_subwin_update() 44 m->s[2] = *val; in minmax_subwin_update() 45 if (unlikely(val->t - m->s[0].t > win)) { in minmax_subwin_update() 46 m->s[0] = m->s[1]; in minmax_subwin_update() 47 m->s[1] = m->s[2]; in minmax_subwin_update() 48 m->s[2] = *val; in minmax_subwin_update() 50 } else if (unlikely(m->s[1].t == m->s[0].t) && dt > win/4) { in minmax_subwin_update() [all …]
|
D | int_sqrt.c | 21 unsigned long b, m, y = 0; in int_sqrt() local 26 m = 1UL << (__fls(x) & ~1UL); in int_sqrt() 27 while (m != 0) { in int_sqrt() 28 b = y + m; in int_sqrt() 33 y += m; in int_sqrt() 35 m >>= 2; in int_sqrt() 50 u64 b, m, y = 0; in int_sqrt64() local 55 m = 1ULL << ((fls64(x) - 1) & ~1ULL); in int_sqrt64() 56 while (m != 0) { in int_sqrt64() 57 b = y + m; in int_sqrt64() [all …]
|
/linux-4.19.296/include/linux/ |
D | seq_file.h | 33 void * (*start) (struct seq_file *m, loff_t *pos); 34 void (*stop) (struct seq_file *m, void *v); 35 void * (*next) (struct seq_file *m, void *v, loff_t *pos); 36 int (*show) (struct seq_file *m, void *v); 51 static inline bool seq_has_overflowed(struct seq_file *m) in seq_has_overflowed() argument 53 return m->count == m->size; in seq_has_overflowed() 64 static inline size_t seq_get_buf(struct seq_file *m, char **bufp) in seq_get_buf() argument 66 BUG_ON(m->count > m->size); in seq_get_buf() 67 if (m->count < m->size) in seq_get_buf() 68 *bufp = m->buf + m->count; in seq_get_buf() [all …]
|
/linux-4.19.296/drivers/s390/block/ |
D | dasd_proc.c | 36 dasd_devices_show(struct seq_file *m, void *v) in dasd_devices_show() argument 52 seq_printf(m, "%s", dev_name(&device->cdev->dev)); in dasd_devices_show() 55 seq_printf(m, "(%s)", device->discipline->name); in dasd_devices_show() 57 seq_printf(m, "(none)"); in dasd_devices_show() 60 seq_printf(m, " at (%3d:%6d)", in dasd_devices_show() 64 seq_printf(m, " at (???:??????)"); in dasd_devices_show() 67 seq_printf(m, " is %-8s", block->gdp->disk_name); in dasd_devices_show() 69 seq_printf(m, " is ????????"); in dasd_devices_show() 72 seq_printf(m, "%4s: ", substr); in dasd_devices_show() 76 seq_printf(m, "new"); in dasd_devices_show() [all …]
|
/linux-4.19.296/fs/ceph/ |
D | mdsmap.c | 20 int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m) in ceph_mdsmap_get_random_mds() argument 26 if (1 == m->m_num_mds && m->m_info[0].state > 0) in ceph_mdsmap_get_random_mds() 30 for (i = 0; i < m->m_num_mds; i++) in ceph_mdsmap_get_random_mds() 31 if (m->m_info[i].state > 0) in ceph_mdsmap_get_random_mds() 40 while (m->m_info[i].state <= 0) in ceph_mdsmap_get_random_mds() 108 struct ceph_mdsmap *m; in ceph_mdsmap_decode() local 115 m = kzalloc(sizeof(*m), GFP_NOFS); in ceph_mdsmap_decode() 116 if (!m) in ceph_mdsmap_decode() 131 m->m_epoch = ceph_decode_32(p); in ceph_mdsmap_decode() 132 m->m_client_epoch = ceph_decode_32(p); in ceph_mdsmap_decode() [all …]
|
/linux-4.19.296/fs/cifs/ |
D | cifs_debug.c | 97 static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon) in cifs_debug_tcon() argument 101 seq_printf(m, "%s Mounts: %d ", tcon->treeName, tcon->tc_count); in cifs_debug_tcon() 103 seq_printf(m, "Type: %s ", tcon->nativeFileSystem); in cifs_debug_tcon() 104 seq_printf(m, "DevInfo: 0x%x Attributes: 0x%x\n\tPathComponentMax: %d Status: %d", in cifs_debug_tcon() 110 seq_puts(m, " type: DISK "); in cifs_debug_tcon() 112 seq_puts(m, " type: CDROM "); in cifs_debug_tcon() 114 seq_printf(m, " type: %d ", dev_type); in cifs_debug_tcon() 116 seq_printf(m, " Encrypted"); in cifs_debug_tcon() 118 seq_printf(m, " nocase"); in cifs_debug_tcon() 120 seq_printf(m, " POSIX Extensions"); in cifs_debug_tcon() [all …]
|
/linux-4.19.296/block/ |
D | blk-mq-debugfs.c | 27 static void print_stat(struct seq_file *m, struct blk_rq_stat *stat) in print_stat() argument 30 seq_printf(m, "samples=%d, mean=%lld, min=%llu, max=%llu", in print_stat() 33 seq_puts(m, "samples=0"); in print_stat() 37 static int queue_poll_stat_show(void *data, struct seq_file *m) in queue_poll_stat_show() argument 43 seq_printf(m, "read (%d Bytes): ", 1 << (9+bucket)); in queue_poll_stat_show() 44 print_stat(m, &q->poll_stat[2*bucket]); in queue_poll_stat_show() 45 seq_puts(m, "\n"); in queue_poll_stat_show() 47 seq_printf(m, "write (%d Bytes): ", 1 << (9+bucket)); in queue_poll_stat_show() 48 print_stat(m, &q->poll_stat[2*bucket+1]); in queue_poll_stat_show() 49 seq_puts(m, "\n"); in queue_poll_stat_show() [all …]
|
/linux-4.19.296/crypto/ |
D | proc.c | 25 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument 31 static void *c_next(struct seq_file *m, void *p, loff_t *pos) in c_next() argument 36 static void c_stop(struct seq_file *m, void *p) in c_stop() argument 41 static int c_show(struct seq_file *m, void *p) in c_show() argument 45 seq_printf(m, "name : %s\n", alg->cra_name); in c_show() 46 seq_printf(m, "driver : %s\n", alg->cra_driver_name); in c_show() 47 seq_printf(m, "module : %s\n", module_name(alg->cra_module)); in c_show() 48 seq_printf(m, "priority : %d\n", alg->cra_priority); in c_show() 49 seq_printf(m, "refcnt : %u\n", refcount_read(&alg->cra_refcnt)); in c_show() 50 seq_printf(m, "selftest : %s\n", in c_show() [all …]
|
D | sm3_generic.c | 83 static void sm3_compress(u32 *w, u32 *wt, u32 *m) in sm3_compress() argument 92 a = m[0]; in sm3_compress() 93 b = m[1]; in sm3_compress() 94 c = m[2]; in sm3_compress() 95 d = m[3]; in sm3_compress() 96 e = m[4]; in sm3_compress() 97 f = m[5]; in sm3_compress() 98 g = m[6]; in sm3_compress() 99 h = m[7]; in sm3_compress() 123 m[0] = a ^ m[0]; in sm3_compress() [all …]
|
/linux-4.19.296/drivers/edac/ |
D | mce_amd.c | 13 static void (*decode_dram_ecc)(int node_id, struct mce *m); 451 static void decode_mc0_mce(struct mce *m) in decode_mc0_mce() argument 453 u16 ec = EC(m->status); in decode_mc0_mce() 454 u8 xec = XEC(m->status, xec_mask); in decode_mc0_mce() 561 static void decode_mc1_mce(struct mce *m) in decode_mc1_mce() argument 563 u16 ec = EC(m->status); in decode_mc1_mce() 564 u8 xec = XEC(m->status, xec_mask); in decode_mc1_mce() 572 bool k8 = (boot_cpu_data.x86 == 0xf && (m->status & BIT_64(58))); in decode_mc1_mce() 707 static void decode_mc2_mce(struct mce *m) in decode_mc2_mce() argument 709 u16 ec = EC(m->status); in decode_mc2_mce() [all …]
|
/linux-4.19.296/fs/afs/ |
D | proc.c | 20 static inline struct afs_net *afs_seq2net(struct seq_file *m) in afs_seq2net() argument 22 return afs_net(seq_file_net(m)); in afs_seq2net() 25 static inline struct afs_net *afs_seq2net_single(struct seq_file *m) in afs_seq2net_single() argument 27 return afs_net(seq_file_single_net(m)); in afs_seq2net_single() 33 static int afs_proc_cells_show(struct seq_file *m, void *v) in afs_proc_cells_show() argument 39 seq_puts(m, "USE NAME\n"); in afs_proc_cells_show() 44 seq_printf(m, "%3u %s\n", atomic_read(&cell->usage), cell->name); in afs_proc_cells_show() 48 static void *afs_proc_cells_start(struct seq_file *m, loff_t *_pos) in afs_proc_cells_start() argument 52 return seq_hlist_start_head_rcu(&afs_seq2net(m)->proc_cells, *_pos); in afs_proc_cells_start() 55 static void *afs_proc_cells_next(struct seq_file *m, void *v, loff_t *pos) in afs_proc_cells_next() argument [all …]
|
/linux-4.19.296/include/trace/events/ |
D | mce.h | 14 TP_PROTO(struct mce *m), 16 TP_ARGS(m), 39 __entry->mcgcap = m->mcgcap; 40 __entry->mcgstatus = m->mcgstatus; 41 __entry->status = m->status; 42 __entry->addr = m->addr; 43 __entry->misc = m->misc; 44 __entry->synd = m->synd; 45 __entry->ipid = m->ipid; 46 __entry->ip = m->ip; [all …]
|
/linux-4.19.296/drivers/char/ |
D | nsc_gpio.c | 44 unsigned m = iminor(file_inode(file)); in nsc_gpio_write() local 56 amp->gpio_set(m, 0); in nsc_gpio_write() 59 amp->gpio_set(m, 1); in nsc_gpio_write() 62 dev_dbg(dev, "GPIO%d output enabled\n", m); in nsc_gpio_write() 63 amp->gpio_config(m, ~1, 1); in nsc_gpio_write() 66 dev_dbg(dev, "GPIO%d output disabled\n", m); in nsc_gpio_write() 67 amp->gpio_config(m, ~1, 0); in nsc_gpio_write() 70 dev_dbg(dev, "GPIO%d output is push pull\n", m); in nsc_gpio_write() 71 amp->gpio_config(m, ~2, 2); in nsc_gpio_write() 74 dev_dbg(dev, "GPIO%d output is open drain\n", m); in nsc_gpio_write() [all …]
|
/linux-4.19.296/fs/orangefs/ |
D | orangefs-bufmap.c | 28 static void install(struct slot_map *m, int count, unsigned long *map) in install() argument 30 spin_lock(&m->q.lock); in install() 31 m->c = m->count = count; in install() 32 m->map = map; in install() 33 wake_up_all_locked(&m->q); in install() 34 spin_unlock(&m->q.lock); in install() 37 static void mark_killed(struct slot_map *m) in mark_killed() argument 39 spin_lock(&m->q.lock); in mark_killed() 40 m->c -= m->count + 1; in mark_killed() 41 spin_unlock(&m->q.lock); in mark_killed() [all …]
|
/linux-4.19.296/drivers/isdn/i4l/ |
D | isdn_tty.c | 331 isdn_tty_handleDLEdown(modem_info *info, atemu *m, int len) in isdn_tty_handleDLEdown() argument 337 if (m->lastDLE) { in isdn_tty_handleDLEdown() 338 m->lastDLE = 0; in isdn_tty_handleDLEdown() 379 m->lastDLE = 1; in isdn_tty_handleDLEdown() 597 isdn_tty_dial(char *n, modem_info *info, atemu *m) in isdn_tty_dial() argument 601 int l2 = m->mdmreg[REG_L2PROT]; in isdn_tty_dial() 608 if (m->mdmreg[REG_SI1] & (1 << j)) { in isdn_tty_dial() 624 m->mdmreg[REG_SI1I] = si2bit[si]; in isdn_tty_dial() 626 i = isdn_get_free_channel(usg, l2, m->mdmreg[REG_L3PROT], -1, -1, m->msn); in isdn_tty_dial() 644 strcpy(cmd.parm.num, isdn_map_eaz2msn(m->msn, info->isdn_driver)); in isdn_tty_dial() [all …]
|
/linux-4.19.296/fs/notify/ |
D | fdinfo.c | 24 static void show_fdinfo(struct seq_file *m, struct file *f, in show_fdinfo() argument 25 void (*show)(struct seq_file *m, in show_fdinfo() argument 33 show(m, mark); in show_fdinfo() 34 if (seq_has_overflowed(m)) in show_fdinfo() 41 static void show_mark_fhandle(struct seq_file *m, struct inode *inode) in show_mark_fhandle() argument 61 seq_printf(m, "fhandle-bytes:%x fhandle-type:%x f_handle:", in show_mark_fhandle() 65 seq_printf(m, "%02x", (int)f.handle.f_handle[i]); in show_mark_fhandle() 68 static void show_mark_fhandle(struct seq_file *m, struct inode *inode) in show_mark_fhandle() argument 75 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument 86 seq_printf(m, "inotify wd:%x ino:%lx sdev:%x mask:%x ignored_mask:0 ", in inotify_fdinfo() [all …]
|
/linux-4.19.296/drivers/s390/char/ |
D | tape_proc.c | 39 static int tape_proc_show(struct seq_file *m, void *v) in tape_proc_show() argument 48 seq_printf(m, "TapeNo\tBusID CuType/Model\t" in tape_proc_show() 55 seq_printf(m, "%d\t", (int) n); in tape_proc_show() 56 seq_printf(m, "%-10.10s ", dev_name(&device->cdev->dev)); in tape_proc_show() 57 seq_printf(m, "%04X/", device->cdev->id.cu_type); in tape_proc_show() 58 seq_printf(m, "%02X\t", device->cdev->id.cu_model); in tape_proc_show() 59 seq_printf(m, "%04X/", device->cdev->id.dev_type); in tape_proc_show() 60 seq_printf(m, "%02X\t\t", device->cdev->id.dev_model); in tape_proc_show() 62 seq_printf(m, "auto\t"); in tape_proc_show() 64 seq_printf(m, "%i\t", device->char_data.block_size); in tape_proc_show() [all …]
|
/linux-4.19.296/include/linux/isdn/ |
D | capiutil.h | 19 #define CAPIMSG_U8(m, off) (m[off]) argument 20 #define CAPIMSG_U16(m, off) (m[off]|(m[(off)+1]<<8)) argument 21 #define CAPIMSG_U32(m, off) (m[off]|(m[(off)+1]<<8)|(m[(off)+2]<<16)|(m[(off)+3]<<24)) argument 22 #define CAPIMSG_LEN(m) CAPIMSG_U16(m,0) argument 23 #define CAPIMSG_APPID(m) CAPIMSG_U16(m,2) argument 24 #define CAPIMSG_COMMAND(m) CAPIMSG_U8(m,4) argument 25 #define CAPIMSG_SUBCOMMAND(m) CAPIMSG_U8(m,5) argument 26 #define CAPIMSG_CMD(m) (((m[4])<<8)|(m[5])) argument 27 #define CAPIMSG_MSGID(m) CAPIMSG_U16(m,6) argument 28 #define CAPIMSG_CONTROLLER(m) (m[8] & 0x7f) argument [all …]
|