/* Reset all EMs associated with a given local port. Release all sequences and exchanges. If sid is non-zero then reset only the exchanges sent from the local port's FID. If did is non-zero then reset only exchanges destined for the local port's FID.  */
void fc_exch_mgr_reset(struct fc_lport *lport, u32 sid, u32 did)
/* Reset all EMs associated with a given local port. Release all sequences and exchanges. If sid is non-zero then reset only the exchanges sent from the local port's FID. If did is non-zero then reset only exchanges destined for the local port's FID.  */
void fc_exch_mgr_reset(struct fc_lport *lport, u32 sid, u32 did)
{
	struct fc_exch_mgr_anchor *ema;
	unsigned int cpu;
	list_for_each_entry(ema, &lport->ema_list, ema_list) {
		for_each_possible_cpu(cpu)
			fc_exch_pool_reset(lport,
					   per_cpu_ptr(ema->mp->pool, cpu),
					   sid, did);
	}
}