Lines Matching refs:pin_cfg
414 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val) in bnx2x_set_cfg_pin() argument
416 if (pin_cfg == PIN_CFG_NA) in bnx2x_set_cfg_pin()
418 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_set_cfg_pin()
419 bnx2x_set_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_set_cfg_pin()
421 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_set_cfg_pin()
422 u8 gpio_port = (pin_cfg - PIN_CFG_GPIO0_P0) >> 2; in bnx2x_set_cfg_pin()
427 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin() argument
429 if (pin_cfg == PIN_CFG_NA) in bnx2x_get_cfg_pin()
431 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_get_cfg_pin()
432 bnx2x_get_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_get_cfg_pin()
434 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_get_cfg_pin()
435 u8 gpio_port = (pin_cfg - PIN_CFG_GPIO0_P0) >> 2; in bnx2x_get_cfg_pin()
7915 u32 pin_cfg; in bnx2x_warpcore_power_module() local
7918 pin_cfg = (REG_RD(bp, params->shmem_base + in bnx2x_warpcore_power_module()
7924 if (pin_cfg == PIN_CFG_NA) in bnx2x_warpcore_power_module()
7927 power, pin_cfg); in bnx2x_warpcore_power_module()
7931 bnx2x_set_cfg_pin(bp, pin_cfg, power ^ 1); in bnx2x_warpcore_power_module()
8557 u32 pin_cfg; in bnx2x_set_e3_module_fault_led() local
8560 pin_cfg = (REG_RD(bp, params->shmem_base + in bnx2x_set_e3_module_fault_led()
8566 gpio_mode, pin_cfg); in bnx2x_set_e3_module_fault_led()
8567 bnx2x_set_cfg_pin(bp, pin_cfg, gpio_mode); in bnx2x_set_e3_module_fault_led()