diag 109 arch/mips/include/asm/ip32/mace.h volatile unsigned long diag; diag 59 arch/powerpc/include/asm/opal.h int64_t opal_cec_reboot2(uint32_t reboot_type, const char *diag); diag 23 arch/s390/include/asm/appldata.h u16 diag; diag 53 arch/s390/include/asm/appldata.h parm_list->diag = 0xdc; diag 128 arch/s390/include/asm/cpu_mf.h struct hws_diag_entry diag; /* Diagnostic-sampling data entry */ diag 21 arch/s390/include/asm/trace/diag.h #define TRACE_INCLUDE_FILE diag diag 334 drivers/atm/fore200e.c fore200e_reset(struct fore200e* fore200e, int diag) diag 344 drivers/atm/fore200e.c if (diag) { diag 161 drivers/atm/idt77105.c int diag; diag 163 drivers/atm/idt77105.c diag = GET(DIAG) & ~IDT77105_DIAG_LCMASK; diag 168 drivers/atm/idt77105.c diag |= IDT77105_DIAG_LC_PHY_LOOPBACK; diag 171 drivers/atm/idt77105.c diag |= IDT77105_DIAG_LC_LINE_LOOPBACK; diag 176 drivers/atm/idt77105.c PUT(diag,DIAG); diag 448 drivers/bluetooth/btusb.c struct usb_interface *diag; diag 1231 drivers/bluetooth/btusb.c if (data->diag) { diag 3419 drivers/bluetooth/btusb.c struct usb_interface *intf = data->diag; diag 3422 drivers/bluetooth/btusb.c if (!data->diag) diag 3490 drivers/bluetooth/btusb.c if (!data->diag) diag 3736 drivers/bluetooth/btusb.c data->diag = usb_ifnum_to_if(data->udev, ifnum_base + 2); diag 3745 drivers/bluetooth/btusb.c data->diag = usb_ifnum_to_if(data->udev, ifnum_base + 2); diag 3895 drivers/bluetooth/btusb.c if (data->diag) { diag 3897 drivers/bluetooth/btusb.c data->diag, data)) diag 3900 drivers/bluetooth/btusb.c data->diag = NULL; diag 3938 drivers/bluetooth/btusb.c if (data->diag) diag 3939 drivers/bluetooth/btusb.c usb_set_intfdata(data->diag, NULL); diag 3946 drivers/bluetooth/btusb.c if (data->diag) diag 3947 drivers/bluetooth/btusb.c usb_driver_release_interface(&btusb_driver, data->diag); diag 3949 drivers/bluetooth/btusb.c if (data->diag) diag 3950 drivers/bluetooth/btusb.c usb_driver_release_interface(&btusb_driver, data->diag); diag 3952 drivers/bluetooth/btusb.c } else if (intf == data->diag) { diag 450 drivers/gpu/drm/savage/savage_drv.h #define BCI_LINE_STEPS(diag, axi) (((axi) << 16) | ((diag) & 0xFFFF)) diag 2121 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_diag_counters *diag = dev->diag_counters; diag 2123 drivers/infiniband/hw/mlx4/main.c if (!diag[!!port_num].name) diag 2126 drivers/infiniband/hw/mlx4/main.c return rdma_alloc_hw_stats_struct(diag[!!port_num].name, diag 2127 drivers/infiniband/hw/mlx4/main.c diag[!!port_num].num_counters, diag 2136 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_diag_counters *diag = dev->diag_counters; diag 2144 drivers/infiniband/hw/mlx4/main.c diag[!!port].offset, hw_value, diag 2145 drivers/infiniband/hw/mlx4/main.c diag[!!port].num_counters, port); diag 2150 drivers/infiniband/hw/mlx4/main.c for (i = 0; i < diag[!!port].num_counters; i++) diag 2153 drivers/infiniband/hw/mlx4/main.c return diag[!!port].num_counters; diag 2224 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_diag_counters *diag = ibdev->diag_counters; diag 2238 drivers/infiniband/hw/mlx4/main.c ret = __mlx4_ib_alloc_diag_counters(ibdev, &diag[i].name, diag 2239 drivers/infiniband/hw/mlx4/main.c &diag[i].offset, diag 2240 drivers/infiniband/hw/mlx4/main.c &diag[i].num_counters, i); diag 2244 drivers/infiniband/hw/mlx4/main.c mlx4_ib_fill_diag_counters(ibdev, diag[i].name, diag 2245 drivers/infiniband/hw/mlx4/main.c diag[i].offset, i); diag 2254 drivers/infiniband/hw/mlx4/main.c kfree(diag[i - 1].name); diag 2255 drivers/infiniband/hw/mlx4/main.c kfree(diag[i - 1].offset); diag 347 drivers/net/ethernet/brocade/bna/bnad.h struct bnad_diag *diag; diag 51 drivers/net/ethernet/mellanox/mlx5/core/diag/en_rep_tracepoint.h #define TRACE_INCLUDE_PATH ./diag diag 111 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h #define TRACE_INCLUDE_PATH ./diag diag 320 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.h #define TRACE_INCLUDE_PATH ./diag diag 77 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h #define TRACE_INCLUDE_PATH ./diag diag 976 drivers/net/fddi/defxx.h } diag; diag 203 drivers/net/phy/sfp.c struct sfp_diag diag; diag 536 drivers/net/phy/sfp.c sfp_hwmon_calibrate(sfp, be16_to_cpu(sfp->diag.cal_t_slope), diag 537 drivers/net/phy/sfp.c be16_to_cpu(sfp->diag.cal_t_offset), value); diag 547 drivers/net/phy/sfp.c sfp_hwmon_calibrate(sfp, be16_to_cpu(sfp->diag.cal_v_slope), diag 548 drivers/net/phy/sfp.c be16_to_cpu(sfp->diag.cal_v_offset), value); diag 555 drivers/net/phy/sfp.c sfp_hwmon_calibrate(sfp, be16_to_cpu(sfp->diag.cal_txi_slope), diag 556 drivers/net/phy/sfp.c be16_to_cpu(sfp->diag.cal_txi_offset), value); diag 563 drivers/net/phy/sfp.c sfp_hwmon_calibrate(sfp, be16_to_cpu(sfp->diag.cal_txpwr_slope), diag 564 drivers/net/phy/sfp.c be16_to_cpu(sfp->diag.cal_txpwr_offset), value); diag 644 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.temp_low_alarm); diag 649 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.temp_low_warn); diag 653 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.temp_high_warn); diag 658 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.temp_high_alarm); diag 710 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.volt_low_alarm); diag 715 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.volt_low_warn); diag 720 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.volt_high_warn); diag 725 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.volt_high_alarm); diag 777 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.bias_low_alarm); diag 782 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.bias_low_warn); diag 787 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.bias_high_warn); diag 792 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.bias_high_alarm); diag 844 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.txpwr_low_alarm); diag 849 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.txpwr_low_warn); diag 854 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.txpwr_high_warn); diag 859 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.txpwr_high_alarm); diag 911 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.rxpwr_low_alarm); diag 916 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.rxpwr_low_warn); diag 921 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.rxpwr_high_warn); diag 926 drivers/net/phy/sfp.c *value = be16_to_cpu(sfp->diag.rxpwr_high_alarm); diag 1161 drivers/net/phy/sfp.c err = sfp_read(sfp, true, 0, &sfp->diag, sizeof(sfp->diag)); diag 626 drivers/parport/parport_ip32.c u64 diag; diag 654 drivers/parport/parport_ip32.c diag = readq(&mace->perif.ctrl.parport.diagnostic); diag 663 drivers/parport/parport_ip32.c if (diag & MACEPAR_DIAG_DMACTIVE) diag 664 drivers/parport/parport_ip32.c res[(diag & MACEPAR_DIAG_CTXINUSE) != 0] = diag 665 drivers/parport/parport_ip32.c 1 + ((diag & MACEPAR_DIAG_CTRMASK) >> diag 885 drivers/pcmcia/ti113x.h u8 old, diag; diag 888 drivers/pcmcia/ti113x.h diag = old & ~(TI1250_DIAG_PCI_CSC | TI1250_DIAG_PCI_IREQ); diag 890 drivers/pcmcia/ti113x.h diag |= TI1250_DIAG_PCI_CSC | TI1250_DIAG_PCI_IREQ; diag 892 drivers/pcmcia/ti113x.h if (diag != old) { diag 895 drivers/pcmcia/ti113x.h old, diag); diag 896 drivers/pcmcia/ti113x.h config_writeb(socket, TI1250_DIAGNOSTIC, diag); diag 22 drivers/s390/block/dasd_fba.h unsigned char diag:1; /* allow diagnose */ diag 51 drivers/s390/char/sclp_ftp.c struct sclp_diag_evbuf *diag = (struct sclp_diag_evbuf *) evbuf; diag 57 drivers/s390/char/sclp_ftp.c diag->route != SCLP_DIAG_FTP_ROUTE || diag 58 drivers/s390/char/sclp_ftp.c diag->mdd.ftp.pcx != SCLP_DIAG_FTP_XPCX || diag 72 drivers/s390/char/sclp_ftp.c sclp_ftp_ldflg = diag->mdd.ftp.ldflg; diag 73 drivers/s390/char/sclp_ftp.c sclp_ftp_fsize = diag->mdd.ftp.fsize; diag 74 drivers/s390/char/sclp_ftp.c sclp_ftp_length = diag->mdd.ftp.length; diag 37 drivers/s390/cio/device_id.c static int diag210_to_senseid(struct senseid *senseid, struct diag210 *diag) diag 75 drivers/s390/cio/device_id.c if (diag->vrdcvcla == 0x02 && diag->vrdcvtyp == 0x20) { diag 82 drivers/s390/cio/device_id.c if (diag->vrdcvcla == vm_devices[i].class && diag 83 drivers/s390/cio/device_id.c diag->vrdcvtyp == vm_devices[i].type) { diag 147 drivers/scsi/bfa/bfa_core.c struct bfa_diag_s *diag = BFA_DIAG_MOD(bfa); diag 150 drivers/scsi/bfa/bfa_core.c bfa_diag_attach(diag, &bfa->ioc, bfa, bfa_fcport_beacon, bfa->trcmod); diag 151 drivers/scsi/bfa/bfa_core.c bfa_diag_memclaim(diag, diag_dma->kva_curp, diag_dma->dma_curp); diag 932 drivers/scsi/bfa/bfa_defs.h u8 diag[SFP_DIAGMON_SIZE]; diag 4718 drivers/scsi/bfa/bfa_ioc.c struct bfa_diag_s *diag = diag_arg; diag 4720 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, event); diag 4721 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->block); diag 4722 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->fwping.lock); diag 4723 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->tsensor.lock); diag 4728 drivers/scsi/bfa/bfa_ioc.c if (diag->fwping.lock) { diag 4729 drivers/scsi/bfa/bfa_ioc.c diag->fwping.status = BFA_STATUS_IOC_FAILURE; diag 4730 drivers/scsi/bfa/bfa_ioc.c diag->fwping.cbfn(diag->fwping.cbarg, diag 4731 drivers/scsi/bfa/bfa_ioc.c diag->fwping.status); diag 4732 drivers/scsi/bfa/bfa_ioc.c diag->fwping.lock = 0; diag 4735 drivers/scsi/bfa/bfa_ioc.c if (diag->tsensor.lock) { diag 4736 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.status = BFA_STATUS_IOC_FAILURE; diag 4737 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.cbfn(diag->tsensor.cbarg, diag 4738 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.status); diag 4739 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.lock = 0; diag 4742 drivers/scsi/bfa/bfa_ioc.c if (diag->block) { diag 4743 drivers/scsi/bfa/bfa_ioc.c if (diag->timer_active) { diag 4744 drivers/scsi/bfa/bfa_ioc.c bfa_timer_stop(&diag->timer); diag 4745 drivers/scsi/bfa/bfa_ioc.c diag->timer_active = 0; diag 4748 drivers/scsi/bfa/bfa_ioc.c diag->status = BFA_STATUS_IOC_FAILURE; diag 4749 drivers/scsi/bfa/bfa_ioc.c diag->cbfn(diag->cbarg, diag->status); diag 4750 drivers/scsi/bfa/bfa_ioc.c diag->block = 0; diag 4762 drivers/scsi/bfa/bfa_ioc.c struct bfa_diag_s *diag = cbarg; diag 4763 drivers/scsi/bfa/bfa_ioc.c struct bfa_ioc_s *ioc = diag->ioc; diag 4764 drivers/scsi/bfa/bfa_ioc.c struct bfa_diag_memtest_result *res = diag->result; diag 4785 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, res->status); diag 4788 drivers/scsi/bfa/bfa_ioc.c diag->status = BFA_STATUS_OK; diag 4790 drivers/scsi/bfa/bfa_ioc.c diag->status = BFA_STATUS_MEMTEST_FAILED; diag 4797 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, res->addr); diag 4798 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, res->exp); diag 4799 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, res->act); diag 4800 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, res->err_status); diag 4801 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, res->err_status1); diag 4802 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, res->err_addr); diag 4804 drivers/scsi/bfa/bfa_ioc.c diag->timer_active = 0; diag 4805 drivers/scsi/bfa/bfa_ioc.c diag->cbfn(diag->cbarg, diag->status); diag 4806 drivers/scsi/bfa/bfa_ioc.c diag->block = 0; diag 4817 drivers/scsi/bfa/bfa_ioc.c diag_fwping_send(struct bfa_diag_s *diag) diag 4822 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->fwping.dbuf_pa); diag 4826 drivers/scsi/bfa/bfa_ioc.c *((u32 *)diag->fwping.dbuf_kva + i) = diag->fwping.data; diag 4829 drivers/scsi/bfa/bfa_ioc.c fwping_req = (struct bfi_diag_fwping_req_s *)diag->fwping.mbcmd.msg; diag 4833 drivers/scsi/bfa/bfa_ioc.c diag->fwping.dbuf_pa); diag 4835 drivers/scsi/bfa/bfa_ioc.c fwping_req->count = cpu_to_be32(diag->fwping.count); diag 4837 drivers/scsi/bfa/bfa_ioc.c fwping_req->data = diag->fwping.data; diag 4841 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_portid(diag->ioc)); diag 4844 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(diag->ioc, &diag->fwping.mbcmd); diag 4848 drivers/scsi/bfa/bfa_ioc.c diag_fwping_comp(struct bfa_diag_s *diag, diag 4854 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, rsp_data); diag 4855 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, rsp_dma_status); diag 4859 drivers/scsi/bfa/bfa_ioc.c pat = (diag->fwping.count & 0x1) ? ~(diag->fwping.data) : diag 4860 drivers/scsi/bfa/bfa_ioc.c diag->fwping.data; diag 4862 drivers/scsi/bfa/bfa_ioc.c if (diag->fwping.data != rsp_data) { diag 4863 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, rsp_data); diag 4864 drivers/scsi/bfa/bfa_ioc.c diag->fwping.result->dmastatus = diag 4866 drivers/scsi/bfa/bfa_ioc.c diag->fwping.status = BFA_STATUS_DATACORRUPTED; diag 4867 drivers/scsi/bfa/bfa_ioc.c diag->fwping.cbfn(diag->fwping.cbarg, diag 4868 drivers/scsi/bfa/bfa_ioc.c diag->fwping.status); diag 4869 drivers/scsi/bfa/bfa_ioc.c diag->fwping.lock = 0; diag 4874 drivers/scsi/bfa/bfa_ioc.c if (*((u32 *)diag->fwping.dbuf_kva + i) != pat) { diag 4875 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, i); diag 4876 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, pat); diag 4877 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag 4878 drivers/scsi/bfa/bfa_ioc.c *((u32 *)diag->fwping.dbuf_kva + i)); diag 4879 drivers/scsi/bfa/bfa_ioc.c diag->fwping.result->dmastatus = diag 4881 drivers/scsi/bfa/bfa_ioc.c diag->fwping.status = BFA_STATUS_DATACORRUPTED; diag 4882 drivers/scsi/bfa/bfa_ioc.c diag->fwping.cbfn(diag->fwping.cbarg, diag 4883 drivers/scsi/bfa/bfa_ioc.c diag->fwping.status); diag 4884 drivers/scsi/bfa/bfa_ioc.c diag->fwping.lock = 0; diag 4888 drivers/scsi/bfa/bfa_ioc.c diag->fwping.result->dmastatus = BFA_STATUS_OK; diag 4889 drivers/scsi/bfa/bfa_ioc.c diag->fwping.status = BFA_STATUS_OK; diag 4890 drivers/scsi/bfa/bfa_ioc.c diag->fwping.cbfn(diag->fwping.cbarg, diag->fwping.status); diag 4891 drivers/scsi/bfa/bfa_ioc.c diag->fwping.lock = 0; diag 4893 drivers/scsi/bfa/bfa_ioc.c diag->fwping.status = BFA_STATUS_HDMA_FAILED; diag 4894 drivers/scsi/bfa/bfa_ioc.c diag->fwping.cbfn(diag->fwping.cbarg, diag->fwping.status); diag 4895 drivers/scsi/bfa/bfa_ioc.c diag->fwping.lock = 0; diag 4904 drivers/scsi/bfa/bfa_ioc.c diag_tempsensor_send(struct bfa_diag_s *diag) diag 4908 drivers/scsi/bfa/bfa_ioc.c msg = (struct bfi_diag_ts_req_s *)diag->tsensor.mbcmd.msg; diag 4909 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, msg->temp); diag 4912 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_portid(diag->ioc)); diag 4914 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(diag->ioc, &diag->tsensor.mbcmd); diag 4918 drivers/scsi/bfa/bfa_ioc.c diag_tempsensor_comp(struct bfa_diag_s *diag, bfi_diag_ts_rsp_t *rsp) diag 4920 drivers/scsi/bfa/bfa_ioc.c if (!diag->tsensor.lock) { diag 4922 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->tsensor.lock); diag 4930 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.temp->temp = be16_to_cpu(rsp->temp); diag 4931 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.temp->ts_junc = rsp->ts_junc; diag 4932 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.temp->ts_brd = rsp->ts_brd; diag 4936 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.temp->status = rsp->status; diag 4938 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.temp->brd_temp = diag 4941 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.temp->brd_temp = 0; diag 4944 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, rsp->status); diag 4945 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, rsp->ts_junc); diag 4946 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, rsp->temp); diag 4947 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, rsp->ts_brd); diag 4948 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, rsp->brd_temp); diag 4951 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.status = BFA_STATUS_OK; diag 4952 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.cbfn(diag->tsensor.cbarg, diag->tsensor.status); diag 4953 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.lock = 0; diag 4960 drivers/scsi/bfa/bfa_ioc.c diag_ledtest_send(struct bfa_diag_s *diag, struct bfa_diag_ledtest_s *ledtest) diag 4964 drivers/scsi/bfa/bfa_ioc.c msg = (struct bfi_diag_ledtest_req_s *)diag->ledtest.mbcmd.msg; diag 4967 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_portid(diag->ioc)); diag 4979 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, ledtest->freq); diag 4983 drivers/scsi/bfa/bfa_ioc.c msg->portid = bfa_ioc_portid(diag->ioc); diag 4988 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(diag->ioc, &diag->ledtest.mbcmd); diag 4992 drivers/scsi/bfa/bfa_ioc.c diag_ledtest_comp(struct bfa_diag_s *diag, struct bfi_diag_ledtest_rsp_s *msg) diag 4994 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->ledtest.lock); diag 4995 drivers/scsi/bfa/bfa_ioc.c diag->ledtest.lock = BFA_FALSE; diag 5003 drivers/scsi/bfa/bfa_ioc.c diag_portbeacon_send(struct bfa_diag_s *diag, bfa_boolean_t beacon, u32 sec) diag 5007 drivers/scsi/bfa/bfa_ioc.c msg = (struct bfi_diag_portbeacon_req_s *)diag->beacon.mbcmd.msg; diag 5010 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_portid(diag->ioc)); diag 5014 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_queue(diag->ioc, &diag->beacon.mbcmd); diag 5018 drivers/scsi/bfa/bfa_ioc.c diag_portbeacon_comp(struct bfa_diag_s *diag) diag 5020 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->beacon.state); diag 5021 drivers/scsi/bfa/bfa_ioc.c diag->beacon.state = BFA_FALSE; diag 5022 drivers/scsi/bfa/bfa_ioc.c if (diag->cbfn_beacon) diag 5023 drivers/scsi/bfa/bfa_ioc.c diag->cbfn_beacon(diag->dev, BFA_FALSE, diag->beacon.link_e2e); diag 5032 drivers/scsi/bfa/bfa_ioc.c struct bfa_diag_s *diag = diagarg; diag 5036 drivers/scsi/bfa/bfa_ioc.c diag_portbeacon_comp(diag); diag 5039 drivers/scsi/bfa/bfa_ioc.c diag_fwping_comp(diag, (struct bfi_diag_fwping_rsp_s *) msg); diag 5042 drivers/scsi/bfa/bfa_ioc.c diag_tempsensor_comp(diag, (bfi_diag_ts_rsp_t *) msg); diag 5045 drivers/scsi/bfa/bfa_ioc.c diag_ledtest_comp(diag, (struct bfi_diag_ledtest_rsp_s *) msg); diag 5048 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, msg->mh.msg_id); diag 5066 drivers/scsi/bfa/bfa_ioc.c bfa_diag_memtest(struct bfa_diag_s *diag, struct bfa_diag_memtest_s *memtest, diag 5072 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, pattern); diag 5074 drivers/scsi/bfa/bfa_ioc.c if (!bfa_ioc_adapter_is_disabled(diag->ioc)) diag 5078 drivers/scsi/bfa/bfa_ioc.c if (diag->block) { diag 5079 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->block); diag 5082 drivers/scsi/bfa/bfa_ioc.c diag->block = 1; diag 5084 drivers/scsi/bfa/bfa_ioc.c diag->result = result; diag 5085 drivers/scsi/bfa/bfa_ioc.c diag->cbfn = cbfn; diag 5086 drivers/scsi/bfa/bfa_ioc.c diag->cbarg = cbarg; diag 5089 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_boot(diag->ioc, BFI_FWBOOT_TYPE_MEMTEST, BFI_FWBOOT_ENV_OS); diag 5091 drivers/scsi/bfa/bfa_ioc.c memtest_tov = (bfa_ioc_asic_gen(diag->ioc) == BFI_ASIC_GEN_CT2) ? diag 5093 drivers/scsi/bfa/bfa_ioc.c bfa_timer_begin(diag->ioc->timer_mod, &diag->timer, diag 5094 drivers/scsi/bfa/bfa_ioc.c bfa_diag_memtest_done, diag, memtest_tov); diag 5095 drivers/scsi/bfa/bfa_ioc.c diag->timer_active = 1; diag 5112 drivers/scsi/bfa/bfa_ioc.c bfa_diag_fwping(struct bfa_diag_s *diag, u32 cnt, u32 data, diag 5116 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, cnt); diag 5117 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, data); diag 5119 drivers/scsi/bfa/bfa_ioc.c if (!bfa_ioc_is_operational(diag->ioc)) diag 5122 drivers/scsi/bfa/bfa_ioc.c if (bfa_asic_id_ct2(bfa_ioc_devid((diag->ioc))) && diag 5123 drivers/scsi/bfa/bfa_ioc.c ((diag->ioc)->clscode == BFI_PCIFN_CLASS_ETH)) diag 5127 drivers/scsi/bfa/bfa_ioc.c if (diag->block || diag->fwping.lock) { diag 5128 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->block); diag 5129 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->fwping.lock); diag 5134 drivers/scsi/bfa/bfa_ioc.c diag->fwping.lock = 1; diag 5135 drivers/scsi/bfa/bfa_ioc.c diag->fwping.cbfn = cbfn; diag 5136 drivers/scsi/bfa/bfa_ioc.c diag->fwping.cbarg = cbarg; diag 5137 drivers/scsi/bfa/bfa_ioc.c diag->fwping.result = result; diag 5138 drivers/scsi/bfa/bfa_ioc.c diag->fwping.data = data; diag 5139 drivers/scsi/bfa/bfa_ioc.c diag->fwping.count = cnt; diag 5142 drivers/scsi/bfa/bfa_ioc.c diag->fwping.result->data = 0; diag 5143 drivers/scsi/bfa/bfa_ioc.c diag->fwping.result->status = BFA_STATUS_OK; diag 5146 drivers/scsi/bfa/bfa_ioc.c diag_fwping_send(diag); diag 5161 drivers/scsi/bfa/bfa_ioc.c bfa_diag_tsensor_query(struct bfa_diag_s *diag, diag 5166 drivers/scsi/bfa/bfa_ioc.c if (diag->block || diag->tsensor.lock) { diag 5167 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->block); diag 5168 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, diag->tsensor.lock); diag 5172 drivers/scsi/bfa/bfa_ioc.c if (!bfa_ioc_is_operational(diag->ioc)) diag 5176 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.lock = 1; diag 5177 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.temp = result; diag 5178 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.cbfn = cbfn; diag 5179 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.cbarg = cbarg; diag 5180 drivers/scsi/bfa/bfa_ioc.c diag->tsensor.status = BFA_STATUS_OK; diag 5183 drivers/scsi/bfa/bfa_ioc.c diag_tempsensor_send(diag); diag 5197 drivers/scsi/bfa/bfa_ioc.c bfa_diag_ledtest(struct bfa_diag_s *diag, struct bfa_diag_ledtest_s *ledtest) diag 5199 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, ledtest->cmd); diag 5201 drivers/scsi/bfa/bfa_ioc.c if (!bfa_ioc_is_operational(diag->ioc)) diag 5204 drivers/scsi/bfa/bfa_ioc.c if (diag->beacon.state) diag 5207 drivers/scsi/bfa/bfa_ioc.c if (diag->ledtest.lock) diag 5211 drivers/scsi/bfa/bfa_ioc.c diag->ledtest.lock = BFA_TRUE; diag 5212 drivers/scsi/bfa/bfa_ioc.c diag_ledtest_send(diag, ledtest); diag 5228 drivers/scsi/bfa/bfa_ioc.c bfa_diag_beacon_port(struct bfa_diag_s *diag, bfa_boolean_t beacon, diag 5231 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, beacon); diag 5232 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, link_e2e_beacon); diag 5233 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, sec); diag 5235 drivers/scsi/bfa/bfa_ioc.c if (!bfa_ioc_is_operational(diag->ioc)) diag 5238 drivers/scsi/bfa/bfa_ioc.c if (diag->ledtest.lock) diag 5241 drivers/scsi/bfa/bfa_ioc.c if (diag->beacon.state && beacon) /* beacon alread on */ diag 5244 drivers/scsi/bfa/bfa_ioc.c diag->beacon.state = beacon; diag 5245 drivers/scsi/bfa/bfa_ioc.c diag->beacon.link_e2e = link_e2e_beacon; diag 5246 drivers/scsi/bfa/bfa_ioc.c if (diag->cbfn_beacon) diag 5247 drivers/scsi/bfa/bfa_ioc.c diag->cbfn_beacon(diag->dev, beacon, link_e2e_beacon); diag 5250 drivers/scsi/bfa/bfa_ioc.c diag_portbeacon_send(diag, beacon, sec); diag 5268 drivers/scsi/bfa/bfa_ioc.c bfa_diag_attach(struct bfa_diag_s *diag, struct bfa_ioc_s *ioc, void *dev, diag 5271 drivers/scsi/bfa/bfa_ioc.c diag->dev = dev; diag 5272 drivers/scsi/bfa/bfa_ioc.c diag->ioc = ioc; diag 5273 drivers/scsi/bfa/bfa_ioc.c diag->trcmod = trcmod; diag 5275 drivers/scsi/bfa/bfa_ioc.c diag->block = 0; diag 5276 drivers/scsi/bfa/bfa_ioc.c diag->cbfn = NULL; diag 5277 drivers/scsi/bfa/bfa_ioc.c diag->cbarg = NULL; diag 5278 drivers/scsi/bfa/bfa_ioc.c diag->result = NULL; diag 5279 drivers/scsi/bfa/bfa_ioc.c diag->cbfn_beacon = cbfn_beacon; diag 5281 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_regisr(diag->ioc, BFI_MC_DIAG, bfa_diag_intr, diag); diag 5282 drivers/scsi/bfa/bfa_ioc.c bfa_q_qe_init(&diag->ioc_notify); diag 5283 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_notify_init(&diag->ioc_notify, bfa_diag_notify, diag); diag 5284 drivers/scsi/bfa/bfa_ioc.c list_add_tail(&diag->ioc_notify.qe, &diag->ioc->notify_q); diag 5288 drivers/scsi/bfa/bfa_ioc.c bfa_diag_memclaim(struct bfa_diag_s *diag, u8 *dm_kva, u64 dm_pa) diag 5290 drivers/scsi/bfa/bfa_ioc.c diag->fwping.dbuf_kva = dm_kva; diag 5291 drivers/scsi/bfa/bfa_ioc.c diag->fwping.dbuf_pa = dm_pa; diag 5292 drivers/scsi/bfa/bfa_ioc.c memset(diag->fwping.dbuf_kva, 0, BFI_DIAG_DMA_BUF_SZ); diag 452 drivers/scsi/bfa/bfa_ioc.h void bfa_sfp_memclaim(struct bfa_sfp_s *diag, u8 *dm_kva, u64 dm_pa); diag 632 drivers/scsi/bfa/bfa_ioc.h void bfa_diag_memclaim(struct bfa_diag_s *diag, u8 *dm_kva, u64 dm_pa); diag 633 drivers/scsi/bfa/bfa_ioc.h void bfa_diag_attach(struct bfa_diag_s *diag, struct bfa_ioc_s *ioc, void *dev, diag 636 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_diag_reg_read(struct bfa_diag_s *diag, u32 offset, diag 638 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_diag_reg_write(struct bfa_diag_s *diag, u32 offset, diag 640 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_diag_tsensor_query(struct bfa_diag_s *diag, diag 643 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_diag_fwping(struct bfa_diag_s *diag, u32 cnt, diag 646 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_diag_sfpshow(struct bfa_diag_s *diag, diag 649 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_diag_memtest(struct bfa_diag_s *diag, diag 653 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_diag_ledtest(struct bfa_diag_s *diag, diag 655 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_diag_beacon_port(struct bfa_diag_s *diag, diag 1160 drivers/scsi/esas2r/atioctl.h struct atto_ioctl_vda_diag_cmd diag; diag 1220 drivers/scsi/esas2r/atvda.h struct atto_vda_diag_req diag; diag 1914 drivers/scsi/lpfc/lpfc_bsg.c lpfc_sli4_bsg_set_link_diag_state(struct lpfc_hba *phba, uint32_t diag) diag 1936 drivers/scsi/lpfc/lpfc_bsg.c diag, phba->sli4_hba.lnk_info.lnk_tp, diag 1946 drivers/scsi/lpfc/lpfc_bsg.c if (diag) diag 4797 drivers/scsi/qla2xxx/qla_def.h u8 diag; diag 718 drivers/scsi/smartpqi/smartpqi_init.c struct bmic_diag_options *diag; diag 720 drivers/scsi/smartpqi/smartpqi_init.c diag = kzalloc(sizeof(*diag), GFP_KERNEL); diag 721 drivers/scsi/smartpqi/smartpqi_init.c if (!diag) diag 725 drivers/scsi/smartpqi/smartpqi_init.c diag, sizeof(*diag)); diag 729 drivers/scsi/smartpqi/smartpqi_init.c diag->options |= cpu_to_le32(PQI_FETCH_PTRAID_DATA); diag 732 drivers/scsi/smartpqi/smartpqi_init.c diag, sizeof(*diag)); diag 734 drivers/scsi/smartpqi/smartpqi_init.c kfree(diag); diag 276 drivers/soc/fsl/qe/ucc_slow.c us_info->diag | us_info->mode; diag 2149 drivers/staging/media/ipu3/include/intel-ipu3.h struct ipu3_uapi_yuvp1_y_ee_nr_diag_config diag; diag 9455 drivers/staging/media/ipu3/ipu3-tables.c .diag = { 1, X, 4, 1, 1, 4, X }, diag 798 drivers/usb/misc/ftdi-elan.c char diag[40 *3 + 4]; diag 799 drivers/usb/misc/ftdi-elan.c char *d = diag; diag 802 drivers/usb/misc/ftdi-elan.c int s = (sizeof(diag) - 1) / 3; diag 803 drivers/usb/misc/ftdi-elan.c diag[0] = 0; diag 924 drivers/usb/misc/ftdi-elan.c char diag[30 *3 + 4]; diag 925 drivers/usb/misc/ftdi-elan.c char *d = diag; diag 928 drivers/usb/misc/ftdi-elan.c int s = (sizeof(diag) - 1) / 3; diag 929 drivers/usb/misc/ftdi-elan.c diag[0] = 0; diag 943 drivers/usb/misc/ftdi-elan.c packet_bytes, bytes_read, diag); diag 947 drivers/usb/misc/ftdi-elan.c bytes_read, diag); diag 951 drivers/usb/misc/ftdi-elan.c packet_bytes, bytes_read, diag); diag 956 drivers/usb/misc/ftdi-elan.c retval, packet_bytes, bytes_read, diag); diag 960 drivers/usb/misc/ftdi-elan.c retval, packet_bytes, bytes_read, diag); diag 988 drivers/usb/misc/ftdi-elan.c char diag[30 *3 + 4]; diag 989 drivers/usb/misc/ftdi-elan.c char *d = diag; diag 992 drivers/usb/misc/ftdi-elan.c int s = (sizeof(diag) - 1) / 3; diag 993 drivers/usb/misc/ftdi-elan.c diag[0] = 0; diag 1816 drivers/usb/misc/ftdi-elan.c char diag[30 *3 + 4]; diag 1817 drivers/usb/misc/ftdi-elan.c char *d = diag; diag 1818 drivers/usb/misc/ftdi-elan.c int m = (sizeof(diag) - 1) / 3 - 1; diag 1821 drivers/usb/misc/ftdi-elan.c diag[0] = 0; diag 1989 drivers/usb/misc/ftdi-elan.c char diag[30 *3 + 4]; diag 1990 drivers/usb/misc/ftdi-elan.c char *d = diag; diag 1991 drivers/usb/misc/ftdi-elan.c int m = (sizeof(diag) - 1) / 3 - 1; diag 1995 drivers/usb/misc/ftdi-elan.c diag[0] = 0; diag 2084 drivers/usb/misc/ftdi-elan.c char diag[30 *3 + 4]; diag 2085 drivers/usb/misc/ftdi-elan.c char *d = diag; diag 2086 drivers/usb/misc/ftdi-elan.c int m = (sizeof(diag) - 1) / 3 - 1; diag 2089 drivers/usb/misc/ftdi-elan.c diag[0] = 0; diag 177 include/soc/fsl/qe/ucc_slow.h enum ucc_slow_diag_mode diag; diag 51 kernel/debug/kdb/kdb_bp.c int diag; diag 71 kernel/debug/kdb/kdb_bp.c diag = kdbgetularg((char *)argv[nextarg], diag 73 kernel/debug/kdb/kdb_bp.c if (diag) diag 74 kernel/debug/kdb/kdb_bp.c return diag; diag 281 kernel/debug/kdb/kdb_bp.c int diag; diag 302 kernel/debug/kdb/kdb_bp.c diag = kdbgetaddrarg(argc, argv, &nextarg, &template.bp_addr, diag 304 kernel/debug/kdb/kdb_bp.c if (diag) diag 305 kernel/debug/kdb/kdb_bp.c return diag; diag 322 kernel/debug/kdb/kdb_bp.c diag = kdb_parsebp(argc, argv, &nextarg, &template); diag 323 kernel/debug/kdb/kdb_bp.c if (diag) diag 324 kernel/debug/kdb/kdb_bp.c return diag; diag 385 kernel/debug/kdb/kdb_bp.c int diag = 0; diag 406 kernel/debug/kdb/kdb_bp.c diag = kdbgetularg(argv[1], &addr); diag 407 kernel/debug/kdb/kdb_bp.c if (diag) diag 408 kernel/debug/kdb/kdb_bp.c return diag; diag 108 kernel/debug/kdb/kdb_bt.c int diag; diag 145 kernel/debug/kdb/kdb_bt.c diag = kdbgetularg((char *)argv[1], &pid); diag 146 kernel/debug/kdb/kdb_bt.c if (diag) diag 147 kernel/debug/kdb/kdb_bt.c return diag; diag 158 kernel/debug/kdb/kdb_bt.c diag = kdbgetularg((char *)argv[1], &addr); diag 159 kernel/debug/kdb/kdb_bt.c if (diag) diag 160 kernel/debug/kdb/kdb_bt.c return diag; diag 170 kernel/debug/kdb/kdb_bt.c diag = kdbgetularg((char *)argv[1], &cpu); diag 171 kernel/debug/kdb/kdb_bt.c if (diag) diag 172 kernel/debug/kdb/kdb_bt.c return diag; diag 207 kernel/debug/kdb/kdb_bt.c diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, diag 209 kernel/debug/kdb/kdb_bt.c if (diag) diag 210 kernel/debug/kdb/kdb_bt.c return diag; diag 218 kernel/debug/kdb/kdb_io.c int diag, dtab_count; diag 222 kernel/debug/kdb/kdb_io.c diag = kdbgetintenv("DTABCOUNT", &dtab_count); diag 223 kernel/debug/kdb/kdb_io.c if (diag) diag 557 kernel/debug/kdb/kdb_io.c int diag; diag 583 kernel/debug/kdb/kdb_io.c diag = kdbgetintenv("LINES", &linecount); diag 584 kernel/debug/kdb/kdb_io.c if (diag || linecount <= 1) diag 587 kernel/debug/kdb/kdb_io.c diag = kdbgetintenv("COLUMNS", &colcount); diag 588 kernel/debug/kdb/kdb_io.c if (diag || colcount <= 1) diag 591 kernel/debug/kdb/kdb_io.c diag = kdbgetintenv("LOGGING", &logging); diag 592 kernel/debug/kdb/kdb_io.c if (diag) diag 319 kernel/debug/kdb/kdb_main.c int diag; diag 321 kernel/debug/kdb/kdb_main.c diag = kdbgetulenv(match, &val); diag 322 kernel/debug/kdb/kdb_main.c if (!diag) diag 324 kernel/debug/kdb/kdb_main.c return diag; diag 501 kernel/debug/kdb/kdb_main.c int diag; diag 543 kernel/debug/kdb/kdb_main.c diag = kdbgetulenv(&symname[1], &addr); diag 544 kernel/debug/kdb/kdb_main.c if (diag) diag 545 kernel/debug/kdb/kdb_main.c return diag; diag 547 kernel/debug/kdb/kdb_main.c diag = kdb_check_regs(); diag 548 kernel/debug/kdb/kdb_main.c if (diag) diag 549 kernel/debug/kdb/kdb_main.c return diag; diag 559 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(argv[*nextarg], &addr); diag 560 kernel/debug/kdb/kdb_main.c if (diag) diag 561 kernel/debug/kdb/kdb_main.c return diag; diag 612 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(cp, &off); diag 613 kernel/debug/kdb/kdb_main.c if (diag) diag 614 kernel/debug/kdb/kdb_main.c return diag; diag 628 kernel/debug/kdb/kdb_main.c static void kdb_cmderror(int diag) diag 632 kernel/debug/kdb/kdb_main.c if (diag >= 0) { diag 633 kernel/debug/kdb/kdb_main.c kdb_printf("no error detected (diagnostic is %d)\n", diag); diag 638 kernel/debug/kdb/kdb_main.c if (kdbmsgs[i].km_diag == diag) { diag 639 kernel/debug/kdb/kdb_main.c kdb_printf("diag: %d: %s\n", diag, kdbmsgs[i].km_msg); diag 644 kernel/debug/kdb/kdb_main.c kdb_printf("Unknown diag %d\n", -diag); diag 1186 kernel/debug/kdb/kdb_main.c int diag; diag 1338 kernel/debug/kdb/kdb_main.c diag = kdb_parse(cmdbuf); diag 1339 kernel/debug/kdb/kdb_main.c if (diag == KDB_NOTFOUND) { diag 1342 kernel/debug/kdb/kdb_main.c diag = 0; diag 1344 kernel/debug/kdb/kdb_main.c if (diag == KDB_CMD_GO diag 1345 kernel/debug/kdb/kdb_main.c || diag == KDB_CMD_CPU diag 1346 kernel/debug/kdb/kdb_main.c || diag == KDB_CMD_SS diag 1347 kernel/debug/kdb/kdb_main.c || diag == KDB_CMD_KGDB) diag 1350 kernel/debug/kdb/kdb_main.c if (diag) diag 1351 kernel/debug/kdb/kdb_main.c kdb_cmderror(diag); diag 1353 kernel/debug/kdb/kdb_main.c KDB_DEBUG_STATE("kdb_local 9", diag); diag 1354 kernel/debug/kdb/kdb_main.c return diag; diag 1622 kernel/debug/kdb/kdb_main.c int diag, nextarg = 1; diag 1623 kernel/debug/kdb/kdb_main.c diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, diag 1625 kernel/debug/kdb/kdb_main.c if (diag) diag 1626 kernel/debug/kdb/kdb_main.c return diag; diag 1631 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(argv[nextarg], &val); diag 1632 kernel/debug/kdb/kdb_main.c if (!diag) { diag 1641 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(argv[nextarg+1], &val); diag 1642 kernel/debug/kdb/kdb_main.c if (!diag) diag 1752 kernel/debug/kdb/kdb_main.c int diag; diag 1766 kernel/debug/kdb/kdb_main.c diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); diag 1767 kernel/debug/kdb/kdb_main.c if (diag) diag 1768 kernel/debug/kdb/kdb_main.c return diag; diag 1772 kernel/debug/kdb/kdb_main.c diag = kdbgetaddrarg(argc, argv, &nextarg, &contents, NULL, NULL); diag 1773 kernel/debug/kdb/kdb_main.c if (diag) diag 1774 kernel/debug/kdb/kdb_main.c return diag; diag 1780 kernel/debug/kdb/kdb_main.c diag = kdb_putword(addr, contents, width); diag 1781 kernel/debug/kdb/kdb_main.c if (diag) diag 1782 kernel/debug/kdb/kdb_main.c return diag; diag 1796 kernel/debug/kdb/kdb_main.c int diag; diag 1808 kernel/debug/kdb/kdb_main.c diag = kdbgetaddrarg(argc, argv, &nextarg, diag 1810 kernel/debug/kdb/kdb_main.c if (diag) diag 1811 kernel/debug/kdb/kdb_main.c return diag; diag 1816 kernel/debug/kdb/kdb_main.c diag = KDB_CMD_GO; diag 1832 kernel/debug/kdb/kdb_main.c return diag; diag 1911 kernel/debug/kdb/kdb_main.c int diag; diag 1928 kernel/debug/kdb/kdb_main.c diag = kdbgetu64arg(argv[2], ®64); diag 1929 kernel/debug/kdb/kdb_main.c if (diag) diag 1930 kernel/debug/kdb/kdb_main.c return diag; diag 1932 kernel/debug/kdb/kdb_main.c diag = kdb_check_regs(); diag 1933 kernel/debug/kdb/kdb_main.c if (diag) diag 1934 kernel/debug/kdb/kdb_main.c return diag; diag 1936 kernel/debug/kdb/kdb_main.c diag = KDB_BADREG; diag 1939 kernel/debug/kdb/kdb_main.c diag = 0; diag 1943 kernel/debug/kdb/kdb_main.c if (!diag) { diag 1962 kernel/debug/kdb/kdb_main.c return diag; diag 2002 kernel/debug/kdb/kdb_main.c int diag; diag 2011 kernel/debug/kdb/kdb_main.c diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); diag 2012 kernel/debug/kdb/kdb_main.c if (diag) diag 2013 kernel/debug/kdb/kdb_main.c return diag; diag 2094 kernel/debug/kdb/kdb_main.c int diag; diag 2119 kernel/debug/kdb/kdb_main.c diag = kdbgetintenv("LOGGING", &logging); diag 2120 kernel/debug/kdb/kdb_main.c if (!diag && logging) { diag 2255 kernel/debug/kdb/kdb_main.c int diag; diag 2265 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(argv[1], &cpunum); diag 2266 kernel/debug/kdb/kdb_main.c if (diag) diag 2267 kernel/debug/kdb/kdb_main.c return diag; diag 2387 kernel/debug/kdb/kdb_main.c int diag; diag 2396 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(argv[1], &val); diag 2397 kernel/debug/kdb/kdb_main.c if (diag) diag 2562 kernel/debug/kdb/kdb_main.c int cpu, diag, nextarg = 1; diag 2568 kernel/debug/kdb/kdb_main.c diag = kdbgetaddrarg(argc, argv, &nextarg, &symaddr, NULL, NULL); diag 2569 kernel/debug/kdb/kdb_main.c if (diag) diag 2570 kernel/debug/kdb/kdb_main.c return diag; diag 2573 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(argv[2], &bytesperword); diag 2574 kernel/debug/kdb/kdb_main.c if (diag) diag 2575 kernel/debug/kdb/kdb_main.c return diag; diag 2583 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(argv[3], &whichcpu); diag 2584 kernel/debug/kdb/kdb_main.c if (diag) diag 2585 kernel/debug/kdb/kdb_main.c return diag; diag 2611 kernel/debug/kdb/kdb_main.c diag = kdb_getword(&val, addr, bytesperword); diag 2612 kernel/debug/kdb/kdb_main.c if (diag) { diag 2614 kernel/debug/kdb/kdb_main.c "read, diag=%d\n", cpu, addr, diag); diag 2890 kernel/debug/kdb/kdb_main.c int i, diag; diag 2892 kernel/debug/kdb/kdb_main.c diag = kdb_parse(kdb_cmds[i]); diag 2893 kernel/debug/kdb/kdb_main.c if (diag) diag 2895 kernel/debug/kdb/kdb_main.c kdb_cmds[i], diag); diag 405 kernel/debug/kdb/kdb_support.c int diag; diag 414 kernel/debug/kdb/kdb_support.c diag = kdb_getphys(&w1, addr, sizeof(w1)); diag 415 kernel/debug/kdb/kdb_support.c if (!diag) diag 419 kernel/debug/kdb/kdb_support.c diag = kdb_getphys(&w2, addr, sizeof(w2)); diag 420 kernel/debug/kdb/kdb_support.c if (!diag) diag 424 kernel/debug/kdb/kdb_support.c diag = kdb_getphys(&w4, addr, sizeof(w4)); diag 425 kernel/debug/kdb/kdb_support.c if (!diag) diag 430 kernel/debug/kdb/kdb_support.c diag = kdb_getphys(&w8, addr, sizeof(w8)); diag 431 kernel/debug/kdb/kdb_support.c if (!diag) diag 437 kernel/debug/kdb/kdb_support.c diag = KDB_BADWIDTH; diag 440 kernel/debug/kdb/kdb_support.c return diag; diag 455 kernel/debug/kdb/kdb_support.c int diag; diag 463 kernel/debug/kdb/kdb_support.c diag = kdb_getarea(w1, addr); diag 464 kernel/debug/kdb/kdb_support.c if (!diag) diag 468 kernel/debug/kdb/kdb_support.c diag = kdb_getarea(w2, addr); diag 469 kernel/debug/kdb/kdb_support.c if (!diag) diag 473 kernel/debug/kdb/kdb_support.c diag = kdb_getarea(w4, addr); diag 474 kernel/debug/kdb/kdb_support.c if (!diag) diag 479 kernel/debug/kdb/kdb_support.c diag = kdb_getarea(w8, addr); diag 480 kernel/debug/kdb/kdb_support.c if (!diag) diag 486 kernel/debug/kdb/kdb_support.c diag = KDB_BADWIDTH; diag 489 kernel/debug/kdb/kdb_support.c return diag; diag 504 kernel/debug/kdb/kdb_support.c int diag; diag 512 kernel/debug/kdb/kdb_support.c diag = kdb_putarea(addr, w1); diag 516 kernel/debug/kdb/kdb_support.c diag = kdb_putarea(addr, w2); diag 520 kernel/debug/kdb/kdb_support.c diag = kdb_putarea(addr, w4); diag 525 kernel/debug/kdb/kdb_support.c diag = kdb_putarea(addr, w8); diag 530 kernel/debug/kdb/kdb_support.c diag = KDB_BADWIDTH; diag 533 kernel/debug/kdb/kdb_support.c return diag; diag 42 tools/perf/util/s390-cpumsf-kernel.h struct hws_diag_entry diag; /* Diagnostic-sampling data entry */ diag 290 tools/perf/util/s390-cpumsf.c struct hws_diag_entry *diag = diagp; diag 297 tools/perf/util/s390-cpumsf.c diag = &local; diag 299 tools/perf/util/s390-cpumsf.c if (diag->def < S390_CPUMSF_DIAG_DEF_FIRST) { diag 304 tools/perf/util/s390-cpumsf.c pos, diag->def, diag->I ? 'I' : ' '); diag 437 tools/perf/util/s390-cpumsf.c struct hws_diag_entry *diag; diag 465 tools/perf/util/s390-cpumsf.c diag = (struct hws_diag_entry *)(buf + pos); diag 466 tools/perf/util/s390-cpumsf.c if (s390_cpumsf_diag_show(color, pos, diag))