Lines Matching refs:bit_cfg
76 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_is_gpio_nowarn() local
78 return (bit_cfg & GPIO_BIT_CFG_PIN_SEL_MASK) == 0; in thunderx_gpio_is_gpio_nowarn()
135 u64 bit_cfg = txgpio->line_entries[line].fil_bits | GPIO_BIT_CFG_TX_OE; in thunderx_gpio_dir_out() local
145 bit_cfg |= GPIO_BIT_CFG_PIN_XOR; in thunderx_gpio_dir_out()
148 bit_cfg |= GPIO_BIT_CFG_TX_OD; in thunderx_gpio_dir_out()
150 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_dir_out()
159 u64 bit_cfg; in thunderx_gpio_get_direction() local
169 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_get_direction()
171 if (bit_cfg & GPIO_BIT_CFG_TX_OE) in thunderx_gpio_get_direction()
183 u64 bit_cfg; in thunderx_gpio_set_config() local
199 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_set_config()
236 bit_cfg &= ~GPIO_BIT_CFG_FIL_MASK; in thunderx_gpio_set_config()
237 bit_cfg |= txgpio->line_entries[line].fil_bits; in thunderx_gpio_set_config()
238 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_set_config()
251 (bit_cfg & GPIO_BIT_CFG_TX_OE)) in thunderx_gpio_set_config()
330 u64 bit_cfg; in thunderx_gpio_irq_set_type() local
334 bit_cfg = txline->fil_bits | GPIO_BIT_CFG_INT_EN; in thunderx_gpio_irq_set_type()
338 bit_cfg |= GPIO_BIT_CFG_INT_TYPE; in thunderx_gpio_irq_set_type()
345 bit_cfg |= GPIO_BIT_CFG_PIN_XOR; in thunderx_gpio_irq_set_type()
351 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(txline->line)); in thunderx_gpio_irq_set_type()
495 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(i)); in thunderx_gpio_probe() local
505 txgpio->line_entries[i].fil_bits = bit_cfg ? in thunderx_gpio_probe()
506 (bit_cfg & GPIO_BIT_CFG_FIL_MASK) : GLITCH_FILTER_400NS; in thunderx_gpio_probe()
508 if ((bit_cfg & GPIO_BIT_CFG_TX_OE) && (bit_cfg & GPIO_BIT_CFG_TX_OD)) in thunderx_gpio_probe()
510 if (bit_cfg & GPIO_BIT_CFG_PIN_XOR) in thunderx_gpio_probe()