Lines Matching refs:drv_fcxp
3183 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_req_sgaddr_cb() local
3187 sge = drv_fcxp->req_sge + sgeid; in bfad_fcxp_get_req_sgaddr_cb()
3195 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_req_sglen_cb() local
3198 sge = drv_fcxp->req_sge + sgeid; in bfad_fcxp_get_req_sglen_cb()
3205 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_rsp_sgaddr_cb() local
3209 sge = drv_fcxp->rsp_sge + sgeid; in bfad_fcxp_get_rsp_sgaddr_cb()
3217 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_fcxp_get_rsp_sglen_cb() local
3220 sge = drv_fcxp->rsp_sge + sgeid; in bfad_fcxp_get_rsp_sglen_cb()
3229 struct bfad_fcxp *drv_fcxp = bfad_fcxp; in bfad_send_fcpt_cb() local
3231 drv_fcxp->req_status = req_status; in bfad_send_fcpt_cb()
3232 drv_fcxp->rsp_len = rsp_len; in bfad_send_fcpt_cb()
3235 drv_fcxp->bfa_fcxp = NULL; in bfad_send_fcpt_cb()
3236 complete(&drv_fcxp->comp); in bfad_send_fcpt_cb()
3302 bfad_fcxp_bsg_send(struct bsg_job *job, struct bfad_fcxp *drv_fcxp, in bfad_fcxp_bsg_send() argument
3306 struct bfad_s *bfad = drv_fcxp->port->bfad; in bfad_fcxp_bsg_send()
3313 hal_fcxp = bfa_fcxp_req_rsp_alloc(drv_fcxp, &bfad->bfa, in bfad_fcxp_bsg_send()
3314 drv_fcxp->num_req_sgles, in bfad_fcxp_bsg_send()
3315 drv_fcxp->num_rsp_sgles, in bfad_fcxp_bsg_send()
3326 drv_fcxp->bfa_fcxp = hal_fcxp; in bfad_fcxp_bsg_send()
3330 bfa_fcxp_send(hal_fcxp, drv_fcxp->bfa_rport, bsg_fcpt->vf_id, lp_tag, in bfad_fcxp_bsg_send()
3349 struct bfad_fcxp *drv_fcxp; in bfad_im_bsg_els_ct_request() local
3387 drv_fcxp = kzalloc(sizeof(struct bfad_fcxp), GFP_KERNEL); in bfad_im_bsg_els_ct_request()
3388 if (drv_fcxp == NULL) { in bfad_im_bsg_els_ct_request()
3410 drv_fcxp->port = fcs_port->bfad_port; in bfad_im_bsg_els_ct_request()
3412 if (drv_fcxp->port->bfad == 0) in bfad_im_bsg_els_ct_request()
3413 drv_fcxp->port->bfad = bfad; in bfad_im_bsg_els_ct_request()
3419 drv_fcxp->bfa_rport = NULL; in bfad_im_bsg_els_ct_request()
3432 drv_fcxp->bfa_rport = fcs_rport->bfa_rport; in bfad_im_bsg_els_ct_request()
3463 drv_fcxp->reqbuf_info = bfad_fcxp_map_sg(bfad, req_kbuf, in bfad_im_bsg_els_ct_request()
3465 &drv_fcxp->num_req_sgles); in bfad_im_bsg_els_ct_request()
3466 if (!drv_fcxp->reqbuf_info) { in bfad_im_bsg_els_ct_request()
3473 drv_fcxp->req_sge = (struct bfa_sge_s *) in bfad_im_bsg_els_ct_request()
3474 (((uint8_t *)drv_fcxp->reqbuf_info) + in bfad_im_bsg_els_ct_request()
3476 drv_fcxp->num_req_sgles)); in bfad_im_bsg_els_ct_request()
3479 drv_fcxp->rspbuf_info = bfad_fcxp_map_sg(bfad, rsp_kbuf, in bfad_im_bsg_els_ct_request()
3481 &drv_fcxp->num_rsp_sgles); in bfad_im_bsg_els_ct_request()
3482 if (!drv_fcxp->rspbuf_info) { in bfad_im_bsg_els_ct_request()
3489 rsp_buf_info = (struct bfad_buf_info *)drv_fcxp->rspbuf_info; in bfad_im_bsg_els_ct_request()
3490 drv_fcxp->rsp_sge = (struct bfa_sge_s *) in bfad_im_bsg_els_ct_request()
3491 (((uint8_t *)drv_fcxp->rspbuf_info) + in bfad_im_bsg_els_ct_request()
3493 drv_fcxp->num_rsp_sgles)); in bfad_im_bsg_els_ct_request()
3496 init_completion(&drv_fcxp->comp); in bfad_im_bsg_els_ct_request()
3497 rc = bfad_fcxp_bsg_send(job, drv_fcxp, bsg_fcpt); in bfad_im_bsg_els_ct_request()
3499 wait_for_completion(&drv_fcxp->comp); in bfad_im_bsg_els_ct_request()
3500 bsg_fcpt->status = drv_fcxp->req_status; in bfad_im_bsg_els_ct_request()
3507 if (drv_fcxp->req_status == BFA_STATUS_OK) { in bfad_im_bsg_els_ct_request()
3508 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3509 bsg_reply->reply_payload_rcv_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3526 bfad_fcxp_free_mem(bfad, drv_fcxp->rspbuf_info, in bfad_im_bsg_els_ct_request()
3527 drv_fcxp->num_rsp_sgles); in bfad_im_bsg_els_ct_request()
3528 bfad_fcxp_free_mem(bfad, drv_fcxp->reqbuf_info, in bfad_im_bsg_els_ct_request()
3529 drv_fcxp->num_req_sgles); in bfad_im_bsg_els_ct_request()
3539 kfree(drv_fcxp); in bfad_im_bsg_els_ct_request()