Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 199) sorted by relevance

12345678

/arch/sparc/boot/
Dpiggyback.c104 char buffer[1024]; in get_start_end() local
111 while (fgets(buffer, 1024, map)) { in get_start_end()
112 if (start_line(buffer)) in get_start_end()
113 *start = strtoul(buffer, NULL, 16); in get_start_end()
114 else if (end_line(buffer)) in get_start_end()
115 *end = strtoul(buffer, NULL, 16); in get_start_end()
137 char buffer[BUFSIZE]; in get_hdrs_offset() local
143 if (read(kernelfd, buffer, BUFSIZE) != BUFSIZE) in get_hdrs_offset()
146 if (buffer[40] == 'H' && buffer[41] == 'd' && in get_hdrs_offset()
147 buffer[42] == 'r' && buffer[43] == 'S') { in get_hdrs_offset()
[all …]
/arch/riscv/include/asm/
Dio.h214 void *buffer, \
219 ctype *buf = buffer; \
231 const void *buffer, \
236 const ctype *buf = buffer; \
248 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument
249 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument
250 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument
255 #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) argument
256 #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) argument
257 #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) argument
[all …]
/arch/sparc/prom/
Dtree_64.c118 char *buffer, int bufsize) in prom_getproperty() argument
132 args[5] = (unsigned long) buffer; in prom_getproperty()
239 char *prom_firstprop(phandle node, char *buffer) in prom_firstprop() argument
243 *buffer = 0; in prom_firstprop()
245 return buffer; in prom_firstprop()
252 args[5] = (unsigned long) buffer; in prom_firstprop()
257 return buffer; in prom_firstprop()
265 char *prom_nextprop(phandle node, const char *oprop, char *buffer) in prom_nextprop() argument
271 *buffer = 0; in prom_nextprop()
272 return buffer; in prom_nextprop()
[all …]
/arch/mips/lasat/
Dsysctl.c30 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatstring() argument
34 r = proc_dostring(table, write, buffer, lenp, ppos); in proc_dolasatstring()
48 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatrtc() argument
60 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc()
81 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_ip() argument
96 p = buffer; in proc_lasat_ip()
106 if (copy_from_user(ipbuf, buffer, len)) in proc_lasat_ip()
125 if (copy_to_user(buffer, ipbuf, len)) in proc_lasat_ip()
128 if (put_user('\n', ((char *) buffer) + len)) in proc_lasat_ip()
141 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_prid() argument
[all …]
/arch/powerpc/platforms/powernv/
Dopal-elog.c26 char *buffer; member
132 kfree(elog->buffer); in elog_release()
154 char *buffer, loff_t pos, size_t count) in raw_attr_read() argument
161 if (!elog->buffer) { in raw_attr_read()
162 elog->buffer = kzalloc(elog->size, GFP_KERNEL); in raw_attr_read()
163 if (!elog->buffer) in raw_attr_read()
166 opal_rc = opal_read_elog(__pa(elog->buffer), in raw_attr_read()
171 kfree(elog->buffer); in raw_attr_read()
172 elog->buffer = NULL; in raw_attr_read()
177 memcpy(buffer, elog->buffer + pos, count); in raw_attr_read()
[all …]
Dopal-dump.c26 char *buffer; member
196 vfree(dump->buffer); in dump_release()
244 dump->buffer = vzalloc(PAGE_ALIGN(dump->size)); in dump_read_data()
245 if (!dump->buffer) { in dump_read_data()
252 list = opal_vmalloc_to_sg_list(dump->buffer, dump->size); in dump_read_data()
284 char *buffer, loff_t pos, size_t count) in dump_attr_read() argument
290 if (!dump->buffer) { in dump_attr_read()
294 vfree(dump->buffer); in dump_attr_read()
295 dump->buffer = NULL; in dump_attr_read()
310 memcpy(buffer, dump->buffer + pos, count); in dump_attr_read()
/arch/hexagon/include/asm/
Dio.h255 static inline void insb(unsigned long port, void *buffer, int count) in insb() argument
258 u8 *buf = buffer; in insb()
266 static inline void insw(unsigned long port, void *buffer, int count) in insw() argument
269 u16 *buf = buffer; in insw()
277 static inline void insl(unsigned long port, void *buffer, int count) in insl() argument
280 u32 *buf = buffer; in insl()
288 static inline void outsb(unsigned long port, const void *buffer, int count) in outsb() argument
291 const u8 *buf = buffer; in outsb()
298 static inline void outsw(unsigned long port, const void *buffer, int count) in outsw() argument
301 const u16 *buf = buffer; in outsw()
[all …]
/arch/um/os-Linux/drivers/
Dtuntap_user.c63 char *buffer, int buffer_len, int *used_out) in tuntap_open_tramp() argument
89 if (buffer != NULL) { in tuntap_open_tramp()
90 iov = ((struct iovec) { buffer, buffer_len }); in tuntap_open_tramp()
132 char *output, *buffer; in tuntap_open() local
167 buffer = get_output_buffer(&len); in tuntap_open()
168 if (buffer != NULL) in tuntap_open()
173 fds[1], buffer, len, &used); in tuntap_open()
175 output = buffer; in tuntap_open()
178 free_output_buffer(buffer); in tuntap_open()
184 pri->dev_name = uml_strdup(buffer); in tuntap_open()
[all …]
/arch/powerpc/kernel/
Dsyscalls.c86 unsigned long __user *buffer = (unsigned long __user *)n; in ppc_select() local
87 if (!access_ok(buffer, 5*sizeof(unsigned long)) in ppc_select()
88 || __get_user(n, buffer) in ppc_select()
89 || __get_user(inp, ((fd_set __user * __user *)(buffer+1))) in ppc_select()
90 || __get_user(outp, ((fd_set __user * __user *)(buffer+2))) in ppc_select()
91 || __get_user(exp, ((fd_set __user * __user *)(buffer+3))) in ppc_select()
92 || __get_user(tvp, ((struct timeval __user * __user *)(buffer+4)))) in ppc_select()
/arch/powerpc/crypto/
Dsha1-spe-glue.c84 memcpy((char *)sctx->buffer + offset, src, len); in ppc_spe_sha1_update()
91 memcpy((char *)sctx->buffer + offset, src, avail); in ppc_spe_sha1_update()
94 ppc_spe_sha1_transform(sctx->state, (const u8 *)sctx->buffer, 1); in ppc_spe_sha1_update()
113 memcpy((char *)sctx->buffer, src, len); in ppc_spe_sha1_update()
121 char *p = (char *)sctx->buffer + offset; in ppc_spe_sha1_final()
123 __be64 *pbits = (__be64 *)(((char *)&sctx->buffer) + 56); in ppc_spe_sha1_final()
133 ppc_spe_sha1_transform(sctx->state, sctx->buffer, 1); in ppc_spe_sha1_final()
134 p = (char *)sctx->buffer; in ppc_spe_sha1_final()
140 ppc_spe_sha1_transform(sctx->state, sctx->buffer, 1); in ppc_spe_sha1_final()
/arch/x86/lib/
Dcmdline.c122 const char *option, char *buffer, int bufsize) in __cmdline_find_option() argument
127 char *bufptr = buffer; in __cmdline_find_option()
164 bufptr = buffer; in __cmdline_find_option()
209 int cmdline_find_option(const char *cmdline, const char *option, char *buffer, in cmdline_find_option() argument
213 buffer, bufsize); in cmdline_find_option()
/arch/mips/include/asm/fw/cfe/
Dcfe_api.h98 int cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer,
101 int cfe_read(int handle, unsigned char *buffer, int length);
102 int cfe_readblk(int handle, int64_t offset, unsigned char *buffer,
105 int cfe_write(int handle, const char *buffer, int length);
106 int cfe_writeblk(int handle, int64_t offset, const char *buffer,
/arch/sh/kernel/
Dtraps_64.c181 __u64 buffer; in misaligned_load() local
187 if (__copy_user(&buffer, (const void *)(int)address, (1 << width_shift)) > 0) { in misaligned_load()
193 regs->regs[destreg] = (__u64)(__s64) *(__s16 *) &buffer; in misaligned_load()
195 regs->regs[destreg] = (__u64) *(__u16 *) &buffer; in misaligned_load()
199 regs->regs[destreg] = (__u64)(__s64) *(__s32 *) &buffer; in misaligned_load()
202 regs->regs[destreg] = buffer; in misaligned_load()
255 __u64 buffer; in misaligned_store() local
263 *(__u16 *) &buffer = (__u16) regs->regs[srcreg]; in misaligned_store()
266 *(__u32 *) &buffer = (__u32) regs->regs[srcreg]; in misaligned_store()
269 buffer = regs->regs[srcreg]; in misaligned_store()
[all …]
/arch/parisc/kernel/
Dperf.c191 static int perf_rdr_read_ubuf(uint32_t rdr_num, uint64_t *buffer);
194 static void perf_rdr_write(uint32_t rdr_num, uint64_t *buffer);
199 extern void perf_rdr_shift_out_W (uint32_t rdr_num, uint64_t buffer);
200 extern void perf_rdr_shift_out_U (uint32_t rdr_num, uint64_t buffer);
656 static int perf_rdr_read_ubuf(uint32_t rdr_num, uint64_t *buffer) in perf_rdr_read_ubuf() argument
669 buffer[i] = 0; in perf_rdr_read_ubuf()
689 buffer[i] |= (data << (64 - xbits)); in perf_rdr_read_ubuf()
691 buffer[i-1] |= ((data >> xbits) & data_mask); in perf_rdr_read_ubuf()
694 buffer[i] = data; in perf_rdr_read_ubuf()
737 uint64_t buffer[MAX_RDR_WORDS]; in perf_write_image() local
[all …]
/arch/sparc/include/asm/
Dide.h25 #define __ide_insl(data_reg, buffer, wcount) \ argument
26 __ide_insw(data_reg, buffer, (wcount)<<1)
27 #define __ide_outsl(data_reg, buffer, wcount) \ argument
28 __ide_outsw(data_reg, buffer, (wcount)<<1)
/arch/s390/hypfs/
Dhypfs_diag.c475 char buffer[TMP_SIZE]; in hypfs_create_cpu_files() local
478 snprintf(buffer, TMP_SIZE, "%d", cpu_info__cpu_addr(diag204_info_type, in hypfs_create_cpu_files()
480 cpu_dir = hypfs_mkdir(cpus_dir, buffer); in hypfs_create_cpu_files()
497 diag224_idx2name(cpu_info__ctidx(diag204_info_type, cpu_info), buffer); in hypfs_create_cpu_files()
498 rc = hypfs_create_str(cpu_dir, "type", buffer); in hypfs_create_cpu_files()
532 char buffer[TMP_SIZE]; in hypfs_create_phys_cpu_files() local
535 snprintf(buffer, TMP_SIZE, "%i", phys_cpu__cpu_addr(diag204_info_type, in hypfs_create_phys_cpu_files()
537 cpu_dir = hypfs_mkdir(cpus_dir, buffer); in hypfs_create_phys_cpu_files()
544 diag224_idx2name(phys_cpu__ctidx(diag204_info_type, cpu_info), buffer); in hypfs_create_phys_cpu_files()
545 rc = hypfs_create_str(cpu_dir, "type", buffer); in hypfs_create_phys_cpu_files()
[all …]
/arch/ia64/kernel/
Dsalinfo.c94 u8* buffer; member
212 salinfo_log_wakeup(int type, u8 *buffer, u64 size, int irqsafe) in salinfo_log_wakeup() argument
224 if (buffer) { in salinfo_log_wakeup()
226 if (!data_saved->buffer) in salinfo_log_wakeup()
238 data_saved->id = ((sal_log_record_header_t *)buffer)->id; in salinfo_log_wakeup()
240 data_saved->buffer = buffer; in salinfo_log_wakeup()
283 salinfo_event_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) in salinfo_event_read() argument
328 if (copy_to_user(buffer, cmd, size)) in salinfo_event_read()
407 if (data_saved->buffer && data_saved->cpu == cpu) { in salinfo_log_new_read()
408 sal_log_record_header_t *rh = (sal_log_record_header_t *)(data_saved->buffer); in salinfo_log_new_read()
[all …]
Dacpi-ext.c32 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in hp_ccsr_locate() local
37 &buffer); in hp_ccsr_locate()
39 resource = buffer.pointer; in hp_ccsr_locate()
51 kfree(buffer.pointer); in hp_ccsr_locate()
/arch/s390/crypto/
Dsha1_s390.c52 memcpy(octx->buffer, sctx->buf, sizeof(octx->buffer)); in sha1_export()
63 memcpy(sctx->buf, ictx->buffer, sizeof(ictx->buffer)); in sha1_import()
/arch/um/drivers/
Dpcap_user.c94 char *buffer; member
106 memcpy(hdata->buffer, packet, len); in handler()
110 int pcap_user_read(int fd, void *buffer, int len, struct pcap_data *pri) in pcap_user_read() argument
113 { .buffer = buffer, in pcap_user_read()
/arch/arm/mach-omap1/
Dams-delta-fiq-handler.S187 @ Try appending the keycode to the circular buffer
189 ldr r8, [r9, #BUF_BUF_LEN] @ get buffer size
190 cmp r10, r8 @ is buffer full?
196 ldr r10, [r9, #BUF_TAIL_OFFSET] @ get buffer tail offset
197 @ r8 already contains buffer size
198 cmp r10, r8 @ end of buffer?
199 moveq r10, #0 @ yes - rewind to buffer start
201 ldr r12, [r9, #BUF_BUFFER_START] @ get buffer start address
202 add r12, r12, r10, LSL #2 @ calculate buffer tail address
204 str r8, [r12] @ append it to the buffer tail
[all …]
/arch/sparc/crypto/
Dsha1_glue.c49 memcpy(sctx->buffer + partial, data, done); in __sha1_sparc64_update()
50 sha1_sparc64_transform(sctx->state, sctx->buffer, 1); in __sha1_sparc64_update()
59 memcpy(sctx->buffer, data + done, len - done); in __sha1_sparc64_update()
71 memcpy(sctx->buffer + partial, data, len); in sha1_sparc64_update()
96 memcpy(sctx->buffer + index, padding, padlen); in sha1_sparc64_final()
/arch/arm/kernel/
Datags_proc.c8 struct buffer { struct
16 struct buffer *b = PDE_DATA(file_inode(file)); in atags_read() argument
41 struct buffer *b; in init_atags_procfs()
/arch/x86/boot/compressed/
Dcmdline.c23 int cmdline_find_option(const char *option, char *buffer, int bufsize) in cmdline_find_option() argument
25 return __cmdline_find_option(get_cmd_line_ptr(), option, buffer, bufsize); in cmdline_find_option()
/arch/s390/appldata/
Dappldata_base.c54 void __user *buffer, size_t *lenp, loff_t *ppos);
56 void __user *buffer,
153 int appldata_diag(char record_nr, u16 function, unsigned long buffer, in appldata_diag() argument
167 (void *) buffer, length); in appldata_diag()
220 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument
232 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_timer_handler()
253 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument
264 rc = proc_dointvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_interval_handler()
283 void __user *buffer, size_t *lenp, loff_t *ppos) in appldata_generic_handler() argument
316 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_generic_handler()

12345678