Lines Matching defs:devvp
131 static int hfs_mount(struct mount *mp, vnode_t devvp, user_addr_t data, vfs_context_t context);
132 static int hfs_mountfs(struct vnode *devvp, struct mount *mp, struct hfs_mount_args *args, int journal_replay_only, vfs_context_t context);
195 hfs_mount(struct mount *mp, vnode_t devvp, user_addr_t data, vfs_context_t context)
383 retval = hfs_mountfs(devvp, mp, &args, 0, context);
662 register struct vnode *devvp;
682 devvp = hfsmp->hfs_devvp;
683 if (buf_invalidateblks(devvp, 0, 0, 0))
928 hfs_mountfs(struct vnode *devvp, struct mount *mp, struct hfs_mount_args *args,
954 dev = vnode_specrdev(devvp);
972 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKSIZE, (caddr_t)&log_blksize, 0, context)) {
977 retval = VNOP_IOCTL(devvp, DKIOCGETPHYSICALBLOCKSIZE, (caddr_t)&phys_blksize, 0, context);
992 if (VNOP_IOCTL(devvp, DKIOCSETBLOCKSIZE, (caddr_t)&size512, FWRITE, context)) {
998 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKCOUNT, (caddr_t)&log_blkcnt, 0, context)) {
1000 (void)VNOP_IOCTL(devvp, DKIOCSETBLOCKSIZE, (caddr_t)&log_blksize, FWRITE, context);
1027 if (VNOP_IOCTL(devvp, DKIOCSETBLOCKSIZE, (caddr_t)&log_blksize, FWRITE, context)) {
1032 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKCOUNT, (caddr_t)&log_blkcnt, 0, context)) {
1045 if ((retval = (int)buf_meta_bread(devvp,
1069 hfsmp->hfs_raw_dev = vnode_specrdev(devvp);
1070 hfsmp->hfs_devvp = devvp;
1071 vnode_ref(devvp); /* Hold a ref on the device, dropped when hfsmp is freed. */
1118 if (VNOP_IOCTL(devvp, DKIOCISWRITABLE, (caddr_t)&iswritable, 0, context) == 0) {
1147 if (VNOP_IOCTL(devvp, DKIOCSETBLOCKSIZE, (caddr_t)&log_blksize, FWRITE, context)) {
1151 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKCOUNT, (caddr_t)&log_blkcnt, 0, context)) {
1199 if (VNOP_IOCTL(devvp, DKIOCSETBLOCKSIZE,
1204 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKCOUNT,
1226 retval = (int)buf_meta_bread(devvp, HFS_PHYSBLK_ROUNDDOWN(mdb_offset, hfsmp->hfs_log_per_phys),
1293 retval = (int)buf_meta_bread(devvp,
1346 if (VNOP_IOCTL(devvp, DKIOCSETBLOCKSIZE, (caddr_t)&log_blksize, FWRITE, context)) {
1350 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKCOUNT, (caddr_t)&log_blkcnt, 0, context)) {
1354 devvp->v_specsize = log_blksize;
1380 retval = (int)buf_meta_bread(devvp, HFS_PHYSBLK_ROUNDDOWN(mdb_offset, hfsmp->hfs_log_per_phys),
1475 if (VNOP_IOCTL(devvp, DKIOCISVIRTUAL, (caddr_t)&isvirtual, 0, context) == 0) {
3274 struct vnode *devvp;
3293 devvp = hfsmp->hfs_devvp;
3324 error = vnode_authorize(devvp, NULL, KAUTH_VNODE_READ_DATA | KAUTH_VNODE_WRITE_DATA, context);
3328 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKSIZE, (caddr_t)§orsize, 0, context)) {
3334 if (VNOP_IOCTL(devvp, DKIOCGETBLOCKCOUNT, (caddr_t)§orcnt, 0, context)) {
3341 error = VNOP_IOCTL(devvp, DKIOCGETPHYSICALBLOCKSIZE, (caddr_t)&phys_sectorsize, 0, context);
5161 struct vnode *devvp = NULL;
5166 retval = vnode_open(devnode, FREAD|FWRITE, 0, 0, &devvp, NULL);
5172 if (!vnode_ischr(devvp)) {
5185 retval = hfs_mountfs(devvp, mp, args, 1, context);
5186 buf_flushdirtyblks(devvp, MNT_WAIT, 0, "hfs_journal_replay");
5196 if (devvp) {
5197 vnode_close(devvp, FREAD|FWRITE, NULL);