/arch/mips/mm/ |
D | page.c | 105 pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) in pg_addiu() argument 109 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu() 110 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu() 112 uasm_i_addiu(buf, T9, ZERO, off); in pg_addiu() 113 uasm_i_daddu(buf, reg1, reg2, T9); in pg_addiu() 116 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu() 117 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu() 118 UASM_i_ADDU(buf, reg1, reg2, T9); in pg_addiu() 120 UASM_i_ADDIU(buf, reg1, reg2, off); in pg_addiu() 233 static void build_clear_store(u32 **buf, int off) in build_clear_store() argument [all …]
|
D | sc-debugfs.c | 21 char buf[3]; in sc_prefetch_read() local 23 buf[0] = enabled ? 'Y' : 'N'; in sc_prefetch_read() 24 buf[1] = '\n'; in sc_prefetch_read() 25 buf[2] = 0; in sc_prefetch_read() 27 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_prefetch_read() 34 char buf[32]; in sc_prefetch_write() local 39 buf_size = min(count, sizeof(buf) - 1); in sc_prefetch_write() 40 if (copy_from_user(buf, user_buf, buf_size)) in sc_prefetch_write() 43 buf[buf_size] = '\0'; in sc_prefetch_write() 44 err = strtobool(buf, &enabled); in sc_prefetch_write()
|
/arch/mips/include/asm/ |
D | uasm.h | 25 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 28 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 31 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 34 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c) 37 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, signed int c) 40 void uasm_i##op(u32 **buf, unsigned int a, signed int b, unsigned int c) 43 void uasm_i##op(u32 **buf, int a, int b, int c) 46 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, signed int c) 49 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b, unsigned int c, \ 53 void uasm_i##op(u32 **buf, unsigned int a, unsigned int b) [all …]
|
/arch/cris/boot/tools/ |
D | build.c | 111 char buf[1024]; in main() local 113 struct exec *ex = (struct exec *)buf; in main() 145 for (i=0;i<sizeof buf; i++) buf[i]=0; in main() 148 if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) in main() 150 if (((long *) buf)[0]!=intel_long(0x04100301)) in main() 152 if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) in main() 154 if (((long *) buf)[3] != 0) in main() 156 if (((long *) buf)[4] != 0) in main() 158 if (((long *) buf)[5] != 0) in main() 160 if (((long *) buf)[7] != 0) in main() [all …]
|
/arch/x86/events/intel/ |
D | bts.c | 69 struct bts_phys buf[0]; member 90 struct bts_buffer *buf; in bts_buffer_setup_aux() local 110 buf = kzalloc_node(offsetof(struct bts_buffer, buf[nbuf]), GFP_KERNEL, node); in bts_buffer_setup_aux() 111 if (!buf) in bts_buffer_setup_aux() 114 buf->nr_pages = nr_pages; in bts_buffer_setup_aux() 115 buf->nr_bufs = nbuf; in bts_buffer_setup_aux() 116 buf->snapshot = overwrite; in bts_buffer_setup_aux() 117 buf->data_pages = pages; in bts_buffer_setup_aux() 118 buf->real_size = size - size % BTS_RECORD_SIZE; in bts_buffer_setup_aux() 120 for (pg = 0, nbuf = 0, offset = 0, pad = 0; nbuf < buf->nr_bufs; nbuf++) { in bts_buffer_setup_aux() [all …]
|
D | pt.c | 89 char *buf) in pt_cap_show() argument 95 return snprintf(buf, PAGE_SIZE, "%x\n", pt_cap_get(cap)); in pt_cap_show() 536 static void pt_config_buffer(void *buf, unsigned int topa_idx, in pt_config_buffer() argument 541 wrmsrl(MSR_IA32_RTIT_OUTPUT_BASE, virt_to_phys(buf)); in pt_config_buffer() 627 static void topa_insert_table(struct pt_buffer *buf, struct topa *topa) in topa_insert_table() argument 629 struct topa *last = buf->last; in topa_insert_table() 631 list_add_tail(&topa->list, &buf->tables); in topa_insert_table() 633 if (!buf->first) { in topa_insert_table() 634 buf->first = buf->last = buf->cur = topa; in topa_insert_table() 639 buf->last = topa; in topa_insert_table() [all …]
|
/arch/arm/common/ |
D | dmabounce.c | 89 char *buf) in dmabounce_show() argument 92 return sprintf(buf, "%lu %lu %lu %lu %lu %lu\n", in dmabounce_show() 111 struct safe_buffer *buf; in alloc_safe_buffer() local 127 buf = kmalloc(sizeof(struct safe_buffer), GFP_ATOMIC); in alloc_safe_buffer() 128 if (buf == NULL) { in alloc_safe_buffer() 133 buf->ptr = ptr; in alloc_safe_buffer() 134 buf->size = size; in alloc_safe_buffer() 135 buf->direction = dir; in alloc_safe_buffer() 136 buf->pool = pool; in alloc_safe_buffer() 139 buf->safe = dma_pool_alloc(pool->pool, GFP_ATOMIC, in alloc_safe_buffer() [all …]
|
/arch/mn10300/boot/tools/ |
D | build.c | 43 uint8_t buf[1024]; variable 109 i = read(fd, buf, sizeof(buf)); in main() 113 if (buf[510] != 0x55 || buf[511] != 0xaa) in main() 115 buf[508] = minor_root; in main() 116 buf[509] = major_root; in main() 117 if (write(1, buf, 512) != 512) in main() 123 for (i = 0; (c = read(fd, buf, sizeof(buf))) > 0; i += c) in main() 124 if (write(1, buf, c) != c) in main() 136 memset(buf, 0, sizeof(buf)); in main() 139 if (c > sizeof(buf)) in main() [all …]
|
/arch/m68k/include/asm/ |
D | raw_io.h | 115 static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len) in raw_insb() argument 120 *buf++ = in_8(port); in raw_insb() 123 static inline void raw_outsb(volatile u8 __iomem *port, const u8 *buf, in raw_outsb() argument 129 out_8(port, *buf++); in raw_outsb() 132 static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr) in raw_insw() argument 140 : "=a" (buf), "=d" (tmp) in raw_insw() 141 : "a" (port), "0" (buf), in raw_insw() 165 : "=a" (buf), "=d" (tmp) in raw_insw() 166 : "a" (port), "0" (buf), in raw_insw() 171 static inline void raw_outsw(volatile u16 __iomem *port, const u16 *buf, in raw_outsw() argument [all …]
|
D | io_mm.h | 98 void mcf_pci_insb(u32 addr, u8 *buf, u32 len); 99 void mcf_pci_insw(u32 addr, u16 *buf, u32 len); 100 void mcf_pci_insl(u32 addr, u32 *buf, u32 len); 105 void mcf_pci_outsb(u32 addr, const u8 *buf, u32 len); 106 void mcf_pci_outsw(u32 addr, const u16 *buf, u32 len); 107 void mcf_pci_outsl(u32 addr, const u32 *buf, u32 len); 316 #define isa_insb(port, buf, nr) raw_insb(isa_itb(port), (u8 *)(buf), (nr)) argument 317 #define isa_outsb(port, buf, nr) raw_outsb(isa_itb(port), (u8 *)(buf), (nr)) argument 319 #define isa_insw(port, buf, nr) \ argument 320 (ISA_SEX ? raw_insw(isa_itw(port), (u16 *)(buf), (nr)) : \ [all …]
|
/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 118 static char * parse_next_property(char *buf, char *end, char **name, int *length, in parse_next_property() argument 123 *name = buf; in parse_next_property() 125 tmp = strchr(buf, ' '); in parse_next_property() 198 static int do_add_node(char *buf, size_t bufsize) in do_add_node() argument 206 end = buf + bufsize; in do_add_node() 207 path = buf; in do_add_node() 208 buf = strchr(buf, ' '); in do_add_node() 209 if (!buf) in do_add_node() 211 *buf = '\0'; in do_add_node() 212 buf++; in do_add_node() [all …]
|
D | dtl.c | 34 struct dtl_entry *buf; member 62 struct dtl_entry *buf; member 93 wp = dtlr->buf; in consume_dtle() 105 dtlr->buf = dtl->buf; in dtl_start() 106 dtlr->buf_end = dtl->buf + dtl->buf_entries; in dtl_start() 111 dtlr->write_ptr = dtl->buf; in dtl_start() 129 dtlr->buf = NULL; in dtl_stop() 152 ((u32 *)dtl->buf)[1] = cpu_to_be32(DISPATCH_LOG_BYTES); in dtl_start() 155 addr = __pa(dtl->buf); in dtl_start() 195 struct dtl_entry *buf = NULL; in dtl_enable() local [all …]
|
/arch/powerpc/platforms/cell/ |
D | cbe_thermal.c | 101 char *buf) in spu_show_temp() argument 110 return sprintf(buf, "%d\n", reg_to_temp(value)); in spu_show_temp() 113 static ssize_t show_throttle(struct cbe_pmd_regs __iomem *pmd_regs, char *buf, int pos) in show_throttle() argument 122 return sprintf(buf, "%d\n", reg_to_temp(value)); in show_throttle() 125 static ssize_t store_throttle(struct cbe_pmd_regs __iomem *pmd_regs, const char *buf, size_t size, … in store_throttle() argument 132 ret = sscanf(buf, "%u", &temp); in store_throttle() 151 struct device_attribute *attr, char *buf) in spu_show_throttle_end() argument 153 return show_throttle(get_pmd_regs(dev), buf, 0); in spu_show_throttle_end() 157 struct device_attribute *attr, char *buf) in spu_show_throttle_begin() argument 159 return show_throttle(get_pmd_regs(dev), buf, 8); in spu_show_throttle_begin() [all …]
|
/arch/blackfin/kernel/ |
D | early_printk.c | 38 static struct console * __init earlyserial_init(char *buf) in earlyserial_init() argument 45 serial_port = simple_strtoul(buf, &buf, 10); in earlyserial_init() 46 buf++; in earlyserial_init() 49 baud = simple_strtoul(buf, &buf, 10); in earlyserial_init() 76 parity = buf[0]; in earlyserial_init() 77 buf++; in earlyserial_init() 87 bit = simple_strtoul(buf, &buf, 10); in earlyserial_init() 111 int __init setup_early_printk(char *buf) in setup_early_printk() argument 117 if (!buf) in setup_early_printk() 120 if (!*buf) in setup_early_printk() [all …]
|
D | trace.c | 30 void decode_address(char *buf, unsigned long address) in decode_address() argument 45 buf += sprintf(buf, "<0x%08lx> ", address); in decode_address() 55 sprintf(buf, "{ %s%s%s%s + 0x%lx }", in decode_address() 64 strcat(buf, "/* Maybe fixed code section */"); in decode_address() 69 strcat(buf, "/* Maybe null pointer? */"); in decode_address() 73 strcat(buf, "/* core mmrs */"); in decode_address() 77 strcat(buf, "/* system mmrs */"); in decode_address() 81 strcat(buf, "/* on-chip L1 ROM */"); in decode_address() 85 strcat(buf, "/* on-chip scratchpad */"); in decode_address() 89 strcat(buf, "/* unconnected memory */"); in decode_address() [all …]
|
/arch/x86/kernel/fpu/ |
D | signal.c | 23 static inline int check_for_xstate(struct fxregs_state __user *buf, in check_for_xstate() argument 31 if (__copy_from_user(fx_sw, &buf->sw_reserved[0], sizeof(*fx_sw))) in check_for_xstate() 57 static inline int save_fsave_header(struct task_struct *tsk, void __user *buf) in save_fsave_header() argument 62 struct _fpstate_32 __user *fp = buf; in save_fsave_header() 66 if (__copy_to_user(buf, &env, sizeof(env)) || in save_fsave_header() 71 struct fregs_state __user *fp = buf; in save_fsave_header() 80 static inline int save_xstate_epilog(void __user *buf, int ia32_frame) in save_xstate_epilog() argument 82 struct xregs_state __user *x = buf; in save_xstate_epilog() 95 (__u32 *)(buf + fpu_user_xstate_size)); in save_xstate_epilog() 121 static inline int copy_fpregs_to_sigframe(struct xregs_state __user *buf) in copy_fpregs_to_sigframe() argument [all …]
|
/arch/s390/pci/ |
D | pci_mmio.c | 40 void *buf; in SYSCALL_DEFINE3() local 50 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() 51 if (!buf) in SYSCALL_DEFINE3() 54 buf = local_buf; in SYSCALL_DEFINE3() 65 if (copy_from_user(buf, user_buffer, length)) in SYSCALL_DEFINE3() 68 ret = zpci_memcpy_toio(io_addr, buf, length); in SYSCALL_DEFINE3() 70 if (buf != local_buf) in SYSCALL_DEFINE3() 71 kfree(buf); in SYSCALL_DEFINE3() 80 void *buf; in SYSCALL_DEFINE3() local 90 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() [all …]
|
/arch/x86/boot/tools/ |
D | build.c | 52 u8 buf[SETUP_SECT_MAX*512]; variable 152 pe_header = get_unaligned_le32(&buf[0x3c]); in update_pecoff_section_header_fields() 153 num_sections = get_unaligned_le16(&buf[pe_header + 6]); in update_pecoff_section_header_fields() 156 section = &buf[pe_header + 0xa8]; in update_pecoff_section_header_fields() 158 section = &buf[pe_header + 0xb8]; in update_pecoff_section_header_fields() 200 put_unaligned_le32(reloc_offset + 10, &buf[reloc_offset]); in update_pecoff_setup_and_reloc() 201 put_unaligned_le32(10, &buf[reloc_offset + 4]); in update_pecoff_setup_and_reloc() 209 pe_header = get_unaligned_le32(&buf[0x3c]); in update_pecoff_text() 215 put_unaligned_le32(file_sz - 512, &buf[pe_header + 0x1c]); in update_pecoff_text() 220 put_unaligned_le32(text_start + efi_pe_entry, &buf[pe_header + 0x28]); in update_pecoff_text() [all …]
|
/arch/sparc/kernel/ |
D | led.c | 68 char *buf = NULL; in led_proc_write() local 73 buf = memdup_user_nul(buffer, count); in led_proc_write() 74 if (IS_ERR(buf)) in led_proc_write() 75 return PTR_ERR(buf); in led_proc_write() 78 if (buf[count - 1] == '\n') in led_proc_write() 79 buf[count - 1] = '\0'; in led_proc_write() 86 if (!strcmp(buf, "on")) { in led_proc_write() 88 } else if (!strcmp(buf, "toggle")) { in led_proc_write() 90 } else if ((*buf > '0') && (*buf <= '9')) { in led_proc_write() 91 led_blink(simple_strtoul(buf, NULL, 10)); in led_proc_write() [all …]
|
/arch/powerpc/boot/ |
D | libfdt-wrapper.c | 55 static void *buf; /* = NULL */ variable 65 buf = platform_ops.realloc(buf, size); in expand_buf() 66 if (!buf) in expand_buf() 68 rc = fdt_open_into(fdt, buf, size); in expand_buf() 73 fdt = buf; in expand_buf() 82 void *buf, const int buflen) in fdt_wrapper_getprop() argument 90 memcpy(buf, p, min(len, buflen)); in fdt_wrapper_getprop() 95 const void *buf, const int len) in fdt_wrapper_setprop() argument 99 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop() 102 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop() [all …]
|
/arch/ia64/hp/sim/ |
D | simscsi.c | 174 char buf[512]; in simscsi_get_disk_size() local 182 req.addr = __pa(&buf); in simscsi_get_disk_size() 183 req.len = sizeof(buf); in simscsi_get_disk_size() 187 if (stat.count == sizeof(buf)) in simscsi_get_disk_size() 211 char *buf; in simscsi_queuecommand_lck() local 236 buf = localbuf; in simscsi_queuecommand_lck() 237 buf[0] = 0; /* magnetic disk */ in simscsi_queuecommand_lck() 238 buf[1] = 0; /* not a removable medium */ in simscsi_queuecommand_lck() 239 buf[2] = 2; /* SCSI-2 compliant device */ in simscsi_queuecommand_lck() 240 buf[3] = 2; /* SCSI-2 response data format */ in simscsi_queuecommand_lck() [all …]
|
/arch/m32r/platforms/oaks32r/ |
D | io.c | 54 unsigned char *buf = addr; in _ne_insb() local 56 *buf++ = *(volatile unsigned char *)(portp+1); in _ne_insb() 156 unsigned char *buf = addr; in _insb() local 159 *buf++ = *(volatile unsigned char *)portp; in _insb() 165 unsigned short *buf = addr; in _insw() local 171 *buf++ = _ne_inw(portp); in _insw() 175 *buf++ = *(volatile unsigned short *)portp; in _insw() 181 unsigned long *buf = addr; in _insl() local 186 *buf++ = *(volatile unsigned long *)portp; in _insl() 191 const unsigned char *buf = addr; in _outsb() local [all …]
|
/arch/arc/kernel/ |
D | troubleshoot.c | 30 char buf[512]; in print_reg_file() local 31 int n = 0, len = sizeof(buf); in print_reg_file() 34 n += scnprintf(buf + n, len - n, "r%02u: 0x%08lx\t", in print_reg_file() 38 n += scnprintf(buf + n, len - n, "\n"); in print_reg_file() 48 n += scnprintf(buf + n, len - n, "\n\n"); in print_reg_file() 52 pr_info("%s", buf); in print_reg_file() 54 pr_cont("%s\n", buf); in print_reg_file() 62 static void print_task_path_n_nm(struct task_struct *tsk, char *buf) in print_task_path_n_nm() argument 76 path_nm = file_path(exe_file, buf, 255); in print_task_path_n_nm() 84 static void show_faulting_vma(unsigned long address, char *buf) in show_faulting_vma() argument [all …]
|
/arch/s390/kernel/ |
D | nospec-sysfs.c | 8 struct device_attribute *attr, char *buf) in cpu_show_spectre_v1() argument 10 return sprintf(buf, "Mitigation: __user pointer sanitization\n"); in cpu_show_spectre_v1() 14 struct device_attribute *attr, char *buf) in cpu_show_spectre_v2() argument 17 return sprintf(buf, "Mitigation: execute trampolines\n"); in cpu_show_spectre_v2() 19 return sprintf(buf, "Mitigation: limited branch prediction\n"); in cpu_show_spectre_v2() 20 return sprintf(buf, "Vulnerable\n"); in cpu_show_spectre_v2()
|
/arch/arm/lib/ |
D | csumpartial.S | 21 buf .req r0 label 41 tst buf, #1 @ odd address? 43 ldrneb td0, [buf], #1 54 ldrh td0, [buf], #2 57 ldrb td0, [buf], #1 58 ldrb td3, [buf], #1 71 ldrneb td0, [buf], #1 @ include last byte 80 .Lnot_aligned: tst buf, #1 @ odd address 81 ldrneb td0, [buf], #1 @ make even 85 tst buf, #2 @ 32-bit aligned? [all …]
|