Home
last modified time | relevance | path

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

123

/linux-6.12.1/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()
512 create_fake_irb(&cdev->private->dma_area->irb, in ccw_device_verify_done()
517 &cdev->private->dma_area->irb); in ccw_device_verify_done()
518 memset(&cdev->private->dma_area->irb, 0, in ccw_device_verify_done()
519 sizeof(struct irb)); in ccw_device_verify_done()
676 (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
540 irb = this_cpu_ptr(&cio_irb); in do_cio_interrupt()
544 tsch(tpi_info->schid, irb); in do_cio_interrupt()
550 if (tsch(tpi_info->schid, irb) == 0) { in do_cio_interrupt()
552 memcpy (&sch->schib.scsw, &irb->scsw, sizeof (irb->scsw)); in do_cio_interrupt()
583 struct irb *irb; in cio_tsch() local
586 irb = this_cpu_ptr(&cio_irb); in cio_tsch()
[all …]
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()
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 *);
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.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 …]
Dchsc_sch.h7 struct irb irb; member
Dio_sch.h83 enum io_status (*filter)(struct ccw_device *, void *, struct irb *,
126 struct irb irb; /* device status */ member
Dqdio_main.c682 static void qdio_irq_check_sense(struct qdio_irq *irq_ptr, struct irb *irb) in qdio_irq_check_sense() argument
684 if (irb->esw.esw0.erw.cons) { in qdio_irq_check_sense()
686 DBF_ERROR_HEX(irb, 64); in qdio_irq_check_sense()
687 DBF_ERROR_HEX(irb->ecw, 64); in qdio_irq_check_sense()
750 struct irb *irb) in qdio_int_handler() argument
765 if (IS_ERR(irb)) { in qdio_int_handler()
771 qdio_irq_check_sense(irq_ptr, irb); in qdio_int_handler()
772 cstat = irb->scsw.cmd.cstat; in qdio_int_handler()
773 dstat = irb->scsw.cmd.dstat; in qdio_int_handler()
774 dcc = scsw_cmd_is_valid_cc(&irb->scsw) ? irb->scsw.cmd.cc : 0; in qdio_int_handler()
/linux-6.12.1/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.c301 struct irb *irb) in ur_int_handler() argument
305 if (!IS_ERR(irb)) { in ur_int_handler()
307 intparm, irb->scsw.cmd.cstat, irb->scsw.cmd.dstat, in ur_int_handler()
308 irb->scsw.cmd.count); in ur_int_handler()
314 if (scsw_dstat(&irb->scsw) & DEV_STAT_DEV_END) { in ur_int_handler()
326 if (IS_ERR(irb)) in ur_int_handler()
327 urd->io_request_rc = PTR_ERR(irb); in ur_int_handler()
328 else if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END)) in ur_int_handler()
Draw3270.c340 static void raw3270_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in raw3270_irq() argument
352 if (!IS_ERR(irb)) { in raw3270_irq()
354 if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) in raw3270_irq()
356 if (irb->scsw.cmd.dstat == (DEV_STAT_CHN_END | in raw3270_irq()
361 if ((irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) && in raw3270_irq()
362 (irb->ecw[0] & SNS0_INTERVENTION_REQ)) { in raw3270_irq()
369 view->fn->intv(view, rq, irb); in raw3270_irq()
699 struct irb *irb) in raw3270_init_irq() argument
704 if (irb->scsw.cmd.dstat & DEV_STAT_UNIT_CHECK) { in raw3270_init_irq()
705 if (irb->ecw[0] & SNS0_CMD_REJECT) in raw3270_init_irq()
[all …]
/linux-6.12.1/drivers/s390/block/
Ddasd_fba.c232 struct irb *irb) in dasd_fba_check_for_device_change() argument
238 if ((irb->scsw.cmd.dstat & mask) == mask) in dasd_fba_check_for_device_change()
634 dasd_fba_dump_sense_dbf(struct dasd_device *device, struct irb *irb, in dasd_fba_dump_sense_dbf() argument
639 sense = (u64 *) dasd_get_sense(irb); in dasd_fba_dump_sense_dbf()
644 scsw_is_tm(&irb->scsw) ? "t" : "c", in dasd_fba_dump_sense_dbf()
645 scsw_cc(&irb->scsw), scsw_cstat(&irb->scsw), in dasd_fba_dump_sense_dbf()
646 scsw_dstat(&irb->scsw), sense[0], sense[1], in dasd_fba_dump_sense_dbf()
657 struct irb *irb) in dasd_fba_dump_sense() argument
674 req, irb->scsw.cmd.cstat, irb->scsw.cmd.dstat); in dasd_fba_dump_sense()
676 (void *)(u64)dma32_to_u32(irb->scsw.cmd.cpa)); in dasd_fba_dump_sense()
[all …]
Ddasd_erp.c161 dasd_log_sense(struct dasd_ccw_req *cqr, struct irb *irb) in dasd_log_sense() argument
178 device->discipline->dump_sense(device, cqr, irb); in dasd_log_sense()
182 dasd_log_sense_dbf(struct dasd_ccw_req *cqr, struct irb *irb) in dasd_log_sense_dbf() argument
189 device->discipline->dump_sense_dbf(device, irb, "log"); in dasd_log_sense_dbf()
Ddasd.c46 void dasd_int_handler(struct ccw_device *, unsigned long, struct irb *);
1580 static int dasd_check_hpf_error(struct irb *irb) in dasd_check_hpf_error() argument
1582 return (scsw_tm_is_valid_schxs(&irb->scsw) && in dasd_check_hpf_error()
1583 (irb->scsw.tm.sesq == SCSW_SESQ_DEV_NOFCX || in dasd_check_hpf_error()
1584 irb->scsw.tm.sesq == SCSW_SESQ_PATH_NOFCX)); in dasd_check_hpf_error()
1587 static int dasd_ese_needs_format(struct dasd_block *block, struct irb *irb) in dasd_ese_needs_format() argument
1600 sense = dasd_get_sense(irb); in dasd_ese_needs_format()
1608 scsw_is_tm(&irb->scsw) && in dasd_ese_needs_format()
1627 struct irb *irb) in dasd_int_handler() argument
1639 if (IS_ERR(irb)) { in dasd_int_handler()
[all …]
Ddasd_3990_erp.c153 ~(erp->irb.esw.esw0.sublog.lpum); in dasd_3990_erp_alternate_path()
155 erp->lpm &= ~(erp->irb.esw.esw0.sublog.lpum); in dasd_3990_erp_alternate_path()
161 erp->lpm, erp->irb.esw.esw0.sublog.lpum, opm); in dasd_3990_erp_alternate_path()
169 "/opm=%x)\n", erp->irb.esw.esw0.sublog.lpum, opm); in dasd_3990_erp_alternate_path()
1420 sense = dasd_get_sense(&erp->refers->irb); in dasd_3990_erp_inspect_alias()
1606 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_erp_action_1B_32()
1623 cpa = default_erp->refers->irb.scsw.cmd.cpa; in dasd_3990_erp_action_1B_32()
1761 if (scsw_is_tm(&cqr->irb.scsw)) { in dasd_3990_update_1B()
1780 cpa = previous_erp->irb.scsw.cmd.cpa; in dasd_3990_update_1B()
2212 __u8 lpum = erp->refers->irb.esw.esw1.lpum; in dasd_3990_erp_account_error()
[all …]
Ddasd_eckd.c211 static int dasd_eckd_track_from_irb(struct irb *irb, struct dasd_device *device, in dasd_eckd_track_from_irb() argument
219 sense = dasd_get_sense(irb); in dasd_eckd_track_from_irb()
2291 sense = dasd_get_sense(&init_cqr->irb); in dasd_eckd_analysis_evaluation()
2985 struct irb *irb) in dasd_eckd_format_process_data() argument
3066 if (fmt_buffer && irb) { in dasd_eckd_format_process_data()
3067 sense = dasd_get_sense(&cqr->irb); in dasd_eckd_format_process_data()
3068 memcpy(irb, &cqr->irb, sizeof(*irb)); in dasd_eckd_format_process_data()
3171 struct irb *irb) in dasd_eckd_ese_format() argument
3200 rc = dasd_eckd_track_from_irb(irb, base, &curr_trk); in dasd_eckd_ese_format()
3253 static int dasd_eckd_ese_read(struct dasd_ccw_req *cqr, struct irb *irb) in dasd_eckd_ese_read() argument
[all …]
Ddasd_int.h148 struct irb irb; /* device status in case of an error */ member
369 struct irb *);
370 void (*dump_sense_dbf) (struct dasd_device *, struct irb *, char *);
373 struct irb *);
388 void (*handle_hpf_error)(struct dasd_device *, struct irb *);
410 struct dasd_ccw_req *, struct irb *);
411 int (*ese_read)(struct dasd_ccw_req *, struct irb *);
880 enum uc_todo dasd_generic_uc_handler(struct ccw_device *, struct irb *);
889 char *dasd_get_sense(struct irb *);
955 void dasd_log_sense(struct dasd_ccw_req *, struct irb *);
[all …]
/linux-6.12.1/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.c1276 lcs_check_irb_error(struct ccw_device *cdev, struct irb *irb) in lcs_check_irb_error() argument
1278 if (!IS_ERR(irb)) in lcs_check_irb_error()
1281 switch (PTR_ERR(irb)) { in lcs_check_irb_error()
1297 PTR_ERR(irb)); in lcs_check_irb_error()
1301 return PTR_ERR(irb); in lcs_check_irb_error()
1305 lcs_get_problem(struct ccw_device *cdev, struct irb *irb) in lcs_get_problem() argument
1310 sense = (char *) irb->ecw; in lcs_get_problem()
1311 cstat = irb->scsw.cmd.cstat; in lcs_get_problem()
1312 dstat = irb->scsw.cmd.dstat; in lcs_get_problem()
1356 lcs_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in lcs_irq() argument
[all …]

123