Home
last modified time | relevance | path

Searched refs:ccw_device (Results 1 – 25 of 57) sorted by relevance

123

/Linux-v4.19/drivers/s390/cio/
Ddevice.h50 struct ccw_device;
55 typedef void (fsm_func_t)(struct ccw_device *, enum dev_event);
59 dev_fsm_event(struct ccw_device *cdev, enum dev_event dev_event) in dev_fsm_event()
77 dev_fsm_final_state(struct ccw_device *cdev) in dev_fsm_final_state()
87 void io_subchannel_recog_done(struct ccw_device *cdev);
90 int ccw_device_cancel_halt_clear(struct ccw_device *);
92 int ccw_device_is_orphan(struct ccw_device *);
94 void ccw_device_recognition(struct ccw_device *);
95 int ccw_device_online(struct ccw_device *);
96 int ccw_device_offline(struct ccw_device *);
[all …]
Ddevice_ops.c39 int ccw_device_set_options_mask(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options_mask()
64 int ccw_device_set_options(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options()
91 void ccw_device_clear_options(struct ccw_device *cdev, unsigned long flags) in ccw_device_clear_options()
106 int ccw_device_is_pathgroup(struct ccw_device *cdev) in ccw_device_is_pathgroup()
118 int ccw_device_is_multipath(struct ccw_device *cdev) in ccw_device_is_multipath()
139 int ccw_device_clear(struct ccw_device *cdev, unsigned long intparm) in ccw_device_clear()
190 int ccw_device_start_timeout_key(struct ccw_device *cdev, struct ccw1 *cpa, in ccw_device_start_timeout_key()
267 int ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa, in ccw_device_start_key()
298 int ccw_device_start(struct ccw_device *cdev, struct ccw1 *cpa, in ccw_device_start()
333 int ccw_device_start_timeout(struct ccw_device *cdev, struct ccw1 *cpa, in ccw_device_start_timeout()
[all …]
Ddevice.c62 struct ccw_device *cdev = to_ccwdev(dev); in ccw_bus_match()
105 struct ccw_device *cdev = to_ccwdev(dev); in ccw_uevent()
153 struct ccw_device *cdev; in io_subchannel_prepare()
213 struct ccw_device *cdev = to_ccwdev(dev); in devtype_show()
226 struct ccw_device *cdev = to_ccwdev(dev); in cutype_show()
236 struct ccw_device *cdev = to_ccwdev(dev); in modalias_show()
248 struct ccw_device *cdev = to_ccwdev(dev); in online_show()
253 int ccw_device_is_orphan(struct ccw_device *cdev) in ccw_device_is_orphan()
258 static void ccw_device_unregister(struct ccw_device *cdev) in ccw_device_unregister()
284 int ccw_device_set_offline(struct ccw_device *cdev) in ccw_device_set_offline()
[all …]
Ddevice_fsm.c37 static void ccw_timeout_log(struct ccw_device *cdev) in ccw_timeout_log()
99 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout()
112 ccw_device_set_timeout(struct ccw_device *cdev, int expires) in ccw_device_set_timeout()
127 ccw_device_cancel_halt_clear(struct ccw_device *cdev) in ccw_device_cancel_halt_clear()
143 void ccw_device_update_sense_data(struct ccw_device *cdev) in ccw_device_update_sense_data()
152 int ccw_device_test_sense_data(struct ccw_device *cdev) in ccw_device_test_sense_data()
188 ccw_device_recog_done(struct ccw_device *cdev, int state) in ccw_device_recog_done()
264 ccw_device_sense_id_done(struct ccw_device *cdev, int err) in ccw_device_sense_id_done()
290 int ccw_device_notify(struct ccw_device *cdev, int event) in ccw_device_notify()
313 static void ccw_device_oper_notify(struct ccw_device *cdev) in ccw_device_oper_notify()
[all …]
Ddevice_pgid.c28 static void verify_start(struct ccw_device *cdev);
33 static void verify_done(struct ccw_device *cdev, int rc) in verify_done()
57 static void nop_build_cp(struct ccw_device *cdev) in nop_build_cp()
72 static void nop_do(struct ccw_device *cdev) in nop_do()
92 static enum io_status nop_filter(struct ccw_device *cdev, void *data, in nop_filter()
104 static void nop_callback(struct ccw_device *cdev, void *data, int rc) in nop_callback()
134 static void spid_build_cp(struct ccw_device *cdev, u8 fn) in spid_build_cp()
149 static void pgid_wipeout_callback(struct ccw_device *cdev, void *data, int rc) in pgid_wipeout_callback()
167 static void pgid_wipeout_start(struct ccw_device *cdev) in pgid_wipeout_start()
194 static void spid_do(struct ccw_device *cdev) in spid_do()
[all …]
Dcmf.c106 int (*alloc) (struct ccw_device *);
107 void (*free) (struct ccw_device *);
108 int (*set) (struct ccw_device *, u32);
109 u64 (*read) (struct ccw_device *, int);
110 int (*readall)(struct ccw_device *, struct cmbdata *);
111 void (*reset) (struct ccw_device *);
175 static int set_schib(struct ccw_device *cdev, u32 mme, int mbfc, in set_schib()
211 static int set_schib_wait(struct ccw_device *cdev, u32 mme, in set_schib_wait()
257 void retry_set_schib(struct ccw_device *cdev) in retry_set_schib()
269 static int cmf_copy_block(struct ccw_device *cdev) in cmf_copy_block()
[all …]
Dio_sch.h15 struct ccw_device *cdev;/* pointer to the child ccw device */
27 static inline struct ccw_device *sch_get_cdev(struct subchannel *sch) in sch_get_cdev()
34 struct ccw_device *cdev) in sch_set_cdev()
77 int (*check)(struct ccw_device *, void *);
78 enum io_status (*filter)(struct ccw_device *, void *, struct irb *,
80 void (*callback)(struct ccw_device *, void *, int);
119 struct ccw_device *cdev;
Dccwreq.c41 static u16 ccwreq_next_path(struct ccw_device *cdev) in ccwreq_next_path()
58 static void ccwreq_stop(struct ccw_device *cdev, int rc) in ccwreq_stop()
75 static void ccwreq_do(struct ccw_device *cdev) in ccwreq_do()
120 void ccw_request_start(struct ccw_device *cdev) in ccw_request_start()
151 int ccw_request_cancel(struct ccw_device *cdev) in ccw_request_cancel()
170 static enum io_status ccwreq_status(struct ccw_device *cdev, struct irb *lcirb) in ccwreq_status()
231 static void ccwreq_log_status(struct ccw_device *cdev, enum io_status status) in ccwreq_log_status()
254 void ccw_request_handler(struct ccw_device *cdev) in ccw_request_handler()
326 void ccw_request_timeout(struct ccw_device *cdev) in ccw_request_timeout()
364 void ccw_request_notoper(struct ccw_device *cdev) in ccw_request_notoper()
Ddevice_id.c99 static int diag210_get_dev_info(struct ccw_device *cdev) in diag210_get_dev_info()
134 static void snsid_init(struct ccw_device *cdev) in snsid_init()
144 static int snsid_check(struct ccw_device *cdev, void *data) in snsid_check()
170 static void snsid_callback(struct ccw_device *cdev, void *data, int rc) in snsid_callback()
199 void ccw_device_sense_id_start(struct ccw_device *cdev) in ccw_device_sense_id_start()
DMakefile12 ccw_device-objs += device.o device_fsm.o device_ops.o
13 ccw_device-objs += device_id.o device_pgid.o device_status.o
14 obj-y += ccw_device.o cmf.o
Dqdio.h195 void (*queue_start_poll) (struct ccw_device *, int, unsigned long);
279 struct ccw_device *cdev;
299 void (*orig_handler) (struct ccw_device *, unsigned long, struct irb *);
397 void qdio_int_handler(struct ccw_device *cdev, unsigned long intparm,
407 struct ccw_device *cdev);
409 int qdio_setup_create_sysfs(struct ccw_device *cdev);
410 void qdio_setup_destroy_sysfs(struct ccw_device *cdev);
Ddevice_status.c28 ccw_device_msg_control_check(struct ccw_device *cdev, struct irb *irb) in ccw_device_msg_control_check()
53 ccw_device_path_notoper(struct ccw_device *cdev) in ccw_device_path_notoper()
75 ccw_device_accumulate_ecw(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_ecw()
113 ccw_device_accumulate_esw(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_esw()
193 ccw_device_accumulate_irb(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_irb()
311 ccw_device_do_sense(struct ccw_device *cdev, struct irb *irb) in ccw_device_do_sense()
348 ccw_device_accumulate_basic_sense(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_basic_sense()
381 ccw_device_accumulate_and_sense(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_and_sense()
/Linux-v4.19/arch/s390/include/asm/
Dccwdev.h85 struct ccw_device { struct
94 void (*handler) (struct ccw_device *, unsigned long, struct irb *); argument
137 int (*probe) (struct ccw_device *);
138 void (*remove) (struct ccw_device *);
139 int (*set_online) (struct ccw_device *);
140 int (*set_offline) (struct ccw_device *);
141 int (*notify) (struct ccw_device *, int);
142 void (*path_event) (struct ccw_device *, int *);
143 void (*shutdown) (struct ccw_device *);
144 int (*prepare) (struct ccw_device *);
[all …]
Dcmb.h7 struct ccw_device;
8 extern int enable_cmf(struct ccw_device *cdev);
9 extern int disable_cmf(struct ccw_device *cdev);
10 extern int __disable_cmf(struct ccw_device *cdev);
11 extern u64 cmf_read(struct ccw_device *cdev, int index);
12 extern int cmf_readall(struct ccw_device *cdev, struct cmbdata *data);
Dqdio.h312 typedef void qdio_handler_t(struct ccw_device *, unsigned int, int,
349 struct ccw_device *cdev;
362 void (**queue_start_poll_array) (struct ccw_device *, int,
414 extern int qdio_activate(struct ccw_device *);
416 extern int do_QDIO(struct ccw_device *, unsigned int, int, unsigned int,
418 extern int qdio_start_irq(struct ccw_device *, int);
419 extern int qdio_stop_irq(struct ccw_device *, int);
420 extern int qdio_get_next_buffers(struct ccw_device *, int, int *, int *);
421 extern int qdio_shutdown(struct ccw_device *, int);
422 extern int qdio_free(struct ccw_device *);
[all …]
Dccwgroup.h5 struct ccw_device;
29 struct ccw_device *cdev[0];
71 extern int ccwgroup_probe_ccwdev(struct ccw_device *cdev);
72 extern void ccwgroup_remove_ccwdev(struct ccw_device *cdev);
/Linux-v4.19/drivers/s390/scsi/
Dzfcp_ccw.c21 struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *cdev) in zfcp_ccw_adapter_by_cdev()
49 static int zfcp_ccw_activate(struct ccw_device *cdev, int clear, char *tag) in zfcp_ccw_activate()
98 static int zfcp_ccw_probe(struct ccw_device *cdev) in zfcp_ccw_probe()
112 static void zfcp_ccw_remove(struct ccw_device *cdev) in zfcp_ccw_remove()
159 static int zfcp_ccw_set_online(struct ccw_device *cdev) in zfcp_ccw_set_online()
206 static int zfcp_ccw_offline_sync(struct ccw_device *cdev, int set, char *tag) in zfcp_ccw_offline_sync()
228 static int zfcp_ccw_set_offline(struct ccw_device *cdev) in zfcp_ccw_set_offline()
241 static int zfcp_ccw_notify(struct ccw_device *cdev, int event) in zfcp_ccw_notify()
290 static void zfcp_ccw_shutdown(struct ccw_device *cdev) in zfcp_ccw_shutdown()
304 static int zfcp_ccw_suspend(struct ccw_device *cdev) in zfcp_ccw_suspend()
[all …]
Dzfcp_aux.c58 struct ccw_device *cdev; in zfcp_init_device_configure()
303 dev_name(&adapter->ccw_device->dev), in zfcp_print_sl()
312 dev_name(&adapter->ccw_device->dev)); in zfcp_setup_adapter_work_queue()
337 struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *ccw_device) in zfcp_adapter_enqueue() argument
341 if (!get_device(&ccw_device->dev)) in zfcp_adapter_enqueue()
346 put_device(&ccw_device->dev); in zfcp_adapter_enqueue()
352 ccw_device->handler = NULL; in zfcp_adapter_enqueue()
353 adapter->ccw_device = ccw_device; in zfcp_adapter_enqueue()
403 dev_set_drvdata(&ccw_device->dev, adapter); in zfcp_adapter_enqueue()
405 if (sysfs_create_group(&ccw_device->dev.kobj, in zfcp_adapter_enqueue()
[all …]
Dzfcp_qdio.c27 dev_warn(&adapter->ccw_device->dev, "A QDIO problem occurred\n"); in zfcp_qdio_handler_error()
62 static void zfcp_qdio_int_req(struct ccw_device *cdev, unsigned int qdio_err, in zfcp_qdio_int_req()
83 static void zfcp_qdio_int_resp(struct ccw_device *cdev, unsigned int qdio_err, in zfcp_qdio_int_resp()
264 retval = do_QDIO(qdio->adapter->ccw_device, QDIO_FLAG_SYNC_OUTPUT, 0, in zfcp_qdio_send()
286 id->cdev = qdio->adapter->ccw_device; in zfcp_qdio_setup_init_data()
358 qdio_shutdown(adapter->ccw_device, QDIO_FLAG_CLEANUP_USING_CLEAR); in zfcp_qdio_close()
381 struct ccw_device *cdev = adapter->ccw_device; in zfcp_qdio_open()
453 if (qdio->adapter->ccw_device) in zfcp_qdio_destroy()
454 qdio_free(qdio->adapter->ccw_device); in zfcp_qdio_destroy()
501 rc = ccw_device_siosl(adapter->ccw_device); in zfcp_qdio_siosl()
Dzfcp_fsf.c69 dev_err(&req->adapter->ccw_device->dev, "FCP device not " in zfcp_fsf_class_not_supp()
127 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
132 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
137 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
142 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
147 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
152 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
156 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
160 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
165 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
[all …]
/Linux-v4.19/drivers/s390/block/
Ddasd_int.h500 struct ccw_device *cdev;
737 int dasd_generic_probe (struct ccw_device *, struct dasd_discipline *);
739 void dasd_generic_remove (struct ccw_device *cdev);
740 int dasd_generic_set_online(struct ccw_device *, struct dasd_discipline *);
741 int dasd_generic_set_offline (struct ccw_device *cdev);
742 int dasd_generic_notify(struct ccw_device *, int);
745 void dasd_generic_shutdown(struct ccw_device *);
748 int dasd_generic_pm_freeze(struct ccw_device *);
749 int dasd_generic_restore_device(struct ccw_device *);
750 enum uc_todo dasd_generic_uc_handler(struct ccw_device *, struct irb *);
[all …]
/Linux-v4.19/drivers/s390/char/
Dvmur.c61 static int ur_probe(struct ccw_device *cdev);
62 static void ur_remove(struct ccw_device *cdev);
63 static int ur_set_online(struct ccw_device *cdev);
64 static int ur_set_offline(struct ccw_device *cdev);
65 static int ur_pm_suspend(struct ccw_device *cdev);
102 static struct urdev *urdev_alloc(struct ccw_device *cdev) in urdev_alloc()
133 static struct urdev *urdev_get_from_cdev(struct ccw_device *cdev) in urdev_get_from_cdev()
149 struct ccw_device *cdev; in urdev_get_from_devno()
176 static int ur_pm_suspend(struct ccw_device *cdev) in ur_pm_suspend()
274 struct ccw_device *cdev = urd->cdev; in do_ur_io()
[all …]
Dtape.h185 struct ccw_device * cdev;
269 extern int tape_generic_offline(struct ccw_device *);
270 extern int tape_generic_pm_suspend(struct ccw_device *);
273 extern int tape_generic_probe(struct ccw_device *);
274 extern void tape_generic_remove(struct ccw_device *);
/Linux-v4.19/Documentation/s390/
Ddriver-model.txt76 The basic struct ccw_device and struct ccw_driver data structures can be found
79 struct ccw_device {
88 void (*handler) (struct ccw_device *dev, unsigned long intparm,
95 int (*probe) (struct ccw_device *);
96 int (*remove) (struct ccw_device *);
97 int (*set_online) (struct ccw_device *);
98 int (*set_offline) (struct ccw_device *);
99 int (*notify) (struct ccw_device *, int);
128 int (*probe) (struct ccw_device *cdev);
136 int (*remove) (struct ccw_device *cdev);
[all …]
Dcds.txt42 * The functions use a ccw_device instead of an irq (subchannel).
51 * The interrupt handlers must be adapted to use a ccw_device as argument.
130 device drivers should use the new calling interface via the ccw_device only.
141 support using the information saved in the struct ccw_device given to them.
168 ccw_device_get_ciw(struct ccw_device *cdev, __u32 cmd);
170 cdev - The ccw_device for which the command is to be retrieved.
189 int ccw_device_start(struct ccw_device *cdev,
194 int ccw_device_start_timeout(struct ccw_device *cdev,
200 int ccw_device_start_key(struct ccw_device *cdev,
206 int ccw_device_start_key_timeout(struct ccw_device *cdev,
[all …]

123