Lines Matching refs:RETURN_UP

888 #define RETURN_UP(rc) {up(&ioctl_read_sem); return(rc);}  macro
4239 if (!capable(CAP_SYS_ADMIN)) RETURN_UP(-EPERM); in sbpcd_dev_ioctl()
4241 RETURN_UP(i); in sbpcd_dev_ioctl()
4246 RETURN_UP(i); in sbpcd_dev_ioctl()
4251 if (D_S[d].has_data>1) RETURN_UP(-EBUSY); in sbpcd_dev_ioctl()
4256 RETURN_UP(0); in sbpcd_dev_ioctl()
4261 if (D_S[d].has_data>1) RETURN_UP(-EBUSY); in sbpcd_dev_ioctl()
4266 RETURN_UP(0); in sbpcd_dev_ioctl()
4277 RETURN_UP(D_S[d].sbp_audsiz); in sbpcd_dev_ioctl()
4290 RETURN_UP(D_S[d].sbp_audsiz); in sbpcd_dev_ioctl()
4305 if (fam0_drive) RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4306 if (famL_drive) RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4307 if (famV_drive) RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4308 if (famT_drive) RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4310 if (D_S[d].has_data>1) RETURN_UP(-EBUSY); in sbpcd_dev_ioctl()
4312 if (D_S[d].aud_buf==NULL) RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4314 if (i) RETURN_UP(i); in sbpcd_dev_ioctl()
4316 if (read_audio.nframes < 0 || read_audio.nframes>D_S[d].sbp_audsiz) RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4319 if (i) RETURN_UP(i); in sbpcd_dev_ioctl()
4325 else RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4527 RETURN_UP(-EIO); in sbpcd_dev_ioctl()
4530 RETURN_UP(0); in sbpcd_dev_ioctl()
4534 if(!capable(CAP_SYS_ADMIN)) RETURN_UP(-EACCES); in sbpcd_dev_ioctl()
4535 if(!(cdi->dev)) RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4536 if(arg > 0xff) RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4538 RETURN_UP(0); in sbpcd_dev_ioctl()
4541 RETURN_UP(-EINVAL); in sbpcd_dev_ioctl()
4576 if (i<0) RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4579 if (i<0) RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4582 RETURN_UP(0); in sbpcd_audio_ioctl()
4585 if (i<0) RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4586 RETURN_UP(0); in sbpcd_audio_ioctl()
4588 RETURN_UP(-EINVAL); in sbpcd_audio_ioctl()
4596 if (D_S[d].audio_state!=audio_pausing) RETURN_UP(-EINVAL); in sbpcd_audio_ioctl()
4601 if (i<0) RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4603 RETURN_UP(0); in sbpcd_audio_ioctl()
4608 if (D_S[d].has_data>1) RETURN_UP(-EBUSY); in sbpcd_audio_ioctl()
4613 if (i<0) RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4615 if (i<0) RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4635 RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4638 RETURN_UP(0); in sbpcd_audio_ioctl()
4643 if (D_S[d].has_data>1) RETURN_UP(-EBUSY); in sbpcd_audio_ioctl()
4649 RETURN_UP(0); /* just let us play on */ in sbpcd_audio_ioctl()
4651 RETURN_UP(-EINVAL); /* play on, but say "error" */ in sbpcd_audio_ioctl()
4657 if (ti.cdti_trk0<D_S[d].n_first_track) RETURN_UP(-EINVAL); in sbpcd_audio_ioctl()
4658 if (ti.cdti_trk0>D_S[d].n_last_track) RETURN_UP(-EINVAL); in sbpcd_audio_ioctl()
4669 RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4672 RETURN_UP(0); in sbpcd_audio_ioctl()
4679 RETURN_UP(0); in sbpcd_audio_ioctl()
4687 RETURN_UP(-EINVAL); in sbpcd_audio_ioctl()
4699 else RETURN_UP(-EINVAL); in sbpcd_audio_ioctl()
4701 RETURN_UP(0); in sbpcd_audio_ioctl()
4706 if (D_S[d].has_data>1) RETURN_UP(-EBUSY); in sbpcd_audio_ioctl()
4713 RETURN_UP(i); in sbpcd_audio_ioctl()
4719 RETURN_UP(0); in sbpcd_audio_ioctl()
4729 RETURN_UP(0); in sbpcd_audio_ioctl()
4734 if (st<0) RETURN_UP(st); in sbpcd_audio_ioctl()
4740 RETURN_UP(0); in sbpcd_audio_ioctl()
4761 RETURN_UP(-EIO); in sbpcd_audio_ioctl()
4769 RETURN_UP(-EIO); /* and get TOC, etc on next try! --AJK */ in sbpcd_audio_ioctl()
4771 RETURN_UP(-EIO); /* we weren't ready yet! --AJK */ in sbpcd_audio_ioctl()
4834 RETURN_UP(0); in sbpcd_audio_ioctl()
4838 RETURN_UP(-EINVAL); in sbpcd_audio_ioctl()
5466 RETURN_UP(0); in sbpcd_open()