Lines Matching refs:cfg
68 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
73 return ioread16(base - cfg->channel_offset);
81 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
86 iowrite16(value, base - cfg->channel_offset);
95 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
103 value |= 1 << cfg->timer_bit;
105 value &= ~(1 << cfg->timer_bit);
113 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
157 tmp = (cfg->max_brightness - brightness) * rate;
158 r_tpu_write(p, TGRA, tmp / cfg->max_brightness);
159 dev_dbg(&p->pdev->dev, "TRGA = 0x%04lx\n", tmp / cfg->max_brightness);
193 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data;
197 gpio_set_value(cfg->pin_gpio, brightness);
202 gpio_free(cfg->pin_gpio);
205 gpio_free(cfg->pin_gpio_fn);
208 gpio_request(cfg->pin_gpio, cfg->name);
209 gpio_direction_output(cfg->pin_gpio, !!brightness);
212 gpio_request(cfg->pin_gpio_fn, cfg->name);
243 struct led_renesas_tpu_config *cfg = pdev->dev.platform_data;
248 if (!cfg) {
284 p->refresh_rate = cfg->refresh_rate ? cfg->refresh_rate : 100;
290 p->ldev.name = cfg->name;
292 p->ldev.max_brightness = cfg->max_brightness;