/linux-master/drivers/leds/ |
H A D | leds-lp5521.c | 111 static void lp5521_set_led_current(struct lp55xx_led *led, u8 led_current) argument 113 led->led_current = led_current; 114 lp55xx_write(led->chip, LP5521_REG_LED_CURRENT_BASE + led->chan_nr, 353 static int lp5521_multicolor_brightness(struct lp55xx_led *led) argument 355 struct lp55xx_chip *chip = led->chip; 360 for (i = 0; i < led->mc_cdev.num_colors; i++) { 363 led->mc_cdev.subled_info[i].channel, 364 led->mc_cdev.subled_info[i].brightness); 372 static int lp5521_led_brightness(struct lp55xx_led *led) argument 389 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); local 411 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); local 443 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); local 465 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); local 525 struct lp55xx_led *led; local 585 struct lp55xx_led *led = i2c_get_clientdata(client); local [all...] |
H A D | leds-acer-a500.c | 40 struct a500_led *led = container_of(led_cdev, struct a500_led, cdev); local 45 control_seq[0] = led->enable_seq[0]; 55 if (led->other->cdev.brightness) 59 control_seq[1] = led->other->enable_seq[0]; 62 return regmap_multi_reg_write(led->rmap, control_seq, num_regs);
|
H A D | leds-lp5562.c | 114 static void lp5562_set_led_current(struct lp55xx_led *led, u8 led_current) argument 123 led->led_current = led_current; 124 lp55xx_write(led->chip, addr[led->chan_nr], led_current); 315 static int lp5562_led_brightness(struct lp55xx_led *led) argument 317 struct lp55xx_chip *chip = led->chip; 327 ret = lp55xx_write(chip, addr[led->chan_nr], led->brightness); 409 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); local 410 struct lp55xx_chip *chip = led 437 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev)); local 518 struct lp55xx_led *led; local 577 struct lp55xx_led *led = i2c_get_clientdata(client); local [all...] |
H A D | leds-gpio.c | 165 struct gpio_led led = {}; local 172 led.gpiod = devm_fwnode_gpiod_get(dev, child, NULL, GPIOD_ASIS, 174 if (IS_ERR(led.gpiod)) { 175 dev_err_probe(dev, PTR_ERR(led.gpiod), "Failed to get GPIO '%pfw'\n", 178 return ERR_CAST(led.gpiod); 181 led_dat->gpiod = led.gpiod; 183 led.default_state = led_init_default_state_get(child); 186 led.retain_state_suspended = 1; 188 led.retain_state_shutdown = 1; 190 led 309 struct gpio_led_data *led = &priv->leds[i]; local [all...] |
H A D | led-class.c | 285 static struct led_classdev *__devm_led_get(struct device *dev, struct led_classdev *led) argument 291 led_put(led); 295 *dr = led; 298 return led; 315 struct led_classdev *led; local 320 led = of_led_get(dev->of_node, index); 321 if (IS_ERR(led)) 322 return led; 324 return __devm_led_get(dev, led); 373 struct led_classdev *led; local 425 struct led_classdev *led; local [all...] |
H A D | leds-sun50i-a100.c | 16 #include <linux/led-class-multicolor.h> 220 struct sun50i_a100_ledc_led *led = to_ledc_led(mc_cdev); local 227 priv->buffer[led->addr] = led->subled_info[0].brightness << 16 | 228 led->subled_info[1].brightness << 8 | 229 led->subled_info[2].brightness; 234 next_length = max(priv->next_length, led->addr + 1); 394 struct sun50i_a100_ledc_led *led; local 506 led = priv->leds; 511 fwnode_property_read_u32(child, "reg", &led [all...] |
H A D | leds-blinkm.c | 36 /* used for led class interface */ 426 struct blinkm_led *led = cdev_to_blmled(led_cdev); local 427 struct blinkm_data *data = i2c_get_clientdata(led->i2c_client); 450 dev_err(&led->i2c_client->dev, "BlinkM: unknown color.\n"); 454 blinkm_transfer_hw(led->i2c_client, BLM_GO_RGB); 455 dev_dbg(&led->i2c_client->dev, 571 struct blinkm_led *led[3]; local 602 led[i] = &data->blinkm_leds[i]; 603 led[i]->i2c_client = client; 604 led[ [all...] |
H A D | leds-pca955x.c | 364 struct pca955x_led *led = &pca955x->leds[offset]; local 367 return pca955x_led_set(&led->led_cdev, PCA955X_GPIO_HIGH); 369 return pca955x_led_set(&led->led_cdev, PCA955X_GPIO_LOW); 381 struct pca955x_led *led = &pca955x->leds[offset]; local 385 pca955x_read_input(pca955x->client, led->led_num / 8, ®); 387 return !!(reg & (1 << (led->led_num % 8))); 394 struct pca955x_led *led = &pca955x->leds[offset]; local 397 return pca955x_led_set(&led->led_cdev, PCA955X_GPIO_INPUT); 411 struct pca955x_led *led; local 437 led 455 struct led_classdev *led; local [all...] |
H A D | leds-lp3952.c | 62 struct lp3952_ctrl_hdl *led = container_of(cdev, local 65 struct lp3952_led_array *priv = (struct lp3952_led_array *)led->priv; 68 led->channel); 71 lp3952_on_off(priv, led->channel, false); 75 if (led->channel > LP3952_RED_1) { 80 if (led->channel >= LP3952_BLUE_1) { 82 shift_val = (led->channel - LP3952_BLUE_1) * 2; 85 shift_val = led->channel * 2; 89 lp3952_on_off(priv, led->channel, true);
|
H A D | leds-is31fl319x.c | 195 struct is31fl319x_led *led = container_of(cdev, struct is31fl319x_led, cdev); local 196 struct is31fl319x_chip *is31 = led->chip; 197 int chan = led - is31->leds; 249 struct is31fl319x_led *led = container_of(cdev, struct is31fl319x_led, cdev); local 250 struct is31fl319x_chip *is31 = led->chip; 251 int chan = led - is31->leds; 368 struct is31fl319x_led *led, 371 struct led_classdev *cdev = &led->cdev; 381 led->max_microamp = is31->cdef->current_default; 382 ret = fwnode_property_read_u32(child, "led 366 is31fl319x_parse_child_fw(const struct device *dev, const struct fwnode_handle *child, struct is31fl319x_led *led, struct is31fl319x_chip *is31) argument 418 struct is31fl319x_led *led; local 565 struct is31fl319x_led *led = &is31->leds[i]; local [all...] |
/linux-master/drivers/leds/simple/ |
H A D | simatic-ipc-leds.c | 54 struct simatic_ipc_led *led = cdev_to_led(led_cd); local 62 outw(val | led->value, SIMATIC_IPC_LED_PORT_BASE); 64 outw(val & ~led->value, SIMATIC_IPC_LED_PORT_BASE); 71 struct simatic_ipc_led *led = cdev_to_led(led_cd); local 73 return inw(SIMATIC_IPC_LED_PORT_BASE) & led->value ? LED_OFF : led_cd->max_brightness;
|
/linux-master/arch/powerpc/platforms/44x/ |
H A D | warp.c | 154 struct gpio_led *led; local 167 led = &warp_gpio_led_pins[i]; 169 if (!of_node_name_eq(child, led->name)) 172 if (led->gpiod) { 173 printk(KERN_ERR __FILE__ ": %s led has already been defined\n", 174 led->name); 180 led->name); 183 printk(KERN_ERR __FILE__ ": Failed to get %s led gpio: %d\n", 184 led->name, error); 189 led [all...] |
/linux-master/drivers/leds/flash/ |
H A D | leds-rt8515.c | 28 #include <linux/led-class-flash.h> 35 #include <media/v4l2-flash-led-class.h> 90 static int rt8515_led_brightness_set(struct led_classdev *led, argument 93 struct led_classdev_flash *fled = lcdev_to_flcdev(led); 156 /* The timeout is stored in the led-class-flash core */ 196 struct led_classdev *led = &rt->fled.led_cdev; local 199 strscpy(v4l2_sd_cfg->dev_name, led->dev->kobj.name, 231 struct fwnode_handle *led, 243 ret = fwnode_property_read_u32(led, max_ua_prop, &ua); 281 struct led_classdev *led; local 230 rt8515_determine_max_intensity(struct rt8515 *rt, struct fwnode_handle *led, const char *resistance, const char *max_ua_prop, int hw_max, int *max_intensity_setting) argument [all...] |
/linux-master/drivers/hid/ |
H A D | wacom_sys.c | 914 if (!wacom->led.groups) 934 buf[1] = wacom->led.llv; 935 buf[2] = wacom->led.groups[0].select & 0x03; 944 int ring_led = wacom->led.groups[0].select & 0x03; 945 int ring_lum = (((wacom->led.llv & 0x60) >> 5) - 1) & 0x03; 965 buf[9] = wacom->led.llv; 966 buf[10] = wacom->led.groups[0].select & 0x03; 969 int led = wacom->led.groups[0].select | 0x4; local 973 led | 1300 wacom_leds_brightness_get(struct wacom_led *led) argument 1316 struct wacom_led *led = container_of(cdev, struct wacom_led, cdev); local 1328 struct wacom_led *led = container_of(cdev, struct wacom_led, cdev); local 1358 wacom_led_register_one(struct device *dev, struct wacom *wacom, struct wacom_led *led, unsigned int group, unsigned int id, bool read_only) argument [all...] |
H A D | hid-bigbenff.c | 221 report_field->value[0] = 0x01; /* 1 = led message */ 300 static void bigben_set_led(struct led_classdev *led, argument 303 struct device *dev = led->dev->parent; 316 if (led == bigben->leds[n]) { 336 static enum led_brightness bigben_get_led(struct led_classdev *led) argument 338 struct device *dev = led->dev->parent; 349 if (led == bigben->leds[n]) 374 struct led_classdev *led; local 425 led = devm_kzalloc( 430 if (!led) { [all...] |
/linux-master/arch/arm/mach-footbridge/ |
H A D | netwinder-hw.c | 691 struct netwinder_led *led = container_of(cdev, local 699 reg &= ~led->mask; 701 reg |= led->mask; 702 nw_gpio_modify_op(led->mask, reg); 708 struct netwinder_led *led = container_of(cdev, local 717 return (reg & led->mask) ? LED_OFF : LED_FULL; 728 struct netwinder_led *led; local 730 led = kzalloc(sizeof(*led), GFP_KERNEL); 731 if (!led) [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb/ |
H A D | mv88x201x.c | 52 u32 led = 0; local 55 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, &led); 58 led |= LINK_ENABLE_BIT; 59 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); 61 led &= ~LINK_ENABLE_BIT; 62 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led);
|
/linux-master/drivers/hid/usbhid/ |
H A D | usbkbd.c | 64 * @led: URB for sending LEDs (e.g. numlock, ...) 65 * @newleds: data that will be sent with the @led URB representing which LEDs 71 * @cr: Control request for @led URB 72 * @leds: Buffer for the @led URB 74 * @leds_dma: DMA address for @led URB 76 * @led_urb_submitted: indicates whether @led is in progress, i.e. it has been 78 * without resubmitting @led 84 struct urb *irq, *led; member in struct:usb_kbd 163 kbd->newleds = (!!test_bit(LED_KANA, dev->led) << 3) | (!!test_bit(LED_COMPOSE, dev->led) << [all...] |
/linux-master/drivers/net/dsa/hirschmann/ |
H A D | hellcreek_ptp.c | 244 int led) 246 return (hellcreek->status_out & led) ? 1 : 0; 249 static void hellcreek_set_brightness(struct hellcreek *hellcreek, int led, argument 255 hellcreek->status_out |= led; 257 hellcreek->status_out &= ~led; 300 struct device_node *leds, *led = NULL; local 314 led = of_get_next_available_child(leds, led); 315 if (!led) { 320 ret = of_property_read_string(led, "labe 243 hellcreek_get_brightness(struct hellcreek *hellcreek, int led) argument [all...] |
H A D | hellcreek_ptp.h | 73 #define led_to_hellcreek(ldev, led) \ 74 container_of(ldev, struct hellcreek, led)
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | au8522_common.c | 154 /* led = 0 | off 155 * led = 1 | signal ok 156 * led = 2 | signal strong 157 * led < 0 | only light led if leds are currently off 159 int au8522_led_ctrl(struct au8522_state *state, int led) argument 169 if (led < 0) { 174 led *= -1; 178 if (state->led_state != led) { 181 dprintk("%s: %d\n", __func__, led); [all...] |
/linux-master/drivers/platform/x86/ |
H A D | topstar-laptop.c | 31 struct led_classdev led; member in struct:topstar_laptop 38 static enum led_brightness topstar_led_get(struct led_classdev *led) argument 40 return led->brightness; 43 static int topstar_led_set(struct led_classdev *led, argument 46 struct topstar_laptop *topstar = container_of(led, 47 struct topstar_laptop, led); 87 topstar->led = (struct led_classdev) { 94 return led_classdev_register(&topstar->platform->dev, &topstar->led); 99 led_classdev_unregister(&topstar->led);
|
/linux-master/drivers/iio/light/ |
H A D | cm3605.c | 43 * @led: trigger for the infrared LED used by the proximity sensor 52 struct led_trigger *led; member in struct:cm3605 242 led_trigger_register_simple("cm3605", &cm3605->led); 243 led_trigger_event(cm3605->led, LED_FULL); 260 led_trigger_event(cm3605->led, LED_OFF); 261 led_trigger_unregister_simple(cm3605->led); 274 led_trigger_event(cm3605->led, LED_OFF); 275 led_trigger_unregister_simple(cm3605->led); 286 led_trigger_event(cm3605->led, LED_OFF); 301 led_trigger_event(cm3605->led, LED_FUL [all...] |
/linux-master/drivers/leds/rgb/ |
H A D | leds-qcom-lpg.c | 9 #include <linux/led-class-multicolor.h> 793 static void lpg_brightness_set(struct lpg_led *led, struct led_classdev *cdev, argument 802 struct lpg *lpg = led->lpg; 805 for (i = 0; i < led->num_channels; i++) { 806 chan = led->channels[i]; 851 struct lpg_led *led = container_of(cdev, struct lpg_led, cdev); local 854 mutex_lock(&led->lpg->lock); 857 lpg_brightness_set(led, cdev, &info); 859 mutex_unlock(&led->lpg->lock); 868 struct lpg_led *led local 880 lpg_blink_set(struct lpg_led *led, unsigned long *delay_on, unsigned long *delay_off) argument 926 struct lpg_led *led = container_of(cdev, struct lpg_led, cdev); local 942 struct lpg_led *led = container_of(mc, struct lpg_led, mcdev); local 954 lpg_pattern_set(struct lpg_led *led, struct led_pattern *led_pattern, u32 len, int repeat) argument 1126 struct lpg_led *led = container_of(cdev, struct lpg_led, cdev); local 1143 struct lpg_led *led = container_of(mc, struct lpg_led, mcdev); local 1161 lpg_pattern_clear(struct lpg_led *led) argument 1187 struct lpg_led *led = container_of(cdev, struct lpg_led, cdev); local 1195 struct lpg_led *led = container_of(mc, struct lpg_led, mcdev); local 1367 struct lpg_led *led; local [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | Makefile | 11 iwldvm-$(CONFIG_IWLWIFI_LEDS) += led.o
|