Lines Matching refs:ema
908 struct fc_exch_mgr_anchor *ema;
911 list_for_each_entry(ema, &lport->ema_list, ema_list) {
912 if (!ema->match || ema->match(fp)) {
913 ep = fc_exch_em_alloc(lport, ema->mp);
1476 struct fc_exch_mgr_anchor *ema;
1482 list_for_each_entry(ema, &lport->ema_list, ema_list)
1483 if ((!ema->match || ema->match(fp)) &&
1484 fc_seq_lookup_recip(lport, ema->mp, fp) == FC_RJT_NONE)
1981 struct fc_exch_mgr_anchor *ema;
1984 list_for_each_entry(ema, &lport->ema_list, ema_list) {
1987 per_cpu_ptr(ema->mp->pool, cpu),
2002 struct fc_exch_mgr_anchor *ema;
2004 list_for_each_entry(ema, &lport->ema_list, ema_list)
2005 if (ema->mp->min_xid <= xid && xid <= ema->mp->max_xid)
2006 return fc_exch_find(ema->mp, xid);
2364 struct fc_exch_mgr_anchor *ema;
2369 list_for_each_entry(ema, &lport->ema_list, ema_list) {
2370 mp = ema->mp;
2392 struct fc_exch_mgr_anchor *ema;
2394 ema = kmalloc(sizeof(*ema), GFP_ATOMIC);
2395 if (!ema)
2396 return ema;
2398 ema->mp = mp;
2399 ema->match = match;
2401 list_add_tail(&ema->ema_list, &lport->ema_list);
2403 return ema;
2422 * @ema: The exchange manager anchor identifying the EM to be deleted
2424 void fc_exch_mgr_del(struct fc_exch_mgr_anchor *ema)
2427 list_del(&ema->ema_list);
2428 kref_put(&ema->mp->kref, fc_exch_mgr_destroy);
2429 kfree(ema);
2440 struct fc_exch_mgr_anchor *ema, *tmp;
2442 list_for_each_entry(ema, &src->ema_list, ema_list) {
2443 if (!fc_exch_mgr_add(dst, ema->mp, ema->match))
2448 list_for_each_entry_safe(ema, tmp, &dst->ema_list, ema_list)
2449 fc_exch_mgr_del(ema);
2559 struct fc_exch_mgr_anchor *ema, *next;
2562 list_for_each_entry_safe(ema, next, &lport->ema_list, ema_list)
2563 fc_exch_mgr_del(ema);
2578 struct fc_exch_mgr_anchor *ema;
2587 typeof(*ema), ema_list);
2590 list_for_each_entry(ema, &lport->ema_list, ema_list) {
2591 if ((xid >= ema->mp->min_xid) &&
2592 (xid <= ema->mp->max_xid))
2593 return ema;
2605 struct fc_exch_mgr_anchor *ema;
2617 ema = fc_find_ema(f_ctl, lport, fh);
2618 if (!ema) {
2639 fc_exch_recv_bls(ema->mp, fp);
2642 fc_exch_recv_seq_resp(ema->mp, fp);
2644 fc_exch_recv_resp(ema->mp, fp);
2646 fc_exch_recv_req(lport, ema->mp, fp);