Lines Matching defs:channel

286 	adapter->host->max_id = 16;	/* max targets per channel */
454 * @channel: channel on the controller
457 * and the channel number.
460 mega_get_ldrv_num(adapter_t *adapter, struct scsi_cmnd *cmd, int channel)
470 ldrv_num = (channel * 15) + tgt;
531 int channel = 0;
538 islogical = adapter->logdrv_chan[cmd->device->channel];
544 * the physical devices on virtual channel which is obviously converted
545 * to actual channel on the HBA.
549 /* logical channel */
550 channel = cmd->device->channel -
554 /* this is physical channel */
555 channel = cmd->device->channel;
561 * booting from the second channel is not allowed.
573 /* this is the logical channel */
574 channel = cmd->device->channel;
577 /* physical channel */
578 channel = cmd->device->channel - NVIRT_CHAN;
593 ldrv_num = mega_get_ldrv_num(adapter, cmd, channel);
680 if(!(adapter->flag & (1L << cmd->device->channel))) {
683 "scsi%d: scanning scsi channel %d "
686 cmd->device->channel);
688 adapter->flag |= (1L << cmd->device->channel);
913 channel, target);
923 channel, target);
947 * @channel: actual channel on the controller
954 int channel, int target)
968 pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : channel;
971 (channel << 4) | target : target;
985 if(!(adapter->flag & (1L << cmd->device->channel))) {
988 "scsi%d: scanning scsi channel %d [P%d] "
991 cmd->device->channel, channel);
993 adapter->flag |= (1L << cmd->device->channel);
1010 * @channel: actual channel on the controller
1019 int channel, int target)
1033 epthru->channel = (adapter->flag & BOARD_40LD) ? 0 : channel;
1035 (channel << 4) | target : target;
1048 if(!(adapter->flag & (1L << cmd->device->channel))) {
1051 "scsi%d: scanning scsi channel %d [P%d] "
1054 cmd->device->channel, channel);
1056 adapter->flag |= (1L << cmd->device->channel);
1515 islogical = adapter->logdrv_chan[cmd->channel];
1546 * Do not return the presence of hard disk on the channel so,
1551 islogical = adapter->logdrv_chan[cmd->device->channel];
1562 if(IS_RAID_CH(adapter, cmd->device->channel) &&
1944 cmd->cmnd[0], cmd->device->channel,
2329 * @channel: channel
2334 proc_show_pdrv(struct seq_file *m, adapter_t *adapter, int channel)
2377 if( channel >= max_channels ) {
2383 i = channel*16 + tgt;
2389 channel, tgt);
2394 channel, tgt);
2399 channel, tgt);
2404 channel, tgt);
2409 channel, tgt);
2419 if( mega_internal_dev_inquiry(adapter, channel, tgt,
2447 * Display information about the physical drives on physical channel 0.
2461 * Display information about the physical drives on physical channel 1.
2475 * Display information about the physical drives on physical channel 2.
2489 * Display information about the physical drives on physical channel 3.
2813 if (IS_RAID_CH(adapter, sdev->channel)) {
2839 "invalid partition on this disk on channel %d\n",
2840 sdev->channel);
3645 dev_info(&adapter->dev->dev, "channel[%d] is raid\n",
3649 dev_info(&adapter->dev->dev, "channel[%d] is scsi\n",
3995 * @ch: channel for this device
4031 pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : ch;
4369 * Find out which channel is raid and which is scsi. This is