Lines Matching refs:filesem
242 struct rw_semaphore filesem; member
1404 up_read(&common->filesem); in do_start_stop()
1405 down_write(&common->filesem); in do_start_stop()
1407 up_write(&common->filesem); in do_start_stop()
1408 down_read(&common->filesem); in do_start_stop()
1882 down_read(&common->filesem); /* We're using the backing file */ in do_scsi_command()
2161 up_read(&common->filesem); in do_scsi_command()
2605 down_write(&common->filesem); in fsg_main_thread()
2612 up_write(&common->filesem); in fsg_main_thread()
2640 struct rw_semaphore *filesem = dev_get_drvdata(dev); in file_show() local
2642 return fsg_show_file(curlun, filesem, buf); in file_show()
2649 struct rw_semaphore *filesem = dev_get_drvdata(dev); in ro_store() local
2651 return fsg_store_ro(curlun, filesem, buf, count); in ro_store()
2666 struct rw_semaphore *filesem = dev_get_drvdata(dev); in file_store() local
2668 return fsg_store_file(curlun, filesem, buf, count); in file_store()
2676 struct rw_semaphore *filesem = dev_get_drvdata(dev); in forced_eject_store() local
2678 return fsg_store_forced_eject(curlun, filesem, buf, count); in forced_eject_store()
2709 init_rwsem(&common->filesem); in fsg_common_setup()
2908 dev_set_drvdata(&lun->dev, &common->filesem); in fsg_common_create_lun()
3165 return fsg_show_file(opts->lun, &fsg_opts->common->filesem, page); in fsg_lun_opts_file_show()
3174 return fsg_store_file(opts->lun, &fsg_opts->common->filesem, page, len); in fsg_lun_opts_file_store()
3190 return fsg_store_ro(opts->lun, &fsg_opts->common->filesem, page, len); in fsg_lun_opts_ro_store()
3220 return fsg_store_cdrom(opts->lun, &fsg_opts->common->filesem, page, in fsg_lun_opts_cdrom_store()
3259 return fsg_store_forced_eject(opts->lun, &fsg_opts->common->filesem, in fsg_lun_opts_forced_eject_store()