Lines Matching refs:rp
228 static bfa_boolean_t bfa_rport_send_fwcreate(struct bfa_rport_s *rp);
229 static bfa_boolean_t bfa_rport_send_fwdelete(struct bfa_rport_s *rp);
230 static bfa_boolean_t bfa_rport_send_fwspeed(struct bfa_rport_s *rp);
239 static void bfa_rport_sm_uninit(struct bfa_rport_s *rp,
241 static void bfa_rport_sm_created(struct bfa_rport_s *rp,
243 static void bfa_rport_sm_fwcreate(struct bfa_rport_s *rp,
245 static void bfa_rport_sm_online(struct bfa_rport_s *rp,
247 static void bfa_rport_sm_fwdelete(struct bfa_rport_s *rp,
249 static void bfa_rport_sm_offline(struct bfa_rport_s *rp,
251 static void bfa_rport_sm_deleting(struct bfa_rport_s *rp,
253 static void bfa_rport_sm_offline_pending(struct bfa_rport_s *rp,
255 static void bfa_rport_sm_delete_pending(struct bfa_rport_s *rp,
257 static void bfa_rport_sm_iocdisable(struct bfa_rport_s *rp,
259 static void bfa_rport_sm_fwcreate_qfull(struct bfa_rport_s *rp,
261 static void bfa_rport_sm_fwdelete_qfull(struct bfa_rport_s *rp,
263 static void bfa_rport_sm_deleting_qfull(struct bfa_rport_s *rp,
4306 bfa_rport_sm_uninit(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_uninit() argument
4308 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_uninit()
4309 bfa_trc(rp->bfa, event); in bfa_rport_sm_uninit()
4313 bfa_stats(rp, sm_un_cr); in bfa_rport_sm_uninit()
4314 bfa_sm_set_state(rp, bfa_rport_sm_created); in bfa_rport_sm_uninit()
4318 bfa_stats(rp, sm_un_unexp); in bfa_rport_sm_uninit()
4319 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_uninit()
4324 bfa_rport_sm_created(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_created() argument
4326 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_created()
4327 bfa_trc(rp->bfa, event); in bfa_rport_sm_created()
4331 bfa_stats(rp, sm_cr_on); in bfa_rport_sm_created()
4332 if (bfa_rport_send_fwcreate(rp)) in bfa_rport_sm_created()
4333 bfa_sm_set_state(rp, bfa_rport_sm_fwcreate); in bfa_rport_sm_created()
4335 bfa_sm_set_state(rp, bfa_rport_sm_fwcreate_qfull); in bfa_rport_sm_created()
4339 bfa_stats(rp, sm_cr_del); in bfa_rport_sm_created()
4340 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_sm_created()
4341 bfa_rport_free(rp); in bfa_rport_sm_created()
4345 bfa_stats(rp, sm_cr_hwf); in bfa_rport_sm_created()
4346 bfa_sm_set_state(rp, bfa_rport_sm_iocdisable); in bfa_rport_sm_created()
4350 bfa_stats(rp, sm_cr_unexp); in bfa_rport_sm_created()
4351 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_created()
4359 bfa_rport_sm_fwcreate(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_fwcreate() argument
4361 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwcreate()
4362 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwcreate()
4366 bfa_stats(rp, sm_fwc_rsp); in bfa_rport_sm_fwcreate()
4367 bfa_sm_set_state(rp, bfa_rport_sm_online); in bfa_rport_sm_fwcreate()
4368 bfa_rport_online_cb(rp); in bfa_rport_sm_fwcreate()
4372 bfa_stats(rp, sm_fwc_del); in bfa_rport_sm_fwcreate()
4373 bfa_sm_set_state(rp, bfa_rport_sm_delete_pending); in bfa_rport_sm_fwcreate()
4377 bfa_stats(rp, sm_fwc_off); in bfa_rport_sm_fwcreate()
4378 bfa_sm_set_state(rp, bfa_rport_sm_offline_pending); in bfa_rport_sm_fwcreate()
4382 bfa_stats(rp, sm_fwc_hwf); in bfa_rport_sm_fwcreate()
4383 bfa_sm_set_state(rp, bfa_rport_sm_iocdisable); in bfa_rport_sm_fwcreate()
4387 bfa_stats(rp, sm_fwc_unexp); in bfa_rport_sm_fwcreate()
4388 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwcreate()
4396 bfa_rport_sm_fwcreate_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_fwcreate_qfull() argument
4398 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwcreate_qfull()
4399 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwcreate_qfull()
4403 bfa_sm_set_state(rp, bfa_rport_sm_fwcreate); in bfa_rport_sm_fwcreate_qfull()
4404 bfa_rport_send_fwcreate(rp); in bfa_rport_sm_fwcreate_qfull()
4408 bfa_stats(rp, sm_fwc_del); in bfa_rport_sm_fwcreate_qfull()
4409 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_sm_fwcreate_qfull()
4410 bfa_reqq_wcancel(&rp->reqq_wait); in bfa_rport_sm_fwcreate_qfull()
4411 bfa_rport_free(rp); in bfa_rport_sm_fwcreate_qfull()
4415 bfa_stats(rp, sm_fwc_off); in bfa_rport_sm_fwcreate_qfull()
4416 bfa_sm_set_state(rp, bfa_rport_sm_offline); in bfa_rport_sm_fwcreate_qfull()
4417 bfa_reqq_wcancel(&rp->reqq_wait); in bfa_rport_sm_fwcreate_qfull()
4418 bfa_rport_offline_cb(rp); in bfa_rport_sm_fwcreate_qfull()
4422 bfa_stats(rp, sm_fwc_hwf); in bfa_rport_sm_fwcreate_qfull()
4423 bfa_sm_set_state(rp, bfa_rport_sm_iocdisable); in bfa_rport_sm_fwcreate_qfull()
4424 bfa_reqq_wcancel(&rp->reqq_wait); in bfa_rport_sm_fwcreate_qfull()
4428 bfa_stats(rp, sm_fwc_unexp); in bfa_rport_sm_fwcreate_qfull()
4429 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwcreate_qfull()
4437 bfa_rport_sm_online(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_online() argument
4441 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_online()
4442 bfa_trc(rp->bfa, event); in bfa_rport_sm_online()
4446 bfa_stats(rp, sm_on_off); in bfa_rport_sm_online()
4447 if (bfa_rport_send_fwdelete(rp)) in bfa_rport_sm_online()
4448 bfa_sm_set_state(rp, bfa_rport_sm_fwdelete); in bfa_rport_sm_online()
4450 bfa_sm_set_state(rp, bfa_rport_sm_fwdelete_qfull); in bfa_rport_sm_online()
4454 bfa_stats(rp, sm_on_del); in bfa_rport_sm_online()
4455 if (bfa_rport_send_fwdelete(rp)) in bfa_rport_sm_online()
4456 bfa_sm_set_state(rp, bfa_rport_sm_deleting); in bfa_rport_sm_online()
4458 bfa_sm_set_state(rp, bfa_rport_sm_deleting_qfull); in bfa_rport_sm_online()
4462 bfa_stats(rp, sm_on_hwf); in bfa_rport_sm_online()
4463 bfa_sm_set_state(rp, bfa_rport_sm_iocdisable); in bfa_rport_sm_online()
4467 bfa_rport_send_fwspeed(rp); in bfa_rport_sm_online()
4471 qos_scn = (struct bfi_rport_qos_scn_s *) rp->event_arg.fw_msg; in bfa_rport_sm_online()
4472 rp->qos_attr = qos_scn->new_qos_attr; in bfa_rport_sm_online()
4473 bfa_trc(rp->bfa, qos_scn->old_qos_attr.qos_flow_id); in bfa_rport_sm_online()
4474 bfa_trc(rp->bfa, qos_scn->new_qos_attr.qos_flow_id); in bfa_rport_sm_online()
4475 bfa_trc(rp->bfa, qos_scn->old_qos_attr.qos_priority); in bfa_rport_sm_online()
4476 bfa_trc(rp->bfa, qos_scn->new_qos_attr.qos_priority); in bfa_rport_sm_online()
4485 bfa_cb_rport_qos_scn_flowid(rp->rport_drv, in bfa_rport_sm_online()
4490 bfa_cb_rport_qos_scn_prio(rp->rport_drv, in bfa_rport_sm_online()
4496 bfa_stats(rp, sm_on_unexp); in bfa_rport_sm_online()
4497 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_online()
4505 bfa_rport_sm_fwdelete(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_fwdelete() argument
4507 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwdelete()
4508 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwdelete()
4512 bfa_stats(rp, sm_fwd_rsp); in bfa_rport_sm_fwdelete()
4513 bfa_sm_set_state(rp, bfa_rport_sm_offline); in bfa_rport_sm_fwdelete()
4514 bfa_rport_offline_cb(rp); in bfa_rport_sm_fwdelete()
4518 bfa_stats(rp, sm_fwd_del); in bfa_rport_sm_fwdelete()
4519 bfa_sm_set_state(rp, bfa_rport_sm_deleting); in bfa_rport_sm_fwdelete()
4523 bfa_stats(rp, sm_fwd_hwf); in bfa_rport_sm_fwdelete()
4524 bfa_sm_set_state(rp, bfa_rport_sm_iocdisable); in bfa_rport_sm_fwdelete()
4525 bfa_rport_offline_cb(rp); in bfa_rport_sm_fwdelete()
4529 bfa_stats(rp, sm_fwd_unexp); in bfa_rport_sm_fwdelete()
4530 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwdelete()
4535 bfa_rport_sm_fwdelete_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_fwdelete_qfull() argument
4537 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_fwdelete_qfull()
4538 bfa_trc(rp->bfa, event); in bfa_rport_sm_fwdelete_qfull()
4542 bfa_sm_set_state(rp, bfa_rport_sm_fwdelete); in bfa_rport_sm_fwdelete_qfull()
4543 bfa_rport_send_fwdelete(rp); in bfa_rport_sm_fwdelete_qfull()
4547 bfa_stats(rp, sm_fwd_del); in bfa_rport_sm_fwdelete_qfull()
4548 bfa_sm_set_state(rp, bfa_rport_sm_deleting_qfull); in bfa_rport_sm_fwdelete_qfull()
4552 bfa_stats(rp, sm_fwd_hwf); in bfa_rport_sm_fwdelete_qfull()
4553 bfa_sm_set_state(rp, bfa_rport_sm_iocdisable); in bfa_rport_sm_fwdelete_qfull()
4554 bfa_reqq_wcancel(&rp->reqq_wait); in bfa_rport_sm_fwdelete_qfull()
4555 bfa_rport_offline_cb(rp); in bfa_rport_sm_fwdelete_qfull()
4559 bfa_stats(rp, sm_fwd_unexp); in bfa_rport_sm_fwdelete_qfull()
4560 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_fwdelete_qfull()
4568 bfa_rport_sm_offline(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_offline() argument
4570 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_offline()
4571 bfa_trc(rp->bfa, event); in bfa_rport_sm_offline()
4575 bfa_stats(rp, sm_off_del); in bfa_rport_sm_offline()
4576 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_sm_offline()
4577 bfa_rport_free(rp); in bfa_rport_sm_offline()
4581 bfa_stats(rp, sm_off_on); in bfa_rport_sm_offline()
4582 if (bfa_rport_send_fwcreate(rp)) in bfa_rport_sm_offline()
4583 bfa_sm_set_state(rp, bfa_rport_sm_fwcreate); in bfa_rport_sm_offline()
4585 bfa_sm_set_state(rp, bfa_rport_sm_fwcreate_qfull); in bfa_rport_sm_offline()
4589 bfa_stats(rp, sm_off_hwf); in bfa_rport_sm_offline()
4590 bfa_sm_set_state(rp, bfa_rport_sm_iocdisable); in bfa_rport_sm_offline()
4594 bfa_rport_offline_cb(rp); in bfa_rport_sm_offline()
4598 bfa_stats(rp, sm_off_unexp); in bfa_rport_sm_offline()
4599 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_offline()
4607 bfa_rport_sm_deleting(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_deleting() argument
4609 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_deleting()
4610 bfa_trc(rp->bfa, event); in bfa_rport_sm_deleting()
4614 bfa_stats(rp, sm_del_fwrsp); in bfa_rport_sm_deleting()
4615 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_sm_deleting()
4616 bfa_rport_free(rp); in bfa_rport_sm_deleting()
4620 bfa_stats(rp, sm_del_hwf); in bfa_rport_sm_deleting()
4621 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_sm_deleting()
4622 bfa_rport_free(rp); in bfa_rport_sm_deleting()
4626 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_deleting()
4631 bfa_rport_sm_deleting_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_deleting_qfull() argument
4633 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_deleting_qfull()
4634 bfa_trc(rp->bfa, event); in bfa_rport_sm_deleting_qfull()
4638 bfa_stats(rp, sm_del_fwrsp); in bfa_rport_sm_deleting_qfull()
4639 bfa_sm_set_state(rp, bfa_rport_sm_deleting); in bfa_rport_sm_deleting_qfull()
4640 bfa_rport_send_fwdelete(rp); in bfa_rport_sm_deleting_qfull()
4644 bfa_stats(rp, sm_del_hwf); in bfa_rport_sm_deleting_qfull()
4645 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_sm_deleting_qfull()
4646 bfa_reqq_wcancel(&rp->reqq_wait); in bfa_rport_sm_deleting_qfull()
4647 bfa_rport_free(rp); in bfa_rport_sm_deleting_qfull()
4651 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_deleting_qfull()
4659 bfa_rport_sm_delete_pending(struct bfa_rport_s *rp, in bfa_rport_sm_delete_pending() argument
4662 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_delete_pending()
4663 bfa_trc(rp->bfa, event); in bfa_rport_sm_delete_pending()
4667 bfa_stats(rp, sm_delp_fwrsp); in bfa_rport_sm_delete_pending()
4668 if (bfa_rport_send_fwdelete(rp)) in bfa_rport_sm_delete_pending()
4669 bfa_sm_set_state(rp, bfa_rport_sm_deleting); in bfa_rport_sm_delete_pending()
4671 bfa_sm_set_state(rp, bfa_rport_sm_deleting_qfull); in bfa_rport_sm_delete_pending()
4675 bfa_stats(rp, sm_delp_hwf); in bfa_rport_sm_delete_pending()
4676 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_sm_delete_pending()
4677 bfa_rport_free(rp); in bfa_rport_sm_delete_pending()
4681 bfa_stats(rp, sm_delp_unexp); in bfa_rport_sm_delete_pending()
4682 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_delete_pending()
4690 bfa_rport_sm_offline_pending(struct bfa_rport_s *rp, in bfa_rport_sm_offline_pending() argument
4693 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_offline_pending()
4694 bfa_trc(rp->bfa, event); in bfa_rport_sm_offline_pending()
4698 bfa_stats(rp, sm_offp_fwrsp); in bfa_rport_sm_offline_pending()
4699 if (bfa_rport_send_fwdelete(rp)) in bfa_rport_sm_offline_pending()
4700 bfa_sm_set_state(rp, bfa_rport_sm_fwdelete); in bfa_rport_sm_offline_pending()
4702 bfa_sm_set_state(rp, bfa_rport_sm_fwdelete_qfull); in bfa_rport_sm_offline_pending()
4706 bfa_stats(rp, sm_offp_del); in bfa_rport_sm_offline_pending()
4707 bfa_sm_set_state(rp, bfa_rport_sm_delete_pending); in bfa_rport_sm_offline_pending()
4711 bfa_stats(rp, sm_offp_hwf); in bfa_rport_sm_offline_pending()
4712 bfa_sm_set_state(rp, bfa_rport_sm_iocdisable); in bfa_rport_sm_offline_pending()
4713 bfa_rport_offline_cb(rp); in bfa_rport_sm_offline_pending()
4717 bfa_stats(rp, sm_offp_unexp); in bfa_rport_sm_offline_pending()
4718 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_offline_pending()
4726 bfa_rport_sm_iocdisable(struct bfa_rport_s *rp, enum bfa_rport_event event) in bfa_rport_sm_iocdisable() argument
4728 bfa_trc(rp->bfa, rp->rport_tag); in bfa_rport_sm_iocdisable()
4729 bfa_trc(rp->bfa, event); in bfa_rport_sm_iocdisable()
4733 bfa_stats(rp, sm_iocd_off); in bfa_rport_sm_iocdisable()
4734 bfa_rport_offline_cb(rp); in bfa_rport_sm_iocdisable()
4738 bfa_stats(rp, sm_iocd_del); in bfa_rport_sm_iocdisable()
4739 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_sm_iocdisable()
4740 bfa_rport_free(rp); in bfa_rport_sm_iocdisable()
4744 bfa_stats(rp, sm_iocd_on); in bfa_rport_sm_iocdisable()
4745 if (bfa_rport_send_fwcreate(rp)) in bfa_rport_sm_iocdisable()
4746 bfa_sm_set_state(rp, bfa_rport_sm_fwcreate); in bfa_rport_sm_iocdisable()
4748 bfa_sm_set_state(rp, bfa_rport_sm_fwcreate_qfull); in bfa_rport_sm_iocdisable()
4755 bfa_stats(rp, sm_iocd_unexp); in bfa_rport_sm_iocdisable()
4756 bfa_sm_fault(rp->bfa, event); in bfa_rport_sm_iocdisable()
4769 struct bfa_rport_s *rp = cbarg; in __bfa_cb_rport_online() local
4772 bfa_cb_rport_online(rp->rport_drv); in __bfa_cb_rport_online()
4778 struct bfa_rport_s *rp = cbarg; in __bfa_cb_rport_offline() local
4781 bfa_cb_rport_offline(rp->rport_drv); in __bfa_cb_rport_offline()
4787 struct bfa_rport_s *rp = cbarg; in bfa_rport_qresume() local
4789 bfa_sm_send_event(rp, BFA_RPORT_SM_QRESUME); in bfa_rport_qresume()
4811 struct bfa_rport_s *rp; in bfa_rport_attach() local
4818 rp = (struct bfa_rport_s *) bfa_mem_kva_curp(mod); in bfa_rport_attach()
4819 mod->rps_list = rp; in bfa_rport_attach()
4825 for (i = 0; i < mod->num_rports; i++, rp++) { in bfa_rport_attach()
4826 memset(rp, 0, sizeof(struct bfa_rport_s)); in bfa_rport_attach()
4827 rp->bfa = bfa; in bfa_rport_attach()
4828 rp->rport_tag = i; in bfa_rport_attach()
4829 bfa_sm_set_state(rp, bfa_rport_sm_uninit); in bfa_rport_attach()
4835 list_add_tail(&rp->qe, &mod->rp_free_q); in bfa_rport_attach()
4837 bfa_reqq_winit(&rp->reqq_wait, bfa_rport_qresume, rp); in bfa_rport_attach()
4843 bfa_mem_kva_curp(mod) = (u8 *) rp; in bfa_rport_attach()
4885 bfa_rport_send_fwcreate(struct bfa_rport_s *rp) in bfa_rport_send_fwcreate() argument
4892 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwcreate()
4894 bfa_reqq_wait(rp->bfa, BFA_REQQ_RPORT, &rp->reqq_wait); in bfa_rport_send_fwcreate()
4899 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwcreate()
4900 m->bfa_handle = rp->rport_tag; in bfa_rport_send_fwcreate()
4901 m->max_frmsz = cpu_to_be16(rp->rport_info.max_frmsz); in bfa_rport_send_fwcreate()
4902 m->pid = rp->rport_info.pid; in bfa_rport_send_fwcreate()
4903 m->lp_fwtag = bfa_lps_get_fwtag(rp->bfa, (u8)rp->rport_info.lp_tag); in bfa_rport_send_fwcreate()
4904 m->local_pid = rp->rport_info.local_pid; in bfa_rport_send_fwcreate()
4905 m->fc_class = rp->rport_info.fc_class; in bfa_rport_send_fwcreate()
4906 m->vf_en = rp->rport_info.vf_en; in bfa_rport_send_fwcreate()
4907 m->vf_id = rp->rport_info.vf_id; in bfa_rport_send_fwcreate()
4908 m->cisc = rp->rport_info.cisc; in bfa_rport_send_fwcreate()
4913 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwcreate()
4918 bfa_rport_send_fwdelete(struct bfa_rport_s *rp) in bfa_rport_send_fwdelete() argument
4925 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwdelete()
4927 bfa_reqq_wait(rp->bfa, BFA_REQQ_RPORT, &rp->reqq_wait); in bfa_rport_send_fwdelete()
4932 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwdelete()
4933 m->fw_handle = rp->fw_handle; in bfa_rport_send_fwdelete()
4938 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwdelete()
4943 bfa_rport_send_fwspeed(struct bfa_rport_s *rp) in bfa_rport_send_fwspeed() argument
4950 m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); in bfa_rport_send_fwspeed()
4952 bfa_trc(rp->bfa, rp->rport_info.speed); in bfa_rport_send_fwspeed()
4957 bfa_fn_lpu(rp->bfa)); in bfa_rport_send_fwspeed()
4958 m->fw_handle = rp->fw_handle; in bfa_rport_send_fwspeed()
4959 m->speed = (u8)rp->rport_info.speed; in bfa_rport_send_fwspeed()
4964 bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT, m->mh); in bfa_rport_send_fwspeed()
4981 struct bfa_rport_s *rp; in bfa_rport_isr() local
4989 rp = BFA_RPORT_FROM_TAG(bfa, msg.create_rsp->bfa_handle); in bfa_rport_isr()
4990 rp->fw_handle = msg.create_rsp->fw_handle; in bfa_rport_isr()
4991 rp->qos_attr = msg.create_rsp->qos_attr; in bfa_rport_isr()
4992 bfa_rport_set_lunmask(bfa, rp); in bfa_rport_isr()
4994 bfa_sm_send_event(rp, BFA_RPORT_SM_FWRSP); in bfa_rport_isr()
4998 rp = BFA_RPORT_FROM_TAG(bfa, msg.delete_rsp->bfa_handle); in bfa_rport_isr()
5000 bfa_rport_unset_lunmask(bfa, rp); in bfa_rport_isr()
5001 bfa_sm_send_event(rp, BFA_RPORT_SM_FWRSP); in bfa_rport_isr()
5005 rp = BFA_RPORT_FROM_TAG(bfa, msg.qos_scn_evt->bfa_handle); in bfa_rport_isr()
5006 rp->event_arg.fw_msg = msg.qos_scn_evt; in bfa_rport_isr()
5007 bfa_sm_send_event(rp, BFA_RPORT_SM_QOS_SCN); in bfa_rport_isr()
5021 rp = BFA_RPORT_FROM_TAG(bfa, msg.lip_scn->bfa_handle); in bfa_rport_isr()
5022 bfa_cb_rport_scn_no_dev(rp->rport_drv); in bfa_rport_isr()
5051 struct bfa_rport_s *rp; in bfa_rport_create() local
5053 rp = bfa_rport_alloc(BFA_RPORT_MOD(bfa)); in bfa_rport_create()
5055 if (rp == NULL) in bfa_rport_create()
5058 rp->bfa = bfa; in bfa_rport_create()
5059 rp->rport_drv = rport_drv; in bfa_rport_create()
5060 memset(&rp->stats, 0, sizeof(rp->stats)); in bfa_rport_create()
5062 WARN_ON(!bfa_sm_cmp_state(rp, bfa_rport_sm_uninit)); in bfa_rport_create()
5063 bfa_sm_send_event(rp, BFA_RPORT_SM_CREATE); in bfa_rport_create()
5065 return rp; in bfa_rport_create()
5100 bfa_rport_set_lunmask(struct bfa_s *bfa, struct bfa_rport_s *rp) in bfa_rport_set_lunmask() argument
5104 u8 lp_tag = (u8)rp->rport_info.lp_tag; in bfa_rport_set_lunmask()
5106 rp_wwn = ((struct bfa_fcs_rport_s *)rp->rport_drv)->pwwn; in bfa_rport_set_lunmask()
5107 lp_wwn = (BFA_LPS_FROM_TAG(lps_mod, rp->rport_info.lp_tag))->pwwn; in bfa_rport_set_lunmask()
5109 BFA_LPS_FROM_TAG(lps_mod, rp->rport_info.lp_tag)->lun_mask = in bfa_rport_set_lunmask()
5110 rp->lun_mask = BFA_TRUE; in bfa_rport_set_lunmask()
5111 bfa_fcpim_lunmask_rp_update(bfa, lp_wwn, rp_wwn, rp->rport_tag, lp_tag); in bfa_rport_set_lunmask()
5116 bfa_rport_unset_lunmask(struct bfa_s *bfa, struct bfa_rport_s *rp) in bfa_rport_unset_lunmask() argument
5121 rp_wwn = ((struct bfa_fcs_rport_s *)rp->rport_drv)->pwwn; in bfa_rport_unset_lunmask()
5122 lp_wwn = (BFA_LPS_FROM_TAG(lps_mod, rp->rport_info.lp_tag))->pwwn; in bfa_rport_unset_lunmask()
5124 BFA_LPS_FROM_TAG(lps_mod, rp->rport_info.lp_tag)->lun_mask = in bfa_rport_unset_lunmask()
5125 rp->lun_mask = BFA_FALSE; in bfa_rport_unset_lunmask()