/arch/ia64/sn/kernel/ |
H A D | klconflib.c | 44 format_module_id(char *buffer, moduleid_t m, int fmt) argument 84 *buffer++ = '0' + RACK_GET_CLASS(rack); 85 *buffer++ = '0' + RACK_GET_GROUP(rack); 86 *buffer++ = '0' + RACK_GET_NUM(rack); 89 *buffer++ = brickchar; 94 strcpy(buffer, "rack" "/"); buffer += strlen(buffer); 96 *buffer++ = '0' + RACK_GET_CLASS(rack); 97 *buffer [all...] |
/arch/sparc/boot/ |
H A D | piggyback.c | 115 char buffer[1024]; local 122 while (fgets(buffer, 1024, map)) { 123 if (start_line(buffer)) 124 *start = strtoul(buffer, NULL, 16); 125 else if (end_line(buffer)) 126 *end = strtoul(buffer, NULL, 16); 148 char buffer[BUFSIZE]; local 154 if (read(kernelfd, buffer, BUFSIZE) != BUFSIZE) 157 if (buffer[40] == 'H' && buffer[4 187 char buffer[1024]; local [all...] |
H A D | btfixupprep.c | 59 char buffer[1024]; variable 67 fprintf(stderr, "Malformed output from objdump\n%s\n", buffer); 91 static void set_mode (char *buffer) argument 94 if (buffer[mode] < '0' || buffer[mode] > '9') 114 while (fgets (buffer, 1024, stdin) != NULL) 115 if (!strncmp (buffer, symtab, symlen)) 120 while (fgets (buffer, 1024, stdin) != NULL) 121 if (!strncmp (buffer, relrec, rellen)) 125 sect = malloc(strlen (buffer [all...] |
/arch/tile/include/asm/ |
H A D | cacheflush.h | 85 static inline void __inv_buffer(void *buffer, size_t size) argument 87 char *next = (char *)((long)buffer & -L2_CACHE_BYTES); 88 char *finish = (char *)L2_CACHE_ALIGN((long)buffer + size); 96 static inline void __flush_buffer(void *buffer, size_t size) argument 98 char *next = (char *)((long)buffer & -L2_CACHE_BYTES); 99 char *finish = (char *)L2_CACHE_ALIGN((long)buffer + size); 107 static inline void __finv_buffer(void *buffer, size_t size) argument 109 char *next = (char *)((long)buffer & -L2_CACHE_BYTES); 110 char *finish = (char *)L2_CACHE_ALIGN((long)buffer + size); 119 static inline void inv_buffer(void *buffer, size_ argument 129 flush_buffer_local(void *buffer, size_t size) argument 139 finv_buffer_local(void *buffer, size_t size) argument [all...] |
/arch/arm/kernel/ |
H A D | atags.c | 7 struct buffer { struct 16 struct buffer *buffer = (struct buffer *)data; local 18 if (off >= buffer->size) { 23 count = min((int) (buffer->size - off), count); 25 memcpy(page, &buffer->data[off], count); 46 struct buffer *b;
|
/arch/mn10300/kernel/ |
H A D | io.c | 17 * output data from a potentially misaligned buffer 19 void __outsl(unsigned long addr, const void *buffer, int count) argument 21 const unsigned char *buf = buffer;
|
/arch/x86/boot/compressed/ |
H A D | cmdline.c | 14 int cmdline_find_option(const char *option, char *buffer, int bufsize) argument 16 return __cmdline_find_option(real_mode->hdr.cmd_line_ptr, option, buffer, bufsize);
|
/arch/tile/lib/ |
H A D | cacheflush.c | 38 void finv_buffer_remote(void *buffer, size_t size, int hfh) argument 71 * Flush and invalidate the buffer out of the local L1/L2 74 __finv_buffer(buffer, size); 93 * until we are before the beginning of the buffer, or have 96 * If we are flushing a hash-for-home buffer, it's even worse. 126 /* Load the last byte of the buffer. */ 127 p = (char *)buffer + size - 1; 136 if ((unsigned long)base < (unsigned long)buffer) 137 base = buffer; 153 p = (char *)buffer [all...] |
/arch/arm/boot/compressed/ |
H A D | ofw-shark.c | 20 create_params (unsigned long *buffer) argument 38 nr_banks=(unsigned int) buffer[0]; 44 for (i=0;i<(unsigned int) buffer[0];i++){ 45 if (buffer[2*i+1]<m) { 46 m=buffer[2*i+1]; 54 tag->u.mem.size = buffer[2*k+2]; 55 tag->u.mem.start = buffer[2*k+1]; 57 size += buffer[2*k+2]; 59 buffer[2*k+1]=0xffffffff; /* mark as copied */ 66 c=(unsigned char *)(&buffer[3 190 int phandle,i,mem_len,buffer[32]; local [all...] |
/arch/frv/kernel/ |
H A D | pm.c | 154 void __user *buffer, size_t *lenp, loff_t *fpos) 161 mode = user_atoi(buffer, *lenp); 202 void __user *buffer, size_t *lenp, loff_t *fpos) 207 return proc_dointvec(ctl, write, buffer, lenp, fpos); 209 new_cmode = user_atoi(buffer, *lenp); 274 void __user *buffer, size_t *lenp, loff_t *fpos) 279 return proc_dointvec(ctl, write, buffer, lenp, fpos); 281 new_p0 = user_atoi(buffer, *lenp); 287 void __user *buffer, size_t *lenp, loff_t *fpos) 292 return proc_dointvec(ctl, write, buffer, len 153 sysctl_pm_do_suspend(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *fpos) argument 201 cmode_procctl(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *fpos) argument 273 p0_procctl(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *fpos) argument 286 cm_procctl(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *fpos) argument [all...] |
H A D | sysctl.c | 50 void __user *buffer, size_t *lenp, 64 if (copy_from_user(buff, buffer, len) != 0) 110 if (copy_to_user(buffer, buff, len) != 0) 125 void __user *buffer, size_t *lenp, 139 if (copy_from_user(buff, buffer, len) != 0) 164 if (copy_to_user(buffer, buff, len) != 0) 49 procctl_frv_cachemode(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument 124 procctl_frv_pin_cxnr(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
|
/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-fpa.c | 49 * buffer pointer must be a physical address. 55 * @buffer: Pointer to the block of memory to use. This must be 63 int cvmx_fpa_setup_pool(uint64_t pool, const char *name, void *buffer, argument 67 if (!buffer) { 69 ("ERROR: cvmx_fpa_setup_pool: NULL buffer pointer!\n"); 83 if (((unsigned long)buffer & (CVMX_FPA_ALIGNMENT - 1)) != 0) { 92 cvmx_fpa_pool_info[pool].base = buffer; 94 ptr = (char *)buffer;
|
/arch/mips/include/asm/fw/cfe/ |
H A D | cfe_api.h | 111 int cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, 114 int cfe_read(int handle, unsigned char *buffer, int length); 115 int cfe_readblk(int handle, int64_t offset, unsigned char *buffer, 118 int cfe_write(int handle, unsigned char *buffer, int length); 119 int cfe_writeblk(int handle, int64_t offset, unsigned char *buffer,
|
/arch/mn10300/include/asm/ |
H A D | io.h | 120 static inline void insb(unsigned long addr, void *buffer, int count) argument 123 u8 *buf = buffer; 131 static inline void insw(unsigned long addr, void *buffer, int count) argument 134 u16 *buf = buffer; 142 static inline void insl(unsigned long addr, void *buffer, int count) argument 145 u32 *buf = buffer; 153 static inline void outsb(unsigned long addr, const void *buffer, int count) argument 156 const u8 *buf = buffer; 163 static inline void outsw(unsigned long addr, const void *buffer, int count) argument 166 const u16 *buf = buffer; 174 outsl(unsigned long addr, const void *buffer, int count) argument [all...] |
/arch/sparc/prom/ |
H A D | tree_64.c | 113 * 'buffer' which has a size of 'bufsize'. If the acquisition 117 char *buffer, int bufsize) 131 args[5] = (unsigned long) buffer; 185 * buffer. 236 * buffer should be at least 32B in length 238 inline char *prom_firstprop(phandle node, char *buffer) argument 242 *buffer = 0; 244 return buffer; 251 args[5] = (unsigned long) buffer; 256 return buffer; 116 prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) argument 264 prom_nextprop(phandle node, const char *oprop, char *buffer) argument 377 prom_ihandle2path(int handle, char *buffer, int bufsize) argument [all...] |
/arch/mips/lasat/ |
H A D | sysctl.c | 43 void *buffer, size_t *lenp, loff_t *ppos) 47 r = proc_dostring(table, write, buffer, lenp, ppos); 58 void *buffer, size_t *lenp, loff_t *ppos) 62 r = proc_dointvec(table, write, buffer, lenp, ppos); 76 void *buffer, size_t *lenp, loff_t *ppos) 88 r = proc_dointvec(table, write, buffer, lenp, ppos); 101 void *buffer, size_t *lenp, loff_t *ppos) 116 p = buffer; 126 if (copy_from_user(ipbuf, buffer, len)) 145 if (copy_to_user(buffer, ipbu 42 proc_dolasatstring(ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 57 proc_dolasatint(ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 75 proc_dolasatrtc(ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 100 proc_lasat_ip(ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument 160 proc_lasat_prid(ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument [all...] |
/arch/s390/crypto/ |
H A D | sha1_s390.c | 56 memcpy(octx->buffer, sctx->buf, sizeof(octx->buffer)); 67 memcpy(sctx->buf, ictx->buffer, sizeof(ictx->buffer));
|
/arch/sparc/include/asm/ |
H A D | ide.h | 24 #define __ide_insl(data_reg, buffer, wcount) \ 25 __ide_insw(data_reg, buffer, (wcount)<<1) 26 #define __ide_outsl(data_reg, buffer, wcount) \ 27 __ide_outsw(data_reg, buffer, (wcount)<<1)
|
/arch/hexagon/include/asm/ |
H A D | io.h | 259 static inline void insb(unsigned long port, void *buffer, int count) argument 262 u8 *buf = buffer; 270 static inline void insw(unsigned long port, void *buffer, int count) argument 273 u16 *buf = buffer; 281 static inline void insl(unsigned long port, void *buffer, int count) argument 284 u32 *buf = buffer; 292 static inline void outsb(unsigned long port, const void *buffer, int count) argument 295 const u8 *buf = buffer; 302 static inline void outsw(unsigned long port, const void *buffer, int count) argument 305 const u16 *buf = buffer; 312 outsl(unsigned long port, const void *buffer, int count) argument [all...] |
/arch/um/drivers/ |
H A D | pcap_user.c | 94 char *buffer; member in struct:pcap_handler_data 106 memcpy(hdata->buffer, packet, len); 110 int pcap_user_read(int fd, void *buffer, int len, struct pcap_data *pri) argument 113 { .buffer = buffer,
|
/arch/um/os-Linux/drivers/ |
H A D | tuntap_user.c | 63 char *buffer, int buffer_len, int *used_out) 89 if (buffer != NULL) { 90 iov = ((struct iovec) { buffer, buffer_len }); 132 char *output, *buffer; local 167 buffer = get_output_buffer(&len); 168 if (buffer != NULL) 173 fds[1], buffer, len, &used); 175 output = buffer; 178 free_output_buffer(buffer); 184 pri->dev_name = uml_strdup(buffer); 62 tuntap_open_tramp(char *gate, int *fd_out, int me, int remote, char *buffer, int buffer_len, int *used_out) argument [all...] |
/arch/powerpc/kernel/ |
H A D | syscalls.c | 91 unsigned long __user *buffer = (unsigned long __user *)n; local 92 if (!access_ok(VERIFY_READ, buffer, 5*sizeof(unsigned long)) 93 || __get_user(n, buffer) 94 || __get_user(inp, ((fd_set __user * __user *)(buffer+1))) 95 || __get_user(outp, ((fd_set __user * __user *)(buffer+2))) 96 || __get_user(exp, ((fd_set __user * __user *)(buffer+3))) 97 || __get_user(tvp, ((struct timeval __user * __user *)(buffer+4))))
|
/arch/tile/kernel/ |
H A D | single_step.c | 136 * from memory, writing it to the single step buffer, using a 139 * little trickier; we could use the single step buffer for that 285 * engine copies the executing bundle to the single step buffer. 306 tile_bundle_bits __user *buffer, *pc; local 349 buffer = (void __user *) vm_mmap(NULL, 0, 64, 354 if (IS_ERR((void __force *)buffer)) { 360 state->buffer = buffer; 632 buffer = state->buffer; [all...] |
/arch/x86/boot/ |
H A D | cmdline.c | 28 * truncated to fit in the buffer), or -1 on not found. 30 int __cmdline_find_option(u32 cmdline_ptr, const char *option, char *buffer, int bufsize) argument 36 char *bufptr = buffer; 41 st_bufcpy /* Copying this to buffer */ 64 bufptr = buffer;
|
/arch/arm/mach-ux500/include/mach/ |
H A D | mbox-db5500.h | 33 * @buffer: Then internal queue for outgoing messages. 37 * internal buffer space available. 41 * @write_index: Index in internal buffer to write to. 42 * @read_index: Index in internal buffer to read from. 53 u32 buffer[MBOX_BUF_SIZE]; member in struct:mbox 80 * or return an error if the mailbox buffer is full. 83 * that the internal buffer is full and you have to try again later (or
|