Lines Matching refs:flag
329 static int cmlb_dkio_get_geometry(struct cmlb_lun *cl, caddr_t arg, int flag,
331 static int cmlb_dkio_set_geometry(struct cmlb_lun *cl, caddr_t arg, int flag);
332 static int cmlb_dkio_get_partition(struct cmlb_lun *cl, caddr_t arg, int flag,
334 static int cmlb_dkio_set_partition(struct cmlb_lun *cl, caddr_t arg, int flag);
335 static int cmlb_dkio_get_efi(struct cmlb_lun *cl, caddr_t arg, int flag,
338 int flag, void *tg_cookie);
339 static int cmlb_dkio_get_vtoc(struct cmlb_lun *cl, caddr_t arg, int flag,
341 static int cmlb_dkio_get_extvtoc(struct cmlb_lun *cl, caddr_t arg, int flag,
344 int flag, void *tg_cookie);
346 int flag, void *tg_cookie);
347 static int cmlb_dkio_get_mboot(struct cmlb_lun *cl, caddr_t arg, int flag,
349 static int cmlb_dkio_set_mboot(struct cmlb_lun *cl, caddr_t arg, int flag,
351 static int cmlb_dkio_partition(struct cmlb_lun *cl, caddr_t arg, int flag,
355 static int cmlb_dkio_set_ext_part(struct cmlb_lun *cl, caddr_t arg, int flag,
361 static int cmlb_dkio_get_virtgeom(struct cmlb_lun *cl, caddr_t arg, int flag);
362 static int cmlb_dkio_get_phygeom(struct cmlb_lun *cl, caddr_t arg, int flag,
365 int flag);
367 int flag);
1159 int flag, cred_t *cred_p, int *rval_p, void *tg_cookie)
1230 err = cmlb_dkio_get_geometry(cl, (caddr_t)arg, flag, tg_cookie);
1235 err = cmlb_dkio_set_geometry(cl, (caddr_t)arg, flag);
1241 flag, tg_cookie);
1246 err = cmlb_dkio_set_partition(cl, (caddr_t)arg, flag);
1251 err = cmlb_dkio_get_vtoc(cl, (caddr_t)arg, flag, tg_cookie);
1256 err = cmlb_dkio_get_extvtoc(cl, (caddr_t)arg, flag, tg_cookie);
1261 err = cmlb_dkio_get_efi(cl, (caddr_t)arg, flag, tg_cookie);
1266 err = cmlb_dkio_partition(cl, (caddr_t)arg, flag, tg_cookie);
1271 err = cmlb_dkio_set_vtoc(cl, dev, (caddr_t)arg, flag,
1277 err = cmlb_dkio_set_extvtoc(cl, dev, (caddr_t)arg, flag,
1283 err = cmlb_dkio_set_efi(cl, dev, (caddr_t)arg, flag, tg_cookie);
1288 err = cmlb_dkio_get_mboot(cl, (caddr_t)arg, flag, tg_cookie);
1293 err = cmlb_dkio_set_mboot(cl, (caddr_t)arg, flag, tg_cookie);
1298 err = cmlb_dkio_get_phygeom(cl, (caddr_t)arg, flag, tg_cookie);
1306 err = cmlb_dkio_get_virtgeom(cl, (caddr_t)arg, flag);
1314 err = cmlb_dkio_partinfo(cl, dev, (caddr_t)arg, flag);
1322 err = cmlb_dkio_extpartinfo(cl, dev, (caddr_t)arg, flag);
1330 err = cmlb_dkio_set_ext_part(cl, (caddr_t)arg, flag, tg_cookie);
1420 minor_t minor_num, char *node_type, int flag, boolean_t internal)
1429 name, spec_type, minor_num, node_type, flag));
3598 * flag this argument is a pass through to ddi_copyxxx()
3610 cmlb_dkio_get_geometry(struct cmlb_lun *cl, caddr_t arg, int flag,
3665 flag);
3687 * flag this argument is a pass through to ddi_copyxxx()
3699 cmlb_dkio_set_geometry(struct cmlb_lun *cl, caddr_t arg, int flag)
3719 rval = ddi_copyin(arg, tmp_geom, sizeof (struct dk_geom), flag);
3752 * flag this argument is a pass through to ddi_copyxxx()
3764 cmlb_dkio_get_partition(struct cmlb_lun *cl, caddr_t arg, int flag,
3788 switch (ddi_model_convert_from(flag & FMODELS)) {
3798 rval = ddi_copyout(dk_map32, (void *)arg, size, flag);
3806 rval = ddi_copyout(cl->cl_map, (void *)arg, size, flag);
3814 rval = ddi_copyout(cl->cl_map, (void *)arg, size, flag);
3832 * flag - this argument is a pass through to ddi_copyxxx()
3842 cmlb_dkio_set_partition(struct cmlb_lun *cl, caddr_t arg, int flag)
3871 switch (ddi_model_convert_from(flag & FMODELS)) {
3876 rval = ddi_copyin((void *)arg, dk_map32, size, flag);
3888 rval = ddi_copyin((void *)arg, dk_map, size, flag);
3896 rval = ddi_copyin((void *)arg, dk_map, size, flag);
3937 * flag this argument is a pass through to ddi_copyxxx()
3949 cmlb_dkio_get_vtoc(struct cmlb_lun *cl, caddr_t arg, int flag, void *tg_cookie)
3988 switch (ddi_model_convert_from(flag & FMODELS)) {
3994 sizeof (struct vtoc32), flag)) {
4002 sizeof (struct vtoc), flag)) {
4008 if (ddi_copyout(&user_vtoc, (void *)arg, sizeof (struct vtoc), flag)) {
4027 switch (ddi_model_convert_from(flag & FMODELS)) {
4030 sizeof (cl->cl_vtoc), flag)) {
4040 sizeof (struct vtoc), flag)) {
4048 flag)) {
4064 cmlb_dkio_get_extvtoc(struct cmlb_lun *cl, caddr_t arg, int flag,
4108 sizeof (struct extvtoc), flag)) {
4114 sizeof (struct extvtoc), flag)) {
4129 if (ddi_copyout(&ext_vtoc, (void *)arg, sizeof (struct extvtoc), flag))
4144 cmlb_dkio_get_efi(struct cmlb_lun *cl, caddr_t arg, int flag, void *tg_cookie)
4151 if (ddi_copyin(arg, &user_efi, sizeof (dk_efi_t), flag))
4177 user_efi.dki_length, flag) != 0)
4252 cmlb_dkio_partition(struct cmlb_lun *cl, caddr_t arg, int flag,
4264 sizeof (struct partition64), flag)) {
4307 if (ddi_copyout(&p64, (void *)arg, sizeof (struct partition64), flag))
4328 * flag this argument is a pass through to ddi_copyxxx()
4341 cmlb_dkio_set_vtoc(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag,
4357 switch (ddi_model_convert_from(flag & FMODELS)) {
4362 sizeof (struct vtoc32), flag)) {
4371 sizeof (struct vtoc), flag)) {
4378 sizeof (struct vtoc), flag)) {
4443 cmlb_dkio_set_extvtoc(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag,
4463 sizeof (struct extvtoc), flag)) {
4469 sizeof (struct extvtoc), flag)) {
4967 cmlb_dkio_set_efi(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag,
4976 if (ddi_copyin(arg, &user_efi, sizeof (dk_efi_t), flag))
5008 if (ddi_copyin(user_efi.dki_data, buffer, user_efi.dki_length, flag)) {
5059 * flag this argument is a pass through to ddi_copyxxx()
5071 cmlb_dkio_get_mboot(struct cmlb_lun *cl, caddr_t arg, int flag, void *tg_cookie)
5097 sizeof (struct mboot), flag) != 0) {
5117 * flag this argument is a pass through to ddi_copyxxx()
5129 cmlb_dkio_set_mboot(struct cmlb_lun *cl, caddr_t arg, int flag, void *tg_cookie)
5151 cl->cl_sys_blocksize, flag) != 0) {
5204 cmlb_dkio_set_ext_part(struct cmlb_lun *cl, caddr_t arg, int flag,
5495 cmlb_dkio_get_virtgeom(struct cmlb_lun *cl, caddr_t arg, int flag)
5524 sizeof (struct dk_geom), flag)) {
5536 cmlb_dkio_get_phygeom(struct cmlb_lun *cl, caddr_t arg, int flag,
5608 if (ddi_copyout(dkgp, (void *)arg, sizeof (struct dk_geom), flag))
5617 cmlb_dkio_partinfo(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag)
5644 switch (ddi_model_convert_from(flag & FMODELS)) {
5652 sizeof (p32), flag))
5660 flag))
5666 if (ddi_copyout(&p, (void *)arg, sizeof (p), flag))
5673 cmlb_dkio_extpartinfo(struct cmlb_lun *cl, dev_t dev, caddr_t arg, int flag)
5699 if (ddi_copyout(&p, (void *)arg, sizeof (p), flag))