/drivers/video/backlight/ |
D | lcd.c | 30 struct lcd_device *ld; in fb_notifier_callback() local 33 ld = container_of(self, struct lcd_device, fb_notif); in fb_notifier_callback() 34 if (!ld->ops) in fb_notifier_callback() 37 mutex_lock(&ld->ops_lock); in fb_notifier_callback() 38 if (!ld->ops->check_fb || ld->ops->check_fb(ld, evdata->info)) { in fb_notifier_callback() 40 if (ld->ops->set_power) in fb_notifier_callback() 41 ld->ops->set_power(ld, *(int *)evdata->data); in fb_notifier_callback() 43 if (ld->ops->set_mode) in fb_notifier_callback() 44 ld->ops->set_mode(ld, evdata->data); in fb_notifier_callback() 47 mutex_unlock(&ld->ops_lock); in fb_notifier_callback() [all …]
|
D | otm3225a.c | 76 struct lcd_device *ld; member 185 static int otm3225a_set_power(struct lcd_device *ld, int power) in otm3225a_set_power() argument 187 struct otm3225a_data *dd = lcd_get_data(ld); in otm3225a_set_power() 201 static int otm3225a_get_power(struct lcd_device *ld) in otm3225a_get_power() argument 203 struct otm3225a_data *dd = lcd_get_data(ld); in otm3225a_get_power() 216 struct lcd_device *ld; in otm3225a_probe() local 223 ld = devm_lcd_device_register(dev, dev_name(dev), dev, dd, in otm3225a_probe() 225 if (IS_ERR(ld)) in otm3225a_probe() 226 return PTR_ERR(ld); in otm3225a_probe() 229 dd->ld = ld; in otm3225a_probe()
|
D | lms283gf05.c | 20 struct lcd_device *ld; member 124 static int lms283gf05_power_set(struct lcd_device *ld, int power) in lms283gf05_power_set() argument 126 struct lms283gf05_state *st = lcd_get_data(ld); in lms283gf05_power_set() 150 struct lcd_device *ld; in lms283gf05_probe() local 162 ld = devm_lcd_device_register(&spi->dev, "lms283gf05", &spi->dev, st, in lms283gf05_probe() 164 if (IS_ERR(ld)) in lms283gf05_probe() 165 return PTR_ERR(ld); in lms283gf05_probe() 168 st->ld = ld; in lms283gf05_probe()
|
D | l4f00242t03.c | 25 struct lcd_device *ld; member 97 static int l4f00242t03_lcd_power_get(struct lcd_device *ld) in l4f00242t03_lcd_power_get() argument 99 struct l4f00242t03_priv *priv = lcd_get_data(ld); in l4f00242t03_lcd_power_get() 104 static int l4f00242t03_lcd_power_set(struct lcd_device *ld, int power) in l4f00242t03_lcd_power_set() argument 106 struct l4f00242t03_priv *priv = lcd_get_data(ld); in l4f00242t03_lcd_power_set() 128 l4f00242t03_lcd_power_set(priv->ld, power); in l4f00242t03_lcd_power_set() 144 l4f00242t03_lcd_power_set(ld, power); in l4f00242t03_lcd_power_set() 211 priv->ld = devm_lcd_device_register(&spi->dev, "l4f00242t03", &spi->dev, in l4f00242t03_probe() 213 if (IS_ERR(priv->ld)) in l4f00242t03_probe() 214 return PTR_ERR(priv->ld); in l4f00242t03_probe() [all …]
|
D | lms501kf03.c | 24 struct lcd_device *ld; member 224 pd->power_on(lcd->ld, 1); in lms501kf03_power_on() 232 pd->reset(lcd->ld); in lms501kf03_power_on() 265 pd->power_on(lcd->ld, 0); in lms501kf03_power_off() 287 static int lms501kf03_get_power(struct lcd_device *ld) in lms501kf03_get_power() argument 289 struct lms501kf03 *lcd = lcd_get_data(ld); in lms501kf03_get_power() 294 static int lms501kf03_set_power(struct lcd_device *ld, int power) in lms501kf03_set_power() argument 296 struct lms501kf03 *lcd = lcd_get_data(ld); in lms501kf03_set_power() 315 struct lcd_device *ld = NULL; in lms501kf03_probe() local 340 ld = devm_lcd_device_register(&spi->dev, "lms501kf03", &spi->dev, lcd, in lms501kf03_probe() [all …]
|
D | jornada720_lcd.c | 24 static int jornada_lcd_get_power(struct lcd_device *ld) in jornada_lcd_get_power() argument 29 static int jornada_lcd_get_contrast(struct lcd_device *ld) in jornada_lcd_get_contrast() argument 33 if (jornada_lcd_get_power(ld) != FB_BLANK_UNBLANK) in jornada_lcd_get_contrast() 43 dev_err(&ld->dev, "failed to set contrast\n"); in jornada_lcd_get_contrast() 51 static int jornada_lcd_set_contrast(struct lcd_device *ld, int value) in jornada_lcd_set_contrast() argument 64 dev_err(&ld->dev, "failed to set contrast\n"); in jornada_lcd_set_contrast() 72 static int jornada_lcd_set_power(struct lcd_device *ld, int power) in jornada_lcd_set_power() argument
|
D | ltv350qv.c | 24 struct lcd_device *ld; member 207 static int ltv350qv_set_power(struct lcd_device *ld, int power) in ltv350qv_set_power() argument 209 struct ltv350qv *lcd = lcd_get_data(ld); in ltv350qv_set_power() 214 static int ltv350qv_get_power(struct lcd_device *ld) in ltv350qv_get_power() argument 216 struct ltv350qv *lcd = lcd_get_data(ld); in ltv350qv_get_power() 229 struct lcd_device *ld; in ltv350qv_probe() local 242 ld = devm_lcd_device_register(&spi->dev, "ltv350qv", &spi->dev, lcd, in ltv350qv_probe() 244 if (IS_ERR(ld)) in ltv350qv_probe() 245 return PTR_ERR(ld); in ltv350qv_probe() 247 lcd->ld = ld; in ltv350qv_probe()
|
D | ams369fg06.c | 36 struct lcd_device *ld; member 316 pd->power_on(lcd->ld, 1); in ams369fg06_power_on() 325 pd->reset(lcd->ld); in ams369fg06_power_on() 366 pd->power_on(lcd->ld, 0); in ams369fg06_power_off() 388 static int ams369fg06_get_power(struct lcd_device *ld) in ams369fg06_get_power() argument 390 struct ams369fg06 *lcd = lcd_get_data(ld); in ams369fg06_get_power() 395 static int ams369fg06_set_power(struct lcd_device *ld, int power) in ams369fg06_set_power() argument 397 struct ams369fg06 *lcd = lcd_get_data(ld); in ams369fg06_set_power() 443 struct lcd_device *ld = NULL; in ams369fg06_probe() local 469 ld = devm_lcd_device_register(&spi->dev, "ams369fg06", &spi->dev, lcd, in ams369fg06_probe() [all …]
|
D | tdo24m.c | 297 static int tdo24m_set_power(struct lcd_device *ld, int power) in tdo24m_set_power() argument 299 struct tdo24m *lcd = lcd_get_data(ld); in tdo24m_set_power() 304 static int tdo24m_get_power(struct lcd_device *ld) in tdo24m_get_power() argument 306 struct tdo24m *lcd = lcd_get_data(ld); in tdo24m_get_power() 311 static int tdo24m_set_mode(struct lcd_device *ld, struct fb_videomode *m) in tdo24m_set_mode() argument 313 struct tdo24m *lcd = lcd_get_data(ld); in tdo24m_set_mode()
|
D | ili922x.c | 140 struct lcd_device *ld; member 457 static int ili922x_set_power(struct lcd_device *ld, int power) in ili922x_set_power() argument 459 struct ili922x *ili = lcd_get_data(ld); in ili922x_set_power() 464 static int ili922x_get_power(struct lcd_device *ld) in ili922x_get_power() argument 466 struct ili922x *ili = lcd_get_data(ld); in ili922x_get_power() 521 ili->ld = lcd; in ili922x_probe()
|
/drivers/tty/ |
D | tty_ldisc.c | 148 struct tty_ldisc *ld; in tty_ldisc_get() local 172 ld = kmalloc(sizeof(struct tty_ldisc), GFP_KERNEL | __GFP_NOFAIL); in tty_ldisc_get() 173 ld->ops = ldops; in tty_ldisc_get() 174 ld->tty = tty; in tty_ldisc_get() 176 return ld; in tty_ldisc_get() 184 static void tty_ldisc_put(struct tty_ldisc *ld) in tty_ldisc_put() argument 186 if (WARN_ON_ONCE(!ld)) in tty_ldisc_put() 189 put_ldops(ld->ops); in tty_ldisc_put() 190 kfree(ld); in tty_ldisc_put() 250 struct tty_ldisc *ld; in tty_ldisc_ref_wait() local [all …]
|
D | tty_ioctl.c | 341 struct tty_ldisc *ld; in tty_set_termios() local 362 ld = tty_ldisc_ref(tty); in tty_set_termios() 363 if (ld != NULL) { in tty_set_termios() 364 if (ld->ops->set_termios) in tty_set_termios() 365 ld->ops->set_termios(tty, &old_termios); in tty_set_termios() 366 tty_ldisc_deref(ld); in tty_set_termios() 389 struct tty_ldisc *ld; in set_termios() local 439 ld = tty_ldisc_ref(tty); 440 if (ld != NULL) { 441 if ((opt & TERMIOS_FLUSH) && ld->ops->flush_buffer) [all …]
|
D | tty_io.c | 528 struct tty_ldisc *ld; in tty_wakeup() local 531 ld = tty_ldisc_ref(tty); in tty_wakeup() 532 if (ld) { in tty_wakeup() 533 if (ld->ops->write_wakeup) in tty_wakeup() 534 ld->ops->write_wakeup(tty); in tty_wakeup() 535 tty_ldisc_deref(ld); in tty_wakeup() 855 static int iterate_tty_read(struct tty_ldisc *ld, struct tty_struct *tty, in iterate_tty_read() argument 868 size = ld->ops->read(tty, file, kernel_buf, size, &cookie, offset); in iterate_tty_read() 929 struct tty_ldisc *ld; in tty_read() local 939 ld = tty_ldisc_ref_wait(tty); in tty_read() [all …]
|
D | tty_buffer.c | 222 void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld) in tty_buffer_flush() argument 240 if (ld && ld->ops->flush_buffer) in tty_buffer_flush() 241 ld->ops->flush_buffer(tty); in tty_buffer_flush() 447 int tty_ldisc_receive_buf(struct tty_ldisc *ld, const unsigned char *p, in tty_ldisc_receive_buf() argument 450 if (ld->ops->receive_buf2) in tty_ldisc_receive_buf() 451 count = ld->ops->receive_buf2(ld->tty, p, f, count); in tty_ldisc_receive_buf() 453 count = min_t(int, count, ld->tty->receive_room); in tty_ldisc_receive_buf() 454 if (count && ld->ops->receive_buf) in tty_ldisc_receive_buf() 455 ld->ops->receive_buf(ld->tty, p, f, count); in tty_ldisc_receive_buf()
|
/drivers/scsi/megaraid/ |
D | megaraid_sas_fp.c | 57 #define SPAN_ROW_SIZE(map, ld, index_) (MR_LdSpanPtrGet(ld, index_, map)->spanRowSize) argument 58 #define SPAN_ROW_DATA_SIZE(map_, ld, index_) (MR_LdSpanPtrGet(ld, index_, map)->spanRowDataSize) argument 64 static u8 mr_spanset_get_phy_params(struct megasas_instance *instance, u32 ld, 67 static u64 get_row_from_strip(struct megasas_instance *instance, u32 ld, 101 struct MR_LD_RAID *MR_LdRaidGet(u32 ld, struct MR_DRV_RAID_MAP_ALL *map) in MR_LdRaidGet() argument 103 return &map->raidMap.ldSpanMap[ld].ldRaid; in MR_LdRaidGet() 106 static struct MR_SPAN_BLOCK_INFO *MR_LdSpanInfoGet(u32 ld, in MR_LdSpanInfoGet() argument 110 return &map->raidMap.ldSpanMap[ld].spanBlock[0]; in MR_LdSpanInfoGet() 113 static u8 MR_LdDataArmGet(u32 ld, u32 armIdx, struct MR_DRV_RAID_MAP_ALL *map) in MR_LdDataArmGet() argument 115 return map->raidMap.ldSpanMap[ld].dataArmMap[armIdx]; in MR_LdDataArmGet() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ldu.c | 142 struct vmw_legacy_display *ld = vmw_priv->ldu_priv; in vmw_ldu_del_active() local 148 if (--(ld->num_active) == 0) { in vmw_ldu_del_active() 149 BUG_ON(!ld->fb); in vmw_ldu_del_active() 150 if (ld->fb->unpin) in vmw_ldu_del_active() 151 ld->fb->unpin(ld->fb); in vmw_ldu_del_active() 152 ld->fb = NULL; in vmw_ldu_del_active() 162 struct vmw_legacy_display *ld = vmw_priv->ldu_priv; in vmw_ldu_add_active() local 166 BUG_ON(!ld->num_active && ld->fb); in vmw_ldu_add_active() 167 if (vfb != ld->fb) { in vmw_ldu_add_active() 168 if (ld->fb && ld->fb->unpin) in vmw_ldu_add_active() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/ce/fuc/ |
D | com.fuc | 221 ld b32 $r4 D[$r5 + 0] 223 ld b32 $r6 D[$r5 + 4] 272 ld b32 $r7 D[$r5 + $r6 * 4] 298 ld b16 $r6 D[$r5 + 0] 299 ld b16 $r7 D[$r5 + 2] 316 ld b32 $r5 D[$r4 + 4] 322 ld b16 $r5 D[$r4 + 0] 323 ld b16 $r6 D[$r4 + 2] 427 ld b32 $r4 D[$r0 + #ctx_format] 476 ld b32 $r8 D[$r0 + #ctx_xcnt] [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/ |
D | gpc.fuc | 199 ld b32 $r14 D[$r0 + #gpc_mmio_list_head] 200 ld b32 $r15 D[$r0 + #gpc_mmio_list_tail] 206 ld b32 $r14 D[$r0 + #tpc_mmio_list_head] 207 ld b32 $r15 D[$r0 + #tpc_mmio_list_tail] 209 ld b32 $r14 D[$r0 + #tpc_count] 216 ld b32 $r14 D[$r0 + #unk_mmio_list_head] 217 ld b32 $r15 D[$r0 + #unk_mmio_list_tail] 219 ld b32 $r14 D[$r0 + #unk_count] 249 ld b32 $r4 D[$r0 + #tpc_count] 372 ld b32 $r14 D[$r0 + #gpc_id] [all …]
|
D | com.fuc | 35 ld b32 $r8 D[$r13 + 0x0] // GET 36 ld b32 $r9 D[$r13 + 0x4] // PUT 69 ld b32 $r8 D[$r13 + 0x0] // GET 70 ld b32 $r9 D[$r13 + 0x4] // PUT 78 ld b32 $r14 D[$r9 + 0x0] 79 ld b32 $r15 D[$r9 + 0x4] 161 ld b32 $r8 D[$r14] 216 ld b32 $r14 D[$r12]
|
/drivers/gpu/drm/nouveau/nvkm/engine/sec/fuc/ |
D | g98.fuc0s | 185 ld b32 $r7 D[$r5 + $r6 * 4] 254 ld b32 $r5 D[$r4 + 4] 258 ld b16 $r5 D[$r4] 259 ld b16 $r6 D[$r4 + 2] 262 ld b32 $r7 D[$r0 + #ctx_cond_off] 318 ld b32 $r4 D[$r0 + #ctx_query_counter] 327 ld b32 $r4 D[$r0 + #ctx_query_address_high] 331 ld b32 $r4 D[$r0 + #ctx_query_address_low] 360 ld b32 $r4 D[$r0 + #ctx_cond_address_high] 361 ld b32 $r5 D[$r0 + #ctx_cond_address_low] [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/ |
D | kernel.fuc | 141 ld b32 $r9 D[$r14 + #proc_time] 147 ld b32 $r10 D[$r0 + #time_prev] 159 ld b32 $r10 D[$r0 + #time_next] 201 ld b32 $r9 D[$r0 + #time_next] 330 ld b32 $r8 D[$r15 + #proc_time] 341 ld b32 $r9 D[$r0 + #time_prev] 389 ld b32 $r8 D[$r14 + #proc_qget] 390 ld b32 $r9 D[$r14 + #proc_qput] 401 ld b32 $r10 D[$r15 + #proc_id] 430 ld b32 $r10 D[$r8 + #proc_id] [all …]
|
D | memx.fuc | 172 ld b32 $r6 D[$r1 + 0x00] 224 ld b32 $r6 D[$r1 + 0x00] 225 ld b32 $r5 D[$r1 + 0x04] 244 ld b32 $r14 D[$r1 + 0x00] 245 ld b32 $r13 D[$r1 + 0x04] 246 ld b32 $r12 D[$r1 + 0x08] 247 ld b32 $r11 D[$r1 + 0x0c] 260 ld b32 $r14 D[$r1 + 0x00] 376 ld b32 $r3 D[$r1] 384 ld b32 $r5 D[$r3 + #memx_func_head + #memx_func] [all …]
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc.c | 1229 #define SET_KEX_LD(intf, lid, ltype, ld, cfg) \ argument 1231 NPC_AF_INTFX_LIDX_LTX_LDX_CFG(intf, lid, ltype, ld), cfg) 1233 #define SET_KEX_LDFLAGS(intf, ld, flags, cfg) \ argument 1235 NPC_AF_INTFX_LDATAX_FLAGSX_CFG(intf, ld, flags), cfg) 1240 int lid, lt, ld, fl; in npc_program_mkex_rx() local 1251 for (ld = 0; ld < NPC_MAX_LD; ld++) in npc_program_mkex_rx() 1252 SET_KEX_LD(intf, lid, lt, ld, in npc_program_mkex_rx() 1254 [lid][lt][ld]); in npc_program_mkex_rx() 1258 for (ld = 0; ld < NPC_MAX_LD; ld++) { in npc_program_mkex_rx() 1260 SET_KEX_LDFLAGS(intf, ld, fl, in npc_program_mkex_rx() [all …]
|
/drivers/ata/ |
D | pata_legacy.c | 763 struct legacy_probe *lp, struct legacy_data *ld) in qdi_port() argument 767 ld->timing = lp->private; in qdi_port() 848 struct legacy_probe *lp, struct legacy_data *ld) in winbond_port() argument 852 ld->timing = lp->private; in winbond_port() 979 struct legacy_data *ld = &legacy_data[probe->slot]; in legacy_init_one() local 1005 ld->type = probe->type; in legacy_init_one() 1007 if (controller->setup(pdev, probe, ld) < 0) in legacy_init_one() 1022 ap->host->private_data = ld; in legacy_init_one() 1031 ld->platform_dev = pdev; in legacy_init_one() 1039 ld->platform_dev = pdev; in legacy_init_one() [all …]
|
/drivers/tty/vt/ |
D | selection.c | 379 struct tty_ldisc *ld; in paste_selection() local 387 ld = tty_ldisc_ref_wait(tty); in paste_selection() 388 if (!ld) in paste_selection() 408 count = tty_ldisc_receive_buf(ld, vc_sel.buffer + pasted, NULL, in paste_selection() 417 tty_ldisc_deref(ld); in paste_selection()
|