Lines Matching refs:EINVAL
31 if(! mutex) return ((errno=EINVAL)); in usbi_mutex_init()
39 if(!mutex || !CloseHandle(*mutex)) return ((errno=EINVAL)); in usbi_mutex_destroy()
45 if(!mutex) return ((errno=EINVAL)); in usbi_mutex_trylock()
51 return ((errno=EINVAL)); // don't know how this would happen in usbi_mutex_trylock()
56 if(!mutex) return ((errno=EINVAL)); in usbi_mutex_lock()
60 return ((errno=EINVAL)); // don't know how this would happen in usbi_mutex_lock()
64 if(!mutex) return ((errno=EINVAL)); in usbi_mutex_unlock()
70 if(!mutex) return ((errno=EINVAL)); in usbi_mutex_static_lock()
77 if(!mutex) return ((errno=EINVAL)); in usbi_mutex_static_unlock()
86 if(!cond) return ((errno=EINVAL)); in usbi_cond_init()
94 if(!cond) return ((errno=EINVAL)); in usbi_cond_destroy()
112 if(!cond) return ((errno=EINVAL)); in usbi_cond_broadcast()
118 return fail ? ((errno=EINVAL)) : 0; in usbi_cond_broadcast()
125 if(!cond) return ((errno=EINVAL)); in usbi_cond_signal()
129 return SetEvent(pos->event) ? 0 : ((errno=EINVAL)); in usbi_cond_signal()
137 if(!cond || !mutex) return ((errno=EINVAL)); in usbi_cond_intwait()