Lines Matching refs:mesh

50 #include "mesh.h"
145 volatile struct mesh_regs __iomem *mesh;
223 tlp->bs0 = ms->mesh->bus_status0;
224 tlp->bs1 = ms->mesh->bus_status1;
252 printk(KERN_DEBUG "mesh log %d: bs=%.2x%.2x ph=%.2x ",
277 printk(KERN_DEBUG "mesh log: bs=%.2x%.2x ph=%.2x t%d ",
305 volatile struct mesh_regs __iomem *mr = ms->mesh;
310 printk(KERN_DEBUG "mesh: state at %p, regs at %p, dma at %p\n",
337 * Flush write buffers on the bus path to the mesh
351 volatile struct mesh_regs __iomem *mr = ms->mesh;
370 printk(KERN_INFO "mesh: performing initial bus reset...\n");
398 volatile struct mesh_regs __iomem *mr = ms->mesh;
417 panic("mesh: double DMA start !\n");
474 * Apparently the mesh has a bug where it will assert both its
488 * is trying to reselect us, reset the mesh and then enable
515 /* looks like a reselection - try resetting the mesh */
532 printk(KERN_ERR "mesh: controller not responding"
536 * mesh isn't responding, the higher levels of
612 out_8(&ms->mesh->sequence, SEQ_ENBRESEL);
613 mesh_flush_io(ms->mesh);
635 volatile struct mesh_regs __iomem *mr = ms->mesh;
642 printk(KERN_INFO "mesh: target %d now asynchronous\n",
669 printk(KERN_INFO "mesh: target %d synchronous at %d.%d MB/s\n",
676 volatile struct mesh_regs __iomem *mr = ms->mesh;
703 printk(KERN_ERR "mesh: msg_out but n_msgout=%d\n",
710 printk(KERN_DEBUG "mesh: sending %d msg bytes:",
724 * issue a SEQ_MSGOUT to get the mesh to drop ACK.
753 printk(KERN_ERR "mesh bug: start_phase msgphase=%d\n",
811 printk(KERN_ERR "mesh: start_phase called with phase=%d\n",
820 volatile struct mesh_regs __iomem *mr = ms->mesh;
852 volatile struct mesh_regs __iomem *mr = ms->mesh;
878 printk(KERN_ERR "mesh: reselected in phase %d/%d tgt %d\n",
885 printk(KERN_ERR "mesh: reselected with DMA started !\n");
922 printk(KERN_ERR "mesh: reselection but nothing in fifo?\n");
935 printk(KERN_ERR "mesh: bad reselection data %x\n", b);
948 printk(KERN_DEBUG "mesh: reselected by target %d\n", t);
949 printk(KERN_DEBUG "mesh: saved_ptr=%x goes_out=%d cmd=%p\n",
954 printk(KERN_ERR "mesh: reselected by tgt %d but no cmd!\n", t);
985 volatile struct mesh_regs __iomem *mr = ms->mesh;
1028 volatile struct mesh_regs __iomem *mr = ms->mesh;
1037 printk(KERN_INFO "mesh: SCSI bus reset detected: "
1055 printk(KERN_WARNING "mesh: target %d aborted\n",
1067 printk(KERN_ERR "mesh: msg parity error, target %d\n",
1076 printk(KERN_ERR "mesh: parity error, target %d\n",
1104 printk(KERN_ERR "mesh: sequence error (err=%x exc=%x)\n",
1107 printk(KERN_ERR "mesh: unknown error %x (exc=%x)\n", err, exc);
1124 volatile struct mesh_regs __iomem *mr = ms->mesh;
1133 printk(KERN_DEBUG "mesh: lost arbitration\n");
1145 printk(KERN_ERR "mesh: can't cope with exception %x\n", exc);
1229 printk(KERN_WARNING "mesh: lun mismatch "
1241 printk(KERN_WARNING "mesh: rejecting message from target %d:",
1286 panic("mesh: scatterlist element >= 64k");
1318 volatile struct mesh_regs __iomem *mr = ms->mesh;
1342 printk(KERN_ERR "mesh: halt_dma: data_ptr=%d (nb=%d, ms=%p)\n",
1351 printk(KERN_DEBUG "mesh: target %d overrun, "
1363 volatile struct mesh_regs __iomem *mr = ms->mesh;
1422 "mesh: no msg to repeat\n");
1431 printk(KERN_DEBUG "mesh: unknown scsi phase %x\n", phase);
1442 volatile struct mesh_regs __iomem *mr = ms->mesh;
1503 printk(KERN_ERR "mesh: error %x in msg_out\n",
1509 printk(KERN_ERR "mesh: exc %x in msg_out\n",
1512 printk(KERN_DEBUG "mesh: bs0=%x in msg_out\n",
1539 printk(KERN_ERR "mesh: interrupt in idle phase?\n");
1586 * occasionally the mesh actually executes the
1601 printk(KERN_DEBUG "mesh: status is %x\n",
1657 volatile struct mesh_regs __iomem *mr = ms->mesh;
1705 volatile struct mesh_regs __iomem *mr = ms->mesh;
1821 mr = ms->mesh;
1834 .proc_name = "mesh",
1849 struct device_node *mesh = macio_get_of_node(mdev);
1869 printk(KERN_ERR "mesh: expected 2 addrs and 2 intrs"
1875 if (macio_request_resources(mdev, "mesh") != 0) {
1876 printk(KERN_ERR "mesh: unable to request memory resources");
1881 printk(KERN_ERR "mesh: couldn't register host");
1893 ms->mesh = ioremap(macio_resource_start(mdev, 0), 0x1000);
1894 if (ms->mesh == NULL) {
1895 printk(KERN_ERR "mesh: can't map registers\n");
1900 printk(KERN_ERR "mesh: can't map registers\n");
1901 iounmap(ms->mesh);
1920 printk(KERN_ERR "mesh: can't allocate DMA table\n");
1935 if ((cfp = of_get_property(mesh, "clock-frequency", NULL)))
1938 printk(KERN_INFO "mesh: assuming 50MHz clock frequency\n");
1980 iounmap(ms->mesh);
2005 iounmap(ms->mesh);
2024 .name = "mesh",
2037 .name = "mesh",
2058 printk(KERN_INFO "mesh: configured for synchronous %d MB/s\n", sync_rate);
2062 printk(KERN_INFO "mesh: configured for asynchronous\n");