Home
last modified time | relevance | path

Searched refs:mic_device (Results 1 – 19 of 19) sorted by relevance

/drivers/misc/mic/host/
Dmic_device.h95 struct mic_device { struct
158 u32 (*read_spad)(struct mic_device *mdev, unsigned int idx);
159 void (*write_spad)(struct mic_device *mdev, unsigned int idx, u32 val);
160 void (*send_intr)(struct mic_device *mdev, int doorbell);
161 u32 (*ack_interrupt)(struct mic_device *mdev);
162 void (*intr_workarounds)(struct mic_device *mdev);
163 void (*reset)(struct mic_device *mdev);
164 void (*reset_fw_ready)(struct mic_device *mdev);
165 bool (*is_fw_ready)(struct mic_device *mdev);
166 void (*send_firmware_intr)(struct mic_device *mdev);
[all …]
Dmic_intr.h115 struct mic_device;
128 void (*intr_init)(struct mic_device *mdev);
129 void (*enable_interrupts)(struct mic_device *mdev);
130 void (*disable_interrupts)(struct mic_device *mdev);
131 void (*program_msi_to_src_map) (struct mic_device *mdev,
133 u32 (*read_msi_to_src_map) (struct mic_device *mdev,
137 int mic_next_db(struct mic_device *mdev);
139 mic_request_threaded_irq(struct mic_device *mdev,
143 void mic_free_irq(struct mic_device *mdev,
145 int mic_setup_interrupts(struct mic_device *mdev, struct pci_dev *pdev);
[all …]
Dmic_x100.c44 mic_x100_write_spad(struct mic_device *mdev, unsigned int idx, u32 val) in mic_x100_write_spad()
63 mic_x100_read_spad(struct mic_device *mdev, unsigned int idx) in mic_x100_read_spad()
78 static void mic_x100_enable_interrupts(struct mic_device *mdev) in mic_x100_enable_interrupts()
105 static void mic_x100_disable_interrupts(struct mic_device *mdev) in mic_x100_disable_interrupts()
128 static void mic_x100_send_sbox_intr(struct mic_device *mdev, in mic_x100_send_sbox_intr()
149 static void mic_x100_send_rdmasr_intr(struct mic_device *mdev, in mic_x100_send_rdmasr_intr()
164 static void mic_x100_send_intr(struct mic_device *mdev, int doorbell) in mic_x100_send_intr()
183 static u32 mic_x100_ack_interrupt(struct mic_device *mdev) in mic_x100_ack_interrupt()
198 static void mic_x100_intr_workarounds(struct mic_device *mdev) in mic_x100_intr_workarounds()
216 static void mic_x100_hw_intr_init(struct mic_device *mdev) in mic_x100_hw_intr_init()
[all …]
Dmic_smpt.h29 void (*init)(struct mic_device *mdev);
30 void (*set)(struct mic_device *mdev, dma_addr_t dma_addr, u8 index);
75 dma_addr_t mic_map_single(struct mic_device *mdev, void *va, size_t size);
76 void mic_unmap_single(struct mic_device *mdev,
78 dma_addr_t mic_map(struct mic_device *mdev,
80 void mic_unmap(struct mic_device *mdev, dma_addr_t mic_addr, size_t size);
94 int mic_smpt_init(struct mic_device *mdev);
95 void mic_smpt_uninit(struct mic_device *mdev);
96 void mic_smpt_restore(struct mic_device *mdev);
Dmic_sysfs.c52 void mic_set_shutdown_status(struct mic_device *mdev, u8 shutdown_status) in mic_set_shutdown_status()
60 void mic_set_state(struct mic_device *mdev, u8 state) in mic_set_state()
75 struct mic_device *mdev = dev_get_drvdata(dev->parent); in family_show()
95 struct mic_device *mdev = dev_get_drvdata(dev->parent); in stepping_show()
124 struct mic_device *mdev = dev_get_drvdata(dev->parent); in state_show()
138 struct mic_device *mdev = dev_get_drvdata(dev->parent); in state_store()
175 struct mic_device *mdev = dev_get_drvdata(dev->parent); in shutdown_status_show()
188 struct mic_device *mdev = dev_get_drvdata(dev->parent); in cmdline_show()
205 struct mic_device *mdev = dev_get_drvdata(dev->parent); in cmdline_store()
234 struct mic_device *mdev = dev_get_drvdata(dev->parent); in firmware_show()
[all …]
Dmic_smpt.c27 static inline u64 mic_system_page_mask(struct mic_device *mdev) in mic_system_page_mask()
32 static inline u8 mic_sys_addr_to_smpt(struct mic_device *mdev, dma_addr_t pa) in mic_sys_addr_to_smpt()
37 static inline u64 mic_smpt_to_pa(struct mic_device *mdev, u8 index) in mic_smpt_to_pa()
42 static inline u64 mic_smpt_offset(struct mic_device *mdev, dma_addr_t pa) in mic_smpt_offset()
47 static inline u64 mic_smpt_align_low(struct mic_device *mdev, dma_addr_t pa) in mic_smpt_align_low()
53 static inline u64 mic_smpt_align_high(struct mic_device *mdev, dma_addr_t pa) in mic_smpt_align_high()
59 static inline u64 mic_max_system_memory(struct mic_device *mdev) in mic_max_system_memory()
65 static inline u64 mic_max_system_addr(struct mic_device *mdev) in mic_max_system_addr()
72 mic_is_system_addr(struct mic_device *mdev, dma_addr_t pa) in mic_is_system_addr()
79 int entries, struct mic_device *mdev) in mic_add_smpt_entry()
[all …]
Dmic_boot.c32 static inline struct mic_device *mbdev_to_mdev(struct mbus_device *mbdev) in mbdev_to_mdev()
43 struct mic_device *mdev = dev_get_drvdata(dev->parent); in mic_dma_map_page()
53 struct mic_device *mdev = dev_get_drvdata(dev->parent); in mic_dma_unmap_page()
80 struct mic_device *mdev = mbdev_to_mdev(mbdev); in _mic_ack_interrupt()
94 static void mic_reset(struct mic_device *mdev) in mic_reset()
120 void mic_bootparam_init(struct mic_device *mdev) in mic_bootparam_init()
140 int mic_start(struct mic_device *mdev, const char *buf) in mic_start()
196 void mic_stop(struct mic_device *mdev, bool force) in mic_stop()
224 void mic_shutdown(struct mic_device *mdev) in mic_shutdown()
247 struct mic_device *mdev = container_of(work, struct mic_device, in mic_shutdown_work()
[all …]
Dmic_intr.c29 struct mic_device *mdev = dev; in mic_thread_fn()
56 struct mic_device *mdev = dev; in mic_interrupt()
85 static u16 mic_map_src_to_offset(struct mic_device *mdev, in mic_map_src_to_offset()
97 static struct msix_entry *mic_get_available_vector(struct mic_device *mdev) in mic_get_available_vector()
121 static struct mic_intr_cb *mic_register_intr_callback(struct mic_device *mdev, in mic_register_intr_callback()
164 static u8 mic_unregister_intr_callback(struct mic_device *mdev, u32 idx) in mic_unregister_intr_callback()
201 static int mic_setup_msix(struct mic_device *mdev, struct pci_dev *pdev) in mic_setup_msix()
250 static int mic_setup_callbacks(struct mic_device *mdev) in mic_setup_callbacks()
274 static void mic_release_callbacks(struct mic_device *mdev) in mic_release_callbacks()
310 static int mic_setup_msi(struct mic_device *mdev, struct pci_dev *pdev) in mic_setup_msi()
[all …]
Dmic_main.c81 static int mic_dp_init(struct mic_device *mdev) in mic_dp_init()
104 static void mic_dp_uninit(struct mic_device *mdev) in mic_dp_uninit()
115 struct mic_device *mdev = data; in mic_shutdown_db()
141 static void mic_ops_init(struct mic_device *mdev) in mic_ops_init()
203 struct mic_device *mdev = container_of(notifier, in mic_pm_notifier()
204 struct mic_device, pm_notifier); in mic_pm_notifier()
236 mic_device_init(struct mic_device *mdev, struct pci_dev *pdev) in mic_device_init()
271 static void mic_device_uninit(struct mic_device *mdev) in mic_device_uninit()
295 struct mic_device *mdev; in mic_probe()
455 struct mic_device *mdev; in mic_remove()
Dmic_debugfs.c44 struct mic_device *mdev = s->private; in mic_log_buf_show()
102 struct mic_device *mdev = s->private; in mic_smpt_show()
143 struct mic_device *mdev = s->private; in mic_soft_reset_show()
169 struct mic_device *mdev = s->private; in mic_post_code_show()
196 struct mic_device *mdev = s->private; in mic_dp_show()
288 struct mic_device *mdev = s->private; in mic_vdev_info_show()
371 struct mic_device *mdev = s->private; in mic_msi_irq_info_show()
436 void mic_create_debug_dir(struct mic_device *mdev) in mic_create_debug_dir()
467 void mic_delete_debug_dir(struct mic_device *mdev) in mic_delete_debug_dir()
Dmic_virtio.h96 struct mic_device *mdev;
113 void mic_virtio_uninit(struct mic_device *mdev);
121 void mic_virtio_reset_devices(struct mic_device *mdev);
Dmic_fops.c33 struct mic_device *mdev = container_of(inode->i_cdev, in mic_open()
34 struct mic_device, cdev); in mic_open()
158 struct mic_device *mdev = mvdev->mdev; in mic_query_offset()
Dmic_virtio.c38 static int mic_sync_dma(struct mic_device *mdev, dma_addr_t dst, in mic_sync_dma()
80 struct mic_device *mdev = mvdev->mdev; in mic_virtio_copy_to_user()
129 struct mic_device *mdev = mvdev->mdev; in mic_virtio_copy_from_user()
438 void mic_virtio_reset_devices(struct mic_device *mdev) in mic_virtio_reset_devices()
471 struct mic_device *mdev = mvdev->mdev; in mic_virtio_intr_handler()
528 struct mic_device *mdev = mvdev->mdev; in mic_copy_dp_entry()
620 struct mic_device *mdev = mvdev->mdev; in mic_virtio_add_device()
747 struct mic_device *mdev = mvdev->mdev; in mic_virtio_del_device()
/drivers/misc/mic/card/
Dmic_device.h60 struct mic_device { struct
82 struct mic_device mdev; argument
127 u32 mic_read_spad(struct mic_device *mdev, unsigned int idx);
128 void mic_send_intr(struct mic_device *mdev, int doorbell);
130 u32 mic_ack_interrupt(struct mic_device *mdev);
133 mic_card_map(struct mic_device *mdev, dma_addr_t addr, size_t size);
134 void mic_card_unmap(struct mic_device *mdev, void __iomem *addr);
Dmic_x100.c48 u32 mic_read_spad(struct mic_device *mdev, unsigned int idx) in mic_read_spad()
60 void mic_send_intr(struct mic_device *mdev, int doorbell) in mic_send_intr()
79 u32 mic_ack_interrupt(struct mic_device *mdev) in mic_ack_interrupt()
134 mic_card_map(struct mic_device *mdev, dma_addr_t addr, size_t size) in mic_card_map()
146 void mic_card_unmap(struct mic_device *mdev, void __iomem *addr) in mic_card_unmap()
195 struct mic_device *mdev = &mdrv->mdev; in mic_probe()
DMakefile9 mic_card-y += mic_device.o
Dmic_debugfs.c45 struct mic_device *mdev = &mdrv->mdev; in mic_intr_test()
Dmic_device.c107 struct mic_device *mdev = &mdrv->mdev; in mic_dp_init()
Dmic_virtio.c53 struct mic_device *mdev;