Lines Matching refs:bit_cfg
77 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_is_gpio_nowarn() local
79 return (bit_cfg & GPIO_BIT_CFG_PIN_SEL_MASK) == 0; in thunderx_gpio_is_gpio_nowarn()
136 u64 bit_cfg = txgpio->line_entries[line].fil_bits | GPIO_BIT_CFG_TX_OE; in thunderx_gpio_dir_out() local
146 bit_cfg |= GPIO_BIT_CFG_PIN_XOR; in thunderx_gpio_dir_out()
149 bit_cfg |= GPIO_BIT_CFG_TX_OD; in thunderx_gpio_dir_out()
151 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_dir_out()
160 u64 bit_cfg; in thunderx_gpio_get_direction() local
170 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_get_direction()
172 if (bit_cfg & GPIO_BIT_CFG_TX_OE) in thunderx_gpio_get_direction()
184 u64 bit_cfg; in thunderx_gpio_set_config() local
200 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_set_config()
237 bit_cfg &= ~GPIO_BIT_CFG_FIL_MASK; in thunderx_gpio_set_config()
238 bit_cfg |= txgpio->line_entries[line].fil_bits; in thunderx_gpio_set_config()
239 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_set_config()
252 (bit_cfg & GPIO_BIT_CFG_TX_OE)) in thunderx_gpio_set_config()
331 u64 bit_cfg; in thunderx_gpio_irq_set_type() local
335 bit_cfg = txline->fil_bits | GPIO_BIT_CFG_INT_EN; in thunderx_gpio_irq_set_type()
339 bit_cfg |= GPIO_BIT_CFG_INT_TYPE; in thunderx_gpio_irq_set_type()
346 bit_cfg |= GPIO_BIT_CFG_PIN_XOR; in thunderx_gpio_irq_set_type()
352 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(txline->line)); in thunderx_gpio_irq_set_type()
496 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(i)); in thunderx_gpio_probe() local
506 txgpio->line_entries[i].fil_bits = bit_cfg ? in thunderx_gpio_probe()
507 (bit_cfg & GPIO_BIT_CFG_FIL_MASK) : GLITCH_FILTER_400NS; in thunderx_gpio_probe()
509 if ((bit_cfg & GPIO_BIT_CFG_TX_OE) && (bit_cfg & GPIO_BIT_CFG_TX_OD)) in thunderx_gpio_probe()
511 if (bit_cfg & GPIO_BIT_CFG_PIN_XOR) in thunderx_gpio_probe()