/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/cfe/cfe/main/ |
H A D | cfe_savedata.c | 85 fileio_ctx_t *fsctx; local 92 res = fs_init(fsname,&fsctx,devname); 101 res = fs_open(fsctx,&ref,filename,FILE_MODE_WRITE); 103 fs_uninit(fsctx); 111 res = fs_write(fsctx,ref,start,end-start); 117 fs_close(fsctx,ref); 118 fs_uninit(fsctx);
|
H A D | cfe_filesys.c | 133 * fs_init(name,fsctx,device) 139 * fsctx - returns a filesystem context 146 int fs_init(char *fsname,fileio_ctx_t **fsctx,void *device) argument 159 res = BDINIT(ops,&(ctx->fsctx),device); 165 *fsctx = ctx; 172 * fs_hook(fsctx,name) 178 * fsctx - result from a previous fs_init 186 int fs_hook(fileio_ctx_t *fsctx,char *fsname) argument 203 res = BDINIT(ops,&hookfsctx,fsctx); 215 fsctx 234 fs_uninit(fileio_ctx_t *fsctx) argument 259 fs_open(fileio_ctx_t *fsctx,void **ref,char *filename,int mode) argument 277 fs_close(fileio_ctx_t *fsctx,void *ref) argument 302 fs_read(fileio_ctx_t *fsctx,void *ref,uint8_t *buffer,int len) argument 324 fs_write(fileio_ctx_t *fsctx,void *ref,uint8_t *buffer,int len) argument 345 fs_seek(fileio_ctx_t *fsctx,void *ref,int offset,int how) argument [all...] |
H A D | cfe_memfs.c | 93 static int memory_fileop_init(void **fsctx, void *devicename); 94 static int memory_fileop_open(void **ref, void *fsctx, char *filename, int mode); 99 static void memory_fileop_uninit(void *fsctx); 120 memory_fsctx_t *fsctx; local 124 fsctx = KMALLOC(sizeof(memory_fsctx_t), 0); 125 if (!fsctx) { 129 fsctx->memory_tmp = 0; 130 *newfsctx = fsctx; 138 memory_fsctx_t *fsctx; local 144 fsctx 209 memory_fsctx_t *fsctx = (memory_fsctx_t *) fsctx_arg; local [all...] |
H A D | cfe_rawfs.c | 97 static int raw_fileop_init(void **fsctx,void *devicename); 98 static int raw_fileop_open(void **ref,void *fsctx,char *filename,int mode); 103 static void raw_fileop_uninit(void *fsctx); 123 raw_fsctx_t *fsctx; local 128 fsctx = KMALLOC(sizeof(raw_fsctx_t),0); 129 if (!fsctx) { 134 fsctx->raw_dev = console_handle; 135 fsctx->raw_isconsole = TRUE; 138 fsctx->raw_dev = cfe_open(devicename); 139 fsctx 156 raw_fsctx_t *fsctx; local 282 raw_fsctx_t *fsctx = (raw_fsctx_t *) fsctx_arg; local [all...] |
H A D | cfe_ldr_raw.c | 79 * cfe_findbootblock(la,fsctx,ref) 93 fileio_ctx_t *fsctx, 110 fs_seek(fsctx,ref,0,FILE_SEEK_BEGINNING); 117 res = fs_read(fsctx,ref, 181 fileio_ctx_t *fsctx; local 253 res = fs_init(la->la_filesys,&fsctx,la->la_device); 270 res = fs_open(fsctx, &ref, la->la_filename, FILE_MODE_READ); 274 len = fs_read(fsctx, ref, c, 2); 275 fs_close(fsctx, ref); 297 res = fs_hook(fsctx, z 92 cfe_findbootblock(cfe_loadargs_t *la, fileio_ctx_t *fsctx, void *ref, struct boot_block *bootblock) argument [all...] |
H A D | cfe_lzmafs.c | 115 static int lzmafs_fileop_init(void **fsctx,void *ctx); 116 static int lzmafs_fileop_open(void **ref,void *fsctx,char *filename,int mode); 121 static void lzmafs_fileop_uninit(void *fsctx); 145 lzmafs_fsctx_t *fsctx; local 150 fsctx = KMALLOC(sizeof(lzmafs_fsctx_t),0); 151 if (!fsctx) { 155 fsctx->lzmafsctx_refcnt = 0; 156 fsctx->lzmafsctx_subops = curfsctx->ops; 157 fsctx->lzmafsctx_subfsctx = curfsctx->fsctx; 164 lzmafs_fsctx_t *fsctx; local 352 lzmafs_fsctx_t *fsctx = (lzmafs_fsctx_t *) fsctx_arg; local [all...] |
H A D | cfe_ldr_elf.c | 81 * readprogsegment(fsctx,ref,addr,size) 87 * fsctx - file I/O dispatch 96 static int readprogsegment(fileio_ctx_t *fsctx,void *ref, argument 111 res = fs_read(fsctx,ref,addr,size); 166 static Elf32_Shdr *elfgetshdr(fileio_ctx_t *fsctx,void *ref,Elf32_Ehdr *ep) argument 176 if (fs_seek(fsctx,ref,ep->e_shoff,FILE_SEEK_BEGINNING) != ep->e_shoff || 177 fs_read(fsctx,ref,(uint8_t *)shtab,size) != size) { 201 static int elfload_internal(fileio_ctx_t *fsctx,void *ref, argument 213 if (fs_read(fsctx,ref,(uint8_t *) ep,sizeof(*ep)) != sizeof(*ep)) { 250 if (fs_seek(fsctx,re 344 fileio_ctx_t *fsctx; local [all...] |
H A D | cfe_zlibfs.c | 107 static int zlibfs_fileop_init(void **fsctx,void *ctx); 108 static int zlibfs_fileop_open(void **ref,void *fsctx,char *filename,int mode); 113 static void zlibfs_fileop_uninit(void *fsctx); 166 zlibfs_fsctx_t *fsctx; local 171 fsctx = KMALLOC(sizeof(zlibfs_fsctx_t),0); 172 if (!fsctx) { 176 fsctx->zlibfsctx_refcnt = 0; 177 fsctx->zlibfsctx_subops = curfsctx->ops; 178 fsctx->zlibfsctx_subfsctx = curfsctx->fsctx; 248 zlibfs_fsctx_t *fsctx; local 441 zlibfs_fsctx_t *fsctx = (zlibfs_fsctx_t *) fsctx_arg; local [all...] |
H A D | cfe_httpfs.c | 103 static int http_fileop_init(void **fsctx,void *devicename); 104 static int http_fileop_open(void **ref,void *fsctx,char *filename,int mode); 109 static void http_fileop_uninit(void *fsctx); 129 http_fsctx_t *fsctx; local 133 fsctx = KMALLOC(sizeof(http_fsctx_t),0); 134 if (!fsctx) { 138 fsctx->http_tmp = 0; 139 *newfsctx = fsctx; 146 http_fsctx_t *fsctx; local 162 fsctx 391 http_fsctx_t *fsctx = (http_fsctx_t *) fsctx_arg; local [all...] |
H A D | cfe_ldr_srec.c | 87 fileio_ctx_t *fsctx; member in struct:linebuf_s 91 (b)->eof = 0 ; (b)->ref = r; (b)->fsctx = o 116 res = fs_read(file->fsctx,file->ref,(unsigned char *)file->linebuf,sizeof(file->linebuf)); 403 fileio_ctx_t *fsctx; local 446 res = fs_init(la->la_filesys,&fsctx,la->la_device); 456 res = fs_hook(fsctx,"z"); 466 res = fs_open(fsctx,&ref,la->la_filename,FILE_MODE_READ); 468 fs_uninit(fsctx); 473 initlinebuf(&lb,ref,fsctx); 527 fs_close(fsctx,re [all...] |
H A D | cfe_fatfs.c | 250 static int fatfs_fileop_xinit(void **fsctx,void *filename); 251 static int fatfs_fileop_pinit(void **fsctx,void *filename); 252 static int fatfs_fileop_open(void **ref,void *fsctx,char *filename,int mode); 257 static void fatfs_fileop_uninit(void *fsctx); 1395 int fatfs_fileop_dir(void *fsctx); 1396 int fatfs_fileop_dir(void *fsctx) argument 1398 fatfs_t *fatfs = fsctx; 1407 * fatfs_fileop_init(fsctx,devname) 1413 * fsctx - file system context (return pointer) 1421 static int fatfs_fileop_init(void **fsctx,cha argument 1553 fatfs_fileop_xinit(void **fsctx,void *dev) argument 1560 fatfs_fileop_pinit(void **fsctx,void *dev) argument 1584 fatfs_fileop_open(void **ref,void *fsctx,char *name,int mode) argument 1672 fatfs_fileop_uninit(void *fsctx) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/cfe/cfe/include/ |
H A D | cfe_fileops.h | 67 #define BDINIT(ops,fsctx,name) (ops)->init((fsctx),(name)) 68 #define BDOPEN(ops,ref,fsctx,name) (ops)->open((ref),(fsctx),(name),FILE_MODE_READ) 69 #define BDOPEN2(ops,ref,fsctx,name,mode) (ops)->open((ref),(fsctx),(name),(mode)) 70 #define BDOPEN_WR(ops,ref,fsctx,name) (ops)->open((ref),(fsctx),(name),FILE_MODE_WRITE) 84 int (*init)(void **fsctx,void *device); 85 int (*open)(void **ref,void *fsctx,cha 95 void *fsctx; member in struct:fileio_ctx_s [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/cfe/cfe/ui/ |
H A D | ui_test_disk.c | 223 extern int fatfs_fileop_dir(void *fsctx); 229 fileio_ctx_t *fsctx; local 240 res = fs_init("fat",&fsctx,tok); 247 fatfs_fileop_dir(fsctx->fsctx); 250 res = fs_open(fsctx,&filectx,fname,FILE_MODE_READ); 258 res = fs_read(fsctx,filectx,buffer,sizeof(buffer)); 266 fs_close(fsctx,filectx); 270 fs_uninit(fsctx); 277 fileio_ctx_t *fsctx; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/cfe/cfe/arch/mips/board/p6064/src/ |
H A D | cfe_tests.c | 520 extern int fatfs_fileop_dir(void *fsctx); 526 fileio_ctx_t *fsctx; local 537 res = fs_init("fat",&fsctx,tok); 544 fatfs_fileop_dir(fsctx->fsctx); 547 res = fs_open(fsctx,&filectx,fname,FILE_MODE_READ); 555 res = fs_read(fsctx,filectx,buffer,sizeof(buffer)); 563 fs_close(fsctx,filectx); 567 fs_uninit(fsctx); 574 fileio_ctx_t *fsctx; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/cfe/cfe/arch/common/board/bcm947xx/src/ |
H A D | ui_bcm947xx.c | 203 fileio_ctx_t *fsctx; local 216 ret = fs_init("raw", &fsctx, trx_name); 220 ret = fs_open(fsctx, &ref, "", FILE_MODE_READ); 222 fs_uninit(fsctx); 227 ret = fs_read(fsctx, ref, (unsigned char *) &trx, sizeof(struct trx_header)); 252 ret = fs_read(fsctx, ref, (unsigned char *) &buf, count); 271 fs_close(fsctx, ref); 272 fs_uninit(fsctx);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/cfe/cfe/net/ |
H A D | net_tftp.c | 127 static int tftp_fileop_init(void **fsctx,void *devicename); 128 static int tftp_fileop_open(void **ref,void *fsctx,char *filename,int mode); 133 static void tftp_fileop_uninit(void *fsctx); 794 * tftp_fileop_init(fsctx,device) 799 * fsctx - location to place context information 807 static int tftp_fileop_init(void **fsctx,void *dev) argument 814 *fsctx = ref; 819 * tftp_fileop_open(ref,fsctx,filename,mode) 827 * fsctx - filesystem context 836 static int tftp_fileop_open(void **ref,void *fsctx,cha argument 1088 tftp_fileop_uninit(void *fsctx) argument [all...] |