Lines Matching full:wc
253 bfa_wc_up(struct bfa_wc_s *wc) in bfa_wc_up() argument
255 wc->wc_count++; in bfa_wc_up()
259 bfa_wc_down(struct bfa_wc_s *wc) in bfa_wc_down() argument
261 wc->wc_count--; in bfa_wc_down()
262 if (wc->wc_count == 0) in bfa_wc_down()
263 wc->wc_resume(wc->wc_cbarg); in bfa_wc_down()
270 bfa_wc_init(struct bfa_wc_s *wc, bfa_wc_resume_t wc_resume, void *wc_cbarg) in bfa_wc_init() argument
272 wc->wc_resume = wc_resume; in bfa_wc_init()
273 wc->wc_cbarg = wc_cbarg; in bfa_wc_init()
274 wc->wc_count = 0; in bfa_wc_init()
275 bfa_wc_up(wc); in bfa_wc_init()
282 bfa_wc_wait(struct bfa_wc_s *wc) in bfa_wc_wait() argument
284 bfa_wc_down(wc); in bfa_wc_wait()