Home
last modified time | relevance | path

Searched refs:irb (Results 1 – 25 of 55) sorted by relevance

123

/linux-6.1.9/drivers/s390/cio/
Ddevice_status.c28 ccw_device_msg_control_check(struct ccw_device *cdev, struct irb *irb) in ccw_device_msg_control_check() argument
33 if (!scsw_is_valid_cstat(&irb->scsw) || in ccw_device_msg_control_check()
34 !(scsw_cstat(&irb->scsw) & (SCHN_STAT_CHN_DATA_CHK | in ccw_device_msg_control_check()
43 scsw_dstat(&irb->scsw), scsw_cstat(&irb->scsw)); in ccw_device_msg_control_check()
46 CIO_HEX_EVENT(0, irb, sizeof(struct irb)); in ccw_device_msg_control_check()
75 ccw_device_accumulate_ecw(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_ecw() argument
82 cdev->private->dma_area->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw()
83 if ((irb->scsw.cmd.stctl & SCSW_STCTL_ALERT_STATUS) && in ccw_device_accumulate_ecw()
84 !(irb->scsw.cmd.stctl & SCSW_STCTL_INTER_STATUS)) in ccw_device_accumulate_ecw()
85 cdev->private->dma_area->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw()
[all …]
Ddevice_fsm.c339 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_done()
453 static void create_fake_irb(struct irb *irb, int type) in create_fake_irb() argument
455 memset(irb, 0, sizeof(*irb)); in create_fake_irb()
457 struct cmd_scsw *scsw = &irb->scsw.cmd; in create_fake_irb()
463 struct tm_scsw *scsw = &irb->scsw.tm; in create_fake_irb()
506 create_fake_irb(&cdev->private->dma_area->irb, in ccw_device_verify_done()
511 &cdev->private->dma_area->irb); in ccw_device_verify_done()
512 memset(&cdev->private->dma_area->irb, 0, in ccw_device_verify_done()
513 sizeof(struct irb)); in ccw_device_verify_done()
670 (scsw_stctl(&cdev->private->dma_area->irb.scsw) & in ccw_device_online_verify()
[all …]
Dccwreq.c66 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccwreq_stop()
89 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccwreq_do()
170 static enum io_status ccwreq_status(struct ccw_device *cdev, struct irb *lcirb) in ccwreq_status()
172 struct irb *irb = &cdev->private->dma_area->irb; in ccwreq_status() local
173 struct cmd_scsw *scsw = &irb->scsw.cmd; in ccwreq_status()
186 if (irb->esw.esw0.erw.cons) { in ccwreq_status()
190 CIO_HEX_EVENT(2, &cdev->private->dma_area->irb.ecw, in ccwreq_status()
193 if (irb->ecw[0] & SNS0_CMD_REJECT) in ccwreq_status()
257 struct irb *irb = this_cpu_ptr(&cio_irb); in ccw_request_handler() local
263 status = ccwreq_status(cdev, irb); in ccw_request_handler()
[all …]
Dtrace.h107 TP_PROTO(struct subchannel_id schid, struct irb *irb, int cc),
108 TP_ARGS(schid, irb, cc),
113 __field_struct(struct irb, irb)
127 __entry->irb = *irb;
128 __entry->scsw_dcc = scsw_cc(&irb->scsw);
129 __entry->scsw_pno = scsw_pno(&irb->scsw);
130 __entry->scsw_fctl = scsw_fctl(&irb->scsw);
131 __entry->scsw_actl = scsw_actl(&irb->scsw);
132 __entry->scsw_stctl = scsw_stctl(&irb->scsw);
133 __entry->scsw_dstat = scsw_dstat(&irb->scsw);
[all …]
Dcio.c50 DEFINE_PER_CPU_ALIGNED(struct irb, cio_irb);
413 struct irb irb; in cio_commit_config() local
438 if (tsch(sch->schid, &irb)) in cio_commit_config()
536 struct irb *irb; in do_cio_interrupt() local
541 irb = this_cpu_ptr(&cio_irb); in do_cio_interrupt()
546 tsch(tpi_info->schid, irb); in do_cio_interrupt()
551 if (tsch(tpi_info->schid, irb) == 0) { in do_cio_interrupt()
553 memcpy (&sch->schib.scsw, &irb->scsw, sizeof (irb->scsw)); in do_cio_interrupt()
584 struct irb *irb; in cio_tsch() local
587 irb = this_cpu_ptr(&cio_irb); in cio_tsch()
[all …]
Ddevice.h104 void ccw_device_accumulate_irb(struct ccw_device *, struct irb *);
105 void ccw_device_accumulate_basic_sense(struct ccw_device *, struct irb *);
106 int ccw_device_accumulate_and_sense(struct ccw_device *, struct irb *);
107 int ccw_device_do_sense(struct ccw_device *, struct irb *);
Dvfio_ccw_drv.c76 struct irb *irb; in vfio_ccw_sch_io_todo() local
81 irb = &private->irb; in vfio_ccw_sch_io_todo()
83 is_final = !(scsw_actl(&irb->scsw) & in vfio_ccw_sch_io_todo()
85 if (scsw_is_solicited(&irb->scsw)) { in vfio_ccw_sch_io_todo()
86 cp_update_scsw(&private->cp, &irb->scsw); in vfio_ccw_sch_io_todo()
93 memcpy(private->io_region->irb_area, irb, sizeof(*irb)); in vfio_ccw_sch_io_todo()
Deadm_sch.c125 struct irb *irb = this_cpu_ptr(&cio_irb); in eadm_subchannel_irq() local
129 EADM_LOG_HEX(6, irb, sizeof(*irb)); in eadm_subchannel_irq()
134 && scsw->eswf == 1 && irb->esw.eadm.erw.r) in eadm_subchannel_irq()
144 EADM_LOG_HEX(1, irb, sizeof(*irb)); in eadm_subchannel_irq()
Dchsc_sch.h7 struct irb irb; member
Dchsc_sch.c57 struct irb *irb = this_cpu_ptr(&cio_irb); in chsc_subchannel_irq() local
60 CHSC_LOG_HEX(4, irb, sizeof(*irb)); in chsc_subchannel_irq()
70 memcpy(&request->irb, irb, sizeof(*irb)); in chsc_subchannel_irq()
266 if (!(scsw_stctl(&request->irb.scsw) & SCSW_STCTL_STATUS_PEND)) in chsc_examine_irb()
268 backed_up = scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb()
269 request->irb.scsw.cmd.cstat &= ~SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb()
270 if (scsw_cstat(&request->irb.scsw) == 0) in chsc_examine_irb()
274 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROG_CHECK) in chsc_examine_irb()
276 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROT_CHECK) in chsc_examine_irb()
278 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHN_DATA_CHK) in chsc_examine_irb()
[all …]
Dio_sch.h83 enum io_status (*filter)(struct ccw_device *, void *, struct irb *,
126 struct irb irb; /* device status */ member
Dvfio_ccw_fsm.c363 struct irb *irb = this_cpu_ptr(&cio_irb); in fsm_irq() local
368 memcpy(&private->irb, irb, sizeof(*irb)); in fsm_irq()
/linux-6.1.9/drivers/s390/char/
Dtape_3590.c776 struct irb *irb, int rc) in tape_3590_erp_failed() argument
780 tape_dump_sense_dbf(device, request, irb); in tape_3590_erp_failed()
789 struct irb *irb) in tape_3590_erp_retry() argument
792 tape_dump_sense_dbf(device, request, irb); in tape_3590_erp_retry()
800 tape_3590_unsolicited_irq(struct tape_device *device, struct irb *irb) in tape_3590_unsolicited_irq() argument
802 if (irb->scsw.cmd.dstat == DEV_STAT_CHN_END) in tape_3590_unsolicited_irq()
805 else if (irb->scsw.cmd.dstat == 0x85) in tape_3590_unsolicited_irq()
808 else if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { in tape_3590_unsolicited_irq()
812 tape_dump_sense_dbf(device, NULL, irb); in tape_3590_unsolicited_irq()
824 struct irb *irb, int rc) in tape_3590_erp_basic() argument
[all …]
Dtape_34xx.c222 tape_34xx_unsolicited_irq(struct tape_device *device, struct irb *irb) in tape_34xx_unsolicited_irq() argument
224 if (irb->scsw.cmd.dstat == 0x85) { /* READY */ in tape_34xx_unsolicited_irq()
231 tape_dump_sense_dbf(device, NULL, irb); in tape_34xx_unsolicited_irq()
263 struct irb *irb, int no) in tape_34xx_erp_bug() argument
268 tape_dump_sense_dbf(device, request, irb); in tape_34xx_erp_bug()
279 struct irb *irb) in tape_34xx_erp_overrun() argument
281 if (irb->ecw[3] == 0x40) { in tape_34xx_erp_overrun()
286 return tape_34xx_erp_bug(device, request, irb, -1); in tape_34xx_erp_overrun()
294 struct tape_request *request, struct irb *irb) in tape_34xx_erp_sequence() argument
296 if (irb->ecw[3] == 0x41) { in tape_34xx_erp_sequence()
[all …]
Dtape_core.c34 static void __tape_do_irq (struct ccw_device *, unsigned long, struct irb *);
865 struct irb *irb) in tape_dump_sense_dbf() argument
875 irb->scsw.cmd.dstat, irb->scsw.cmd.cstat); in tape_dump_sense_dbf()
877 sptr = (unsigned int *) irb->ecw; in tape_dump_sense_dbf()
1051 __tape_do_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in __tape_do_irq() argument
1066 if (IS_ERR(irb)) { in __tape_do_irq()
1068 switch (PTR_ERR(irb)) { in __tape_do_irq()
1078 device->cdev_id, PTR_ERR(irb)); in __tape_do_irq()
1090 if (irb->scsw.cmd.cc != 0 && in __tape_do_irq()
1091 (irb->scsw.cmd.fctl & SCSW_FCTL_START_FUNC) && in __tape_do_irq()
[all …]
Dvmur.c299 struct irb *irb) in ur_int_handler() argument
303 if (!IS_ERR(irb)) { in ur_int_handler()
305 intparm, irb->scsw.cmd.cstat, irb->scsw.cmd.dstat, in ur_int_handler()
306 irb->scsw.cmd.count); in ur_int_handler()
312 if (scsw_dstat(&irb->scsw) & DEV_STAT_DEV_END) { in ur_int_handler()
324 if (IS_ERR(irb)) in ur_int_handler()
325 urd->io_request_rc = PTR_ERR(irb); in ur_int_handler()
326 else if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END)) in ur_int_handler()
Draw3270.c316 raw3270_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in raw3270_irq() argument
328 if (!IS_ERR(irb)) { in raw3270_irq()
330 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) in raw3270_irq()
332 if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | in raw3270_irq()
337 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) && in raw3270_irq()
338 (irb->ecw[0] & SNS0_INTERVENTION_REQ)) { in raw3270_irq()
345 view->fn->intv(view, rq, irb); in raw3270_irq()
661 struct irb *irb) in raw3270_init_irq() argument
666 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in raw3270_init_irq()
667 if (irb->ecw[0] & SNS0_CMD_REJECT) in raw3270_init_irq()
[all …]
/linux-6.1.9/drivers/s390/block/
Ddasd_fba.c236 struct irb *irb) in dasd_fba_check_for_device_change() argument
242 if ((irb->scsw.cmd.dstat & mask) == mask) in dasd_fba_check_for_device_change()
638 dasd_fba_dump_sense_dbf(struct dasd_device *device, struct irb *irb, in dasd_fba_dump_sense_dbf() argument
643 sense = (u64 *) dasd_get_sense(irb); in dasd_fba_dump_sense_dbf()
648 scsw_is_tm(&irb->scsw) ? "t" : "c", in dasd_fba_dump_sense_dbf()
649 scsw_cc(&irb->scsw), scsw_cstat(&irb->scsw), in dasd_fba_dump_sense_dbf()
650 scsw_dstat(&irb->scsw), sense[0], sense[1], in dasd_fba_dump_sense_dbf()
661 struct irb *irb) in dasd_fba_dump_sense() argument
678 irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); in dasd_fba_dump_sense()
682 (void *) (addr_t) irb->scsw.cmd.cpa); in dasd_fba_dump_sense()
[all …]
Ddasd_erp.c166 dasd_log_sense(struct dasd_ccw_req *cqr, struct irb *irb) in dasd_log_sense() argument
183 device->discipline->dump_sense(device, cqr, irb); in dasd_log_sense()
187 dasd_log_sense_dbf(struct dasd_ccw_req *cqr, struct irb *irb) in dasd_log_sense_dbf() argument
194 device->discipline->dump_sense_dbf(device, irb, "log"); in dasd_log_sense_dbf()
Ddasd.c52 void dasd_int_handler(struct ccw_device *, unsigned long, struct irb *);
1576 static int dasd_check_hpf_error(struct irb *irb) in dasd_check_hpf_error() argument
1578 return (scsw_tm_is_valid_schxs(&irb->scsw) && in dasd_check_hpf_error()
1579 (irb->scsw.tm.sesq == SCSW_SESQ_DEV_NOFCX || in dasd_check_hpf_error()
1580 irb->scsw.tm.sesq == SCSW_SESQ_PATH_NOFCX)); in dasd_check_hpf_error()
1583 static int dasd_ese_needs_format(struct dasd_block *block, struct irb *irb) in dasd_ese_needs_format() argument
1596 sense = dasd_get_sense(irb); in dasd_ese_needs_format()
1602 scsw_cstat(&irb->scsw) == SCHN_STAT_INCORR_LEN; in dasd_ese_needs_format()
1617 struct irb *irb) in dasd_int_handler() argument
1629 if (IS_ERR(irb)) { in dasd_int_handler()
[all …]
Ddasd_3990_erp.c157 ~(erp->irb.esw.esw0.sublog.lpum); in dasd_3990_erp_alternate_path()
159 erp->lpm &= ~(erp->irb.esw.esw0.sublog.lpum); in dasd_3990_erp_alternate_path()
165 erp->lpm, erp->irb.esw.esw0.sublog.lpum, opm); in dasd_3990_erp_alternate_path()
173 "/opm=%x)\n", erp->irb.esw.esw0.sublog.lpum, opm); in dasd_3990_erp_alternate_path()
1446 sense = dasd_get_sense(&erp->refers->irb); in dasd_3990_erp_inspect_alias()
1632 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_erp_action_1B_32()
1649 cpa = default_erp->refers->irb.scsw.cmd.cpa; in dasd_3990_erp_action_1B_32()
1788 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_update_1B()
1807 cpa = previous_erp->irb.scsw.cmd.cpa; in dasd_3990_update_1B()
2251 __u8 lpum = erp->refers->irb.esw.esw1.lpum; in dasd_3990_erp_account_error()
[all …]
Ddasd_eckd.c215 static int dasd_eckd_track_from_irb(struct irb *irb, struct dasd_device *device, in dasd_eckd_track_from_irb() argument
223 sense = dasd_get_sense(irb); in dasd_eckd_track_from_irb()
2301 sense = dasd_get_sense(&init_cqr->irb); in dasd_eckd_analysis_evaluation()
2996 struct irb *irb) in dasd_eckd_format_process_data() argument
3077 if (fmt_buffer && irb) { in dasd_eckd_format_process_data()
3078 sense = dasd_get_sense(&cqr->irb); in dasd_eckd_format_process_data()
3079 memcpy(irb, &cqr->irb, sizeof(*irb)); in dasd_eckd_format_process_data()
3182 struct irb *irb) in dasd_eckd_ese_format() argument
3211 rc = dasd_eckd_track_from_irb(irb, base, &curr_trk); in dasd_eckd_ese_format()
3264 static int dasd_eckd_ese_read(struct dasd_ccw_req *cqr, struct irb *irb) in dasd_eckd_ese_read() argument
[all …]
Ddasd_int.h177 struct irb irb; /* device status in case of an error */ member
396 struct irb *);
397 void (*dump_sense_dbf) (struct dasd_device *, struct irb *, char *);
400 struct irb *);
415 void (*handle_hpf_error)(struct dasd_device *, struct irb *);
437 struct dasd_ccw_req *, struct irb *);
438 int (*ese_read)(struct dasd_ccw_req *, struct irb *);
905 enum uc_todo dasd_generic_uc_handler(struct ccw_device *, struct irb *);
914 char *dasd_get_sense(struct irb *);
979 void dasd_log_sense(struct dasd_ccw_req *, struct irb *);
[all …]
/linux-6.1.9/drivers/s390/net/
Dctcm_main.c231 kfree(ch->irb); in channel_remove()
277 static long ctcm_check_irb_error(struct ccw_device *cdev, struct irb *irb) in ctcm_check_irb_error() argument
279 if (!IS_ERR(irb)) in ctcm_check_irb_error()
284 PTR_ERR(irb), dev_name(&cdev->dev)); in ctcm_check_irb_error()
286 switch (PTR_ERR(irb)) { in ctcm_check_irb_error()
299 return PTR_ERR(irb); in ctcm_check_irb_error()
1148 unsigned long intparm, struct irb *irb) in ctcm_irq_handler() argument
1160 if (ctcm_check_irb_error(cdev, irb)) in ctcm_irq_handler()
1165 cstat = irb->scsw.cmd.cstat; in ctcm_irq_handler()
1166 dstat = irb->scsw.cmd.dstat; in ctcm_irq_handler()
[all …]
Dlcs.c1283 lcs_check_irb_error(struct ccw_device *cdev, struct irb *irb) in lcs_check_irb_error() argument
1285 if (!IS_ERR(irb)) in lcs_check_irb_error()
1288 switch (PTR_ERR(irb)) { in lcs_check_irb_error()
1304 PTR_ERR(irb)); in lcs_check_irb_error()
1308 return PTR_ERR(irb); in lcs_check_irb_error()
1312 lcs_get_problem(struct ccw_device *cdev, struct irb *irb) in lcs_get_problem() argument
1317 sense = (char *) irb->ecw; in lcs_get_problem()
1318 cstat = irb->scsw.cmd.cstat; in lcs_get_problem()
1319 dstat = irb->scsw.cmd.dstat; in lcs_get_problem()
1363 lcs_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in lcs_irq() argument
[all …]

123