Home
last modified time | relevance | path

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

/Zephyr-latest/soc/intel/alder_lake/
Dsoc_gpio.h35 #define GPIO_PAD_OWNERSHIP(raw_pin, pin_offset) \ argument
38 ((((pin_offset / 8) + 1) + (raw_pin / 8)) * 0x4) : \
40 (((pin_offset / 8) + (raw_pin / 8)) * 0x4); \
42 #define GPIO_OWNERSHIP_BIT(raw_pin) ((raw_pin % 8) * 4) argument
/Zephyr-latest/soc/intel/elkhart_lake/
Dsoc_gpio.h35 #define GPIO_PAD_OWNERSHIP(raw_pin, pin_offset) \ argument
38 ((((pin_offset / 8) + 1) + (raw_pin / 8)) * 0x4) : \
40 (((pin_offset / 8) + (raw_pin / 8)) * 0x4); \
42 #define GPIO_OWNERSHIP_BIT(raw_pin) ((raw_pin % 8) * 4) argument
/Zephyr-latest/soc/intel/raptor_lake/
Dsoc_gpio.h42 #define GPIO_PAD_OWNERSHIP(raw_pin, pin_offset) \ argument
45 ((((pin_offset / 8) + 1) + (raw_pin / 8)) * 0x4) : \
47 (((pin_offset / 8) + (raw_pin / 8)) * 0x4); \
49 #define GPIO_OWNERSHIP_BIT(raw_pin) ((raw_pin % 8) * 4) argument
/Zephyr-latest/drivers/gpio/
Dgpio_intel.c186 static bool check_perm(const struct device *dev, uint32_t raw_pin) in check_perm() argument
195 offset = GPIO_PAD_OWNERSHIP_GET(data, raw_pin, pin_offset); in check_perm()
200 offset = GPIO_OWNERSHIP_BIT(raw_pin); in check_perm()
208 offset = data->pad_base + (raw_pin << 4); in check_perm()
259 uint32_t raw_pin, reg, cfg0, cfg1; in gpio_intel_config() local
268 raw_pin = GPIO_RAW_PIN(pin, PIN_OFFSET_GET(dev)); in gpio_intel_config()
270 if (!check_perm(dev, raw_pin)) { in gpio_intel_config()
275 reg = regs(dev) + data->pad_base + (raw_pin * PIN_OFFSET); in gpio_intel_config()
334 uint32_t raw_pin, cfg0, cfg1; in gpio_intel_pin_interrupt_configure() local
344 raw_pin = GPIO_RAW_PIN(pin, PIN_OFFSET_GET(dev)); in gpio_intel_pin_interrupt_configure()
[all …]
/Zephyr-latest/soc/intel/apollo_lake/
Dsoc_gpio.h298 #define GPIO_PAD_OWNERSHIP(raw_pin, pin_offset) \ argument
299 REG_PAD_OWNER_BASE + ((raw_pin >> 3) << 2)
301 #define GPIO_OWNERSHIP_BIT(raw_pin) (raw_pin % 8) argument