Searched refs:pin_offset (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.6.0/soc/x86/alder_lake/ |
D | soc_gpio.h | 35 #define GPIO_PAD_OWNERSHIP(raw_pin, pin_offset) \ argument 36 (pin_offset % 8) ? \ 38 ((((pin_offset / 8) + 1) + (raw_pin / 8)) * 0x4) : \ 40 (((pin_offset / 8) + (raw_pin / 8)) * 0x4); \ 44 #define GPIO_RAW_PIN(pin, pin_offset) pin argument
|
/Zephyr-Core-3.6.0/soc/x86/elkhart_lake/ |
D | soc_gpio.h | 35 #define GPIO_PAD_OWNERSHIP(raw_pin, pin_offset) \ argument 36 (pin_offset % 8) ? \ 38 ((((pin_offset / 8) + 1) + (raw_pin / 8)) * 0x4) : \ 40 (((pin_offset / 8) + (raw_pin / 8)) * 0x4); \ 44 #define GPIO_RAW_PIN(pin, pin_offset) pin argument
|
/Zephyr-Core-3.6.0/soc/x86/raptor_lake/ |
D | soc_gpio.h | 42 #define GPIO_PAD_OWNERSHIP(raw_pin, pin_offset) \ argument 43 (pin_offset % 8) ? \ 45 ((((pin_offset / 8) + 1) + (raw_pin / 8)) * 0x4) : \ 47 (((pin_offset / 8) + (raw_pin / 8)) * 0x4); \ 51 #define GPIO_RAW_PIN(pin, pin_offset) pin argument
|
/Zephyr-Core-3.6.0/drivers/gpio/ |
D | gpio_ambiq.c | 130 uint32_t pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_get_direction() local 135 am_hal_gpio_pinconfig_get(i + pin_offset, &pincfg); in ambiq_gpio_port_get_direction() 146 am_hal_gpio_pinconfig_get(i + pin_offset, &pincfg); in ambiq_gpio_port_get_direction() 173 uint32_t pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_set_masked_raw() local 177 am_hal_gpio_state_write(i + pin_offset, ((value >> i) & 1)); in ambiq_gpio_port_set_masked_raw() 187 uint32_t pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_set_bits_raw() local 191 am_hal_gpio_state_write(i + pin_offset, AM_HAL_GPIO_OUTPUT_SET); in ambiq_gpio_port_set_bits_raw() 201 uint32_t pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_clear_bits_raw() local 205 am_hal_gpio_state_write(i + pin_offset, AM_HAL_GPIO_OUTPUT_CLEAR); in ambiq_gpio_port_clear_bits_raw() 215 uint32_t pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_toggle_bits() local [all …]
|
D | gpio_intel.c | 102 uint8_t pin_offset; member 142 uint32_t offset, val, pin_offset; in check_perm() local 144 pin_offset = cfg->pin_offset; in check_perm() 148 offset = GPIO_PAD_OWNERSHIP(raw_pin, pin_offset); in check_perm() 228 raw_pin = GPIO_RAW_PIN(pin, cfg->pin_offset); in gpio_intel_config() 305 raw_pin = GPIO_RAW_PIN(pin, cfg->pin_offset); in gpio_intel_pin_interrupt_configure() 413 raw_pin = GPIO_RAW_PIN(pin, cfg->pin_offset); in port_get_raw() 446 raw_pin = GPIO_RAW_PIN(pin, cfg->pin_offset); in port_set_raw() 585 .pin_offset = DT_INST_PROP(n, pin_offset), \
|
/Zephyr-Core-3.6.0/soc/x86/apollo_lake/ |
D | soc_gpio.h | 298 #define GPIO_PAD_OWNERSHIP(raw_pin, pin_offset) \ argument 303 #define GPIO_RAW_PIN(pin, pin_offset) (pin_offset + pin) argument 306 ((cfg->pin_offset >> 5) << 2)
|