Lines Matching defs:flag

74  * support simulation of hotplug events, an optional force flag is provided.
619 lofi_open(dev_t *devp, int flag, int otyp, struct cred *credp)
633 ndelay = (flag & (FNDELAY | FNONBLOCK)) ? B_TRUE : B_FALSE;
665 if (lsp->ls_readonly && (flag & FWRITE)) {
675 if (flag & FEXCL) {
715 if (flag & FEXCL) {
725 lofi_close(dev_t dev, int flag, int otyp, struct cred *credp)
1491 * The first byte in a compressed segment is a flag
2078 int flag)
2084 error = ddi_copyin(ulip, klip, sizeof (struct lofi_ioctl), flag);
2109 int flag)
2126 error = ddi_copyout(klip, ulip, sizeof (struct lofi_ioctl), flag);
2808 int flag;
2823 flag = FREAD | FWRITE | FOFFMAX | FEXCL;
2824 error = vn_open(klip->li_filename, UIO_SYSSPACE, flag, 0, &vp, 0, 0);
2827 flag &= ~FWRITE;
2828 error = vn_open(klip->li_filename, UIO_SYSSPACE, flag, 0,
2874 lsp->ls_openflag = flag;
2957 (void) VOP_CLOSE(vp, flag, 1, 0, credp, NULL);
3011 * If no flag is set, just return EBUSY.
3013 * If the 'cleanup' flag is set, unmap and remove the device when
3016 * If the 'force' flag is set, then we forcibly close the underlying
3024 * (ls_vp_iocount), as well as a flag to indicate that no new I/Os
3027 * We set the flag, wait for the number of outstanding I/Os to reach 0,
3180 uscsi_is_inquiry(intptr_t arg, int flag, union scsi_cdb *cdb,
3186 switch (ddi_model_convert_from(flag & FMODELS)) {
3190 if (ddi_copyin((void *)arg, &ucmd32, sizeof (ucmd32), flag)) {
3198 if (ddi_copyin((void *)arg, uscmd, sizeof (*uscmd), flag)) {
3208 if (ddi_copyin((void *)arg, uscmd, sizeof (*uscmd), flag)) {
3213 if (ddi_copyin(uscmd->uscsi_cdb, cdb, uscmd->uscsi_cdblen, flag)) {
3225 lofi_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t *credp,
3246 if ((flag & FWRITE) == 0)
3248 return (lofi_map_file(dev, lip, 1, rvalp, credp, flag));
3250 if ((flag & FWRITE) == 0)
3252 return (lofi_map_file(dev, lip, 0, rvalp, credp, flag));
3254 if ((flag & FWRITE) == 0)
3256 return (lofi_unmap_file(lip, 1, credp, flag));
3258 if ((flag & FWRITE) == 0)
3260 return (lofi_unmap_file(lip, 0, credp, flag));
3263 credp, flag));
3266 credp, flag));
3294 sizeof (id), flag);
3301 credp, flag));
3317 error = cmlb_ioctl(lsp->ls_cmlbhandle, dev, cmd, arg, flag,
3350 if (ddi_copyout(&media_info, (void *)arg, size, flag))
3356 if (ddi_copyout(&i, (caddr_t)arg, sizeof (int), flag))
3365 switch (ddi_model_convert_from(flag & FMODELS)) {
3371 sizeof (struct vtoc32), flag))
3378 sizeof (struct vtoc), flag))
3387 if (ddi_copyout(&ci, (void *)arg, sizeof (ci), flag))
3395 sizeof (struct dk_geom), flag);
3406 flag) != 0)
3434 sizeof (dkstate), flag) != 0)
3441 if (uscsi_is_inquiry(arg, flag, &cdb, &uscmd) == 0) {
3446 uscmd.uscsi_buflen, flag) != 0)
3457 uscmd.uscsi_buflen, flag) != 0)
3464 switch (ddi_model_convert_from(flag & FMODELS)) {
3469 flag) != 0)
3475 flag) != 0)
3482 if (ddi_copyout(&uscmd, (void *)arg, sizeof (uscmd), flag) != 0)
3526 D_64BIT | D_NEW | D_MP, /* Driver compatibility flag */