Searched refs:fh (Results 1 - 25 of 87) sorted by relevance

1234

/asus-wl-520gu-7.0.1.45/src/cfe/cfe/ui/
H A Dui_test_ether.c123 int fh; local
143 fh = cfe_open(tok);
144 if (fh < 0) {
145 xprintf("Could not open device: %s\n",cfe_errortext(fh));
146 return fh;
151 cfe_ioctl(fh,IOCTL_ETHER_SETSPEED,(uint8_t *) &speed,sizeof(speed),&idx,0);
161 res = cfe_write(fh,packet,128);
167 cfe_close(fh);
173 res = cfe_read(fh,packet,sizeof(packet));
198 cfe_close(fh);
[all...]
H A Dui_test_disk.c130 int fh; local
146 fh = cfe_open(tok);
147 if (fh < 0) {
148 xprintf("Could not open device; %d\n",fh);
152 res = cfe_readblk(fh,sec * BOOT_BLOCK_BLOCKSIZE,
161 cfe_close(fh);
195 res = cfe_readblk(fh,secoffset,code,secsize);
198 cfe_close(fh);
214 cfe_close(fh);
281 int fh; local
343 int fh; local
[all...]
H A Dui_flash.c312 int fh; local
519 fh = cfe_open(flashdev);
520 if (fh < 0) {
525 if (cfe_ioctl(fh,IOCTL_FLASH_GETINFO,
552 cfe_ioctl(fh,IOCTL_FLASH_WRITE_ALL, ptr,copysize,&retlen,0);
576 if (cfe_ioctl(fh,IOCTL_FLASH_ERASE_RANGE,
579 cfe_close(fh);
591 amtcopy = cfe_writeblk(fh,offset,ptr,copysize);
606 cfe_close(fh);
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/nfsd/
H A Dlockd.c26 struct svc_fh fh; local
29 fh_init(&fh,0);
30 fh.fh_handle.fh_size = f->size;
31 memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size);
32 fh.fh_export = NULL;
34 nfserr = nfsd_open(rqstp, &fh, S_IFREG, MAY_LOCK, filp);
39 fh_put(&fh);
H A Dnfs3proc.c74 SVCFH_fmt(&argp->fh));
76 fh_copy(&resp->fh, &argp->fh);
77 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP);
91 SVCFH_fmt(&argp->fh));
93 fh_copy(&resp->fh, &argp->fh);
94 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,
109 SVCFH_fmt(&argp->fh),
113 fh_copy(&resp->dirfh, &argp->fh);
[all...]
H A Dnfsproc.c49 * N.B. After this call resp->fh needs an fh_put
55 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh));
57 fh_copy(&resp->fh, &argp->fh);
58 return fh_verify(rqstp, &resp->fh, 0, MAY_NOP);
63 * N.B. After this call resp->fh needs an fh_put
70 SVCFH_fmt(&argp->fh),
73 fh_copy(&resp->fh, &argp->fh);
74 return nfsd_setattr(rqstp, &resp->fh,
[all...]
H A Dnfs3xdr.c305 if (!(p = decode_fh(p, &args->fh))
319 if (!(p = decode_fh(p, &args->fh))
330 if (!(p = decode_fh(p, &args->fh)))
341 if (!(p = decode_fh(p, &args->fh))
353 if (!(p = decode_fh(p, &args->fh))
370 if (!(p = decode_fh(p, &args->fh))
394 if (!(p = decode_fh(p, &args->fh))
419 if (!(p = decode_fh(p, &args->fh))
468 if (!(p = decode_fh(p, &args->fh)))
482 if (!(p = decode_fh(p, &args->fh)))
704 struct svc_fh fh; local
[all...]
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/hosttools/
H A Dmkflashimage.c125 int fh; local
212 fh = open(argv[2],O_RDONLY);
213 if (fh < 0) {
217 flashsize = lseek(fh,0L,SEEK_END);
218 lseek(fh,0L,SEEK_SET);
227 if (read(fh,flashcode+CFE_BIENDIAN_LE_OFFSET,flashsize) != flashsize) {
232 close(fh);
243 fh = open(argv[1],O_RDONLY);
244 if (fh < 0) {
249 be_size = lseek(fh,
[all...]
H A Dinstallboot.c190 int fh; local
267 fh = open(argv[1],O_RDONLY);
268 if (fh < 0) {
272 bootsize = lseek(fh,0L,SEEK_END);
273 lseek(fh,0L,SEEK_SET);
283 if (read(fh,bootcode,bootsize) != bootsize) {
288 close(fh);
319 fh = open(argv[2],O_RDWR|O_CREAT,S_IREAD|S_IWRITE);
320 if (fh < 0) {
326 if (lseek(fh, bootsect_offse
[all...]
H A Dmkbootimage.c174 int fh; local
236 fh = open(argv[1],O_RDONLY);
237 if (fh < 0) {
241 bootsize = lseek(fh,0L,SEEK_END);
242 lseek(fh,0L,SEEK_SET);
252 if (read(fh,bootcode,bootsize) != bootsize) {
257 close(fh);
288 fh = open(argv[2],O_RDWR|O_CREAT,S_IREAD|S_IWRITE);
289 if (fh < 0) {
293 if (lseek(fh, sector_offse
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/
H A Dfake_file.c123 FAKE_FILE_HANDLE *fh = NULL; local
135 if ((fh =(FAKE_FILE_HANDLE *)talloc_zero(mem_ctx, sizeof(FAKE_FILE_HANDLE)))==NULL) {
141 fh->type = type;
142 fh->mem_ctx = mem_ctx;
145 fh->pd = fake_files[i].init_pd(fh->mem_ctx);
147 fh->free_pd = fake_files[i].free_pd;
149 return fh;
156 void destroy_fake_file_handle(FAKE_FILE_HANDLE **fh) argument
158 if (!fh||!(*f
[all...]
/asus-wl-520gu-7.0.1.45/src/router/library/include/
H A Dprocess.h8 int GotoUserName(char *buf,int size,FILE *fh);
9 int GetUserName(char *buf,int size,int *lastuser,FILE *fh);
14 int readvkey(char *buf,int size,FILE *fh);
15 int ReadGroup(char *buf,int len,FILE *fh,int *eol);
/asus-wl-520gu-7.0.1.45/src/router/library/
H A Dprocess.h8 int GotoUserName(char *buf,int size,FILE *fh);
9 int GetUserName(char *buf,int size,int *lastuser,FILE *fh);
14 int readvkey(char *buf,int size,FILE *fh);
15 int ReadGroup(char *buf,int len,FILE *fh,int *eol);
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/nfs/
H A Dmount_clnt.c38 struct nfs_fh * fh; member in struct:mnt_fhstatus
45 nfsroot_mount(struct sockaddr_in *addr, char *path, struct nfs_fh *fh, argument
49 struct mnt_fhstatus result = { 0, fh };
111 struct nfs_fh *fh = res->fh; local
113 memset((void *)fh, 0, sizeof(*fh));
115 fh->size = NFS2_FHSIZE;
116 memcpy(fh->data, p, NFS2_FHSIZE);
124 struct nfs_fh *fh local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/nfsd/
H A Dxdr.h14 struct svc_fh fh; member in struct:nfsd_fhandle
18 struct svc_fh fh; member in struct:nfsd_sattrargs
23 struct svc_fh fh; member in struct:nfsd_diropargs
29 struct svc_fh fh; member in struct:nfsd_readargs
36 svc_fh fh; member in struct:nfsd_writeargs
45 struct svc_fh fh; member in struct:nfsd_createargs
77 struct svc_fh fh; member in struct:nfsd_readdirargs
83 struct svc_fh fh; member in struct:nfsd_attrstat
87 struct svc_fh fh; member in struct:nfsd_diropres
95 struct svc_fh fh; member in struct:nfsd_readres
[all...]
H A Dxdr3.h15 struct svc_fh fh; member in struct:nfsd3_sattrargs
22 struct svc_fh fh; member in struct:nfsd3_diropargs
28 struct svc_fh fh; member in struct:nfsd3_accessargs
33 struct svc_fh fh; member in struct:nfsd3_readargs
39 svc_fh fh; member in struct:nfsd3_writeargs
48 struct svc_fh fh; member in struct:nfsd3_createargs
57 struct svc_fh fh; member in struct:nfsd3_mknodargs
91 struct svc_fh fh; member in struct:nfsd3_readdirargs
99 struct svc_fh fh; member in struct:nfsd3_commitargs
106 struct svc_fh fh; member in struct:nfsd3_attrstat
113 struct svc_fh fh; member in struct:nfsd3_diropres
118 struct svc_fh fh; member in struct:nfsd3_accessres
124 struct svc_fh fh; member in struct:nfsd3_readlinkres
130 struct svc_fh fh; member in struct:nfsd3_readres
137 struct svc_fh fh; member in struct:nfsd3_writeres
151 struct svc_fh fh; member in struct:nfsd3_linkres
156 struct svc_fh fh; member in struct:nfsd3_readdirres
192 struct svc_fh fh; member in struct:nfsd3_commitres
[all...]
H A Dnfsfh.h185 struct knfsd_fh *fh = &fhp->fh_handle; local
189 fh->fh_size,
190 fh->fh_base.fh_pad[0],
191 fh->fh_base.fh_pad[1],
192 fh->fh_base.fh_pad[2],
193 fh->fh_base.fh_pad[3],
194 fh->fh_base.fh_pad[4],
195 fh->fh_base.fh_pad[5]);
297 printk(KERN_ERR "fh_lock: fh not verified!\n");
319 printk(KERN_ERR "fh_unlock: fh no
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/nfsd/
H A Dxdr.h14 struct svc_fh fh; member in struct:nfsd_fhandle
18 struct svc_fh fh; member in struct:nfsd_sattrargs
23 struct svc_fh fh; member in struct:nfsd_diropargs
29 struct svc_fh fh; member in struct:nfsd_readargs
36 svc_fh fh; member in struct:nfsd_writeargs
45 struct svc_fh fh; member in struct:nfsd_createargs
77 struct svc_fh fh; member in struct:nfsd_readdirargs
83 struct svc_fh fh; member in struct:nfsd_attrstat
87 struct svc_fh fh; member in struct:nfsd_diropres
95 struct svc_fh fh; member in struct:nfsd_readres
[all...]
H A Dxdr3.h15 struct svc_fh fh; member in struct:nfsd3_sattrargs
22 struct svc_fh fh; member in struct:nfsd3_diropargs
28 struct svc_fh fh; member in struct:nfsd3_accessargs
33 struct svc_fh fh; member in struct:nfsd3_readargs
39 svc_fh fh; member in struct:nfsd3_writeargs
48 struct svc_fh fh; member in struct:nfsd3_createargs
57 struct svc_fh fh; member in struct:nfsd3_mknodargs
91 struct svc_fh fh; member in struct:nfsd3_readdirargs
99 struct svc_fh fh; member in struct:nfsd3_commitargs
106 struct svc_fh fh; member in struct:nfsd3_attrstat
113 struct svc_fh fh; member in struct:nfsd3_diropres
118 struct svc_fh fh; member in struct:nfsd3_accessres
124 struct svc_fh fh; member in struct:nfsd3_readlinkres
130 struct svc_fh fh; member in struct:nfsd3_readres
137 struct svc_fh fh; member in struct:nfsd3_writeres
151 struct svc_fh fh; member in struct:nfsd3_linkres
156 struct svc_fh fh; member in struct:nfsd3_readdirres
192 struct svc_fh fh; member in struct:nfsd3_commitres
[all...]
H A Dnfsfh.h185 struct knfsd_fh *fh = &fhp->fh_handle; local
189 fh->fh_size,
190 fh->fh_base.fh_pad[0],
191 fh->fh_base.fh_pad[1],
192 fh->fh_base.fh_pad[2],
193 fh->fh_base.fh_pad[3],
194 fh->fh_base.fh_pad[4],
195 fh->fh_base.fh_pad[5]);
297 printk(KERN_ERR "fh_lock: fh not verified!\n");
319 printk(KERN_ERR "fh_unlock: fh no
[all...]
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/arch/mips/cpu/sb1250/src/
H A Dcfe_tests.c122 int fh; local
190 fh = cfe_open(tok);
191 if (fh < 0) {
192 xprintf("Could not open device: %s\n", cfe_errortext(fh));
193 return fh;
196 res = cfe_write(fh, base, len);
201 cfe_close(fh);
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dnfs_xdr.h65 struct nfs_fh * fh; member in struct:nfs_readargs
83 struct nfs_fh * fh; member in struct:nfs_writeargs
112 struct nfs_fh fh; member in struct:nfs_entry
120 struct nfs_fh * fh; member in struct:nfs_sattrargs
125 struct nfs_fh * fh; member in struct:nfs_diropargs
131 struct nfs_fh * fh; member in struct:nfs_createargs
163 struct nfs_fh * fh; member in struct:nfs_readdirargs
170 struct nfs_fh * fh; member in struct:nfs_diropok
175 struct nfs_fh * fh; member in struct:nfs_readlinkargs
181 struct nfs_fh * fh; member in struct:nfs3_sattrargs
188 struct nfs_fh * fh; member in struct:nfs3_diropargs
194 struct nfs_fh * fh; member in struct:nfs3_accessargs
199 struct nfs_fh * fh; member in struct:nfs3_createargs
208 struct nfs_fh * fh; member in struct:nfs3_mkdirargs
224 struct nfs_fh * fh; member in struct:nfs3_mknodargs
249 struct nfs_fh * fh; member in struct:nfs3_readdirargs
259 struct nfs_fh * fh; member in struct:nfs3_diropres
269 struct nfs_fh * fh; member in struct:nfs3_readlinkargs
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dnfs_xdr.h65 struct nfs_fh * fh; member in struct:nfs_readargs
83 struct nfs_fh * fh; member in struct:nfs_writeargs
112 struct nfs_fh fh; member in struct:nfs_entry
120 struct nfs_fh * fh; member in struct:nfs_sattrargs
125 struct nfs_fh * fh; member in struct:nfs_diropargs
131 struct nfs_fh * fh; member in struct:nfs_createargs
163 struct nfs_fh * fh; member in struct:nfs_readdirargs
170 struct nfs_fh * fh; member in struct:nfs_diropok
175 struct nfs_fh * fh; member in struct:nfs_readlinkargs
181 struct nfs_fh * fh; member in struct:nfs3_sattrargs
188 struct nfs_fh * fh; member in struct:nfs3_diropargs
194 struct nfs_fh * fh; member in struct:nfs3_accessargs
199 struct nfs_fh * fh; member in struct:nfs3_createargs
208 struct nfs_fh * fh; member in struct:nfs3_mkdirargs
224 struct nfs_fh * fh; member in struct:nfs3_mknodargs
249 struct nfs_fh * fh; member in struct:nfs3_readdirargs
259 struct nfs_fh * fh; member in struct:nfs3_diropres
269 struct nfs_fh * fh; member in struct:nfs3_readlinkargs
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/tc/
H A Df_route.c42 __u32 fh = 0xFFFF8000; local
69 fh &= ~0x80FF;
70 fh |= id&0xFF;
79 fh &= 0xFFFF;
80 fh |= id<<16;
94 fh &= 0xFFFF;
95 fh |= (0x8000|id)<<16;
130 fh &= ~0x7F00;
131 fh |= (order<<8)&0x7F00;
134 t->tcm_handle = fh;
[all...]
/asus-wl-520gu-7.0.1.45/src/router/attr/doc/ea-conv/
H A Dea-conv108 my $fh = ($arg eq '-') ? *STDIN : new FileHandle($arg);
110 unless ($fh) {
115 $good = 0 unless convert $fh;
117 $fh->close unless ($arg eq '-');

Completed in 137 milliseconds

1234