Lines Matching defs:pla

780 	struct qlt_plogi_ack_t *pla;
784 list_for_each_entry(pla, &vha->plogi_ack_list, list) {
785 if (pla->id.b24 == id->b24) {
789 pla->iocb.u.isp24.port_name);
790 qlt_send_term_imm_notif(vha, &pla->iocb, 1);
791 memcpy(&pla->iocb, iocb, sizeof(pla->iocb));
792 return pla;
796 pla = kmem_cache_zalloc(qla_tgt_plogi_cachep, GFP_ATOMIC);
797 if (!pla) {
804 memcpy(&pla->iocb, iocb, sizeof(pla->iocb));
805 pla->id = *id;
806 list_add_tail(&pla->list, &vha->plogi_ack_list);
808 return pla;
812 struct qlt_plogi_ack_t *pla)
814 struct imm_ntfy_from_isp *iocb = &pla->iocb;
817 fc_port_t *fcport = pla->fcport;
819 BUG_ON(!pla->ref_count);
820 pla->ref_count--;
822 if (pla->ref_count)
848 if (fcport->plogi_link[QLT_PLOGI_LINK_SAME_WWN] == pla)
850 if (fcport->plogi_link[QLT_PLOGI_LINK_CONFLICT] == pla)
854 list_del(&pla->list);
855 kmem_cache_free(qla_tgt_plogi_cachep, pla);
859 qlt_plogi_ack_link(struct scsi_qla_host *vha, struct qlt_plogi_ack_t *pla,
862 struct imm_ntfy_from_isp *iocb = &pla->iocb;
863 /* Inc ref_count first because link might already be pointing at pla */
864 pla->ref_count++;
868 " s_id %02x:%02x:%02x, ref=%d pla %p link %d\n",
872 pla->ref_count, pla, link);
878 pla->ref_count--;
889 pla->fcport = sess;
891 sess->plogi_link[link] = pla;
4729 struct qlt_plogi_ack_t *pla;
4792 pla = qlt_plogi_ack_find_add(vha, &port_id, iocb);
4793 if (!pla) {
4804 qlt_plogi_ack_link(vha, pla, conflict_sess,
4809 pla->ref_count++;
4817 pla, 0);
4821 pla, 0);
4846 list_del(&pla->list);
4847 kmem_cache_free(qla_tgt_plogi_cachep, pla);
4854 qlt_plogi_ack_link(vha, pla, sess, QLT_PLOGI_LINK_SAME_WWN);
4899 qlt_plogi_ack_unref(vha, pla);