Lines Matching refs:cmlb_lun

275 struct cmlb_lun *cmlb_debug_cl = NULL;
290 static dev_t cmlb_make_device(struct cmlb_lun *cl);
291 static int cmlb_validate_geometry(struct cmlb_lun *cl, boolean_t forcerevalid,
293 static void cmlb_resync_geom_caches(struct cmlb_lun *cl, diskaddr_t capacity,
295 static int cmlb_read_fdisk(struct cmlb_lun *cl, diskaddr_t capacity,
300 static int cmlb_use_efi(struct cmlb_lun *cl, diskaddr_t capacity, int flags,
302 static void cmlb_build_default_label(struct cmlb_lun *cl, void *tg_cookie);
303 static int cmlb_uselabel(struct cmlb_lun *cl, struct dk_label *l, int flags);
305 static void cmlb_build_user_vtoc(struct cmlb_lun *cl, struct vtoc *user_vtoc);
307 static int cmlb_build_label_vtoc(struct cmlb_lun *cl, struct vtoc *user_vtoc);
308 static int cmlb_write_label(struct cmlb_lun *cl, void *tg_cookie);
309 static int cmlb_set_vtoc(struct cmlb_lun *cl, struct dk_label *dkl,
311 static void cmlb_clear_efi(struct cmlb_lun *cl, void *tg_cookie);
312 static void cmlb_clear_vtoc(struct cmlb_lun *cl, void *tg_cookie);
313 static void cmlb_setup_default_geometry(struct cmlb_lun *cl, void *tg_cookie);
314 static int cmlb_create_minor_nodes(struct cmlb_lun *cl);
315 static int cmlb_check_update_blockcount(struct cmlb_lun *cl, void *tg_cookie);
319 static int cmlb_update_fdisk_and_vtoc(struct cmlb_lun *cl, void *tg_cookie);
327 static void cmlb_convert_geometry(struct cmlb_lun *cl, diskaddr_t capacity,
331 static int cmlb_dkio_get_geometry(struct cmlb_lun *cl, caddr_t arg, int flag,
333 static int cmlb_dkio_set_geometry(struct cmlb_lun *cl, caddr_t arg, int flag);
334 static int cmlb_dkio_get_partition(struct cmlb_lun *cl, caddr_t arg, int flag,
336 static int cmlb_dkio_set_partition(struct cmlb_lun *cl, caddr_t arg, int flag);
337 static int cmlb_dkio_get_efi(struct cmlb_lun *cl, caddr_t arg, int flag,
339 static int cmlb_dkio_set_efi(struct cmlb_lun *cl, dev_t dev, caddr_t arg,
341 static int cmlb_dkio_get_vtoc(struct cmlb_lun *cl, caddr_t arg, int flag,
343 static int cmlb_dkio_get_extvtoc(struct cmlb_lun *cl, caddr_t arg, int flag,
345 static int cmlb_dkio_set_vtoc(struct cmlb_lun *cl, dev_t dev, caddr_t arg,
347 static int cmlb_dkio_set_extvtoc(struct cmlb_lun *cl, dev_t dev, caddr_t arg,
349 static int cmlb_dkio_get_mboot(struct cmlb_lun *cl, caddr_t arg, int flag,
351 static int cmlb_dkio_set_mboot(struct cmlb_lun *cl, caddr_t arg, int flag,
353 static int cmlb_dkio_partition(struct cmlb_lun *cl, caddr_t arg, int flag,
357 static int cmlb_dkio_set_ext_part(struct cmlb_lun *cl, caddr_t arg, int flag,
359 static int cmlb_validate_ext_part(struct cmlb_lun *cl, int part, int epart,
361 static int cmlb_is_linux_swap(struct cmlb_lun *cl, uint32_t part_start,
363 static int cmlb_dkio_get_virtgeom(struct cmlb_lun *cl, caddr_t arg, int flag);
364 static int cmlb_dkio_get_phygeom(struct cmlb_lun *cl, caddr_t arg, int flag,
366 static int cmlb_dkio_partinfo(struct cmlb_lun *cl, dev_t dev, caddr_t arg,
368 static int cmlb_dkio_extpartinfo(struct cmlb_lun *cl, dev_t dev, caddr_t arg,
372 static void cmlb_dbg(uint_t comp, struct cmlb_lun *cl, const char *fmt, ...);
409 cmlb_dbg(uint_t comp, struct cmlb_lun *cl, const char *fmt, ...) in cmlb_dbg()
537 struct cmlb_lun *cl; in cmlb_alloc_handle()
539 cl = kmem_zalloc(sizeof (struct cmlb_lun), KM_SLEEP); in cmlb_alloc_handle()
560 struct cmlb_lun *cl; in cmlb_free_handle()
562 cl = (struct cmlb_lun *)*cmlbhandlep; in cmlb_free_handle()
565 kmem_free(cl, sizeof (struct cmlb_lun)); in cmlb_free_handle()
690 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_attach()
763 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_detach()
806 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_validate()
824 rval = cmlb_validate_geometry((struct cmlb_lun *)cmlbhandle, B_TRUE, in cmlb_validate()
860 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_invalidate()
887 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_is_valid()
917 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_close()
957 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_get_devid_block()
1046 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_partinfo()
1063 (void) cmlb_validate_geometry((struct cmlb_lun *)cl, in cmlb_partinfo()
1131 struct cmlb_lun *cl = (struct cmlb_lun *)cmlbhandle; in cmlb_efi_label_capacity()
1142 (void) cmlb_validate_geometry((struct cmlb_lun *)cl, B_FALSE, in cmlb_efi_label_capacity()
1165 struct cmlb_lun *cl; in cmlb_ioctl()
1167 cl = (struct cmlb_lun *)cmlbhandle; in cmlb_ioctl()
1363 cmlb_make_device(struct cmlb_lun *cl) in cmlb_make_device()
1385 cmlb_check_update_blockcount(struct cmlb_lun *cl, void *tg_cookie) in cmlb_check_update_blockcount()
1451 cmlb_create_minor_nodes(struct cmlb_lun *cl) in cmlb_create_minor_nodes()
1620 cmlb_validate_geometry(struct cmlb_lun *cl, boolean_t forcerevalid, int flags,
1848 cmlb_convert_geometry(struct cmlb_lun *cl, diskaddr_t capacity,
1964 cmlb_resync_geom_caches(struct cmlb_lun *cl, diskaddr_t capacity,
2076 cmlb_update_ext_minor_nodes(struct cmlb_lun *cl, int num_parts)
2204 cmlb_validate_ext_part(struct cmlb_lun *cl, int part, int epart, uint32_t start,
2286 cmlb_is_linux_swap(struct cmlb_lun *cl, uint32_t part_start, void *tg_cookie)
2380 cmlb_read_fdisk(struct cmlb_lun *cl, diskaddr_t capacity, void *tg_cookie)
2802 cmlb_use_efi(struct cmlb_lun *cl, diskaddr_t capacity, int flags,
3014 cmlb_uselabel(struct cmlb_lun *cl, struct dk_label *labp, int flags)
3269 cmlb_build_default_label(struct cmlb_lun *cl, void *tg_cookie)
3612 cmlb_dkio_get_geometry(struct cmlb_lun *cl, caddr_t arg, int flag,
3701 cmlb_dkio_set_geometry(struct cmlb_lun *cl, caddr_t arg, int flag)
3766 cmlb_dkio_get_partition(struct cmlb_lun *cl, caddr_t arg, int flag,
3844 cmlb_dkio_set_partition(struct cmlb_lun *cl, caddr_t arg, int flag)
3860 _NOTE(DATA_READABLE_WITHOUT_LOCK(cmlb_lun::cl_solaris_size))
3951 cmlb_dkio_get_vtoc(struct cmlb_lun *cl, caddr_t arg, int flag, void *tg_cookie)
4066 cmlb_dkio_get_extvtoc(struct cmlb_lun *cl, caddr_t arg, int flag,
4146 cmlb_dkio_get_efi(struct cmlb_lun *cl, caddr_t arg, int flag, void *tg_cookie)
4197 cmlb_build_user_vtoc(struct cmlb_lun *cl, struct vtoc *user_vtoc)
4254 cmlb_dkio_partition(struct cmlb_lun *cl, caddr_t arg, int flag,
4343 cmlb_dkio_set_vtoc(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag,
4445 cmlb_dkio_set_extvtoc(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag,
4543 cmlb_build_label_vtoc(struct cmlb_lun *cl, struct vtoc *user_vtoc)
4689 cmlb_clear_efi(struct cmlb_lun *cl, void *tg_cookie)
4786 cmlb_set_vtoc(struct cmlb_lun *cl, struct dk_label *dkl, void *tg_cookie)
4859 cmlb_clear_vtoc(struct cmlb_lun *cl, void *tg_cookie)
4902 cmlb_write_label(struct cmlb_lun *cl, void *tg_cookie)
4969 cmlb_dkio_set_efi(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag,
5073 cmlb_dkio_get_mboot(struct cmlb_lun *cl, caddr_t arg, int flag, void *tg_cookie)
5131 cmlb_dkio_set_mboot(struct cmlb_lun *cl, caddr_t arg, int flag, void *tg_cookie)
5206 cmlb_dkio_set_ext_part(struct cmlb_lun *cl, caddr_t arg, int flag,
5243 cmlb_setup_default_geometry(struct cmlb_lun *cl, void *tg_cookie)
5385 cmlb_update_fdisk_and_vtoc(struct cmlb_lun *cl, void *tg_cookie)
5494 cmlb_dkio_get_virtgeom(struct cmlb_lun *cl, caddr_t arg, int flag)
5535 cmlb_dkio_get_phygeom(struct cmlb_lun *cl, caddr_t arg, int flag,
5616 cmlb_dkio_partinfo(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag)
5672 cmlb_dkio_extpartinfo(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag)
5710 struct cmlb_lun *cl;
5721 cl = (struct cmlb_lun *)cmlbhandle;