FreeBSD/sys/dev/cxgb/common/cxgb_t3_hw.c
/**
 *	t3_port_intr_disable - disable port-specific interrupts
 *	@adapter: associated adapter
 *	@idx: index of port whose interrupts should be disabled
 *
 *	Disable port-specific (i.e., MAC and PHY) interrupts for the given
 *	adapter port.
 */
disable port-specific interrupts
@adapter: associated adapter
@idx: index of port whose interrupts should be disabled

Disable port-specific  interrupts for the given
adapter port.
disable port - specific interrupts @adapter : associated adapter @idx : index of port whose interrupts should be disabled Disable port - specific interrupts for the given adapter port .
void t3_port_intr_disable(adapter_t *adapter, int idx)
{
	struct port_info *pi = adap2pinfo(adapter, idx);
	t3_write_reg(adapter, A_XGM_INT_ENABLE + pi->mac.offset, 0);
	pi->phy.ops->intr_disable(&pi->phy);
}
void t3_port_intr_disable ( adapter_t * adapter , int idx ) { struct port_info * pi = adap2pinfo ( adapter , idx ) ; t3_write_reg ( adapter , A_XGM_INT_ENABLE + pi -> mac . offset , 0 ) ; pi -> phy . ops -> intr_disable ( & pi -> phy ) ; }
t3_port_intr_disable - disable port-specific interrupts
      @adapter: associated adapter
      @idx: index of port whose interrupts should be disabled
t3_port_intr_disable - disable port - specific interrupts @adapter : associated adapter @idx : index of port whose interrupts should be disabled