Lines Matching refs:drv_fcxp

3212 	struct bfad_fcxp	*drv_fcxp = bfad_fcxp;  in bfad_fcxp_get_req_sgaddr_cb()  local
3216 sge = drv_fcxp->req_sge + sgeid; in bfad_fcxp_get_req_sgaddr_cb()
3224 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_req_sglen_cb() local
3227 sge = drv_fcxp->req_sge + sgeid; in bfad_fcxp_get_req_sglen_cb()
3234 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_rsp_sgaddr_cb() local
3238 sge = drv_fcxp->rsp_sge + sgeid; in bfad_fcxp_get_rsp_sgaddr_cb()
3246 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_rsp_sglen_cb() local
3249 sge = drv_fcxp->rsp_sge + sgeid; in bfad_fcxp_get_rsp_sglen_cb()
3258 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_send_fcpt_cb() local
3260 drv_fcxp->req_status = req_status; in bfad_send_fcpt_cb()
3261 drv_fcxp->rsp_len = rsp_len; in bfad_send_fcpt_cb()
3264 drv_fcxp->bfa_fcxp = NULL; in bfad_send_fcpt_cb()
3265 complete(&drv_fcxp->comp); in bfad_send_fcpt_cb()
3331 bfad_fcxp_bsg_send(struct bsg_job *job, struct bfad_fcxp *drv_fcxp, in bfad_fcxp_bsg_send() argument
3335 struct bfad_s *bfad = drv_fcxp->port->bfad; in bfad_fcxp_bsg_send()
3342 hal_fcxp = bfa_fcxp_req_rsp_alloc(drv_fcxp, &bfad->bfa, in bfad_fcxp_bsg_send()
3343 drv_fcxp->num_req_sgles, in bfad_fcxp_bsg_send()
3344 drv_fcxp->num_rsp_sgles, in bfad_fcxp_bsg_send()
3355 drv_fcxp->bfa_fcxp = hal_fcxp; in bfad_fcxp_bsg_send()
3359 bfa_fcxp_send(hal_fcxp, drv_fcxp->bfa_rport, bsg_fcpt->vf_id, lp_tag, in bfad_fcxp_bsg_send()
3378 struct bfad_fcxp *drv_fcxp; in bfad_im_bsg_els_ct_request() local
3416 drv_fcxp = kzalloc(sizeof(struct bfad_fcxp), GFP_KERNEL); in bfad_im_bsg_els_ct_request()
3417 if (drv_fcxp == NULL) { in bfad_im_bsg_els_ct_request()
3439 drv_fcxp->port = fcs_port->bfad_port; in bfad_im_bsg_els_ct_request()
3441 if (!drv_fcxp->port->bfad) in bfad_im_bsg_els_ct_request()
3442 drv_fcxp->port->bfad = bfad; in bfad_im_bsg_els_ct_request()
3448 drv_fcxp->bfa_rport = NULL; in bfad_im_bsg_els_ct_request()
3461 drv_fcxp->bfa_rport = fcs_rport->bfa_rport; in bfad_im_bsg_els_ct_request()
3492 drv_fcxp->reqbuf_info = bfad_fcxp_map_sg(bfad, req_kbuf, in bfad_im_bsg_els_ct_request()
3494 &drv_fcxp->num_req_sgles); in bfad_im_bsg_els_ct_request()
3495 if (!drv_fcxp->reqbuf_info) { in bfad_im_bsg_els_ct_request()
3502 drv_fcxp->req_sge = (struct bfa_sge_s *) in bfad_im_bsg_els_ct_request()
3503 (((uint8_t *)drv_fcxp->reqbuf_info) + in bfad_im_bsg_els_ct_request()
3505 drv_fcxp->num_req_sgles)); in bfad_im_bsg_els_ct_request()
3508 drv_fcxp->rspbuf_info = bfad_fcxp_map_sg(bfad, rsp_kbuf, in bfad_im_bsg_els_ct_request()
3510 &drv_fcxp->num_rsp_sgles); in bfad_im_bsg_els_ct_request()
3511 if (!drv_fcxp->rspbuf_info) { in bfad_im_bsg_els_ct_request()
3518 rsp_buf_info = (struct bfad_buf_info *)drv_fcxp->rspbuf_info; in bfad_im_bsg_els_ct_request()
3519 drv_fcxp->rsp_sge = (struct bfa_sge_s *) in bfad_im_bsg_els_ct_request()
3520 (((uint8_t *)drv_fcxp->rspbuf_info) + in bfad_im_bsg_els_ct_request()
3522 drv_fcxp->num_rsp_sgles)); in bfad_im_bsg_els_ct_request()
3525 init_completion(&drv_fcxp->comp); in bfad_im_bsg_els_ct_request()
3526 rc = bfad_fcxp_bsg_send(job, drv_fcxp, bsg_fcpt); in bfad_im_bsg_els_ct_request()
3528 wait_for_completion(&drv_fcxp->comp); in bfad_im_bsg_els_ct_request()
3529 bsg_fcpt->status = drv_fcxp->req_status; in bfad_im_bsg_els_ct_request()
3536 if (drv_fcxp->req_status == BFA_STATUS_OK) { in bfad_im_bsg_els_ct_request()
3537 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3538 bsg_reply->reply_payload_rcv_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3555 bfad_fcxp_free_mem(bfad, drv_fcxp->rspbuf_info, in bfad_im_bsg_els_ct_request()
3556 drv_fcxp->num_rsp_sgles); in bfad_im_bsg_els_ct_request()
3557 bfad_fcxp_free_mem(bfad, drv_fcxp->reqbuf_info, in bfad_im_bsg_els_ct_request()
3558 drv_fcxp->num_req_sgles); in bfad_im_bsg_els_ct_request()
3568 kfree(drv_fcxp); in bfad_im_bsg_els_ct_request()