Home
last modified time | relevance | path

Searched refs:epio_pin (Results 1 – 1 of 1) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c328 static void bnx2x_get_epio(struct bnx2x *bp, u32 epio_pin, u32 *en) in bnx2x_get_epio() argument
333 if (epio_pin > 31) { in bnx2x_get_epio()
334 DP(NETIF_MSG_LINK, "Invalid EPIO pin %d to get\n", epio_pin); in bnx2x_get_epio()
338 epio_mask = 1 << epio_pin; in bnx2x_get_epio()
343 *en = (REG_RD(bp, MCP_REG_MCPR_GP_INPUTS) & epio_mask) >> epio_pin; in bnx2x_get_epio()
345 static void bnx2x_set_epio(struct bnx2x *bp, u32 epio_pin, u32 en) in bnx2x_set_epio() argument
350 if (epio_pin > 31) { in bnx2x_set_epio()
351 DP(NETIF_MSG_LINK, "Invalid EPIO pin %d to set\n", epio_pin); in bnx2x_set_epio()
354 DP(NETIF_MSG_LINK, "Setting EPIO pin %d to %d\n", epio_pin, en); in bnx2x_set_epio()
355 epio_mask = 1 << epio_pin; in bnx2x_set_epio()