Lines Matching defs:drv_fcxp

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