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 return !(bit_cfg & GPIO_BIT_CFG_TX_OE); in thunderx_gpio_get_direction()
182 u64 bit_cfg; in thunderx_gpio_set_config() local
198 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_set_config()
235 bit_cfg &= ~GPIO_BIT_CFG_FIL_MASK; in thunderx_gpio_set_config()
236 bit_cfg |= txgpio->line_entries[line].fil_bits; in thunderx_gpio_set_config()
237 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_set_config()
250 (bit_cfg & GPIO_BIT_CFG_TX_OE)) in thunderx_gpio_set_config()
323 u64 bit_cfg; in thunderx_gpio_irq_set_type() local
327 bit_cfg = txline->fil_bits | GPIO_BIT_CFG_INT_EN; in thunderx_gpio_irq_set_type()
331 bit_cfg |= GPIO_BIT_CFG_INT_TYPE; in thunderx_gpio_irq_set_type()
338 bit_cfg |= GPIO_BIT_CFG_PIN_XOR; in thunderx_gpio_irq_set_type()
344 writeq(bit_cfg, txgpio->register_base + bit_cfg_reg(txline->line)); in thunderx_gpio_irq_set_type()
525 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(i)); in thunderx_gpio_probe() local
535 txgpio->line_entries[i].fil_bits = bit_cfg ? in thunderx_gpio_probe()
536 (bit_cfg & GPIO_BIT_CFG_FIL_MASK) : GLITCH_FILTER_400NS; in thunderx_gpio_probe()
538 if ((bit_cfg & GPIO_BIT_CFG_TX_OE) && (bit_cfg & GPIO_BIT_CFG_TX_OD)) in thunderx_gpio_probe()
540 if (bit_cfg & GPIO_BIT_CFG_PIN_XOR) in thunderx_gpio_probe()