Searched refs:pin_offset (Results 1 – 7 of 7) sorted by relevance
/Zephyr-latest/soc/intel/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-latest/soc/intel/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-latest/soc/intel/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-latest/drivers/gpio/ |
D | gpio_ambiq.c | 214 uint32_t pin_offset = dev_cfg->offset; in ambiq_gpio_port_get_direction() local 219 am_hal_gpio_pinconfig_get(i + pin_offset, &pincfg); in ambiq_gpio_port_get_direction() 230 am_hal_gpio_pinconfig_get(i + pin_offset, &pincfg); in ambiq_gpio_port_get_direction() 240 uint32_t pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_get_direction() local 245 am_hal_gpio_pinconfig_get(i + pin_offset, &pincfg); in ambiq_gpio_port_get_direction() 256 am_hal_gpio_pinconfig_get(i + pin_offset, &pincfg); in ambiq_gpio_port_get_direction() 273 uint32_t pin_offset; in ambiq_gpio_port_get_raw() local 276 pin_offset = dev_cfg->offset; in ambiq_gpio_port_get_raw() 278 pin_offset = dev_cfg->offset >> 2; in ambiq_gpio_port_get_raw() 280 *value = (*AM_HAL_GPIO_RDn(pin_offset)) | (*AM_HAL_GPIO_WTn(pin_offset)); in ambiq_gpio_port_get_raw() [all …]
|
D | gpio_intel.c | 102 uint8_t pin_offset; member 152 #define PIN_OFFSET_GET(dev) ((const struct gpio_intel_config *)(dev)->config)->pin_offset 189 uint32_t offset, val, pin_offset; in check_perm() local 191 pin_offset = PIN_OFFSET_GET(dev); in check_perm() 195 offset = GPIO_PAD_OWNERSHIP_GET(data, raw_pin, pin_offset); in check_perm() 688 GPIO_MMIO_ROM_INIT(n).pin_offset = DT_INST_PROP(n, pin_offset), \
|
/Zephyr-latest/soc/sensry/ganymed/sy1xx/common/ |
D | pad_ctrl.h | 9 #define SY1XX_PAD_CONFIG(pin_offset, SMT, SLEW, PULLUP, PULLDOWN, DRV, PMOD, DIR) \ argument 12 << pin_offset)
|
/Zephyr-latest/soc/intel/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)
|