Lines Matching refs:limit_write_sem
139 struct semaphore limit_write_sem; member
180 sema_init(&file_data->limit_write_sem, MAX_URBS_IN_FLIGHT); in usbtmc_open()
1099 up(&file_data->limit_write_sem); in usbtmc_write_bulk_cb()
1127 file_data->limit_write_sem.count); in usbtmc_generic_write()
1154 if (down_trylock(&file_data->limit_write_sem)) { in usbtmc_generic_write()
1159 retval = down_timeout(&file_data->limit_write_sem, in usbtmc_generic_write()
1171 up(&file_data->limit_write_sem); in usbtmc_generic_write()
1179 up(&file_data->limit_write_sem); in usbtmc_generic_write()
1191 up(&file_data->limit_write_sem); in usbtmc_generic_write()
1216 up(&file_data->limit_write_sem); in usbtmc_generic_write()
1541 if (down_trylock(&file_data->limit_write_sem)) { in usbtmc_write()
1550 up(&file_data->limit_write_sem); in usbtmc_write()
1590 up(&file_data->limit_write_sem); in usbtmc_write()
1609 up(&file_data->limit_write_sem); in usbtmc_write()