Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/arch/s390/include/asm/
H A Dccwdev.h86 struct ccw_device { struct
95 void (*handler) (struct ccw_device *, unsigned long, struct irb *); argument
138 int (*probe) (struct ccw_device *);
139 void (*remove) (struct ccw_device *);
140 int (*set_online) (struct ccw_device *);
141 int (*set_offline) (struct ccw_device *);
142 int (*notify) (struct ccw_device *, int);
143 void (*path_event) (struct ccw_device *, int *);
144 void (*shutdown) (struct ccw_device *);
145 int (*prepare) (struct ccw_device *);
[all …]
H A Dqdio.h310 typedef void qdio_handler_t(struct ccw_device *, unsigned int, int,
358 void (*irq_poll)(struct ccw_device *cdev, unsigned long data);
379 extern int qdio_allocate(struct ccw_device *cdev, unsigned int no_input_qs,
381 extern int qdio_establish(struct ccw_device *cdev,
383 extern int qdio_activate(struct ccw_device *);
385 extern int do_QDIO(struct ccw_device *, unsigned int, int, unsigned int,
387 extern int qdio_start_irq(struct ccw_device *cdev);
388 extern int qdio_stop_irq(struct ccw_device *cdev);
389 extern int qdio_get_next_buffers(struct ccw_device *, int, int *, int *);
390 extern int qdio_inspect_queue(struct ccw_device *cdev, unsigned int nr,
[all …]
H A 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);
H A Dccwgroup.h5 struct ccw_device;
29 struct ccw_device *cdev[0];
63 extern int ccwgroup_probe_ccwdev(struct ccw_device *cdev);
64 extern void ccwgroup_remove_ccwdev(struct ccw_device *cdev);
/OK3568_Linux_fs/kernel/drivers/s390/cio/
H A 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 …]
H A 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()
137 int ccw_device_clear(struct ccw_device *cdev, unsigned long intparm) in ccw_device_clear()
191 int ccw_device_start_timeout_key(struct ccw_device *cdev, struct ccw1 *cpa, in ccw_device_start_timeout_key()
271 int ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa, in ccw_device_start_key()
305 int ccw_device_start(struct ccw_device *cdev, struct ccw1 *cpa, in ccw_device_start()
343 int ccw_device_start_timeout(struct ccw_device *cdev, struct ccw1 *cpa, in ccw_device_start_timeout()
[all …]
H A Ddevice_fsm.c37 static void ccw_timeout_log(struct ccw_device *cdev) in ccw_timeout_log()
101 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout()
114 ccw_device_set_timeout(struct ccw_device *cdev, int expires) in ccw_device_set_timeout()
129 ccw_device_cancel_halt_clear(struct ccw_device *cdev) in ccw_device_cancel_halt_clear()
145 void ccw_device_update_sense_data(struct ccw_device *cdev) in ccw_device_update_sense_data()
154 int ccw_device_test_sense_data(struct ccw_device *cdev) in ccw_device_test_sense_data()
194 ccw_device_recog_done(struct ccw_device *cdev, int state) in ccw_device_recog_done()
270 ccw_device_sense_id_done(struct ccw_device *cdev, int err) in ccw_device_sense_id_done()
296 int ccw_device_notify(struct ccw_device *cdev, int event) in ccw_device_notify()
319 static void ccw_device_oper_notify(struct ccw_device *cdev) in ccw_device_oper_notify()
[all …]
H A Ddevice.c63 struct ccw_device *cdev = to_ccwdev(dev); in ccw_bus_match()
106 struct ccw_device *cdev = to_ccwdev(dev); in ccw_uevent()
154 struct ccw_device *cdev; in io_subchannel_prepare()
214 struct ccw_device *cdev = to_ccwdev(dev); in devtype_show()
227 struct ccw_device *cdev = to_ccwdev(dev); in cutype_show()
237 struct ccw_device *cdev = to_ccwdev(dev); in modalias_show()
249 struct ccw_device *cdev = to_ccwdev(dev); in online_show()
254 int ccw_device_is_orphan(struct ccw_device *cdev) in ccw_device_is_orphan()
259 static void ccw_device_unregister(struct ccw_device *cdev) in ccw_device_unregister()
285 int ccw_device_set_offline(struct ccw_device *cdev) in ccw_device_set_offline()
[all …]
H A 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 …]
H A 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 …]
H A Dio_sch.h18 struct ccw_device *cdev;/* pointer to the child ccw device */
32 static inline struct ccw_device *sch_get_cdev(struct subchannel *sch) in sch_get_cdev()
39 struct ccw_device *cdev) in sch_set_cdev()
82 int (*check)(struct ccw_device *, void *);
83 enum io_status (*filter)(struct ccw_device *, void *, struct irb *,
85 void (*callback)(struct ccw_device *, void *, int);
131 struct ccw_device *cdev;
H A 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()
232 static void ccwreq_log_status(struct ccw_device *cdev, enum io_status status) in ccwreq_log_status()
255 void ccw_request_handler(struct ccw_device *cdev) in ccw_request_handler()
327 void ccw_request_timeout(struct ccw_device *cdev) in ccw_request_timeout()
365 void ccw_request_notoper(struct ccw_device *cdev) in ccw_request_notoper()
H A 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()
146 static int snsid_check(struct ccw_device *cdev, void *data) in snsid_check()
172 static void snsid_callback(struct ccw_device *cdev, void *data, int rc) in snsid_callback()
201 void ccw_device_sense_id_start(struct ccw_device *cdev) in ccw_device_sense_id_start()
H A 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()
H A 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
/OK3568_Linux_fs/kernel/drivers/s390/scsi/
H A 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()
158 static int zfcp_ccw_set_online(struct ccw_device *cdev) in zfcp_ccw_set_online()
205 static int zfcp_ccw_offline_sync(struct ccw_device *cdev, int set, char *tag) in zfcp_ccw_offline_sync()
227 static int zfcp_ccw_set_offline(struct ccw_device *cdev) in zfcp_ccw_set_offline()
240 static int zfcp_ccw_notify(struct ccw_device *cdev, int event) in zfcp_ccw_notify()
289 static void zfcp_ccw_shutdown(struct ccw_device *cdev) in zfcp_ccw_shutdown()
303 static int zfcp_ccw_suspend(struct ccw_device *cdev) in zfcp_ccw_suspend()
[all …]
H A Dzfcp_aux.c60 struct ccw_device *cdev; in zfcp_init_device_configure()
301 dev_name(&adapter->ccw_device->dev), in zfcp_print_sl()
310 dev_name(&adapter->ccw_device->dev)); in zfcp_setup_adapter_work_queue()
335 struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *ccw_device) in zfcp_adapter_enqueue() argument
339 if (!get_device(&ccw_device->dev)) in zfcp_adapter_enqueue()
344 put_device(&ccw_device->dev); in zfcp_adapter_enqueue()
350 ccw_device->handler = NULL; in zfcp_adapter_enqueue()
351 adapter->ccw_device = ccw_device; in zfcp_adapter_enqueue()
404 dev_set_drvdata(&ccw_device->dev, adapter); in zfcp_adapter_enqueue()
406 if (sysfs_create_group(&ccw_device->dev.kobj, in zfcp_adapter_enqueue()
[all …]
H A 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()
265 retval = do_QDIO(qdio->adapter->ccw_device, QDIO_FLAG_SYNC_OUTPUT, 0, in zfcp_qdio_send()
303 ret = qdio_allocate(qdio->adapter->ccw_device, 1, 1); in zfcp_qdio_allocate()
335 qdio_shutdown(adapter->ccw_device, QDIO_FLAG_CLEANUP_USING_CLEAR); in zfcp_qdio_close()
372 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()
H A Dzfcp_fsf.c82 dev_err(&req->adapter->ccw_device->dev, "FCP device not " in zfcp_fsf_class_not_supp()
163 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
168 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
173 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
178 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
183 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
188 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
192 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
196 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
201 dev_warn(&req->adapter->ccw_device->dev, in zfcp_fsf_link_down_info_eval()
[all …]
/OK3568_Linux_fs/kernel/drivers/s390/char/
H A 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 …]
H A Dtape.h185 struct ccw_device * cdev;
266 extern int tape_generic_offline(struct ccw_device *);
267 extern int tape_generic_pm_suspend(struct ccw_device *);
270 extern int tape_generic_probe(struct ccw_device *);
271 extern void tape_generic_remove(struct ccw_device *);
H A Draw3270.c37 struct ccw_device *cdev;
320 raw3270_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in raw3270_irq()
693 raw3270_setup_device(struct ccw_device *cdev, struct raw3270 *rp, char *ascebc) in raw3270_setup_device()
762 struct ccw_device *cdev; in raw3270_setup_console()
813 raw3270_create_device(struct ccw_device *cdev) in raw3270_create_device()
1026 struct ccw_device *cdev; in raw3270_delete_device()
1048 raw3270_probe (struct ccw_device *cdev) in raw3270_probe()
1128 raw3270_set_online (struct ccw_device *cdev) in raw3270_set_online()
1156 raw3270_remove (struct ccw_device *cdev) in raw3270_remove()
1207 raw3270_set_offline (struct ccw_device *cdev) in raw3270_set_offline()
[all …]
/OK3568_Linux_fs/kernel/Documentation/s390/
H A Ddriver-model.rst83 The basic struct ccw_device and struct ccw_driver data structures can be found
86 struct ccw_device {
95 void (*handler) (struct ccw_device *dev, unsigned long intparm,
102 int (*probe) (struct ccw_device *);
103 int (*remove) (struct ccw_device *);
104 int (*set_online) (struct ccw_device *);
105 int (*set_offline) (struct ccw_device *);
106 int (*notify) (struct ccw_device *, int);
139 int (*probe) (struct ccw_device *cdev);
152 int (*remove) (struct ccw_device *cdev);
[all …]
H A Dcds.rst48 * The functions use a ccw_device instead of an irq (subchannel).
57 * The interrupt handlers must be adapted to use a ccw_device as argument.
137 device drivers should use the new calling interface via the ccw_device only.
148 support using the information saved in the struct ccw_device given to them.
177 ccw_device_get_ciw(struct ccw_device *cdev, __u32 cmd);
180 cdev The ccw_device for which the command is to be retrieved.
206 int ccw_device_start(struct ccw_device *cdev,
211 int ccw_device_start_timeout(struct ccw_device *cdev,
217 int ccw_device_start_key(struct ccw_device *cdev,
223 int ccw_device_start_key_timeout(struct ccw_device *cdev,
[all …]
/OK3568_Linux_fs/kernel/drivers/s390/block/
H A Ddasd_int.h533 struct ccw_device *cdev;
791 int dasd_generic_probe (struct ccw_device *, struct dasd_discipline *);
793 void dasd_generic_remove (struct ccw_device *cdev);
794 int dasd_generic_set_online(struct ccw_device *, struct dasd_discipline *);
795 int dasd_generic_set_offline (struct ccw_device *cdev);
796 int dasd_generic_notify(struct ccw_device *, int);
799 void dasd_generic_shutdown(struct ccw_device *);
802 int dasd_generic_pm_freeze(struct ccw_device *);
803 int dasd_generic_restore_device(struct ccw_device *);
804 enum uc_todo dasd_generic_uc_handler(struct ccw_device *, struct irb *);
[all …]

123