Lines Matching refs:bit_cfg
78 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_is_gpio_nowarn() local
80 return (bit_cfg & GPIO_BIT_CFG_PIN_SEL_MASK) == 0; in thunderx_gpio_is_gpio_nowarn()
137 u64 bit_cfg = txgpio->line_entries[line].fil_bits | GPIO_BIT_CFG_TX_OE; in thunderx_gpio_dir_out() local
147 bit_cfg |= GPIO_BIT_CFG_PIN_XOR; in thunderx_gpio_dir_out()
150 bit_cfg |= GPIO_BIT_CFG_TX_OD; in thunderx_gpio_dir_out()
152 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_dir_out()
161 u64 bit_cfg; in thunderx_gpio_get_direction() local
171 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_get_direction()
173 if (bit_cfg & GPIO_BIT_CFG_TX_OE) in thunderx_gpio_get_direction()
185 u64 bit_cfg; in thunderx_gpio_set_config() local
201 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_set_config()
238 bit_cfg &= ~GPIO_BIT_CFG_FIL_MASK; in thunderx_gpio_set_config()
239 bit_cfg |= txgpio->line_entries[line].fil_bits; in thunderx_gpio_set_config()
240 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_set_config()
253 (bit_cfg & GPIO_BIT_CFG_TX_OE)) in thunderx_gpio_set_config()
332 u64 bit_cfg; in thunderx_gpio_irq_set_type() local
336 bit_cfg = txline->fil_bits | GPIO_BIT_CFG_INT_EN; in thunderx_gpio_irq_set_type()
340 bit_cfg |= GPIO_BIT_CFG_INT_TYPE; in thunderx_gpio_irq_set_type()
347 bit_cfg |= GPIO_BIT_CFG_PIN_XOR; in thunderx_gpio_irq_set_type()
353 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(txline->line)); in thunderx_gpio_irq_set_type()
494 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(i)); in thunderx_gpio_probe() local
504 txgpio->line_entries[i].fil_bits = bit_cfg ? in thunderx_gpio_probe()
505 (bit_cfg & GPIO_BIT_CFG_FIL_MASK) : GLITCH_FILTER_400NS; in thunderx_gpio_probe()
507 if ((bit_cfg & GPIO_BIT_CFG_TX_OE) && (bit_cfg & GPIO_BIT_CFG_TX_OD)) in thunderx_gpio_probe()
509 if (bit_cfg & GPIO_BIT_CFG_PIN_XOR) in thunderx_gpio_probe()