Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/s390/cio/
Ddevice_status.c29 ccw_device_msg_control_check(struct ccw_device *cdev, struct irb *irb) in ccw_device_msg_control_check() argument
34 if (!scsw_is_valid_cstat(&irb->scsw) || in ccw_device_msg_control_check()
35 !(scsw_cstat(&irb->scsw) & (SCHN_STAT_CHN_DATA_CHK | in ccw_device_msg_control_check()
44 scsw_dstat(&irb->scsw), scsw_cstat(&irb->scsw)); in ccw_device_msg_control_check()
47 CIO_HEX_EVENT(0, irb, sizeof(struct irb)); in ccw_device_msg_control_check()
76 ccw_device_accumulate_ecw(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_ecw() argument
83 cdev->private->dma_area->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw()
84 if ((irb->scsw.cmd.stctl & SCSW_STCTL_ALERT_STATUS) && in ccw_device_accumulate_ecw()
85 !(irb->scsw.cmd.stctl & SCSW_STCTL_INTER_STATUS)) in ccw_device_accumulate_ecw()
86 cdev->private->dma_area->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw()
[all …]
Ddevice_fsm.c340 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccw_device_done()
454 static void create_fake_irb(struct irb *irb, int type) in create_fake_irb() argument
456 memset(irb, 0, sizeof(*irb)); in create_fake_irb()
458 struct cmd_scsw *scsw = &irb->scsw.cmd; in create_fake_irb()
464 struct tm_scsw *scsw = &irb->scsw.tm; in create_fake_irb()
507 create_fake_irb(&cdev->private->dma_area->irb, in ccw_device_verify_done()
512 &cdev->private->dma_area->irb); in ccw_device_verify_done()
513 memset(&cdev->private->dma_area->irb, 0, in ccw_device_verify_done()
514 sizeof(struct irb)); in ccw_device_verify_done()
671 (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()
545 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.c85 struct irb *irb; in vfio_ccw_sch_io_todo() local
90 irb = &private->irb; in vfio_ccw_sch_io_todo()
92 is_final = !(scsw_actl(&irb->scsw) & in vfio_ccw_sch_io_todo()
94 if (scsw_is_solicited(&irb->scsw)) { in vfio_ccw_sch_io_todo()
95 cp_update_scsw(&private->cp, &irb->scsw); in vfio_ccw_sch_io_todo()
102 memcpy(private->io_region->irb_area, irb, sizeof(*irb)); in vfio_ccw_sch_io_todo()
Deadm_sch.c126 struct irb *irb = this_cpu_ptr(&cio_irb); in eadm_subchannel_irq() local
130 EADM_LOG_HEX(6, irb, sizeof(*irb)); in eadm_subchannel_irq()
135 && scsw->eswf == 1 && irb->esw.eadm.erw.r) in eadm_subchannel_irq()
145 EADM_LOG_HEX(1, irb, sizeof(*irb)); in eadm_subchannel_irq()
Dchsc_sch.h7 struct irb irb; member
Dchsc_sch.c58 struct irb *irb = this_cpu_ptr(&cio_irb); in chsc_subchannel_irq() local
61 CHSC_LOG_HEX(4, irb, sizeof(*irb)); in chsc_subchannel_irq()
71 memcpy(&request->irb, irb, sizeof(*irb)); in chsc_subchannel_irq()
267 if (!(scsw_stctl(&request->irb.scsw) & SCSW_STCTL_STATUS_PEND)) in chsc_examine_irb()
269 backed_up = scsw_cstat(&request->irb.scsw) & SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb()
270 request->irb.scsw.cmd.cstat &= ~SCHN_STAT_CHAIN_CHECK; in chsc_examine_irb()
271 if (scsw_cstat(&request->irb.scsw) == 0) in chsc_examine_irb()
275 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROG_CHECK) in chsc_examine_irb()
277 if (scsw_cstat(&request->irb.scsw) & SCHN_STAT_PROT_CHECK) in chsc_examine_irb()
279 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.c360 struct irb *irb = this_cpu_ptr(&cio_irb); in fsm_irq() local
365 memcpy(&private->irb, irb, sizeof(*irb)); in fsm_irq()
/linux-6.6.21/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.c336 static void raw3270_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in raw3270_irq() argument
348 if (!IS_ERR(irb)) { in raw3270_irq()
350 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) in raw3270_irq()
352 if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | in raw3270_irq()
357 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) && in raw3270_irq()
358 (irb->ecw[0] & SNS0_INTERVENTION_REQ)) { in raw3270_irq()
365 view->fn->intv(view, rq, irb); in raw3270_irq()
695 struct irb *irb) in raw3270_init_irq() argument
700 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in raw3270_init_irq()
701 if (irb->ecw[0] & SNS0_CMD_REJECT) in raw3270_init_irq()
[all …]
/linux-6.6.21/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 *);
1581 static int dasd_check_hpf_error(struct irb *irb) in dasd_check_hpf_error() argument
1583 return (scsw_tm_is_valid_schxs(&irb->scsw) && in dasd_check_hpf_error()
1584 (irb->scsw.tm.sesq == SCSW_SESQ_DEV_NOFCX || in dasd_check_hpf_error()
1585 irb->scsw.tm.sesq == SCSW_SESQ_PATH_NOFCX)); in dasd_check_hpf_error()
1588 static int dasd_ese_needs_format(struct dasd_block *block, struct irb *irb) in dasd_ese_needs_format() argument
1601 sense = dasd_get_sense(irb); in dasd_ese_needs_format()
1607 scsw_cstat(&irb->scsw) == SCHN_STAT_INCORR_LEN; in dasd_ese_needs_format()
1622 struct irb *irb) in dasd_int_handler() argument
1634 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.c217 static int dasd_eckd_track_from_irb(struct irb *irb, struct dasd_device *device, in dasd_eckd_track_from_irb() argument
225 sense = dasd_get_sense(irb); in dasd_eckd_track_from_irb()
2304 sense = dasd_get_sense(&init_cqr->irb); in dasd_eckd_analysis_evaluation()
2999 struct irb *irb) in dasd_eckd_format_process_data() argument
3080 if (fmt_buffer && irb) { in dasd_eckd_format_process_data()
3081 sense = dasd_get_sense(&cqr->irb); in dasd_eckd_format_process_data()
3082 memcpy(irb, &cqr->irb, sizeof(*irb)); in dasd_eckd_format_process_data()
3185 struct irb *irb) in dasd_eckd_ese_format() argument
3214 rc = dasd_eckd_track_from_irb(irb, base, &curr_trk); in dasd_eckd_ese_format()
3267 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
400 struct irb *);
401 void (*dump_sense_dbf) (struct dasd_device *, struct irb *, char *);
404 struct irb *);
419 void (*handle_hpf_error)(struct dasd_device *, struct irb *);
441 struct dasd_ccw_req *, struct irb *);
442 int (*ese_read)(struct dasd_ccw_req *, struct irb *);
911 enum uc_todo dasd_generic_uc_handler(struct ccw_device *, struct irb *);
920 char *dasd_get_sense(struct irb *);
986 void dasd_log_sense(struct dasd_ccw_req *, struct irb *);
[all …]
/linux-6.6.21/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.c1278 lcs_check_irb_error(struct ccw_device *cdev, struct irb *irb) in lcs_check_irb_error() argument
1280 if (!IS_ERR(irb)) in lcs_check_irb_error()
1283 switch (PTR_ERR(irb)) { in lcs_check_irb_error()
1299 PTR_ERR(irb)); in lcs_check_irb_error()
1303 return PTR_ERR(irb); in lcs_check_irb_error()
1307 lcs_get_problem(struct ccw_device *cdev, struct irb *irb) in lcs_get_problem() argument
1312 sense = (char *) irb->ecw; in lcs_get_problem()
1313 cstat = irb->scsw.cmd.cstat; in lcs_get_problem()
1314 dstat = irb->scsw.cmd.dstat; in lcs_get_problem()
1358 lcs_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in lcs_irq() argument
[all …]

123