/arch/metag/kernel/ |
D | ptrace.c | 38 unsigned int pos, unsigned int count, in metag_gp_regs_copyout() argument 46 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 51 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 60 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 65 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 70 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 76 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 81 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 86 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 93 unsigned int pos, unsigned int count, in metag_gp_regs_copyin() argument [all …]
|
/arch/sparc/kernel/ |
D | ptrace_32.c | 50 unsigned int pos, unsigned int count, in genregs32_get() argument 62 pos /= sizeof(reg); in genregs32_get() 66 for (; count > 0 && pos < 16; count--) in genregs32_get() 67 *k++ = regs->u_regs[pos++]; in genregs32_get() 71 for (; count > 0 && pos < 32; count--) { in genregs32_get() 72 if (get_user(*k++, ®_window[pos++])) in genregs32_get() 76 for (; count > 0 && pos < 16; count--) { in genregs32_get() 77 if (put_user(regs->u_regs[pos++], u++)) in genregs32_get() 83 for (; count > 0 && pos < 32; count--) { in genregs32_get() 84 if (get_user(reg, ®_window[pos++]) || in genregs32_get() [all …]
|
D | ptrace_64.c | 211 unsigned int pos, unsigned int count, in genregs64_get() argument 220 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 223 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_get() 228 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 236 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 245 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 252 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs64_get() 261 unsigned int pos, unsigned int count, in genregs64_set() argument 270 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 273 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_set() [all …]
|
/arch/x86/boot/ |
D | early_serial_console.c | 49 int pos = 0; in parse_earlyprintk() local 57 pos += 6; in parse_earlyprintk() 60 if (arg[pos] == ',') in parse_earlyprintk() 61 pos++; in parse_earlyprintk() 69 if (pos == 7 && !strncmp(arg + pos, "0x", 2)) { in parse_earlyprintk() 70 port = simple_strtoull(arg + pos, &e, 16); in parse_earlyprintk() 71 if (port == 0 || arg + pos == e) in parse_earlyprintk() 74 pos = e - arg; in parse_earlyprintk() 75 } else if (!strncmp(arg + pos, "ttyS", 4)) { in parse_earlyprintk() 80 pos += 4; in parse_earlyprintk() [all …]
|
/arch/blackfin/kernel/ |
D | cplbinfo.c | 30 loff_t pos; member 44 return cdata->pos >= MAX_CPLBS; in cplbinfo_nomore() 51 loff_t pos; in cplbinfo_show() local 54 pos = cdata->pos; in cplbinfo_show() 55 addr = cdata->tbl[pos].addr; in cplbinfo_show() 56 data = cdata->tbl[pos].data; in cplbinfo_show() 60 (int)pos, addr, data, strpage(data), in cplbinfo_show() 64 pos < cdata->switched ? 'N' : 'Y'); in cplbinfo_show() 82 static void *cplbinfo_start(struct seq_file *m, loff_t *pos) in cplbinfo_start() argument 86 if (!*pos) { in cplbinfo_start() [all …]
|
/arch/parisc/kernel/ |
D | ptrace.c | 377 unsigned int pos, unsigned int count, in fpr_get() argument 385 pos /= sizeof(reg); in fpr_get() 389 for (; count > 0 && pos < ELF_NFPREG; --count) in fpr_get() 390 *k++ = regs->fr[pos++]; in fpr_get() 392 for (; count > 0 && pos < ELF_NFPREG; --count) in fpr_get() 393 if (__put_user(regs->fr[pos++], u++)) in fpr_get() 398 pos *= sizeof(reg); in fpr_get() 400 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in fpr_get() 406 unsigned int pos, unsigned int count, in fpr_set() argument 414 pos /= sizeof(reg); in fpr_set() [all …]
|
/arch/openrisc/kernel/ |
D | ptrace.c | 53 unsigned int pos, unsigned int count, in genregs_get() argument 60 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_get() 63 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 66 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 69 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 72 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 83 unsigned int pos, unsigned int count, in genregs_set() argument 90 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); in genregs_set() 93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 97 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() [all …]
|
/arch/s390/include/asm/ |
D | gmap.h | 68 #define gmap_for_each_rmap(pos, head) \ argument 69 for (pos = (head); pos; pos = pos->next) 71 #define gmap_for_each_rmap_safe(pos, n, head) \ argument 72 for (pos = (head); n = pos ? pos->next : NULL, pos; pos = n)
|
/arch/frv/kernel/ |
D | ptrace.c | 42 unsigned int pos, unsigned int count, in genregs_get() argument 48 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 53 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 62 unsigned int pos, unsigned int count, in genregs_set() argument 70 if (pos < offsetof(struct user_int_regs, psr) + sizeof(long) && in genregs_set() 71 pos + count > offsetof(struct user_int_regs, psr)) in genregs_set() 74 if (pos < offsetof(struct user_int_regs, __status) + sizeof(long) && in genregs_set() 75 pos + count > offsetof(struct user_int_regs, __status)) in genregs_set() 81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() [all …]
|
/arch/m68k/amiga/ |
D | pcmcia.c | 44 int cnt, pos, len; in pcmcia_copy_tuple() local 47 pos = 0; in pcmcia_copy_tuple() 49 id = gayle_attribute[pos]; in pcmcia_copy_tuple() 51 while((id != CISTPL_END) && (pos < 0x10000)) { in pcmcia_copy_tuple() 52 len = (int)gayle_attribute[pos+2] + 2; in pcmcia_copy_tuple() 56 *dest++ = gayle_attribute[pos+(cnt<<1)]; in pcmcia_copy_tuple() 61 pos += len<<1; in pcmcia_copy_tuple() 62 id = gayle_attribute[pos]; in pcmcia_copy_tuple()
|
/arch/x86/include/asm/ |
D | pci_x86.h | 162 static inline unsigned char mmio_config_readb(void __iomem *pos) in mmio_config_readb() argument 165 asm volatile("movb (%1),%%al" : "=a" (val) : "r" (pos)); in mmio_config_readb() 169 static inline unsigned short mmio_config_readw(void __iomem *pos) in mmio_config_readw() argument 172 asm volatile("movw (%1),%%ax" : "=a" (val) : "r" (pos)); in mmio_config_readw() 176 static inline unsigned int mmio_config_readl(void __iomem *pos) in mmio_config_readl() argument 179 asm volatile("movl (%1),%%eax" : "=a" (val) : "r" (pos)); in mmio_config_readl() 183 static inline void mmio_config_writeb(void __iomem *pos, u8 val) in mmio_config_writeb() argument 185 asm volatile("movb %%al,(%1)" : : "a" (val), "r" (pos) : "memory"); in mmio_config_writeb() 188 static inline void mmio_config_writew(void __iomem *pos, u16 val) in mmio_config_writew() argument 190 asm volatile("movw %%ax,(%1)" : : "a" (val), "r" (pos) : "memory"); in mmio_config_writew() [all …]
|
/arch/s390/kernel/ |
D | processor.c | 152 static inline void *c_update(loff_t *pos) in c_update() argument 154 if (*pos) in c_update() 155 *pos = cpumask_next(*pos - 1, cpu_online_mask); in c_update() 156 return *pos < nr_cpu_ids ? (void *)*pos + 1 : NULL; in c_update() 159 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument 162 return c_update(pos); in c_start() 165 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument 167 ++*pos; in c_next() 168 return c_update(pos); in c_next()
|
/arch/powerpc/kernel/ |
D | ptrace.c | 317 unsigned int pos, unsigned int count, in gpr_get() argument 331 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get() 336 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, in gpr_get() 346 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get() 351 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in gpr_get() 358 unsigned int pos, unsigned int count, in gpr_set() argument 369 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 374 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set() 385 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 392 &pos, &count, &kbuf, &ubuf, in gpr_set() [all …]
|
/arch/ia64/kernel/ |
D | ptrace.c | 1269 unsigned int pos; member 1522 if (dst->count > 0 && dst->pos < ELF_GR_OFFSET(1)) { in do_gpregs_get() 1523 dst->ret = user_regset_copyout_zero(&dst->pos, &dst->count, in do_gpregs_get() 1532 if (dst->count > 0 && dst->pos < ELF_GR_OFFSET(16)) { in do_gpregs_get() 1533 index = (dst->pos - ELF_GR_OFFSET(1)) / sizeof(elf_greg_t); in do_gpregs_get() 1534 min_copy = ELF_GR_OFFSET(16) > (dst->pos + dst->count) ? in do_gpregs_get() 1535 (dst->pos + dst->count) : ELF_GR_OFFSET(16); in do_gpregs_get() 1536 for (i = dst->pos; i < min_copy; i += sizeof(elf_greg_t), in do_gpregs_get() 1543 dst->ret = user_regset_copyout(&dst->pos, &dst->count, in do_gpregs_get() 1551 if (dst->count > 0 && dst->pos < ELF_NAT_OFFSET) { in do_gpregs_get() [all …]
|
/arch/metag/include/asm/ |
D | ptrace.h | 36 unsigned int pos, unsigned int count, 40 unsigned int pos, unsigned int count, 44 unsigned int pos, unsigned int count, 48 unsigned int pos, unsigned int count, 52 unsigned int pos, unsigned int count, 56 unsigned int pos, unsigned int count,
|
D | mmu_context.h | 41 struct tcm_allocation *pos, *n; in destroy_context() local 43 list_for_each_entry_safe(pos, n, &mm->context.tcm, list) { in destroy_context() 44 tcm_free(pos->tag, pos->addr, pos->size); in destroy_context() 45 list_del(&pos->list); in destroy_context() 46 kfree(pos); in destroy_context()
|
/arch/hexagon/kernel/ |
D | setup.c | 108 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument 110 return *pos < nr_cpu_ids ? (void *)((unsigned long) *pos + 1) : NULL; in c_start() 113 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument 115 ++*pos; in c_next() 116 return c_start(m, pos); in c_next()
|
/arch/x86/kernel/fpu/ |
D | regset.c | 32 unsigned int pos, unsigned int count, in xfpregs_get() argument 43 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in xfpregs_get() 48 unsigned int pos, unsigned int count, in xfpregs_set() argument 60 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in xfpregs_set() 79 unsigned int pos, unsigned int count, in xstateregs_get() argument 94 ret = copyout_from_xsaves(pos, count, kbuf, ubuf, xsave); in xstateregs_get() 107 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_get() 113 unsigned int pos, unsigned int count, in xstateregs_set() argument 126 if ((pos != 0) || (count < fpu_user_xstate_size)) in xstateregs_set() 136 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_set() [all …]
|
/arch/um/drivers/ |
D | slip_common.h | 15 static inline int slip_unesc(unsigned char c, unsigned char *buf, int *pos, in slip_unesc() argument 23 ret=*pos; in slip_unesc() 24 *pos=0; in slip_unesc() 42 buf[(*pos)++] = c; in slip_unesc() 87 int pos; member 96 slip->pos = 0; in slip_proto_init()
|
/arch/mn10300/kernel/ |
D | ptrace.c | 83 unsigned int pos, unsigned int count, in genregs_get() argument 90 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 95 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 101 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 110 unsigned int pos, unsigned int count, in genregs_set() argument 118 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 123 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 131 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 143 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 150 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() [all …]
|
/arch/nios2/kernel/ |
D | ptrace.c | 23 unsigned int pos, unsigned int count, in genregs_get() argument 32 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ in genregs_get() 37 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get() 42 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ in genregs_get() 58 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 69 unsigned int pos, unsigned int count, in genregs_set() argument 78 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 83 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 88 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ in genregs_set() 104 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set()
|
/arch/x86/lib/ |
D | cmdline.c | 33 int pos = 0, wstart = 0; in __cmdline_find_option_bool() local 48 while (pos < max_cmdline_size) { in __cmdline_find_option_bool() 50 pos++; in __cmdline_find_option_bool() 61 wstart = pos; in __cmdline_find_option_bool() 126 int pos = 0, len = -1; in __cmdline_find_option() local 143 while (pos++ < max_cmdline_size) { in __cmdline_find_option()
|
/arch/tile/kernel/ |
D | proc.c | 75 static void *c_start(struct seq_file *m, loff_t *pos) in c_start() argument 77 return *pos < nr_cpu_ids ? cpu_to_ptr(*pos) : NULL; in c_start() 79 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument 81 ++*pos; in c_next() 82 return c_start(m, pos); in c_next()
|
/arch/c6x/mm/ |
D | dma-coherent.c | 48 u32 pos; in __alloc_dma_pages() local 51 pos = bitmap_find_free_region(dma_bitmap, dma_pages, order); in __alloc_dma_pages() 54 return dma_base + (pos << PAGE_SHIFT); in __alloc_dma_pages() 60 u32 pos = (addr - dma_base) >> PAGE_SHIFT; in __free_dma_pages() local 62 if (addr < dma_base || (pos + (1 << order)) >= dma_pages) { in __free_dma_pages() 68 bitmap_release_region(dma_bitmap, pos, order); in __free_dma_pages()
|
/arch/sh/kernel/ |
D | ptrace_32.c | 140 unsigned int pos, unsigned int count, in genregs_get() argument 146 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 151 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs_get() 156 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs_get() 164 unsigned int pos, unsigned int count, in genregs_set() argument 170 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 174 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs_set() 179 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs_set() 188 unsigned int pos, unsigned int count, in fpregs_get() argument 198 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpregs_get() [all …]
|