Lines Matching refs:sm
20 uint32_t sm; member
47 int sm; in ws2812_led_strip_sm_init() local
51 sm = pio_claim_unused_sm(pio, false); in ws2812_led_strip_sm_init()
52 if (sm < 0) { in ws2812_led_strip_sm_init()
61 pio_sm_set_consecutive_pindirs(pio, sm, config->gpio_pin, 1, true); in ws2812_led_strip_sm_init()
62 pio_sm_init(pio, sm, -1, &sm_config); in ws2812_led_strip_sm_init()
63 pio_sm_set_enabled(pio, sm, true); in ws2812_led_strip_sm_init()
65 return sm; in ws2812_led_strip_sm_init()
104 pio_sm_put_blocking(pio, data->sm, color << (config->num_colors == 4 ? 0 : 8)); in ws2812_led_strip_update_rgb()
132 int sm; in ws2812_led_strip_init() local
154 sm = ws2812_led_strip_sm_init(dev); in ws2812_led_strip_init()
155 if (sm < 0) { in ws2812_led_strip_init()
156 return sm; in ws2812_led_strip_init()
159 data->sm = sm; in ws2812_led_strip_init()