Lines Matching defs:bus_no
1363 u8 bus_no = 0;
1397 bus_no = buf[0]>>16;
1400 if(bus_no >= MAX_CHANNEL) { // Something wrong skip it
1401 printk(KERN_WARNING"%s: Channel number %d out of range \n", pHba->name, bus_no);
1405 printk(KERN_WARNING"%s: SCSI ID %d out of range \n", pHba->name, bus_no);
1408 if(bus_no > pHba->top_scsi_channel){
1409 pHba->top_scsi_channel = bus_no;
1436 bus_no = 0;
1441 // TODO get the bus_no from hrt-but for now they are in order
1442 //bus_no =
1443 if(bus_no > pHba->top_scsi_channel){
1444 pHba->top_scsi_channel = bus_no;
1446 pHba->channel[bus_no].type = d->lct_data.class_id;
1447 pHba->channel[bus_no].tid = tid;
1450 pHba->channel[bus_no].scsi_id = buf[1];
1451 PDEBUG("Bus %d - SCSI ID %d.\n", bus_no, buf[1]);
1454 bus_no++;
1455 if(bus_no >= MAX_CHANNEL) { // Something wrong skip it
1456 printk(KERN_WARNING"%s: Channel number %d out of range - LCT\n", pHba->name, bus_no);
1472 bus_no = buf[0]>>16;
1475 if(bus_no >= MAX_CHANNEL) { // Something wrong skip it
1481 if( pHba->channel[bus_no].device[scsi_id] == NULL){
1486 pHba->channel[bus_no].device[scsi_id] = pDev;
1488 for( pDev = pHba->channel[bus_no].device[scsi_id];
1498 pDev->scsi_channel = bus_no;
2227 u8 bus_no = 0;
2267 bus_no = buf[0]>>16;
2268 if (bus_no >= MAX_CHANNEL) { /* Something wrong skip it */
2271 pHba->name, bus_no);
2277 pDev = pHba->channel[bus_no].device[scsi_id];
2303 pDev = pHba->channel[bus_no].device[scsi_id];
2311 pHba->channel[bus_no].device[scsi_id] = pDev;
2324 pDev->scsi_channel = bus_no;
2346 pHba->name,bus_no,scsi_id,scsi_lun);