Home
last modified time | relevance | path

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

/titanic_41/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_hw_access.c519 u32_t gpio_shift = 0; in lm_gpio_write() local
548 gpio_shift = pin_num + in lm_gpio_write()
551 gpio_mask = (1 << gpio_shift); in lm_gpio_write()
561 DbgMessage(NULL, WARN, "Set GPIO %d (shift %d) -> output low\n", pin_num, gpio_shift); in lm_gpio_write()
568 DbgMessage(NULL, WARN, "Set GPIO %d (shift %d) -> output high\n", pin_num, gpio_shift); in lm_gpio_write()
575 DbgMessage(NULL, WARN, "Set GPIO %d (shift %d) -> input\n", pin_num, gpio_shift); in lm_gpio_write()
669 u32_t gpio_shift ; in lm_gpio_int_write() local
678 gpio_shift = pin_num + (gpio_port ? MISC_REGISTERS_GPIO_PORT_SHIFT : 0); in lm_gpio_int_write()
679 gpio_mask = (1 << gpio_shift); in lm_gpio_int_write()
697 pin_num, gpio_shift); in lm_gpio_int_write()
[all …]
/titanic_41/usr/src/uts/common/io/arn/
H A Darn_hw.c3760 uint32_t gpio_shift, tmp; in ath9k_hw_gpio_cfg_output_mux() local
3769 gpio_shift = (gpio % 6) * 5; in ath9k_hw_gpio_cfg_output_mux()
3773 REG_RMW(ah, addr, (type << gpio_shift), in ath9k_hw_gpio_cfg_output_mux()
3774 (0x1f << gpio_shift)); in ath9k_hw_gpio_cfg_output_mux()
3778 tmp &= ~(0x1f << gpio_shift); in ath9k_hw_gpio_cfg_output_mux()
3779 tmp |= (type << gpio_shift); in ath9k_hw_gpio_cfg_output_mux()
3787 uint32_t gpio_shift; in ath9k_hw_cfg_gpio_input() local
3791 gpio_shift = gpio << 1; in ath9k_hw_cfg_gpio_input()
3795 (AR_GPIO_OE_OUT_DRV_NO << gpio_shift), in ath9k_hw_cfg_gpio_input()
3796 (AR_GPIO_OE_OUT_DRV << gpio_shift)); in ath9k_hw_cfg_gpio_input()
[all …]