Home
last modified time | relevance | path

Searched refs:mdrv (Results 1 – 11 of 11) sorted by relevance

/drivers/misc/mic/card/
Dmic_device.c42 struct mic_driver *mdrv = g_drv; in mic_notify_host() local
43 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_notify_host()
46 dev_dbg(mdrv->dev, "%s %d system_state %d\n", in mic_notify_host()
48 mic_send_intr(&mdrv->mdev, ioread8(&bootparam->c2h_shutdown_db)); in mic_notify_host()
54 struct mic_driver *mdrv = g_drv; in mic_panic_event() local
55 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_panic_event()
69 struct mic_driver *mdrv = g_drv; in mic_shutdown_isr() local
70 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_shutdown_isr()
81 struct mic_driver *mdrv = g_drv; in mic_shutdown_init() local
82 struct mic_bootparam __iomem *bootparam = mdrv->dp; in mic_shutdown_init()
[all …]
Dmic_debugfs.c44 struct mic_driver *mdrv = s->private; in mic_intr_test() local
45 struct mic_device *mdev = &mdrv->mdev; in mic_intr_test()
80 void __init mic_create_card_debug_dir(struct mic_driver *mdrv) in mic_create_card_debug_dir() argument
87 mdrv->dbg_dir = debugfs_create_dir(mdrv->name, mic_dbg); in mic_create_card_debug_dir()
88 if (!mdrv->dbg_dir) { in mic_create_card_debug_dir()
89 dev_err(mdrv->dev, "Cant create dbg_dir %s\n", mdrv->name); in mic_create_card_debug_dir()
93 d = debugfs_create_file("intr_test", 0444, mdrv->dbg_dir, in mic_create_card_debug_dir()
94 mdrv, &intr_test_ops); in mic_create_card_debug_dir()
97 dev_err(mdrv->dev, in mic_create_card_debug_dir()
98 "Cant create dbg intr_test %s\n", mdrv->name); in mic_create_card_debug_dir()
[all …]
Dmic_x100.c99 void mic_hw_intr_init(struct mic_driver *mdrv) in mic_hw_intr_init() argument
101 mdrv->intr_info.num_intr = MIC_X100_NUM_SBOX_IRQ + in mic_hw_intr_init()
113 int mic_db_to_irq(struct mic_driver *mdrv, int db) in mic_db_to_irq() argument
194 struct mic_driver *mdrv = &g_drv; in mic_probe() local
195 struct mic_device *mdev = &mdrv->mdev; in mic_probe()
198 mdrv->dev = &pdev->dev; in mic_probe()
199 snprintf(mdrv->name, sizeof(mic_driver_name), mic_driver_name); in mic_probe()
210 mic_hw_intr_init(mdrv); in mic_probe()
211 platform_set_drvdata(pdev, mdrv); in mic_probe()
212 mdrv->dma_mbdev = mbus_register_device(mdrv->dev, MBUS_DEV_DMA_MIC, in mic_probe()
[all …]
Dmic_virtio.c395 unsigned int offset, struct mic_driver *mdrv) in mic_add_device() argument
404 dev_err(mdrv->dev, "Cannot allocate mic dev %u type %u\n", in mic_add_device()
409 mvdev->mdev = &mdrv->mdev; in mic_add_device()
410 mvdev->vdev.dev.parent = mdrv->dev; in mic_add_device()
460 unsigned int offset, struct mic_driver *mdrv) in mic_handle_config_change() argument
469 dev_dbg(mdrv->dev, "%s %d\n", __func__, __LINE__); in mic_handle_config_change()
479 unsigned int offset, struct mic_driver *mdrv) in mic_remove_device() argument
488 dev_dbg(mdrv->dev, in mic_remove_device()
501 dev_dbg(mdrv->dev, "%s %d guest_ack %d\n", in mic_remove_device()
511 static void mic_scan_devices(struct mic_driver *mdrv, bool remove) in mic_scan_devices() argument
[all …]
Dmic_device.h120 int mic_driver_init(struct mic_driver *mdrv);
121 void mic_driver_uninit(struct mic_driver *mdrv);
129 int mic_db_to_irq(struct mic_driver *mdrv, int db);
131 void mic_hw_intr_init(struct mic_driver *mdrv);
135 void __init mic_create_card_debug_dir(struct mic_driver *mdrv);
136 void mic_delete_card_debug_dir(struct mic_driver *mdrv);
Dmic_virtio.h73 int mic_devices_init(struct mic_driver *mdrv);
74 void mic_devices_uninit(struct mic_driver *mdrv);
/drivers/mcb/
Dmcb-core.c36 struct mcb_driver *mdrv = to_mcb_driver(drv); in mcb_match() local
40 found_id = mcb_match_id(mdrv->id_table, mdev); in mcb_match()
61 struct mcb_driver *mdrv = to_mcb_driver(dev->driver); in mcb_probe() local
65 found_id = mcb_match_id(mdrv->id_table, mdev); in mcb_probe()
69 return mdrv->probe(mdev, found_id); in mcb_probe()
74 struct mcb_driver *mdrv = to_mcb_driver(dev->driver); in mcb_remove() local
77 mdrv->remove(mdev); in mcb_remove()
87 struct mcb_driver *mdrv = mdev->driver; in mcb_shutdown() local
89 if (mdrv && mdrv->shutdown) in mcb_shutdown()
90 mdrv->shutdown(mdev); in mcb_shutdown()
/drivers/input/mouse/
Dmaplemouse.c70 struct maple_driver *mdrv = to_maple_driver(dev->driver); in probe_maple_mouse() local
104 mdev->driver = mdrv; in probe_maple_mouse()
/drivers/input/keyboard/
Dmaple_keyb.c163 struct maple_driver *mdrv; in probe_maple_kbd() local
169 mdrv = to_maple_driver(dev->driver); in probe_maple_kbd()
209 mdev->driver = mdrv; in probe_maple_kbd()
/drivers/input/joystick/
Dmaplecontrol.c98 struct maple_driver *mdrv = to_maple_driver(dev->driver); in probe_maple_controller() local
148 mdev->driver = mdrv; in probe_maple_controller()
/drivers/mtd/maps/
Dvmu-flash.c779 struct maple_driver *mdrv = to_maple_driver(dev->driver); in probe_maple_vmu() local
783 mdev->driver = mdrv; in probe_maple_vmu()