Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpio/
H A Dgpio-loongson-64bit.c49 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_commit_direction()
56 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin); in loongson_commit_level()
90 bval = readb(lgpio->reg_base + lgpio->chip_data->in_offset + pin); in loongson_gpio_get()
101 bval = readb(lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_gpio_get_direction()
135 lgpio->reg_base + lgpio->chip_data->in_offset, in loongson_gpio_init()
136 lgpio->reg_base + lgpio->chip_data->out_offset, in loongson_gpio_init()
138 lgpio->reg_base + lgpio->chip_data->conf_offset, in loongson_gpio_init()
158 lgpio->chip.label = lgpio->chip_data->label; in loongson_gpio_init()
161 return devm_gpiochip_add_data(dev, &lgpio->chip, lgpio); in loongson_gpio_init()
171 lgpio = devm_kzalloc(dev, sizeof(*lgpio), GFP_KERNEL); in loongson_gpio_probe()
[all …]