• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/block/

Lines Matching refs:ctlr

153 static void cciss_read_capacity(int ctlr, int logvol, int withirq,
155 static void cciss_read_capacity_16(int ctlr, int logvol, int withirq,
157 static void cciss_geometry_inquiry(int ctlr, int logvol,
165 static int sendcmd(__u8 cmd, int ctlr, void *buff, size_t size,
168 static int sendcmd_withirq(__u8 cmd, int ctlr, void *buff, size_t size,
172 static void fail_all_cmds(unsigned long ctlr);
252 int size, i, ctlr;
258 ctlr = h->ctlr;
263 spin_lock_irqsave(CCISS_LOCK(ctlr), flags);
265 spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
269 spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
294 cciss_proc_tape_report(ctlr, buffer, &pos, &len);
310 ctlr, i, (int)vol_sz, (int)vol_sz_frac,
346 rc = cciss_engage_scsi(h->ctlr);
442 c->ctlr = h->ctlr;
687 int ctlr = host->ctlr;
742 spin_lock_irqsave(CCISS_LOCK(ctlr), flags);
757 spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
791 spin_lock_irqsave(CCISS_LOCK(ctlr), flags);
807 spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
956 spin_lock_irqsave(CCISS_LOCK(ctlr), flags);
960 spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
1108 spin_lock_irqsave(CCISS_LOCK(ctlr), flags);
1112 spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
1242 ctlr_info_t *h = hba[cmd->ctlr];
1288 static void cciss_update_drive_info(int ctlr, int drv_index)
1290 ctlr_info_t *h = hba[ctlr];
1300 spin_lock_irqsave(CCISS_LOCK(h->ctlr), flags);
1302 spin_unlock_irqrestore(CCISS_LOCK(h->ctlr), flags);
1319 cciss_read_capacity_16(h->ctlr, drv_index, 1,
1324 cciss_read_capacity(ctlr, drv_index, 1,
1330 cciss_read_capacity_16(ctlr, drv_index, 1,
1339 cciss_geometry_inquiry(ctlr, drv_index, 1, total_size, block_size,
1349 sprintf(disk->disk_name, "cciss/c%dd%d", ctlr, drv_index);
1357 blk_queue_bounce_limit(disk->queue, hba[ctlr]->pdev->dma_mask);
1369 disk->queue->queuedata = hba[ctlr];
1372 hba[ctlr]->drv[drv_index].block_size);
1392 static int cciss_find_free_drive_index(int ctlr)
1397 if (hba[ctlr]->drv[i].raid_level == -1) {
1398 if (i > hba[ctlr]->highest_lun)
1399 hba[ctlr]->highest_lun = i;
1418 int ctlr = h->ctlr;
1431 spin_lock_irqsave(CCISS_LOCK(h->ctlr), flags);
1433 spin_unlock_irqrestore(CCISS_LOCK(h->ctlr), flags);
1445 spin_unlock_irqrestore(CCISS_LOCK(h->ctlr), flags);
1451 spin_unlock_irqrestore(CCISS_LOCK(h->ctlr), flags);
1459 return_code = sendcmd_withirq(CISS_REPORT_LOG, ctlr, ld_buff,
1512 drv_index = cciss_find_free_drive_index(ctlr);
1526 cciss_update_drive_info(ctlr, drv_index);
1646 static int fill_cmd(CommandList_struct *c, __u8 cmd, int ctlr, void *buff, size_t size, unsigned int use_unit_num, /* 0: address the controller,
1652 ctlr_info_t *h = hba[ctlr];
1750 "cciss%d: Unknown Command 0x%c\n", ctlr, cmd);
1783 "cciss%d: unknown message type %d\n", ctlr, cmd);
1788 "cciss%d: unknown command type %d\n", ctlr, cmd_type);
1805 int ctlr,
1811 ctlr_info_t *h = hba[ctlr];
1820 return_status = fill_cmd(c, cmd, ctlr, buff, size, use_unit_num,
1830 spin_lock_irqsave(CCISS_LOCK(ctlr), flags);
1834 spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
1886 "cciss%d: unsolicited abort %p\n", ctlr, c);
1889 "cciss%d: retrying %p\n", ctlr, c);
1916 static void cciss_geometry_inquiry(int ctlr, int logvol,
1927 return_code = sendcmd_withirq(CISS_INQUIRY, ctlr,
1931 return_code = sendcmd(CISS_INQUIRY, ctlr, inq_buff,
1968 cciss_read_capacity(int ctlr, int logvol, int withirq, sector_t *total_size,
1981 ctlr, buf, sizeof(ReadCapdata_struct),
1985 ctlr, buf, sizeof(ReadCapdata_struct),
2003 cciss_read_capacity_16(int ctlr, int logvol, int withirq, sector_t *total_size, unsigned int *block_size)
2015 ctlr, buf, sizeof(ReadCapdata_struct_16),
2020 ctlr, buf, sizeof(ReadCapdata_struct_16),
2063 cciss_read_capacity(h->ctlr, logvol, 1,
2066 cciss_read_capacity_16(h->ctlr, logvol, 1,
2069 cciss_geometry_inquiry(h->ctlr, logvol, 1, total_size, block_size,
2084 static unsigned long pollcomplete(int ctlr)
2092 done = hba[ctlr]->access.command_completed(hba[ctlr]);
2102 static int add_sendcmd_reject(__u8 cmd, int ctlr, unsigned long complete)
2118 struct sendcmd_reject_list *srl = &hba[ctlr]->scsi_rejects;
2126 ctlr, complete);
2134 if (srl->ncompletions >= (hba[ctlr]->nr_cmds + 2)) {
2137 "reject list overflow, command lost!\n", ctlr);
2151 static int sendcmd(__u8 cmd, int ctlr, void *buff, size_t size, unsigned int use_unit_num, /* 0: address the controller,
2160 ctlr_info_t *info_p = hba[ctlr];
2168 status = fill_cmd(c, cmd, ctlr, buff, size, use_unit_num,
2195 " waiting!\n", ctlr);
2203 complete = pollcomplete(ctlr);
2212 "No command list address returned!\n", ctlr);
2237 ctlr, c);
2241 ctlr, c);
2252 "many times\n", ctlr, c);
2260 ctlr);
2265 " Error %x \n", ctlr,
2270 ctlr,
2283 if (add_sendcmd_reject(cmd, ctlr, complete) != 0) {
2345 /* Assumes that CCISS_LOCK(h->ctlr) is held. */
2468 "abort %p\n", h->ctlr, cmd);
2472 "cciss%d: retrying %p\n", h->ctlr, cmd);
2477 "many times\n", h->ctlr, cmd);
2625 printk(KERN_WARNING "cciss%d: bad request type %d\n", h->ctlr, creq->cmd_type);
2657 /* printk("cciss%d: processing saved reject\n", h->ctlr); */
2701 spin_lock_irqsave(CCISS_LOCK(h->ctlr), flags);
2710 h->ctlr);
2711 fail_all_cmds(h->ctlr);
2752 spin_unlock_irqrestore(CCISS_LOCK(h->ctlr), flags);
3275 hba[i]->ctlr = i;
3477 i = tmp_ptr->ctlr;
3505 i = tmp_ptr->ctlr;
3594 static void fail_all_cmds(unsigned long ctlr)
3597 ctlr_info_t *h = hba[ctlr];
3601 printk(KERN_WARNING "cciss%d: controller not responding.\n", h->ctlr);
3604 spin_lock_irqsave(CCISS_LOCK(ctlr), flags);
3628 spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);