Lines Matching refs:mtx
136 pkcs11_open_common(int *fd, pthread_mutex_t *mtx, const char *dev, int oflag) in pkcs11_open_common() argument
138 (void) pthread_mutex_lock(mtx); in pkcs11_open_common()
141 (void) pthread_mutex_unlock(mtx); in pkcs11_open_common()
178 pkcs11_close_common(int *fd, pthread_mutex_t *mtx) in pkcs11_close_common() argument
180 (void) pthread_mutex_lock(mtx); in pkcs11_close_common()
183 (void) pthread_mutex_unlock(mtx); in pkcs11_close_common()
214 pkcs11_read_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) in pkcs11_read_common() argument
218 (void) pthread_mutex_lock(mtx); in pkcs11_read_common()
220 (void) pthread_mutex_unlock(mtx); in pkcs11_read_common()
241 pkcs11_write_common(int *fd, pthread_mutex_t *mtx, void *dbuf, size_t dlen) in pkcs11_write_common() argument
245 (void) pthread_mutex_lock(mtx); in pkcs11_write_common()
247 (void) pthread_mutex_unlock(mtx); in pkcs11_write_common()