• Home
  • Raw
  • Download

Lines Matching refs:pin_cfg

416 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val)  in bnx2x_set_cfg_pin()  argument
418 if (pin_cfg == PIN_CFG_NA) in bnx2x_set_cfg_pin()
420 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_set_cfg_pin()
421 bnx2x_set_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_set_cfg_pin()
423 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_set_cfg_pin()
424 u8 gpio_port = (pin_cfg - PIN_CFG_GPIO0_P0) >> 2; in bnx2x_set_cfg_pin()
429 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin() argument
431 if (pin_cfg == PIN_CFG_NA) in bnx2x_get_cfg_pin()
433 if (pin_cfg >= PIN_CFG_EPIO0) { in bnx2x_get_cfg_pin()
434 bnx2x_get_epio(bp, pin_cfg - PIN_CFG_EPIO0, val); in bnx2x_get_cfg_pin()
436 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_get_cfg_pin()
437 u8 gpio_port = (pin_cfg - PIN_CFG_GPIO0_P0) >> 2; in bnx2x_get_cfg_pin()
7990 u32 pin_cfg; in bnx2x_warpcore_power_module() local
7993 pin_cfg = (REG_RD(bp, params->shmem_base + in bnx2x_warpcore_power_module()
7999 if (pin_cfg == PIN_CFG_NA) in bnx2x_warpcore_power_module()
8002 power, pin_cfg); in bnx2x_warpcore_power_module()
8006 bnx2x_set_cfg_pin(bp, pin_cfg, power ^ 1); in bnx2x_warpcore_power_module()
8632 u32 pin_cfg; in bnx2x_set_e3_module_fault_led() local
8635 pin_cfg = (REG_RD(bp, params->shmem_base + in bnx2x_set_e3_module_fault_led()
8641 gpio_mode, pin_cfg); in bnx2x_set_e3_module_fault_led()
8642 bnx2x_set_cfg_pin(bp, pin_cfg, gpio_mode); in bnx2x_set_e3_module_fault_led()