Lines Matching refs:mask
430 static int port_get_raw(const struct device *dev, uint32_t mask, in port_get_raw() argument
444 while (mask != 0U) { in port_get_raw()
445 pin = find_lsb_set(mask) - 1; in port_get_raw()
451 mask &= ~BIT(pin); in port_get_raw()
470 static int port_set_raw(const struct device *dev, uint32_t mask, in port_set_raw() argument
476 while (mask != 0) { in port_set_raw()
477 pin = find_lsb_set(mask) - 1; in port_set_raw()
483 mask &= ~BIT(pin); in port_set_raw()
507 uint32_t mask, in gpio_intel_port_set_masked_raw() argument
512 port_get_raw(dev, mask, &port_val, true); in gpio_intel_port_set_masked_raw()
514 port_val = (port_val & ~mask) | (mask & value); in gpio_intel_port_set_masked_raw()
516 port_set_raw(dev, mask, port_val); in gpio_intel_port_set_masked_raw()
522 uint32_t mask) in gpio_intel_port_set_bits_raw() argument
524 return gpio_intel_port_set_masked_raw(dev, mask, mask); in gpio_intel_port_set_bits_raw()
528 uint32_t mask) in gpio_intel_port_clear_bits_raw() argument
530 return gpio_intel_port_set_masked_raw(dev, mask, 0); in gpio_intel_port_clear_bits_raw()
534 uint32_t mask) in gpio_intel_port_toggle_bits() argument
538 port_get_raw(dev, mask, &port_val, true); in gpio_intel_port_toggle_bits()
540 port_val ^= mask; in gpio_intel_port_toggle_bits()
542 port_set_raw(dev, mask, port_val); in gpio_intel_port_toggle_bits()