Lines Matching refs:mmap

133 	struct regmap *mmap;  member
222 regmap_update_bits(priv->mmap, reg, GENMASK(high, low), val); in sso_led_freq_set()
229 regmap_update_bits(priv->mmap, reg, GENMASK(high, low), val); in sso_led_freq_set()
245 regmap_write(priv->mmap, DUTY_CYCLE(desc->pin), brightness); in sso_led_brightness_set()
255 regmap_update_bits(priv->mmap, SSO_CON2, BIT(desc->pin), 0); in sso_led_brightness_set()
258 regmap_update_bits(priv->mmap, SSO_CON2, BIT(desc->pin), in sso_led_brightness_set()
316 regmap_update_bits(priv->mmap, SSO_CON2, BIT(led->desc.pin), in sso_led_blink_set()
332 regmap_update_bits(priv->mmap, SSO_CON2, BIT(desc->pin), in sso_led_hw_cfg()
337 regmap_update_bits(priv->mmap, SSO_CON3, BIT(desc->pin), in sso_led_hw_cfg()
341 regmap_write(priv->mmap, DUTY_CYCLE(desc->pin), desc->brightness); in sso_led_hw_cfg()
411 regmap_write(priv->mmap, DUTY_CYCLE(offset), 0xFF); in sso_gpio_request()
421 regmap_write(priv->mmap, DUTY_CYCLE(offset), 0x0); in sso_gpio_free()
435 regmap_update_bits(priv->mmap, SSO_CPU, BIT(offset), bit << offset); in sso_gpio_dir_out()
437 regmap_update_bits(priv->mmap, SSO_CON0, SSO_CON0_SWU, in sso_gpio_dir_out()
448 regmap_read(priv->mmap, SSO_CPU, &reg_val); in sso_gpio_get()
457 regmap_update_bits(priv->mmap, SSO_CPU, BIT(offset), value << offset); in sso_gpio_set()
459 regmap_update_bits(priv->mmap, SSO_CON0, SSO_CON0_SWU, in sso_gpio_set()
512 regmap_update_bits(priv->mmap, SSO_CON1, SSO_CON1_FCDSC, in sso_register_shift_clk()
528 regmap_update_bits(priv->mmap, SSO_CON0, SSO_CON0_BLINK_R, 0); in sso_gpio_freq_set()
529 regmap_update_bits(priv->mmap, SSO_CON1, SSO_CON1_US, in sso_gpio_freq_set()
532 regmap_update_bits(priv->mmap, SSO_CON0, SSO_CON0_BLINK_R, in sso_gpio_freq_set()
534 regmap_update_bits(priv->mmap, SSO_CON1, SSO_CON1_US, in sso_gpio_freq_set()
536 regmap_update_bits(priv->mmap, SSO_CON1, SSO_CON1_FPID, in sso_gpio_freq_set()
539 regmap_update_bits(priv->mmap, SSO_CON0, SSO_CON0_BLINK_R, in sso_gpio_freq_set()
541 regmap_update_bits(priv->mmap, SSO_CON1, SSO_CON1_US, in sso_gpio_freq_set()
543 regmap_update_bits(priv->mmap, SSO_CON1, SSO_CON1_GPTD, in sso_gpio_freq_set()
557 err = regmap_write(priv->mmap, DUTY_CYCLE(i), 0); in sso_gpio_hw_init()
566 err = regmap_update_bits(priv->mmap, SSO_CON1, BIT(i - 1), in sso_gpio_hw_init()
573 err = regmap_write(priv->mmap, SSO_CON3, 0); in sso_gpio_hw_init()
578 err = regmap_write(priv->mmap, SSO_CON2, 0); in sso_gpio_hw_init()
583 err = regmap_write(priv->mmap, SSO_CPU, 0); in sso_gpio_hw_init()
588 err = regmap_update_bits(priv->mmap, SSO_CON0, SSO_CON0_RZFL, in sso_gpio_hw_init()
611 regmap_update_bits(priv->mmap, SSO_CON3, BIT(led->desc.pin), 0); in sso_led_shutdown()
810 priv->mmap = syscon_node_to_regmap(dev->of_node); in intel_sso_led_probe()
812 priv->mmap = syscon_node_to_regmap(dev->of_node); in intel_sso_led_probe()
813 if (IS_ERR(priv->mmap)) { in intel_sso_led_probe()
815 return PTR_ERR(priv->mmap); in intel_sso_led_probe()
820 regmap_exit(priv->mmap); in intel_sso_led_probe()
833 regmap_exit(priv->mmap); in intel_sso_led_probe()
853 regmap_exit(priv->mmap); in intel_sso_led_remove()