Home
last modified time | relevance | path

Searched refs:num_colors (Results 1 – 18 of 18) sorted by relevance

/Linux-v6.1/drivers/leds/
Dled-class-multicolor.c21 for (i = 0; i < mcled_cdev->num_colors; i++) in led_mc_calc_color_components()
43 for (i = 0; i < mcled_cdev->num_colors; i++) { in multi_intensity_store()
59 for (i = 0; i < mcled_cdev->num_colors; i++) in multi_intensity_store()
78 for (i = 0; i < mcled_cdev->num_colors; i++) { in multi_intensity_show()
81 if (i < mcled_cdev->num_colors - 1) in multi_intensity_show()
100 for (i = 0; i < mcled_cdev->num_colors; i++) { in multi_index_show()
103 if (i < mcled_cdev->num_colors - 1) in multi_index_show()
128 if (mcled_cdev->num_colors <= 0) in led_classdev_multicolor_register_ext()
131 if (mcled_cdev->num_colors > LED_COLOR_ID_MAX) in led_classdev_multicolor_register_ext()
Dleds-lp55xx-common.c188 if (pdata->led_config[chan].num_colors > 1) { in lp55xx_init_led()
190 pdata->led_config[chan].num_colors, in lp55xx_init_led()
198 led->mc_cdev.num_colors = pdata->led_config[chan].num_colors; in lp55xx_init_led()
199 for (i = 0; i < led->mc_cdev.num_colors; i++) { in lp55xx_init_led()
224 if (pdata->led_config[chan].num_colors > 1) in lp55xx_init_led()
614 int num_colors = 0, ret; in lp55xx_parse_multi_led() local
618 num_colors); in lp55xx_parse_multi_led()
623 num_colors++; in lp55xx_parse_multi_led()
626 cfg[child_number].num_colors = num_colors; in lp55xx_parse_multi_led()
Dleds-lp50xx.c328 for (i = 0; i < led->mc_cdev.num_colors; i++) { in lp50xx_brightness_set()
449 int num_colors; in lp50xx_probe_dt() local
475 num_colors = 0; in lp50xx_probe_dt()
497 mc_led_info[num_colors].color_index = color_id; in lp50xx_probe_dt()
498 num_colors++; in lp50xx_probe_dt()
502 led->mc_cdev.num_colors = num_colors; in lp50xx_probe_dt()
Dleds-turris-omnia.c108 led->mc_cdev.num_colors = OMNIA_LED_NUM_CHANNELS; in omnia_led_register()
Dleds-lp5521.c359 for (i = 0; i < led->mc_cdev.num_colors; i++) { in lp5521_multicolor_brightness()
Dleds-lp5523.c802 for (i = 0; i < led->mc_cdev.num_colors; i++) { in lp5523_multicolor_brightness()
/Linux-v6.1/samples/bpf/
Dtracex3_user.c42 const int num_colors = ARRAY_SIZE(color);
97 int c = num_colors * cnt[key] / (max_cnt + 1); in print_hist()
159 printf(" %s", sym[num_colors - 1]); in main()
161 printf(" %s %s", color[num_colors - 1], nocolor); in main()
/Linux-v6.1/drivers/leds/rgb/
Dleds-pwm-multicolor.c44 for (i = 0; i < mc_cdev->num_colors; i++) { in led_pwm_mc_set()
76 pwmled = &priv->leds[priv->mc_cdev.num_colors]; in iterate_subleds()
91 subled[priv->mc_cdev.num_colors].color_index = color; in iterate_subleds()
92 priv->mc_cdev.num_colors++; in iterate_subleds()
Dleds-qcom-lpg.c1118 led->mcdev.num_colors = num_channels; in lpg_add_led()
/Linux-v6.1/arch/sparc/lib/
Dbitext.c35 if (t->num_colors) { in bit_map_string_get()
38 align = t->num_colors; in bit_map_string_get()
/Linux-v6.1/arch/sparc/include/asm/
Dbitext.h21 int num_colors; member
/Linux-v6.1/include/linux/platform_data/
Dleds-lp55xx.h31 int num_colors; member
/Linux-v6.1/include/linux/
Dled-class-multicolor.h22 unsigned int num_colors; member
/Linux-v6.1/drivers/gpu/drm/xlnx/
Dzynqmp_dp.c1117 unsigned int num_colors; in zynqmp_dp_set_format() local
1125 num_colors = 3; in zynqmp_dp_set_format()
1130 num_colors = 3; in zynqmp_dp_set_format()
1135 num_colors = 2; in zynqmp_dp_set_format()
1140 num_colors = 1; in zynqmp_dp_set_format()
1183 config->bpp = bpc * num_colors; in zynqmp_dp_set_format()
/Linux-v6.1/arch/sparc/mm/
Diommu.c123 iommu->usemap.num_colors = vac_cache_size >> PAGE_SHIFT; in sbus_iommu_init()
125 iommu->usemap.num_colors = 1; in sbus_iommu_init()
/Linux-v6.1/arch/arc/mm/
Dcache.c1171 int num_colors = dc->sz_k/dc->assoc/TO_KB(PAGE_SIZE); in arc_cache_init_master() local
1176 if (CACHE_COLORS_NUM != num_colors) in arc_cache_init_master()
/Linux-v6.1/drivers/leds/flash/
Dleds-mt6360.c114 for (i = 0; i < mccdev->num_colors; i++) { in mt6360_mc_brightness_set()
663 led->mc.num_colors = num_color; in mt6360_init_isnk_properties()
/Linux-v6.1/drivers/hid/
Dhid-playstation.c597 lightbar_mc_dev->num_colors = 3; in ps_lightbar_register()