Lines Matching refs:vf
17 VIO_DATA *vf = (VIO_DATA *)user_data; in vfget_filelen() local
18 return vf->length; in vfget_filelen()
23 VIO_DATA *vf = (VIO_DATA *)user_data; in vfseek() local
33 new_offset = vf->offset + offset; in vfseek()
37 new_offset = vf->length + offset; in vfseek()
45 if (new_offset > vf->length) in vfseek()
50 new_offset, vf->length, whence, vf->offset, offset); in vfseek()
51 new_offset = vf->length; in vfseek()
58 new_offset, whence, vf->offset, vf->length, offset); in vfseek()
61 vf->offset = new_offset; in vfseek()
63 return vf->offset; in vfseek()
68 VIO_DATA *vf = (VIO_DATA *)user_data; in vfread() local
70 if (vf->offset + count > vf->length) in vfread()
72 count = vf->length - vf->offset; in vfread()
75 memcpy(ptr, vf->data + vf->offset, count); in vfread()
76 vf->offset += count; in vfread()
92 { VIO_DATA *vf = (VIO_DATA *)user_data; in vftell() local
94 return vf->offset; in vftell()