Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/platform/x86/
Dbarco-p50-gpio.c122 static int p50_wait_ec(struct p50_gpio *p50, int mask, int expected) in p50_wait_ec() argument
127 val = inb(p50->base + P50_PORT_CMD) & mask; in p50_wait_ec()
133 dev_err(p50->gc.parent, "Timed out waiting for EC (0x%x)\n", val); in p50_wait_ec()
138 static int p50_read_mbox_reg(struct p50_gpio *p50, int reg) in p50_read_mbox_reg() argument
142 ret = p50_wait_ec(p50, P50_STATUS_IBF, 0); in p50_read_mbox_reg()
147 inb(p50->base + P50_PORT_DATA); in p50_read_mbox_reg()
150 outb(P50_CMD_READ | reg, p50->base + P50_PORT_CMD); in p50_read_mbox_reg()
152 ret = p50_wait_ec(p50, P50_STATUS_OBF, P50_STATUS_OBF); in p50_read_mbox_reg()
156 return inb(p50->base + P50_PORT_DATA); in p50_read_mbox_reg()
159 static int p50_write_mbox_reg(struct p50_gpio *p50, int reg, int val) in p50_write_mbox_reg() argument
[all …]
DMakefile95 obj-$(CONFIG_BARCO_P50_GPIO) += barco-p50-gpio.o
DKconfig777 will be called barco-p50-gpio.
/linux-6.12.1/
DMAINTAINERS3811 F: drivers/platform/x86/barco-p50-gpio.c