Lines Matching refs:ctlr
140 static int pollcomplete(int ctlr);
141 static void getgeometry(int ctlr);
142 static void start_fwbk(int ctlr);
152 int ctlr,
176 static int cpqarray_register_ctlr(int ctlr, struct pci_dev *pdev);
232 int size, i, ctlr; in ida_proc_get_info() local
240 ctlr = h->ctlr; in ida_proc_get_info()
269 ctlr, i, drv->blk_size, drv->nr_blks); in ida_proc_get_info()
274 spin_lock_irqsave(IDA_LOCK(h->ctlr), flags); in ida_proc_get_info()
297 spin_unlock_irqrestore(IDA_LOCK(h->ctlr), flags); in ida_proc_get_info()
367 i = tmp_ptr->ctlr; in cpqarray_remove_one_pci()
526 hba[i]->ctlr = i; in cpqarray_init_one()
753 int ctlr; in cpqarray_eisa_detect() local
757 ctlr = alloc_cpqarray_hba(); in cpqarray_eisa_detect()
758 if(ctlr == -1) in cpqarray_eisa_detect()
771 memset(hba[ctlr], 0, sizeof(ctlr_info_t)); in cpqarray_eisa_detect()
772 hba[ctlr]->io_mem_addr = eisa[i]; in cpqarray_eisa_detect()
773 hba[ctlr]->io_mem_length = 0x7FF; in cpqarray_eisa_detect()
774 if(!request_region(hba[ctlr]->io_mem_addr, in cpqarray_eisa_detect()
775 hba[ctlr]->io_mem_length, in cpqarray_eisa_detect()
780 hba[ctlr]->io_mem_addr, in cpqarray_eisa_detect()
781 hba[ctlr]->io_mem_length); in cpqarray_eisa_detect()
782 free_hba(ctlr); in cpqarray_eisa_detect()
795 hba[ctlr]->intr = intr; in cpqarray_eisa_detect()
796 sprintf(hba[ctlr]->devname, "ida%d", nr_ctlr); in cpqarray_eisa_detect()
797 hba[ctlr]->product_name = products[j].product_name; in cpqarray_eisa_detect()
798 hba[ctlr]->access = *(products[j].access); in cpqarray_eisa_detect()
799 hba[ctlr]->ctlr = ctlr; in cpqarray_eisa_detect()
800 hba[ctlr]->board_id = board_id; in cpqarray_eisa_detect()
801 hba[ctlr]->pci_dev = NULL; /* not PCI */ in cpqarray_eisa_detect()
813 if (cpqarray_register_ctlr(ctlr, NULL) == -1) in cpqarray_eisa_detect()
816 ctlr); in cpqarray_eisa_detect()
916 c->ctlr = h->ctlr; in do_ida_request()
997 (hba[cmd->ctlr]->misc_tflags & MISC_NONFATAL_WARN) == 0) { in complete_command()
999 cmd->ctlr, cmd->hdr.unit); in complete_command()
1000 hba[cmd->ctlr]->misc_tflags |= MISC_NONFATAL_WARN; in complete_command()
1004 cmd->ctlr, cmd->hdr.unit); in complete_command()
1009 cmd->ctlr, cmd->hdr.unit, cmd->req.hdr.cmd, in complete_command()
1022 pci_unmap_page(hba[cmd->ctlr]->pci_dev, cmd->req.sg[i].addr, in complete_command()
1052 spin_lock_irqsave(IDA_LOCK(h->ctlr), flags); in do_ida_intr()
1096 spin_unlock_irqrestore(IDA_LOCK(h->ctlr), flags); in do_ida_intr()
1212 int ctlr = h->ctlr; in ida_ctlr_ioctl() local
1220 c->ctlr = ctlr; in ida_ctlr_ioctl()
1299 spin_lock_irqsave(IDA_LOCK(ctlr), flags); in ida_ctlr_ioctl()
1303 spin_unlock_irqrestore(IDA_LOCK(ctlr), flags); in ida_ctlr_ioctl()
1397 int ctlr, in sendcmd() argument
1408 ctlr_info_t *info_p = hba[ctlr]; in sendcmd()
1413 c->ctlr = ctlr; in sendcmd()
1450 " waiting!\n", ctlr); in sendcmd()
1457 complete = pollcomplete(ctlr); in sendcmd()
1466 ctlr, (unsigned long)complete); in sendcmd()
1474 ctlr); in sendcmd()
1485 ctlr, c->req.hdr.cmd, c->req.hdr.rcode); in sendcmd()
1508 int ctlr = host->ctlr; in revalidate_allvol() local
1512 spin_lock_irqsave(IDA_LOCK(ctlr), flags); in revalidate_allvol()
1514 spin_unlock_irqrestore(IDA_LOCK(ctlr), flags); in revalidate_allvol()
1520 spin_unlock_irqrestore(IDA_LOCK(ctlr), flags); in revalidate_allvol()
1526 set_capacity(ida_gendisk[ctlr][0], 0); in revalidate_allvol()
1528 struct gendisk *disk = ida_gendisk[ctlr][i]; in revalidate_allvol()
1540 getgeometry(ctlr); in revalidate_allvol()
1544 struct gendisk *disk = ida_gendisk[ctlr][i]; in revalidate_allvol()
1573 static int pollcomplete(int ctlr) in pollcomplete() argument
1581 done = hba[ctlr]->access.command_completed(hba[ctlr]); in pollcomplete()
1597 static void start_fwbk(int ctlr) in start_fwbk() argument
1602 if( (hba[ctlr]->board_id != 0x40400E11) in start_fwbk()
1603 && (hba[ctlr]->board_id != 0x40480E11) ) in start_fwbk()
1618 ret_code = sendcmd(RESUME_BACKGROUND_ACTIVITY, ctlr, in start_fwbk()
1632 static void getgeometry(int ctlr) in getgeometry() argument
1641 ctlr_info_t *info_p = hba[ctlr]; in getgeometry()
1676 ret_code = sendcmd(ID_CTLR, ctlr, id_ctlr_buf, 0, 0, 0, 0); in getgeometry()
1704 "detected\n", ctlr); in getgeometry()
1716 ctlr, id_lstatus_buf, size, 0, 0, log_unit); in getgeometry()
1729 ctlr, log_unit); in getgeometry()
1736 ret_code = sendcmd(ID_LOG_DRV, ctlr, id_ldrive, in getgeometry()
1753 ctlr, log_unit, drv->blk_size, drv->nr_blks); in getgeometry()
1755 ctlr, sense_config_buf, in getgeometry()