Lines Matching refs:drv_fcxp
3196 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_req_sgaddr_cb() local
3200 sge = drv_fcxp->req_sge + sgeid; in bfad_fcxp_get_req_sgaddr_cb()
3208 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_req_sglen_cb() local
3211 sge = drv_fcxp->req_sge + sgeid; in bfad_fcxp_get_req_sglen_cb()
3218 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_rsp_sgaddr_cb() local
3222 sge = drv_fcxp->rsp_sge + sgeid; in bfad_fcxp_get_rsp_sgaddr_cb()
3230 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_rsp_sglen_cb() local
3233 sge = drv_fcxp->rsp_sge + sgeid; in bfad_fcxp_get_rsp_sglen_cb()
3242 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_send_fcpt_cb() local
3244 drv_fcxp->req_status = req_status; in bfad_send_fcpt_cb()
3245 drv_fcxp->rsp_len = rsp_len; in bfad_send_fcpt_cb()
3248 drv_fcxp->bfa_fcxp = NULL; in bfad_send_fcpt_cb()
3249 complete(&drv_fcxp->comp); in bfad_send_fcpt_cb()
3314 bfad_fcxp_bsg_send(struct fc_bsg_job *job, struct bfad_fcxp *drv_fcxp, in bfad_fcxp_bsg_send() argument
3318 struct bfad_s *bfad = drv_fcxp->port->bfad; in bfad_fcxp_bsg_send()
3325 hal_fcxp = bfa_fcxp_req_rsp_alloc(drv_fcxp, &bfad->bfa, in bfad_fcxp_bsg_send()
3326 drv_fcxp->num_req_sgles, in bfad_fcxp_bsg_send()
3327 drv_fcxp->num_rsp_sgles, in bfad_fcxp_bsg_send()
3338 drv_fcxp->bfa_fcxp = hal_fcxp; in bfad_fcxp_bsg_send()
3342 bfa_fcxp_send(hal_fcxp, drv_fcxp->bfa_rport, bsg_fcpt->vf_id, lp_tag, in bfad_fcxp_bsg_send()
3361 struct bfad_fcxp *drv_fcxp; in bfad_im_bsg_els_ct_request() local
3397 drv_fcxp = kzalloc(sizeof(struct bfad_fcxp), GFP_KERNEL); in bfad_im_bsg_els_ct_request()
3398 if (drv_fcxp == NULL) { in bfad_im_bsg_els_ct_request()
3420 drv_fcxp->port = fcs_port->bfad_port; in bfad_im_bsg_els_ct_request()
3422 if (drv_fcxp->port->bfad == 0) in bfad_im_bsg_els_ct_request()
3423 drv_fcxp->port->bfad = bfad; in bfad_im_bsg_els_ct_request()
3429 drv_fcxp->bfa_rport = NULL; in bfad_im_bsg_els_ct_request()
3442 drv_fcxp->bfa_rport = fcs_rport->bfa_rport; in bfad_im_bsg_els_ct_request()
3473 drv_fcxp->reqbuf_info = bfad_fcxp_map_sg(bfad, req_kbuf, in bfad_im_bsg_els_ct_request()
3475 &drv_fcxp->num_req_sgles); in bfad_im_bsg_els_ct_request()
3476 if (!drv_fcxp->reqbuf_info) { in bfad_im_bsg_els_ct_request()
3483 drv_fcxp->req_sge = (struct bfa_sge_s *) in bfad_im_bsg_els_ct_request()
3484 (((uint8_t *)drv_fcxp->reqbuf_info) + in bfad_im_bsg_els_ct_request()
3486 drv_fcxp->num_req_sgles)); in bfad_im_bsg_els_ct_request()
3489 drv_fcxp->rspbuf_info = bfad_fcxp_map_sg(bfad, rsp_kbuf, in bfad_im_bsg_els_ct_request()
3491 &drv_fcxp->num_rsp_sgles); in bfad_im_bsg_els_ct_request()
3492 if (!drv_fcxp->rspbuf_info) { in bfad_im_bsg_els_ct_request()
3499 rsp_buf_info = (struct bfad_buf_info *)drv_fcxp->rspbuf_info; in bfad_im_bsg_els_ct_request()
3500 drv_fcxp->rsp_sge = (struct bfa_sge_s *) in bfad_im_bsg_els_ct_request()
3501 (((uint8_t *)drv_fcxp->rspbuf_info) + in bfad_im_bsg_els_ct_request()
3503 drv_fcxp->num_rsp_sgles)); in bfad_im_bsg_els_ct_request()
3506 init_completion(&drv_fcxp->comp); in bfad_im_bsg_els_ct_request()
3507 rc = bfad_fcxp_bsg_send(job, drv_fcxp, bsg_fcpt); in bfad_im_bsg_els_ct_request()
3509 wait_for_completion(&drv_fcxp->comp); in bfad_im_bsg_els_ct_request()
3510 bsg_fcpt->status = drv_fcxp->req_status; in bfad_im_bsg_els_ct_request()
3517 if (drv_fcxp->req_status == BFA_STATUS_OK) { in bfad_im_bsg_els_ct_request()
3518 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3519 job->reply->reply_payload_rcv_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3536 bfad_fcxp_free_mem(bfad, drv_fcxp->rspbuf_info, in bfad_im_bsg_els_ct_request()
3537 drv_fcxp->num_rsp_sgles); in bfad_im_bsg_els_ct_request()
3538 bfad_fcxp_free_mem(bfad, drv_fcxp->reqbuf_info, in bfad_im_bsg_els_ct_request()
3539 drv_fcxp->num_req_sgles); in bfad_im_bsg_els_ct_request()
3549 kfree(drv_fcxp); in bfad_im_bsg_els_ct_request()