Lines Matching refs:fp
2346 int __init smcc669_open( struct FILE *fp, char *info, char *next, char *mode )
2353 ip = fp->ip;
2355 if ( fp->mode & ATTR$M_WRITE ) {
2365 *fp->offset = xtoi( info );
2371 int __init smcc669_close( struct FILE *fp )
2375 ip = fp->ip;
2376 if ( fp->mode & ATTR$M_WRITE ) {
2384 int __init smcc669_read( struct FILE *fp, int size, int number, unsigned char *buf )
2394 ip = fp->ip;
2400 if ( !inrange( *fp->offset, 0, ip->len[0] ) )
2402 *buf++ = SMC37c669_read_config( *fp->offset );
2403 *fp->offset += 1;
2410 int __init smcc669_write( struct FILE *fp, int size, int number, unsigned char *buf )
2419 ip = fp->ip;
2425 if ( !inrange( *fp->offset, 0, ip->len[0] ) )
2427 SMC37c669_write_config( *fp->offset, *buf );
2428 *fp->offset += 1;