Lines Matching refs:bus_no
1554 u32 bus_no, drv_cnt, drv_no, j; in gdth_search_drives() local
1675 for (bus_no = 0; bus_no < ha->bus_cnt; ++bus_no) { in gdth_search_drives()
1676 if (iocr->list[bus_no].proc_id < MAXID) in gdth_search_drives()
1677 ha->bus_id[bus_no] = iocr->list[bus_no].proc_id; in gdth_search_drives()
1679 ha->bus_id[bus_no] = 0xff; in gdth_search_drives()
1684 for (bus_no = 0; bus_no < MAXBUS; ++bus_no) { in gdth_search_drives()
1685 chn->channel_no = bus_no; in gdth_search_drives()
1690 if (bus_no == 0) { in gdth_search_drives()
1698 ha->bus_id[bus_no] = chn->siop_id; in gdth_search_drives()
1700 ha->bus_id[bus_no] = 0xff; in gdth_search_drives()
1702 ha->bus_cnt = (u8)bus_no; in gdth_search_drives()
1747 for (bus_no = 0; bus_no < ha->bus_cnt; ++bus_no) { in gdth_search_drives()
1748 ha->raw[bus_no].address = ioc->list[bus_no].address; in gdth_search_drives()
1749 ha->raw[bus_no].local_no = ioc->list[bus_no].local_no; in gdth_search_drives()
1752 for (bus_no = 0; bus_no < ha->bus_cnt; ++bus_no) { in gdth_search_drives()
1753 ha->raw[bus_no].address = IO_CHANNEL; in gdth_search_drives()
1754 ha->raw[bus_no].local_no = bus_no; in gdth_search_drives()
1757 for (bus_no = 0; bus_no < ha->bus_cnt; ++bus_no) { in gdth_search_drives()
1759 chn->channel_no = ha->raw[bus_no].local_no; in gdth_search_drives()
1762 ha->raw[bus_no].address | INVALID_CHANNEL, in gdth_search_drives()
1764 ha->raw[bus_no].pdev_cnt = chn->drive_cnt; in gdth_search_drives()
1766 bus_no,chn->drive_cnt)); in gdth_search_drives()
1768 if (ha->raw[bus_no].pdev_cnt > 0) { in gdth_search_drives()
1770 drl->sc_no = ha->raw[bus_no].local_no; in gdth_search_drives()
1771 drl->sc_cnt = ha->raw[bus_no].pdev_cnt; in gdth_search_drives()
1774 ha->raw[bus_no].address | INVALID_CHANNEL, in gdth_search_drives()
1776 for (j = 0; j < ha->raw[bus_no].pdev_cnt; ++j) in gdth_search_drives()
1777 ha->raw[bus_no].id_list[j] = drl->sc_list[j]; in gdth_search_drives()
1779 ha->raw[bus_no].pdev_cnt = 0; in gdth_search_drives()