Searched refs:buffer (Results 1 - 25 of 69) sorted by relevance

123

/openwrt/package/network/services/ead/src/tinysrp/
H A Dt_truerand.c73 static unsigned buffer; variable
112 buffer = (buffer<<3) ^ count;
113 return buffer;
131 buffer = (buffer<<3) ^ count;
132 return buffer;
H A Dt_sha.h19 unsigned char buffer[64]; member in struct:__anon98
H A Dt_sha.c24 static void SHA1Transform(uint32 state[5], const unsigned char buffer[64]);
48 static void SHA1Transform(uint32 state[5], const unsigned char buffer[64]) argument
59 memcpy(block, buffer, 64);
61 block = (CHAR64LONG16*)buffer;
125 memcpy(&context->buffer[j], data, (i = 64-j));
126 SHA1Transform(context->state, context->buffer);
133 memcpy(&context->buffer[j], &data[i], len - i);
159 memset(context->buffer, 0, 64);
164 SHA1Transform(context->state, context->buffer);
/openwrt/target/linux/generic/files/fs/yaffs2/
H A Dyaffs_nand.h21 u8 *buffer, struct yaffs_ext_tags *tags);
25 const u8 *buffer, struct yaffs_ext_tags *tags);
H A Dyaffs_summary.c121 u8 *buffer; local
132 buffer = yaffs_get_temp_buffer(dev);
150 memcpy(buffer, &hdr, sizeof(hdr));
151 memcpy(buffer + sizeof(hdr), sum_buffer, this_tx);
154 buffer, &tags);
168 yaffs_release_temp_buffer(dev, buffer);
183 u8 *buffer; local
198 buffer = yaffs_get_temp_buffer(dev);
209 buffer, &tags);
225 memcpy(&hdr, buffer, sizeo
[all...]
H A Dyaffs_nand.c26 u8 *buffer, struct yaffs_ext_tags *tags)
38 result = dev->tagger.read_chunk_tags_fn(dev, flash_chunk, buffer, tags);
52 const u8 *buffer, struct yaffs_ext_tags *tags)
72 buffer, tags);
25 yaffs_rd_chunk_tags_nand(struct yaffs_dev *dev, int nand_chunk, u8 *buffer, struct yaffs_ext_tags *tags) argument
50 yaffs_wr_chunk_tags_nand(struct yaffs_dev *dev, int nand_chunk, const u8 *buffer, struct yaffs_ext_tags *tags) argument
/openwrt/tools/firmware-utils/src/
H A Dencode_crc.c52 // Reads the file "filename" into memory and returns pointer to the buffer.
56 char *buffer; local
65 buffer=NULL;
68 if ((buffer=(char *)malloc(info.st_size+1))==NULL)
71 if (fread(buffer,1,info.st_size,fp)!=info.st_size)
73 free(buffer);
74 buffer=NULL;
78 buffer[info.st_size]='\0';
86 return buffer;
H A Ddgn3500sum.c62 Reads the file into memory and returns pointer to the buffer. */
66 char *buffer; local
75 buffer=NULL;
78 if ((buffer=(char *)malloc(info.st_size+1))==NULL)
81 if (fread(buffer,1,info.st_size,fp)!=info.st_size)
83 free(buffer);
84 buffer=NULL;
88 buffer[info.st_size]='\0';
96 return buffer;
104 char *endptr, *buffer, * local
[all...]
H A Dsha1.h21 uchar buffer[64]; member in struct:__anon287
/openwrt/target/linux/generic/image/lzma-loader/src/
H A Ddecompress.c83 static int read_byte(void *object, unsigned char **buffer, UInt32 *bufferSize) argument
86 *buffer = data;
93 unsigned char *buffer; local
96 return read_byte(0, &buffer, &fake), *buffer;
102 static char *buffer = (char *)(RAMSTART + RAMSIZE - 0x00020000); variable
131 vs.Probs = (CProb *)buffer;
/openwrt/target/linux/adm8668/image/lzma-loader/src/
H A Ddecompress.c47 unsigned char *buffer; local
49 buffer = data;
52 return *buffer;
58 static char *buffer = (char *)(RAMSTART + RAMSIZE - 0x00020000); variable
91 vs.Probs = (CProb *)buffer;
/openwrt/target/linux/brcm47xx/image/lzma-loader/src/
H A DLzmaDecode.h59 int (*Read)(void *object, unsigned char **buffer, UInt32 *bufferSize);
75 unsigned char *buffer, UInt32 bufferSize,
87 unsigned char *buffer,
H A Ddecompress.c101 static int read_byte(void *object, unsigned char **buffer, UInt32 *bufferSize) argument
111 *buffer = ((unsigned char *)&val) + (offset++ & 3);
118 unsigned char *buffer; local
121 return read_byte(0, &buffer, &fake), *buffer;
/openwrt/package/utils/oseama/src/
H A Dmd5.h37 unsigned char buffer[64]; member in struct:__anon106
H A Dmd5.c227 memcpy(&ctx->buffer[used], data, size);
231 memcpy(&ctx->buffer[used], data, available);
234 body(ctx, ctx->buffer, 64);
242 memcpy(ctx->buffer, data, size);
251 ctx->buffer[used++] = 0x80;
256 memset(&ctx->buffer[used], 0, available);
257 body(ctx, ctx->buffer, 64);
262 memset(&ctx->buffer[used], 0, available - 8);
265 ctx->buffer[56] = ctx->lo;
266 ctx->buffer[5
[all...]
/openwrt/scripts/flashing/
H A Dadam2flash.pl152 my $buffer;
154 $rbytes = read FILE, $buffer, $len;
155 $rbytes and $ksize -= $dc->write($buffer, $rbytes, 600);
167 my $buffer;
169 $rbytes = read FILE, $buffer, $len;
170 $rbytes and $fssize -= $dc->write($buffer, $rbytes, 600);
H A Dadam2flash-fritzbox.pl187 my $buffer;
189 $rbytes = read FILE, $buffer, $len;
190 $rbytes and $ksize -= $dc->write($buffer, $rbytes, 600);
202 my $buffer;
204 $rbytes = read FILE, $buffer, $len;
205 $rbytes and $fssize -= $dc->write($buffer, $rbytes, 600);
H A Dadsl2mue_flash.pl161 my $buffer;
163 $rbytes = read FILE, $buffer, $len;
165 $rbytes and $ossize -= $dc->write($buffer, $rbytes, 600);
/openwrt/tools/wrt350nv2-builder/src/
H A Dwrt350nv2-builder.c202 char *buffer; local
219 buffer = NULL;
225 if (!buffer) {
226 buffer = malloc(buffer_size);
228 if (!buffer) {
234 line = fgets(buffer, buffer_size, f_par);
243 // if buffer was not completely filled, then assume that line is complete
244 count = strlen(buffer) + 1;
259 // double buffer size
260 free(buffer);
387 unsigned char *buffer; local
566 char *buffer; local
624 unsigned char buffer[1]; local
[all...]
/openwrt/package/utils/px5g-standalone/src/library/
H A Dbase64.c71 * Encode a buffer into base64 format
134 * Decode a base64-formatted buffer
224 unsigned char *src, buffer[128]; local
229 len = sizeof( buffer );
232 if( base64_encode( buffer, &len, src, 64 ) != 0 ||
233 memcmp( base64_test_enc, buffer, 88 ) != 0 )
244 len = sizeof( buffer );
247 if( base64_decode( buffer, &len, src, 88 ) != 0 ||
248 memcmp( base64_test_dec, buffer, 64 ) != 0 )
/openwrt/package/kernel/lantiq/ltq-hcd/src/
H A Difxusb_ctl.c280 static ssize_t procfs_dbglevel_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
285 if (copy_from_user(buf, &buffer[i], sizeof("0xFFFFFFFF\n")+1))
311 static ssize_t sysfs_dbglevel_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
313 static ssize_t sysfs_dbglevel_store( struct device *_dev, const char *buffer, size_t count )
319 if (copy_from_user(buf, &buffer[i], sizeof("0xFFFFFFFF\n")+1))
615 static ssize_t procfs_bandwidth_hs_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
620 if (copy_from_user(buf, &buffer[i], sizeof("0xFFFFFFFF\n")+1))
626 static ssize_t procfs_bandwidth_fs_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
631 if (copy_from_user(buf, &buffer[i], sizeof("0xFFFFFFFF\n")+1))
637 static ssize_t procfs_bandwidth_ls_store_1(struct file *file, const char *buffer, unsigne argument
660 procfs_bandwidth_hs_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
671 procfs_bandwidth_fs_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
682 procfs_bandwidth_ls_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
703 sysfs_bandwidth_hs_store_1( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
728 sysfs_bandwidth_fs_store_1( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
753 sysfs_bandwidth_ls_store_1( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
778 sysfs_bandwidth_hs_store_2( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
803 sysfs_bandwidth_fs_store_2( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
828 sysfs_bandwidth_ls_store_2( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
901 procfs_bandwidth_hs_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
912 procfs_bandwidth_fs_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
923 procfs_bandwidth_ls_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
944 sysfs_bandwidth_hs_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
969 sysfs_bandwidth_fs_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
994 sysfs_bandwidth_ls_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1058 procfs_pkt_count_limit_bi_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
1069 procfs_pkt_count_limit_bo_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
1088 procfs_pkt_count_limit_bi_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
1099 procfs_pkt_count_limit_bo_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
1120 sysfs_pkt_count_limit_bi_store_1( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1145 sysfs_pkt_count_limit_bo_store_1( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1170 sysfs_pkt_count_limit_bi_store_2( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1195 sysfs_pkt_count_limit_bo_store_2( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1237 procfs_pkt_count_limit_bi_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
1248 procfs_pkt_count_limit_bo_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
1269 sysfs_pkt_count_limit_bi_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1294 sysfs_pkt_count_limit_bo_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1342 procfs_buspower_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
1357 procfs_buspower_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
1378 sysfs_buspower_store_1( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1403 sysfs_buspower_store_2( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
1434 procfs_buspower_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
1454 sysfs_buspower_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2021 procfs_suspend_host_2_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2034 sysfs_suspend_host_2_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2049 procfs_suspend_host_1_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2062 sysfs_suspend_host_1_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2080 procfs_suspend_host_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2093 sysfs_suspend_host_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2145 procfs_probe_host_2_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2169 sysfs_probe_host_2_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2184 procfs_probe_host_1_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2208 sysfs_probe_host_1_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2235 procfs_probe_host_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2259 sysfs_probe_host_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2328 procfs_suspend_device_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2340 sysfs_suspend_device_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2379 procfs_probe_device_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2403 sysfs_probe_device_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2427 procfs_autoprobe_timer2_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2452 sysfs_autoprobe_timer2_val_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2472 procfs_autoprobe_timer1_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2497 sysfs_autoprobe_timer1_val_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2517 procfs_probe_timer2_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2542 sysfs_probe_timer2_val_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2562 procfs_probe_timer1_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2587 sysfs_probe_timer1_val_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2611 procfs_autoprobe_timer_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2636 sysfs_autoprobe_timer_val_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2655 procfs_probe_timer_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2680 sysfs_probe_timer_val_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2706 procfs_autoprobe_timer_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2731 sysfs_autoprobe_timer_val_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
2750 procfs_probe_timer_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2775 sysfs_probe_timer_val_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count ) argument
[all...]
/openwrt/package/utils/px5g-standalone/src/polarssl/
H A Dsha1.h45 unsigned char buffer[64]; /*!< data block being processed */ member in struct:__anon109
64 * \brief SHA-1 process buffer
67 * \param input buffer holding the data
81 * \brief Output = SHA-1( input buffer )
83 * \param input buffer holding the data
110 * \brief SHA-1 HMAC process buffer
113 * \param input buffer holding the data
127 * \brief Output = HMAC-SHA-1( hmac key, input buffer )
131 * \param input buffer holding the data
/openwrt/scripts/
H A Ddownload.pl132 my $buffer;
133 while (read WGET, $buffer, 1048576) {
134 $hash_cmd and print MD5SUM $buffer;
135 print OUTPUT $buffer;
/openwrt/package/utils/fbtest/
H A DMakefile20 TITLE:=Frame buffer device testing tool
/openwrt/target/linux/mcs814x/files-3.18/drivers/char/hw_random/
H A Dmcs814x-rng.c27 static int mcs814x_rng_data_read(struct hwrng *rng, u32 *buffer) argument
31 *buffer = readl_relaxed(priv->regs + RND);

Completed in 124 milliseconds

123