Lines Matching refs:imp
128 register struct iso_mnt *imp; /* file system that directory is in */
161 imp = dp->i_mnt;
186 if (imp->iso_ftype != ISO_FTYPE_RRIP &&
195 if ((imp->iso_ftype == ISO_FTYPE_JOLIET) &&
215 bmask = imp->im_sector_size - 1;
225 (error = cd9660_blkatoff(vdp, SECTOFF(imp, dp->i_offset), NULL, &bp)))
242 if ( (error = cd9660_blkatoff(vdp, SECTOFF(imp,dp->i_offset), NULL, &bp)) )
256 (dp->i_offset & ~bmask) + imp->im_sector_size;
264 if (entryoffsetinblock + reclen > imp->im_sector_size) {
277 if (imp->iso_ftype == ISO_FTYPE_RRIP) {
279 ino = isodirino(ep, imp);
281 ino = ((daddr_t)buf_blkno(bp) << imp->im_bshift) + entryoffsetinblock;
283 cd9660_rrip_getname(ep,altname,&namelen,&dp->i_ino,imp);
299 dp->i_ino = isodirino(ep, imp);
305 } else if (imp->iso_ftype != ISO_FTYPE_JOLIET && !(res = isofncmp(name, len, ep->name, namelen))) {
307 ino = isodirino(ep, imp);
309 ino = ((daddr_t)buf_blkno(bp) << imp->im_bshift) + entryoffsetinblock;
311 } else if (imp->iso_ftype == ISO_FTYPE_JOLIET && !(res = ucsfncmp((u_int16_t*)name, len,
314 ino = isodirino(ep, imp);
316 ino = ((daddr_t)buf_blkno(bp) << imp->im_bshift) + entryoffsetinblock;
336 if (lblkno(imp, dp->i_offset) !=
337 lblkno(imp, saveoffset)) {
340 if ( (error = cd9660_blkatoff(vdp, SECTOFF(imp, saveoffset), NULL, &bp)) )
442 register struct iso_mnt *imp;
448 imp = ip->i_mnt;
449 lbn = lblkno(imp, offset);
450 bsize = blksize(imp, ip, lbn);
452 if ((bsize != imp->im_sector_size) &&
453 (offset & (imp->im_sector_size - 1)) == 0) {
454 bsize = imp->im_sector_size;
463 *res = (char *)0 + buf_dataptr(bp) + blkoff(imp, offset);