Home
last modified time | relevance | path

Searched refs:cosm_device (Results 1 – 9 of 9) sorted by relevance

/linux-4.19.296/drivers/misc/mic/bus/
Dcosm_bus.h55 struct cosm_device { struct
91 int (*probe)(struct cosm_device *dev); argument
92 void (*remove)(struct cosm_device *dev);
109 void (*reset)(struct cosm_device *cdev);
110 void (*force_reset)(struct cosm_device *cdev);
111 void (*post_reset)(struct cosm_device *cdev, enum mic_states state);
112 bool (*ready)(struct cosm_device *cdev);
113 int (*start)(struct cosm_device *cdev, int id);
114 void (*stop)(struct cosm_device *cdev, bool force);
115 ssize_t (*family)(struct cosm_device *cdev, char *buf);
[all …]
Dcosm_bus.c30 struct cosm_device *dev = dev_to_cosm(d); in cosm_dev_probe()
38 struct cosm_device *dev = dev_to_cosm(d); in cosm_dev_remove()
66 struct cosm_device *cdev = dev_to_cosm(d); in cosm_release_dev()
71 struct cosm_device *
74 struct cosm_device *cdev; in cosm_register_device()
108 void cosm_unregister_device(struct cosm_device *dev) in cosm_unregister_device()
117 struct cosm_device *cosm_find_cdev_by_id(int id) in cosm_find_cdev_by_id()
121 return dev ? container_of(dev, struct cosm_device, dev) : NULL; in cosm_find_cdev_by_id()
/linux-4.19.296/drivers/misc/mic/cosm/
Dcosm_main.h58 void cosm_sysfs_init(struct cosm_device *cdev);
59 int cosm_start(struct cosm_device *cdev);
60 void cosm_stop(struct cosm_device *cdev, bool force);
61 int cosm_reset(struct cosm_device *cdev);
62 int cosm_shutdown(struct cosm_device *cdev);
63 void cosm_set_state(struct cosm_device *cdev, u8 state);
64 void cosm_set_shutdown_status(struct cosm_device *cdev, u8 status);
67 void cosm_create_debug_dir(struct cosm_device *cdev);
68 void cosm_delete_debug_dir(struct cosm_device *cdev);
Dcosm_sysfs.c49 void cosm_set_shutdown_status(struct cosm_device *cdev, u8 shutdown_status) in cosm_set_shutdown_status()
57 void cosm_set_state(struct cosm_device *cdev, u8 state) in cosm_set_state()
69 struct cosm_device *cdev = dev_get_drvdata(dev); in family_show()
81 struct cosm_device *cdev = dev_get_drvdata(dev); in stepping_show()
93 struct cosm_device *cdev = dev_get_drvdata(dev); in state_show()
106 struct cosm_device *cdev = dev_get_drvdata(dev); in state_store()
136 struct cosm_device *cdev = dev_get_drvdata(dev); in shutdown_status_show()
150 struct cosm_device *cdev = dev_get_drvdata(dev); in heartbeat_enable_show()
163 struct cosm_device *cdev = dev_get_drvdata(dev); in heartbeat_enable_store()
189 struct cosm_device *cdev = dev_get_drvdata(dev); in cmdline_show()
[all …]
Dcosm_scif_server.c107 static void cosm_update_mic_status(struct cosm_device *cdev) in cosm_update_mic_status()
116 static void cosm_shutdown_status_int(struct cosm_device *cdev, in cosm_shutdown_status_int()
138 static void cosm_scif_recv(struct cosm_device *cdev) in cosm_scif_recv()
171 static void cosm_set_crashed(struct cosm_device *cdev) in cosm_set_crashed()
179 static void cosm_send_time(struct cosm_device *cdev) in cosm_send_time()
200 static void cosm_scif_close(struct cosm_device *cdev) in cosm_scif_close()
218 static int cosm_set_online(struct cosm_device *cdev) in cosm_set_online()
248 struct cosm_device *cdev = container_of(work, struct cosm_device, in cosm_scif_work()
298 struct cosm_device *cdev; in cosm_scif_server()
Dcosm_main.c42 static void cosm_hw_reset(struct cosm_device *cdev, bool force) in cosm_hw_reset()
74 int cosm_start(struct cosm_device *cdev) in cosm_start()
147 void cosm_stop(struct cosm_device *cdev, bool force) in cosm_stop()
183 struct cosm_device *cdev = container_of(work, struct cosm_device, in cosm_reset_trigger_work()
194 int cosm_reset(struct cosm_device *cdev) in cosm_reset()
219 int cosm_shutdown(struct cosm_device *cdev) in cosm_shutdown()
253 static int cosm_driver_probe(struct cosm_device *cdev) in cosm_driver_probe()
295 static void cosm_driver_remove(struct cosm_device *cdev) in cosm_driver_remove()
314 struct cosm_device *cdev = dev_to_cosm(dev); in cosm_suspend()
Dcosm_debugfs.c40 struct cosm_device *cdev = s->private; in cosm_log_buf_show()
102 struct cosm_device *cdev = s->private; in cosm_force_reset_show()
121 void cosm_create_debug_dir(struct cosm_device *cdev) in cosm_create_debug_dir()
138 void cosm_delete_debug_dir(struct cosm_device *cdev) in cosm_delete_debug_dir()
/linux-4.19.296/drivers/misc/mic/host/
Dmic_boot.c394 static inline struct mic_device *cosmdev_to_mdev(struct cosm_device *cdev) in cosmdev_to_mdev()
399 static void _mic_reset(struct cosm_device *cdev) in _mic_reset()
407 static bool _mic_ready(struct cosm_device *cdev) in _mic_ready()
468 static int _mic_start(struct cosm_device *cdev, int id) in _mic_start()
534 static void _mic_stop(struct cosm_device *cdev, bool force) in _mic_stop()
550 static ssize_t _mic_family(struct cosm_device *cdev, char *buf) in _mic_family()
558 static ssize_t _mic_stepping(struct cosm_device *cdev, char *buf) in _mic_stepping()
582 static struct mic_mw *_mic_aper(struct cosm_device *cdev) in _mic_aper()
Dmic_device.h98 struct cosm_device *cosm_dev;