Lines Matching full:wc
242 bfa_wc_up(struct bfa_wc_s *wc) in bfa_wc_up() argument
244 wc->wc_count++; in bfa_wc_up()
248 bfa_wc_down(struct bfa_wc_s *wc) in bfa_wc_down() argument
250 wc->wc_count--; in bfa_wc_down()
251 if (wc->wc_count == 0) in bfa_wc_down()
252 wc->wc_resume(wc->wc_cbarg); in bfa_wc_down()
259 bfa_wc_init(struct bfa_wc_s *wc, bfa_wc_resume_t wc_resume, void *wc_cbarg) in bfa_wc_init() argument
261 wc->wc_resume = wc_resume; in bfa_wc_init()
262 wc->wc_cbarg = wc_cbarg; in bfa_wc_init()
263 wc->wc_count = 0; in bfa_wc_init()
264 bfa_wc_up(wc); in bfa_wc_init()
271 bfa_wc_wait(struct bfa_wc_s *wc) in bfa_wc_wait() argument
273 bfa_wc_down(wc); in bfa_wc_wait()