Lines Matching refs:uf

5332 	struct bfa_uf_s   *uf = cbarg;  in __bfa_cb_uf_recv()  local
5333 struct bfa_uf_mod_s *ufm = BFA_UF_MOD(uf->bfa); in __bfa_cb_uf_recv()
5336 ufm->ufrecv(ufm->cbarg, uf); in __bfa_cb_uf_recv()
5371 struct bfa_uf_s *uf; in claim_ufs() local
5381 for (i = 0, uf = ufm->uf_list; i < ufm->num_ufs; i++, uf++) { in claim_ufs()
5382 memset(uf, 0, sizeof(struct bfa_uf_s)); in claim_ufs()
5383 uf->bfa = ufm->bfa; in claim_ufs()
5384 uf->uf_tag = i; in claim_ufs()
5385 uf->pb_len = BFA_PER_UF_DMA_SZ; in claim_ufs()
5386 uf->buf_kva = bfa_mem_get_dmabuf_kva(ufm, i, BFA_PER_UF_DMA_SZ); in claim_ufs()
5387 uf->buf_pa = ufm_pbs_pa(ufm, i); in claim_ufs()
5388 list_add_tail(&uf->qe, &ufm->uf_free_q); in claim_ufs()
5394 bfa_mem_kva_curp(ufm) = (u8 *) uf; in claim_ufs()
5450 struct bfa_uf_s *uf; in bfa_uf_get() local
5452 bfa_q_deq(&uf_mod->uf_free_q, &uf); in bfa_uf_get()
5453 return uf; in bfa_uf_get()
5457 bfa_uf_put(struct bfa_uf_mod_s *uf_mod, struct bfa_uf_s *uf) in bfa_uf_put() argument
5459 list_add_tail(&uf->qe, &uf_mod->uf_free_q); in bfa_uf_put()
5463 bfa_uf_post(struct bfa_uf_mod_s *ufm, struct bfa_uf_s *uf) in bfa_uf_post() argument
5471 memcpy(uf_post_msg, &ufm->uf_buf_posts[uf->uf_tag], in bfa_uf_post()
5475 bfa_trc(ufm->bfa, uf->uf_tag); in bfa_uf_post()
5477 list_add_tail(&uf->qe, &ufm->uf_posted_q); in bfa_uf_post()
5484 struct bfa_uf_s *uf; in bfa_uf_post_all() local
5486 while ((uf = bfa_uf_get(uf_mod)) != NULL) { in bfa_uf_post_all()
5487 if (bfa_uf_post(uf_mod, uf) != BFA_STATUS_OK) in bfa_uf_post_all()
5497 struct bfa_uf_s *uf = &ufm->uf_list[uf_tag]; in uf_recv() local
5502 bfa_mem_get_dmabuf_kva(ufm, uf_tag, uf->pb_len); in uf_recv()
5508 list_del(&uf->qe); /* dequeue from posted queue */ in uf_recv()
5510 uf->data_ptr = buf; in uf_recv()
5511 uf->data_len = m->xfr_len; in uf_recv()
5513 WARN_ON(uf->data_len < sizeof(struct fchs_s)); in uf_recv()
5515 if (uf->data_len == sizeof(struct fchs_s)) { in uf_recv()
5517 uf->data_len, (struct fchs_s *)buf); in uf_recv()
5521 BFA_PL_EID_RX, uf->data_len, in uf_recv()
5526 __bfa_cb_uf_recv(uf, BFA_TRUE); in uf_recv()
5528 bfa_cb_queue(bfa, &uf->hcb_qe, __bfa_cb_uf_recv, uf); in uf_recv()
5535 struct bfa_uf_s *uf; in bfa_uf_iocdisable() local
5542 uf = (struct bfa_uf_s *) qe; in bfa_uf_iocdisable()
5543 list_del(&uf->qe); in bfa_uf_iocdisable()
5544 bfa_uf_put(ufm, uf); in bfa_uf_iocdisable()
5578 bfa_uf_free(struct bfa_uf_s *uf) in bfa_uf_free() argument
5580 bfa_uf_put(BFA_UF_MOD(uf->bfa), uf); in bfa_uf_free()
5581 bfa_uf_post_all(BFA_UF_MOD(uf->bfa)); in bfa_uf_free()