Searched defs:buf (Results 276 - 300 of 473) sorted by relevance

<<111213141516171819

/arch/x86/kernel/cpu/microcode/
H A Dintel.c300 request_microcode_user(int cpu, const void __user *buf, size_t size) argument
302 return generic_load_microcode(cpu, (void *)buf, size, &get_ucode_user);
/arch/x86/kernel/cpu/mtrr/
H A Dif.c94 mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos) argument
118 if (copy_from_user(line, buf, length))
/arch/x86/kernel/
H A Dcpuid.c83 static ssize_t cpuid_read(struct file *file, char __user *buf, argument
86 char __user *tmp = buf;
H A Dearly_printk.c189 static int __init setup_early_printk(char *buf) argument
193 if (!buf)
199 keep = (strstr(buf, "keep") != NULL);
201 while (*buf != '\0') {
202 if (!strncmp(buf, "serial", 6)) {
203 buf += 6;
204 early_serial_init(buf);
206 if (!strncmp(buf, ",ttyS", 5))
207 buf += 5;
209 if (!strncmp(buf, "tty
[all...]
H A Dksysfs.c24 struct kobj_attribute *attr, char *buf)
26 return sprintf(buf, "0x%04x\n", boot_params.hdr.version);
33 char *buf, loff_t off, size_t count)
35 memcpy(buf, (void *)&boot_params + off, count);
117 struct kobj_attribute *attr, char *buf)
134 ret = sprintf(buf, "0x%x\n", data->type);
142 char *buf,
178 memcpy(buf, p + off, count);
23 version_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
31 boot_params_data_read(struct file *fp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
116 type_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
139 setup_data_data_read(struct file *fp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
H A Dmachine_kexec_64.c342 int arch_kexec_kernel_image_probe(struct kimage *image, void *buf, argument
353 ret = fops->probe(buf, buf_len);
H A Dsignal.c67 void __user *buf; local
111 get_user_ex(buf, &sc->fpstate);
116 err |= restore_xstate_sig(buf, config_enabled(CONFIG_X86_32));
/arch/x86/kernel/kprobes/
H A Dopt.c42 unsigned long __recover_optprobed_insn(kprobe_opcode_t *buf, unsigned long addr) argument
67 memcpy(buf, (void *)addr, MAX_INSN_SIZE * sizeof(kprobe_opcode_t));
69 buf[0] = kp->opcode;
70 memcpy(buf + 1, op->optinsn.copied_insn, RELATIVE_ADDR_SIZE);
73 memcpy(buf, op->optinsn.copied_insn + offs, RELATIVE_ADDR_SIZE - offs);
76 return (unsigned long)buf;
233 kprobe_opcode_t buf[MAX_INSN_SIZE]; local
260 kernel_insn_init(&insn, (void *)recover_probed_instruction(buf, addr));
325 u8 *buf; local
346 buf
[all...]
/arch/x86/mm/
H A Dtlb.c287 char buf[32]; local
290 len = sprintf(buf, "%ld\n", tlb_single_page_flush_ceiling);
291 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
297 char buf[32]; local
301 len = min(count, sizeof(buf) - 1);
302 if (copy_from_user(buf, user_buf, len))
305 buf[len] = '\0';
306 if (kstrtoint(buf, 0, &ceiling))
/arch/x86/platform/olpc/
H A Dolpc-xo1-sci.c141 struct device_attribute *attr, char *buf)
144 return sprintf(buf, "%s\n", mode);
148 const char *buf, size_t count)
153 if (strlen(mode) != count || strncasecmp(mode, buf, count))
140 lid_wake_mode_show(struct device *dev, struct device_attribute *attr, char *buf) argument
146 lid_wake_mode_set(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
/arch/x86/platform/uv/
H A Dbios_uv.c150 uv_bios_reserved_page_pa(u64 buf, u64 *cookie, u64 *addr, u64 *len) argument
155 (u64)addr, buf, (u64)len, 0);
/arch/x86/um/
H A Dsignal.c82 static int convert_fxsr_to_user(struct _fpstate __user *buf, argument
98 if (__copy_to_user(buf, env, 7 * sizeof(unsigned long)))
101 to = &buf->_st[0];
116 struct _fpstate __user *buf)
123 if (copy_from_user( env, buf, 7 * sizeof(long)))
136 from = &buf->_st[0];
115 convert_fxsr_from_user(struct user_fxsr_struct *fxsave, struct _fpstate __user *buf) argument
/arch/xtensa/platforms/iss/
H A Dconsole.c91 const unsigned char *buf, int count)
95 simc_write(1, buf, count);
90 rs_write(struct tty_struct * tty, const unsigned char *buf, int count) argument
/arch/xtensa/platforms/iss/include/platform/
H A Dsimcall.h94 static inline int simc_read(int fd, void *buf, size_t count) argument
96 return __simc(SYS_read, fd, (int) buf, count);
99 static inline int simc_write(int fd, const void *buf, size_t count) argument
101 return __simc(SYS_write, fd, (int) buf, count);
/arch/arm/mach-davinci/
H A Dboard-dm644x-evm.c350 sw_show(struct device *d, struct device_attribute *a, char *buf) argument
354 strcpy(buf, s);
520 char buf[4]; local
525 .buf = (void __force *)txbuf,
530 .buf = buf,
551 buf[0], buf[1], buf[2], buf[
[all...]
/arch/arm/mach-omap2/
H A Did.c727 char *buf)
729 return sprintf(buf, "%s\n", omap_types[omap_type()]);
725 omap_get_type(struct device *dev, struct device_attribute *attr, char *buf) argument
/arch/arm/mach-orion5x/
H A Dts78xx-setup.c201 const uint8_t *buf, int len)
205 unsigned long off = ((unsigned long)buf & 3);
210 writesb(io_base, buf, sz);
211 buf += sz;
217 u32 *buf32 = (u32 *)buf;
219 buf += sz << 2;
224 writesb(io_base, buf, len);
228 uint8_t *buf, int len)
232 unsigned long off = ((unsigned long)buf & 3);
237 readsb(io_base, buf, s
200 ts78xx_ts_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) argument
227 ts78xx_ts_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) argument
508 ts78xx_fpga_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
517 ts78xx_fpga_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
[all...]
/arch/arm64/include/asm/
H A Dio.h168 u8 *buf = buffer; local
170 *buf++ = __raw_readb(addr + PCI_IOBASE);
175 u16 *buf = buffer; local
177 *buf++ = __raw_readw(addr + PCI_IOBASE);
182 u32 *buf = buffer; local
184 *buf++ = __raw_readl(addr + PCI_IOBASE);
189 const u8 *buf = buffer; local
191 __raw_writeb(*buf++, addr + PCI_IOBASE);
196 const u16 *buf = buffer; local
198 __raw_writew(*buf
203 const u32 *buf = buffer; local
[all...]
/arch/blackfin/kernel/
H A Dbfin_dma.c587 static void _dma_out(unsigned long addr, unsigned long buf, unsigned DMA_MMR_SIZE_TYPE len, argument
590 blackfin_dcache_flush_range(buf, buf + len * size);
591 __dma_memcpy(addr, 0, buf, size, len, dma_size);
594 static void _dma_in(unsigned long addr, unsigned long buf, unsigned DMA_MMR_SIZE_TYPE len, argument
597 blackfin_dcache_invalidate_range(buf, buf + len * size);
598 __dma_memcpy(buf, size, addr, 0, len, dma_size);
602 void dma_##io##s##bwl(unsigned long addr, cnst void *buf, unsigned DMA_MMR_SIZE_TYPE len) \
604 _dma_##io(addr, (unsigned long)buf, le
[all...]
/arch/cris/include/uapi/asm/
H A Dsync_serial.h126 char __user *buf; /* Where to put the data. */ member in struct:ssp_request
127 size_t len; /* Size of buf. MUST be a multiple of */
/arch/hexagon/include/asm/
H A Dio.h278 u8 *buf = buffer; local
281 *buf++ = x;
289 u16 *buf = buffer; local
292 *buf++ = x;
300 u32 *buf = buffer; local
303 *buf++ = x;
311 const u8 *buf = buffer; local
313 outb(*buf++, port);
321 const u16 *buf = buffer; local
323 outw(*buf
331 const u32 *buf = buffer; local
[all...]
/arch/ia64/kernel/
H A Dmca_drv.c81 char buf[256]; local
84 vsnprintf(buf, sizeof(buf), fmt, args);
86 ia64_mca_printk(KERN_ALERT "MCA: %s\n", buf);
95 char buf[256]; local
98 vsnprintf(buf, sizeof(buf), fmt, args);
100 ia64_mca_printk(KERN_INFO "MCA: %s\n", buf);
H A Dprocess.c67 char buf[128]; /* don't make it so big that it overflows the stack! */ local
77 snprintf(buf, sizeof(buf),
81 print_symbol(buf, ip);
H A Dtopology.c186 char *buf)
188 return sprintf(buf, "%u\n", 1 << this_leaf->cci.pcci_line_size);
192 char *buf)
194 return sprintf(buf, "%u\n", this_leaf->cci.pcci_assoc);
197 static ssize_t show_attributes(struct cache_info *this_leaf, char *buf) argument
199 return sprintf(buf,
204 static ssize_t show_size(struct cache_info *this_leaf, char *buf) argument
206 return sprintf(buf, "%uK\n", this_leaf->cci.pcci_cache_size / 1024);
209 static ssize_t show_number_of_sets(struct cache_info *this_leaf, char *buf) argument
215 return sprintf(buf, "
185 show_coherency_line_size(struct cache_info *this_leaf, char *buf) argument
191 show_ways_of_associativity(struct cache_info *this_leaf, char *buf) argument
218 show_shared_cpu_map(struct cache_info *this_leaf, char *buf) argument
230 show_type(struct cache_info *this_leaf, char *buf) argument
236 show_level(struct cache_info *this_leaf, char *buf) argument
278 ia64_cache_show(struct kobject * kobj, struct attribute * attr, char * buf) argument
[all...]
/arch/ia64/sn/kernel/
H A Dtiocx.c445 static ssize_t show_cxdev_control(struct device *dev, struct device_attribute *attr, char *buf) argument
449 return sprintf(buf, "0x%x 0x%x 0x%x 0x%x\n",
455 static ssize_t store_cxdev_control(struct device *dev, struct device_attribute *attr, const char *buf, argument
467 n = simple_strtoul(buf, NULL, 0);

Completed in 451 milliseconds

<<111213141516171819