light             213 drivers/hid/hid-roccat-isku.c ISKU_BIN_ATTR_RW(light, LIGHT);
light              42 drivers/hid/hid-roccat-ryos.c ROCCAT_COMMON2_BIN_ATTRIBUTE_RW(light, 0x0d, 0x10);
light             121 drivers/media/i2c/m5mols/m5mols.h 	u8 light;
light             175 drivers/media/i2c/m5mols/m5mols_controls.c 		ret = m5mols_write(sd, CAPP_LIGHT_CTRL, scenemode.light);
light             313 drivers/platform/x86/thinkpad_acpi.c 	u32 light:1;
light            5551 drivers/platform/x86/thinkpad_acpi.c 	if (tp_features.light) {
light            5600 drivers/platform/x86/thinkpad_acpi.c 	tp_features.light = (cmos_handle || lght_handle) && !ledb_handle;
light            5602 drivers/platform/x86/thinkpad_acpi.c 	if (tp_features.light)
light            5609 drivers/platform/x86/thinkpad_acpi.c 		str_supported(tp_features.light),
light            5612 drivers/platform/x86/thinkpad_acpi.c 	if (!tp_features.light)
light            5619 drivers/platform/x86/thinkpad_acpi.c 		tp_features.light = 0;
light            5637 drivers/platform/x86/thinkpad_acpi.c 	if (!tp_features.light) {
light            5658 drivers/platform/x86/thinkpad_acpi.c 	if (!tp_features.light)
light            10386 drivers/platform/x86/thinkpad_acpi.c TPACPI_PARAM(light);
light              39 drivers/staging/greybus/light.c 	struct gb_light			*light;
light              73 drivers/staging/greybus/light.c 	return channel->light->glights->connection;
light              76 drivers/staging/greybus/light.c static struct gb_connection *get_conn_from_light(struct gb_light *light)
light              78 drivers/staging/greybus/light.c 	return light->glights->connection;
light             100 drivers/staging/greybus/light.c static struct gb_channel *get_channel_from_mode(struct gb_light *light,
light             106 drivers/staging/greybus/light.c 	for (i = 0; i < light->channels_count; i++) {
light             107 drivers/staging/greybus/light.c 		channel = &light->channels[i];
light             129 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             147 drivers/staging/greybus/light.c 		channel = get_channel_from_mode(channel->light,
light             332 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             358 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             384 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             473 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             531 drivers/staging/greybus/light.c static int gb_lights_light_v4l2_register(struct gb_light *light)
light             533 drivers/staging/greybus/light.c 	struct gb_connection *connection = get_conn_from_light(light);
light             540 drivers/staging/greybus/light.c 	channel_torch = get_channel_from_mode(light, GB_CHANNEL_MODE_TORCH);
light             545 drivers/staging/greybus/light.c 	channel_ind = get_channel_from_mode(light, GB_CHANNEL_MODE_INDICATOR);
light             552 drivers/staging/greybus/light.c 	channel_flash = get_channel_from_mode(light, GB_CHANNEL_MODE_FLASH);
light             557 drivers/staging/greybus/light.c 	snprintf(sd_cfg.dev_name, sizeof(sd_cfg.dev_name), "%s", light->name);
light             559 drivers/staging/greybus/light.c 		 "%s indicator", light->name);
light             568 drivers/staging/greybus/light.c 	light->v4l2_flash = v4l2_flash_init(dev, NULL, fled, &v4l2_flash_ops,
light             570 drivers/staging/greybus/light.c 	if (IS_ERR(light->v4l2_flash))
light             571 drivers/staging/greybus/light.c 		return PTR_ERR(light->v4l2_flash);
light             574 drivers/staging/greybus/light.c 		light->v4l2_flash_ind =
light             576 drivers/staging/greybus/light.c 		if (IS_ERR(light->v4l2_flash_ind)) {
light             577 drivers/staging/greybus/light.c 			v4l2_flash_release(light->v4l2_flash);
light             578 drivers/staging/greybus/light.c 			return PTR_ERR(light->v4l2_flash_ind);
light             585 drivers/staging/greybus/light.c static void gb_lights_light_v4l2_unregister(struct gb_light *light)
light             587 drivers/staging/greybus/light.c 	v4l2_flash_release(light->v4l2_flash_ind);
light             588 drivers/staging/greybus/light.c 	v4l2_flash_release(light->v4l2_flash);
light             591 drivers/staging/greybus/light.c static int gb_lights_light_v4l2_register(struct gb_light *light)
light             593 drivers/staging/greybus/light.c 	struct gb_connection *connection = get_conn_from_light(light);
light             599 drivers/staging/greybus/light.c static void gb_lights_light_v4l2_unregister(struct gb_light *light)
light             647 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             688 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             720 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             798 drivers/staging/greybus/light.c 	channel_torch = get_channel_from_mode(channel->light,
light             833 drivers/staging/greybus/light.c 	req.light_id = channel->light->id;
light             944 drivers/staging/greybus/light.c static int gb_lights_channel_config(struct gb_light *light,
light             949 drivers/staging/greybus/light.c 	struct gb_connection *connection = get_conn_from_light(light);
light             954 drivers/staging/greybus/light.c 	req.light_id = light->id;
light             962 drivers/staging/greybus/light.c 	channel->light = light;
light             975 drivers/staging/greybus/light.c 	name = kasprintf(GFP_KERNEL, "%s:%s:%s", light->name,
light             998 drivers/staging/greybus/light.c 	light->has_flash = true;
light            1005 drivers/staging/greybus/light.c 	struct gb_light *light = &glights->lights[id];
light            1011 drivers/staging/greybus/light.c 	light->glights = glights;
light            1012 drivers/staging/greybus/light.c 	light->id = id;
light            1027 drivers/staging/greybus/light.c 	light->channels_count = conf.channel_count;
light            1028 drivers/staging/greybus/light.c 	light->name = kstrndup(conf.name, NAMES_MAX, GFP_KERNEL);
light            1030 drivers/staging/greybus/light.c 	light->channels = kcalloc(light->channels_count,
light            1032 drivers/staging/greybus/light.c 	if (!light->channels)
light            1036 drivers/staging/greybus/light.c 	for (i = 0; i < light->channels_count; i++) {
light            1037 drivers/staging/greybus/light.c 		light->channels[i].id = i;
light            1038 drivers/staging/greybus/light.c 		ret = gb_lights_channel_config(light, &light->channels[i]);
light            1046 drivers/staging/greybus/light.c static int gb_lights_light_register(struct gb_light *light)
light            1056 drivers/staging/greybus/light.c 	for (i = 0; i < light->channels_count; i++) {
light            1057 drivers/staging/greybus/light.c 		ret = gb_lights_channel_register(&light->channels[i]);
light            1061 drivers/staging/greybus/light.c 		mutex_init(&light->channels[i].lock);
light            1064 drivers/staging/greybus/light.c 	light->ready = true;
light            1066 drivers/staging/greybus/light.c 	if (light->has_flash) {
light            1067 drivers/staging/greybus/light.c 		ret = gb_lights_light_v4l2_register(light);
light            1069 drivers/staging/greybus/light.c 			light->has_flash = false;
light            1096 drivers/staging/greybus/light.c static void gb_lights_light_release(struct gb_light *light)
light            1100 drivers/staging/greybus/light.c 	light->ready = false;
light            1102 drivers/staging/greybus/light.c 	if (light->has_flash)
light            1103 drivers/staging/greybus/light.c 		gb_lights_light_v4l2_unregister(light);
light            1104 drivers/staging/greybus/light.c 	light->has_flash = false;
light            1106 drivers/staging/greybus/light.c 	for (i = 0; i < light->channels_count; i++)
light            1107 drivers/staging/greybus/light.c 		gb_lights_channel_release(&light->channels[i]);
light            1108 drivers/staging/greybus/light.c 	light->channels_count = 0;
light            1110 drivers/staging/greybus/light.c 	kfree(light->channels);
light            1111 drivers/staging/greybus/light.c 	light->channels = NULL;
light            1112 drivers/staging/greybus/light.c 	kfree(light->name);
light            1113 drivers/staging/greybus/light.c 	light->name = NULL;
light            1213 drivers/staging/greybus/light.c 	struct gb_light *light;
light            1246 drivers/staging/greybus/light.c 		light = &glights->lights[light_id];
light            1249 drivers/staging/greybus/light.c 		gb_lights_light_release(light);
light            1252 drivers/staging/greybus/light.c 			ret = gb_lights_light_register(light);
light            1254 drivers/staging/greybus/light.c 			gb_lights_light_release(light);