Lines Matching +full:retain +full:- +full:on +full:- +full:reset
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
57 MODULE_PARM_DESC(catas_reset_disable, "disable reset on catastrophic event if nonzero");
72 struct pci_dev *pdev = dev->pdev; in catas_reset()
73 ret = __mthca_restart_one(dev->pdev); in catas_reset()
76 printk(KERN_ERR "mthca %s: Reset failed (%d)\n", in catas_reset()
80 mthca_dbg(d, "Reset succeeded\n"); in catas_reset()
94 event.device = &dev->ib_dev; in handle_catas()
97 dev->active = false; in handle_catas()
101 switch (swab32(readl(dev->catas_err.map)) >> 24) { in handle_catas()
120 for (i = 0; i < dev->catas_err.size; ++i) in handle_catas()
122 i, swab32(readl(dev->catas_err.map + i))); in handle_catas()
128 list_add(&dev->catas_err.list, &catas_list); in handle_catas()
138 for (i = 0; i < dev->catas_err.size; ++i) in poll_catas()
139 if (readl(dev->catas_err.map + i)) { in poll_catas()
144 mod_timer(&dev->catas_err.timer, in poll_catas()
152 timer_setup(&dev->catas_err.timer, poll_catas, 0); in mthca_start_catas_poll()
153 dev->catas_err.map = NULL; in mthca_start_catas_poll()
155 addr = pci_resource_start(dev->pdev, 0) + in mthca_start_catas_poll()
156 ((pci_resource_len(dev->pdev, 0) - 1) & in mthca_start_catas_poll()
157 dev->catas_err.addr); in mthca_start_catas_poll()
159 dev->catas_err.map = ioremap(addr, dev->catas_err.size * 4); in mthca_start_catas_poll()
160 if (!dev->catas_err.map) { in mthca_start_catas_poll()
163 dev->catas_err.size * 4); in mthca_start_catas_poll()
167 dev->catas_err.timer.expires = jiffies + MTHCA_CATAS_POLL_INTERVAL; in mthca_start_catas_poll()
168 INIT_LIST_HEAD(&dev->catas_err.list); in mthca_start_catas_poll()
169 add_timer(&dev->catas_err.timer); in mthca_start_catas_poll()
174 del_timer_sync(&dev->catas_err.timer); in mthca_stop_catas_poll()
176 if (dev->catas_err.map) in mthca_stop_catas_poll()
177 iounmap(dev->catas_err.map); in mthca_stop_catas_poll()
180 list_del(&dev->catas_err.list); in mthca_stop_catas_poll()
190 return -ENOMEM; in mthca_catas_init()