Lines Matching refs:ema
910 struct fc_exch_mgr_anchor *ema;
913 list_for_each_entry(ema, &lport->ema_list, ema_list) {
914 if (!ema->match || ema->match(fp)) {
915 ep = fc_exch_em_alloc(lport, ema->mp);
1478 struct fc_exch_mgr_anchor *ema;
1484 list_for_each_entry(ema, &lport->ema_list, ema_list)
1485 if ((!ema->match || ema->match(fp)) &&
1486 fc_seq_lookup_recip(lport, ema->mp, fp) == FC_RJT_NONE)
1983 struct fc_exch_mgr_anchor *ema;
1986 list_for_each_entry(ema, &lport->ema_list, ema_list) {
1989 per_cpu_ptr(ema->mp->pool, cpu),
2004 struct fc_exch_mgr_anchor *ema;
2006 list_for_each_entry(ema, &lport->ema_list, ema_list)
2007 if (ema->mp->min_xid <= xid && xid <= ema->mp->max_xid)
2008 return fc_exch_find(ema->mp, xid);
2366 struct fc_exch_mgr_anchor *ema;
2371 list_for_each_entry(ema, &lport->ema_list, ema_list) {
2372 mp = ema->mp;
2394 struct fc_exch_mgr_anchor *ema;
2396 ema = kmalloc(sizeof(*ema), GFP_ATOMIC);
2397 if (!ema)
2398 return ema;
2400 ema->mp = mp;
2401 ema->match = match;
2403 list_add_tail(&ema->ema_list, &lport->ema_list);
2405 return ema;
2424 * @ema: The exchange manager anchor identifying the EM to be deleted
2426 void fc_exch_mgr_del(struct fc_exch_mgr_anchor *ema)
2429 list_del(&ema->ema_list);
2430 kref_put(&ema->mp->kref, fc_exch_mgr_destroy);
2431 kfree(ema);
2442 struct fc_exch_mgr_anchor *ema, *tmp;
2444 list_for_each_entry(ema, &src->ema_list, ema_list) {
2445 if (!fc_exch_mgr_add(dst, ema->mp, ema->match))
2450 list_for_each_entry_safe(ema, tmp, &dst->ema_list, ema_list)
2451 fc_exch_mgr_del(ema);
2561 struct fc_exch_mgr_anchor *ema, *next;
2564 list_for_each_entry_safe(ema, next, &lport->ema_list, ema_list)
2565 fc_exch_mgr_del(ema);
2580 struct fc_exch_mgr_anchor *ema;
2589 typeof(*ema), ema_list);
2592 list_for_each_entry(ema, &lport->ema_list, ema_list) {
2593 if ((xid >= ema->mp->min_xid) &&
2594 (xid <= ema->mp->max_xid))
2595 return ema;
2607 struct fc_exch_mgr_anchor *ema;
2619 ema = fc_find_ema(f_ctl, lport, fh);
2620 if (!ema) {
2641 fc_exch_recv_bls(ema->mp, fp);
2644 fc_exch_recv_seq_resp(ema->mp, fp);
2646 fc_exch_recv_resp(ema->mp, fp);
2648 fc_exch_recv_req(lport, ema->mp, fp);