Lines Matching refs:edif

85 	struct list_head *indx_list = &fcport->edif.edif_indx_list;
112 spin_lock_irqsave(&fcport->edif.indx_list_lock, flags);
126 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
148 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
187 spin_lock_irqsave(&fcport->edif.indx_list_lock, flags);
188 list_add_tail(&entry->next, &fcport->edif.edif_indx_list);
189 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
198 spin_lock_irqsave(&fcport->edif.indx_list_lock, flags);
200 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
226 fcport->edif.tx_rekey_cnt = 0;
227 fcport->edif.rx_rekey_cnt = 0;
229 fcport->edif.tx_bytes = 0;
230 fcport->edif.rx_bytes = 0;
243 "%s edif not enabled\n", __func__);
323 spin_lock_irqsave(&fcport->edif.sa_list_lock, flags);
325 spin_unlock_irqrestore(&fcport->edif.sa_list_lock, flags);
327 fcport->edif.tx_rekey_cnt--;
329 fcport->edif.rx_rekey_cnt--;
422 fcport->edif.rx_sa_set = 1;
423 fcport->edif.rx_sa_pending = 0;
599 fcport->disc_state, fcport->edif.auth_state,
600 fcport->edif.app_stop);
607 fcport->edif.app_stop = 0;
608 fcport->edif.app_sess_online = 0;
705 fcport->edif.app_stop = 1;
729 if (!(fcport->edif.rx_sa_set && fcport->edif.tx_sa_set)) {
732 __func__, fcport->port_name, fcport->edif.tx_sa_set,
733 fcport->edif.rx_sa_set);
740 fcport->edif.rx_sa_set = fcport->edif.tx_sa_set = 0;
741 fcport->edif.rx_sa_pending = fcport->edif.tx_sa_pending = 0;
825 fcport->edif.authok = 1;
826 if (!(fcport->edif.rx_sa_set && fcport->edif.tx_sa_set)) {
829 __func__, fcport->port_name, fcport->edif.tx_sa_set,
830 fcport->edif.rx_sa_set);
839 fcport->edif.rx_sa_set = fcport->edif.tx_sa_set = 0;
840 fcport->edif.rx_sa_pending = fcport->edif.tx_sa_pending = 0;
887 * TODO: edif: app has failed this plogi. Inform driver to
918 /* set/reset edif values and flags */
1019 switch (fcport->edif.auth_state) {
1022 fcport->edif.auth_state = VND_CMD_AUTH_STATE_NEEDED;
1031 app_reply->ports[pcnt].auth_state = fcport->edif.auth_state;
1102 if (fcport->edif.enable) {
1107 fcport->edif.rekey_cnt;
1109 fcport->edif.tx_bytes;
1111 fcport->edif.rx_bytes;
1160 fcport->edif.sess_down_acked = 1;
1319 "%s edif not enabled or vp delete. bsg ptr done %p. dpc_flags %lx\n",
1418 spin_lock_irqsave(&fcport->edif.sa_list_lock, flags);
1420 list_add_tail(&sa_ctl->next, &fcport->edif.tx_sa_list);
1422 list_add_tail(&sa_ctl->next, &fcport->edif.rx_sa_list);
1423 spin_unlock_irqrestore(&fcport->edif.sa_list_lock, flags);
1434 spin_lock_irqsave(&fcport->edif.sa_list_lock, flags);
1436 list_for_each_entry_safe(sa_ctl, tsa_ctl, &fcport->edif.tx_sa_list,
1442 list_for_each_entry_safe(sa_ctl, tsa_ctl, &fcport->edif.rx_sa_list,
1448 spin_unlock_irqrestore(&fcport->edif.sa_list_lock, flags);
1458 sa_list = &fcport->edif.tx_sa_list;
1460 sa_list = &fcport->edif.rx_sa_list;
1490 fcport->edif.rx_sa_set = 1;
1491 fcport->edif.rx_sa_pending = 0;
1524 fcport->edif.tx_rekey_cnt++;
1526 fcport->edif.rx_rekey_cnt++;
1531 fcport->edif.tx_rekey_cnt,
1532 fcport->edif.rx_rekey_cnt, fcport->loop_id);
1589 fcport->edif.tx_bytes = 0;
1591 fcport->edif.rx_bytes = 0;
1660 * if we have a forced delete for rx, remove the sa_index from the edif list
1706 fcport->edif.rekey_cnt++;
1770 fcport->edif.aes_gmac = 1;
1772 fcport->edif.aes_gmac = 0;
1822 fcport->edif.rekey_cnt++;
2096 "edif db already initialized, cannot reinit\n");
2232 /* edif not enabled */
2238 fcport->edif.auth_state = dbtype;
2303 fcport->edif.auth_state = dbtype;
2469 if (sp->fcport->edif.aes_gmac)
2487 sp->fcport->edif.aes_gmac);
2490 sp->fcport->edif.tx_sa_pending = 1;
2492 sp->fcport->edif.rx_sa_pending = 1;
2581 /* edif support not enabled */
2582 ql_dbg(ql_dbg_edif, vha, 0x910e, "%s edif not enabled\n",
2879 * TODO: edif: don't set enabled here I think
2880 * TODO: edif: prli complete is where it should be set
2886 sp->fcport->edif.enable = 1;
2888 sp->fcport->edif.tx_sa_set = 1;
2889 sp->fcport->edif.tx_sa_pending = 0;
2894 sp->fcport->edif.rx_sa_set = 1;
2895 sp->fcport->edif.rx_sa_pending = 0;
3105 sp->fcport->edif.tx_bytes += scsi_bufflen(cmd);
3110 sp->fcport->edif.rx_bytes += scsi_bufflen(cmd);
3225 * edif update/delete sa_index list functions *
3233 struct list_head *indx_list = &fcport->edif.edif_indx_list;
3236 spin_lock_irqsave(&fcport->edif.indx_list_lock, flags);
3241 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
3422 spin_lock_irqsave(&fcport->edif.indx_list_lock, flags);
3425 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
3435 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
3444 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
3455 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags);
3683 if (sess->edif.app_sess_online && DBELL_ACTIVE(vha)) {
3687 sess->edif.app_sess_online = 0;
3688 sess->edif.sess_down_acked = 0;
3693 while (!READ_ONCE(sess->edif.sess_down_acked) &&
3700 sess->edif.sess_down_acked = 0;