Lines Matching refs:fcb
796 struct fcb_type fcb; member
921 if ( ( S_ISCHR (de->mode) || S_ISBLK (de->mode) ) && de->u.fcb.autogen ) in devfs_put()
925 mk_kdev (de->u.fcb.u.device.major, in devfs_put()
926 de->u.fcb.u.device.minor) ); in devfs_put()
1094 new->u.fcb.u.device.major = major (devnum); in _devfs_get_root_entry()
1095 new->u.fcb.u.device.minor = minor (devnum); in _devfs_get_root_entry()
1096 new->u.fcb.ops = &devfsd_fops; in _devfs_get_root_entry()
1102 new->u.fcb.u.device.major = major (devnum); in _devfs_get_root_entry()
1103 new->u.fcb.u.device.minor = minor (devnum); in _devfs_get_root_entry()
1104 new->u.fcb.ops = &stat_fops; in _devfs_get_root_entry()
1289 if ( (entry->u.fcb.u.device.major == major) && in _devfs_find_by_dev()
1290 (entry->u.fcb.u.device.minor == minor) ) in _devfs_find_by_dev()
1600 de->u.fcb.u.device.major = major; in devfs_register()
1601 de->u.fcb.u.device.minor = minor; in devfs_register()
1602 de->u.fcb.autogen = kdev_none (devnum) ? FALSE : TRUE; in devfs_register()
1622 de->u.fcb.ops = ops; in devfs_register()
1623 de->u.fcb.auto_owner = (flags & DEVFS_FL_AUTO_OWNER) ? TRUE : FALSE; in devfs_register()
1624 de->u.fcb.aopen_notify = (flags & DEVFS_FL_AOPEN_NOTIFY) ? TRUE : FALSE; in devfs_register()
1626 if (flags & DEVFS_FL_REMOVABLE) de->u.fcb.removable = TRUE; in devfs_register()
1627 if ( ( err = _devfs_append_entry (dir, de, de->u.fcb.removable, NULL) ) in devfs_register()
1665 de->u.fcb.removable ) in _devfs_unhook()
1924 if (de->u.fcb.auto_owner) fl |= DEVFS_FL_AUTO_OWNER; in devfs_get_flags()
1925 if (de->u.fcb.aopen_notify) fl |= DEVFS_FL_AOPEN_NOTIFY; in devfs_get_flags()
1926 if (de->u.fcb.removable) fl |= DEVFS_FL_REMOVABLE; in devfs_get_flags()
1949 de->u.fcb.auto_owner = (flags & DEVFS_FL_AUTO_OWNER) ? TRUE : FALSE; in devfs_set_flags()
1950 de->u.fcb.aopen_notify = (flags & DEVFS_FL_AOPEN_NOTIFY) ? TRUE:FALSE; in devfs_set_flags()
1972 if (major != NULL) *major = de->u.fcb.u.device.major; in devfs_get_maj_min()
1973 if (minor != NULL) *minor = de->u.fcb.u.device.minor; in devfs_get_maj_min()
2043 if (de->u.fcb.ops == NULL) return NULL; in devfs_get_ops()
2047 owner = ( (struct file_operations *) de->u.fcb.ops )->owner; in devfs_get_ops()
2048 else owner = ( (struct block_device_operations *) de->u.fcb.ops )->owner; in devfs_get_ops()
2055 return de->u.fcb.ops; in devfs_get_ops()
2074 if (de->u.fcb.ops == NULL) return; in devfs_put_ops()
2076 owner = ( (struct file_operations *) de->u.fcb.ops )->owner; in devfs_put_ops()
2077 else owner = ( (struct block_device_operations *) de->u.fcb.ops )->owner; in devfs_put_ops()
2095 if (de->u.fcb.u.file.size == size) return 0; in devfs_set_file_size()
2096 de->u.fcb.u.file.size = size; in devfs_set_file_size()
2448 kdev_t dev = mk_kdev (de->u.fcb.u.device.major, de->u.fcb.u.device.minor); in check_disc_changed()
2492 if (S_ISBLK (de->mode) && de->u.fcb.removable) break; in scan_dir_for_removable()
2527 if (!S_ISBLK (de->mode) || !de->u.fcb.removable) continue; in get_removable_partition()
2570 !S_ISBLK (inode->i_mode) ) || !de->u.fcb.auto_owner ) in devfs_notify_change()
2656 inode->i_rdev = mk_kdev (de->u.fcb.u.device.major, in _devfs_get_vfs_inode()
2657 de->u.fcb.u.device.minor); in _devfs_get_vfs_inode()
2663 inode->i_rdev = mk_kdev (de->u.fcb.u.device.major, in _devfs_get_vfs_inode()
2664 de->u.fcb.u.device.minor); in _devfs_get_vfs_inode()
2667 if (!inode->i_bdev->bd_op && de->u.fcb.ops) in _devfs_get_vfs_inode()
2668 inode->i_bdev->bd_op = de->u.fcb.ops; in _devfs_get_vfs_inode()
2676 inode->i_size = de->u.fcb.u.file.size; in _devfs_get_vfs_inode()
2689 if (is_fcb && de->u.fcb.auto_owner) in _devfs_get_vfs_inode()
2783 df = &de->u.fcb; in devfs_open()
2916 if (!de->u.fcb.open) return 0; in devfs_d_delete()
2917 de->u.fcb.open = FALSE; in devfs_d_delete()
2918 if (de->u.fcb.aopen_notify) in devfs_d_delete()
2921 if (!de->u.fcb.auto_owner) return 0; in devfs_d_delete()
3210 de->u.fcb.u.device.major = MAJOR (rdev); in devfs_mknod()
3211 de->u.fcb.u.device.minor = MINOR (rdev); in devfs_mknod()
3358 info->major = de->u.fcb.u.device.major; in devfsd_read()
3359 info->minor = de->u.fcb.u.device.minor; in devfsd_read()