MCPcopy Create free account
hub / github.com/F-Stack/f-stack / t4_intr_disable

Function t4_intr_disable

dpdk/drivers/net/cxgbe/base/t4_hw.c:2898–2906  ·  view source on GitHub ↗

* t4_intr_disable - disable interrupts * @adapter: the adapter whose interrupts should be disabled * * Disable interrupts. We only disable the top-level interrupt * concentrators. The caller must be a PCI function managing global * interrupts. */

Source from the content-addressed store, hash-verified

2896 * interrupts.
2897 */
2898void t4_intr_disable(struct adapter *adapter)
2899{
2900 u32 whoami = t4_read_reg(adapter, A_PL_WHOAMI);
2901 u32 pf = CHELSIO_CHIP_VERSION(adapter->params.chip) <= CHELSIO_T5 ?
2902 G_SOURCEPF(whoami) : G_T6_SOURCEPF(whoami);
2903
2904 t4_write_reg(adapter, MYPF_REG(A_PL_PF_INT_ENABLE), 0);
2905 t4_set_reg_field(adapter, A_PL_INT_MAP0, 1 << pf, 0);
2906}
2907
2908/**
2909 * t4_get_port_type_description - return Port Type string description

Callers 1

cxgbe_closeFunction · 0.85

Calls 3

t4_read_regFunction · 0.85
t4_write_regFunction · 0.85
t4_set_reg_fieldFunction · 0.85

Tested by

no test coverage detected