Lines Matching refs:filesem

243 	struct rw_semaphore	filesem;  member
1405 up_read(&common->filesem); in do_start_stop()
1406 down_write(&common->filesem); in do_start_stop()
1408 up_write(&common->filesem); in do_start_stop()
1409 down_read(&common->filesem); in do_start_stop()
1890 down_read(&common->filesem); /* We're using the backing file */ in do_scsi_command()
2169 up_read(&common->filesem); in do_scsi_command()
2613 down_write(&common->filesem); in fsg_main_thread()
2620 up_write(&common->filesem); in fsg_main_thread()
2648 struct rw_semaphore *filesem = dev_get_drvdata(dev); in file_show() local
2650 return fsg_show_file(curlun, filesem, buf); in file_show()
2657 struct rw_semaphore *filesem = dev_get_drvdata(dev); in ro_store() local
2659 return fsg_store_ro(curlun, filesem, buf, count); in ro_store()
2674 struct rw_semaphore *filesem = dev_get_drvdata(dev); in file_store() local
2676 return fsg_store_file(curlun, filesem, buf, count); in file_store()
2684 struct rw_semaphore *filesem = dev_get_drvdata(dev); in forced_eject_store() local
2686 return fsg_store_forced_eject(curlun, filesem, buf, count); in forced_eject_store()
2717 init_rwsem(&common->filesem); in fsg_common_setup()
2916 dev_set_drvdata(&lun->dev, &common->filesem); in fsg_common_create_lun()
3173 return fsg_show_file(opts->lun, &fsg_opts->common->filesem, page); in fsg_lun_opts_file_show()
3182 return fsg_store_file(opts->lun, &fsg_opts->common->filesem, page, len); in fsg_lun_opts_file_store()
3198 return fsg_store_ro(opts->lun, &fsg_opts->common->filesem, page, len); in fsg_lun_opts_ro_store()
3228 return fsg_store_cdrom(opts->lun, &fsg_opts->common->filesem, page, in fsg_lun_opts_cdrom_store()
3267 return fsg_store_forced_eject(opts->lun, &fsg_opts->common->filesem, in fsg_lun_opts_forced_eject_store()