Lines Matching refs:pin_cfg

410 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val)  in bnx2x_set_cfg_pin()  argument
412 if (pin_cfg == PIN_CFG_NA) in bnx2x_set_cfg_pin()
414 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_set_cfg_pin()
415 bnx2x_set_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_set_cfg_pin()
417 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_set_cfg_pin()
418 u8 gpio_port = (pin_cfg - PIN_CFG_GPIO0_P0) >> 2; in bnx2x_set_cfg_pin()
423 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin() argument
425 if (pin_cfg == PIN_CFG_NA) in bnx2x_get_cfg_pin()
427 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_get_cfg_pin()
428 bnx2x_get_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_get_cfg_pin()
430 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_get_cfg_pin()
431 u8 gpio_port = (pin_cfg - PIN_CFG_GPIO0_P0) >> 2; in bnx2x_get_cfg_pin()
7918 u32 pin_cfg; in bnx2x_warpcore_power_module() local
7921 pin_cfg = (REG_RD(bp, params->shmem_base + in bnx2x_warpcore_power_module()
7927 if (pin_cfg == PIN_CFG_NA) in bnx2x_warpcore_power_module()
7930 power, pin_cfg); in bnx2x_warpcore_power_module()
7934 bnx2x_set_cfg_pin(bp, pin_cfg, power ^ 1); in bnx2x_warpcore_power_module()
8560 u32 pin_cfg; in bnx2x_set_e3_module_fault_led() local
8563 pin_cfg = (REG_RD(bp, params->shmem_base + in bnx2x_set_e3_module_fault_led()
8569 gpio_mode, pin_cfg); in bnx2x_set_e3_module_fault_led()
8570 bnx2x_set_cfg_pin(bp, pin_cfg, gpio_mode); in bnx2x_set_e3_module_fault_led()