Home
last modified time | relevance | path

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

/Linux-v5.4/arch/sh/drivers/pci/
Dops-sh5.c29 *val = (u8)SH5PCI_READ_BYTE(PDR + (where & 3)); in sh5pci_read()
32 *val = (u16)SH5PCI_READ_SHORT(PDR + (where & 2)); in sh5pci_read()
35 *val = SH5PCI_READ(PDR); in sh5pci_read()
49 SH5PCI_WRITE_BYTE(PDR + (where & 3), (u8)val); in sh5pci_write()
52 SH5PCI_WRITE_SHORT(PDR + (where & 2), (u16)val); in sh5pci_write()
55 SH5PCI_WRITE(PDR, val); in sh5pci_write()
/Linux-v5.4/drivers/gpio/
Dgpio-mb86s7x.c30 #define PDR(x) (0x0 + x / 8 * 4) macro
101 val = readl(gchip->base + PDR(gpio)); in mb86s70_gpio_direction_output()
106 writel(val, gchip->base + PDR(gpio)); in mb86s70_gpio_direction_output()
121 return !!(readl(gchip->base + PDR(gpio)) & OFFSET(gpio)); in mb86s70_gpio_get()
132 val = readl(gchip->base + PDR(gpio)); in mb86s70_gpio_set()
137 writel(val, gchip->base + PDR(gpio)); in mb86s70_gpio_set()