Lines Matching refs:drv_fcxp
3191 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_req_sgaddr_cb() local
3195 sge = drv_fcxp->req_sge + sgeid; in bfad_fcxp_get_req_sgaddr_cb()
3203 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_req_sglen_cb() local
3206 sge = drv_fcxp->req_sge + sgeid; in bfad_fcxp_get_req_sglen_cb()
3213 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_rsp_sgaddr_cb() local
3217 sge = drv_fcxp->rsp_sge + sgeid; in bfad_fcxp_get_rsp_sgaddr_cb()
3225 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_rsp_sglen_cb() local
3228 sge = drv_fcxp->rsp_sge + sgeid; in bfad_fcxp_get_rsp_sglen_cb()
3237 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_send_fcpt_cb() local
3239 drv_fcxp->req_status = req_status; in bfad_send_fcpt_cb()
3240 drv_fcxp->rsp_len = rsp_len; in bfad_send_fcpt_cb()
3243 drv_fcxp->bfa_fcxp = NULL; in bfad_send_fcpt_cb()
3244 complete(&drv_fcxp->comp); in bfad_send_fcpt_cb()
3310 bfad_fcxp_bsg_send(struct bsg_job *job, struct bfad_fcxp *drv_fcxp, in bfad_fcxp_bsg_send() argument
3314 struct bfad_s *bfad = drv_fcxp->port->bfad; in bfad_fcxp_bsg_send()
3321 hal_fcxp = bfa_fcxp_req_rsp_alloc(drv_fcxp, &bfad->bfa, in bfad_fcxp_bsg_send()
3322 drv_fcxp->num_req_sgles, in bfad_fcxp_bsg_send()
3323 drv_fcxp->num_rsp_sgles, in bfad_fcxp_bsg_send()
3334 drv_fcxp->bfa_fcxp = hal_fcxp; in bfad_fcxp_bsg_send()
3338 bfa_fcxp_send(hal_fcxp, drv_fcxp->bfa_rport, bsg_fcpt->vf_id, lp_tag, in bfad_fcxp_bsg_send()
3357 struct bfad_fcxp *drv_fcxp; in bfad_im_bsg_els_ct_request() local
3395 drv_fcxp = kzalloc(sizeof(struct bfad_fcxp), GFP_KERNEL); in bfad_im_bsg_els_ct_request()
3396 if (drv_fcxp == NULL) { in bfad_im_bsg_els_ct_request()
3418 drv_fcxp->port = fcs_port->bfad_port; in bfad_im_bsg_els_ct_request()
3420 if (drv_fcxp->port->bfad == 0) in bfad_im_bsg_els_ct_request()
3421 drv_fcxp->port->bfad = bfad; in bfad_im_bsg_els_ct_request()
3427 drv_fcxp->bfa_rport = NULL; in bfad_im_bsg_els_ct_request()
3440 drv_fcxp->bfa_rport = fcs_rport->bfa_rport; in bfad_im_bsg_els_ct_request()
3471 drv_fcxp->reqbuf_info = bfad_fcxp_map_sg(bfad, req_kbuf, in bfad_im_bsg_els_ct_request()
3473 &drv_fcxp->num_req_sgles); in bfad_im_bsg_els_ct_request()
3474 if (!drv_fcxp->reqbuf_info) { in bfad_im_bsg_els_ct_request()
3481 drv_fcxp->req_sge = (struct bfa_sge_s *) in bfad_im_bsg_els_ct_request()
3482 (((uint8_t *)drv_fcxp->reqbuf_info) + in bfad_im_bsg_els_ct_request()
3484 drv_fcxp->num_req_sgles)); in bfad_im_bsg_els_ct_request()
3487 drv_fcxp->rspbuf_info = bfad_fcxp_map_sg(bfad, rsp_kbuf, in bfad_im_bsg_els_ct_request()
3489 &drv_fcxp->num_rsp_sgles); in bfad_im_bsg_els_ct_request()
3490 if (!drv_fcxp->rspbuf_info) { in bfad_im_bsg_els_ct_request()
3497 rsp_buf_info = (struct bfad_buf_info *)drv_fcxp->rspbuf_info; in bfad_im_bsg_els_ct_request()
3498 drv_fcxp->rsp_sge = (struct bfa_sge_s *) in bfad_im_bsg_els_ct_request()
3499 (((uint8_t *)drv_fcxp->rspbuf_info) + in bfad_im_bsg_els_ct_request()
3501 drv_fcxp->num_rsp_sgles)); in bfad_im_bsg_els_ct_request()
3504 init_completion(&drv_fcxp->comp); in bfad_im_bsg_els_ct_request()
3505 rc = bfad_fcxp_bsg_send(job, drv_fcxp, bsg_fcpt); in bfad_im_bsg_els_ct_request()
3507 wait_for_completion(&drv_fcxp->comp); in bfad_im_bsg_els_ct_request()
3508 bsg_fcpt->status = drv_fcxp->req_status; in bfad_im_bsg_els_ct_request()
3515 if (drv_fcxp->req_status == BFA_STATUS_OK) { in bfad_im_bsg_els_ct_request()
3516 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3517 bsg_reply->reply_payload_rcv_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3534 bfad_fcxp_free_mem(bfad, drv_fcxp->rspbuf_info, in bfad_im_bsg_els_ct_request()
3535 drv_fcxp->num_rsp_sgles); in bfad_im_bsg_els_ct_request()
3536 bfad_fcxp_free_mem(bfad, drv_fcxp->reqbuf_info, in bfad_im_bsg_els_ct_request()
3537 drv_fcxp->num_req_sgles); in bfad_im_bsg_els_ct_request()
3547 kfree(drv_fcxp); in bfad_im_bsg_els_ct_request()