Lines Matching defs:ha

11     gdth_ha_str *ha = shost_priv(host);
14 TRACE2(("gdth_set_info() ha %d\n",ha->hanum,));
20 ret_val = gdth_set_asc_info(host, buffer, length, ha);
28 int length, gdth_ha_str *ha)
39 TRACE2(("gdth_set_asc_info() ha %d\n",ha->hanum));
60 if (ha->hdr[i].present) {
66 if (ha->cache_feat & GDT_64BIT) {
98 if (ha->cache_feat & GDT_WR_THROUGH) {
119 spin_lock_irqsave(&ha->smp_lock, flags);
120 if (ha->scratch_busy) {
121 spin_unlock_irqrestore(&ha->smp_lock, flags);
124 ha->scratch_busy = TRUE;
125 spin_unlock_irqrestore(&ha->smp_lock, flags);
127 pcpar = (gdth_cpar_str *)ha->pscratch;
128 memcpy( pcpar, &ha->cpar, sizeof(gdth_cpar_str) );
131 gdtcmd.u.ioctl.p_param = ha->scratch_phys;
139 spin_lock_irqsave(&ha->smp_lock, flags);
140 ha->scratch_busy = FALSE;
141 spin_unlock_irqrestore(&ha->smp_lock, flags);
153 gdth_ha_str *ha = shost_priv(host);
182 TRACE2(("gdth_get_info() ha %d\n",ha->hanum));
210 ha->hanum, ha->binfo.type_string);
215 if (ha->more_proc)
217 (u8)(ha->binfo.upd_fw_ver>>24),
218 (u8)(ha->binfo.upd_fw_ver>>16),
219 (u8)(ha->binfo.upd_fw_ver),
220 ha->bfeat.raid ? 'R':'N',
221 ha->binfo.upd_revision);
223 seq_printf(m, "%d.%02d\n", (u8)(ha->cpar.version>>8),
224 (u8)(ha->cpar.version));
226 if (ha->more_proc)
230 ha->binfo.ser_no, ha->binfo.memsize / 1024);
232 if (ha->more_proc) {
239 buf = dma_alloc_coherent(&ha->pdev->dev, size, &paddr, GFP_KERNEL);
242 for (i = 0; i < ha->bus_cnt; ++i) {
251 gdtcmd->u.ioctl.channel = ha->raw[i].address | INVALID_CHANNEL;
252 pds->bid = ha->raw[i].local_no;
254 pds->entries = ha->raw[i].pdev_cnt;
264 for (j = 0; j < ha->raw[i].pdev_cnt; ++j) {
267 i, ha->raw[i].id_list[j]));
275 ha->raw[i].address | ha->raw[i].id_list[j];
313 i, ha->raw[i].id_list[j]));
321 ha->raw[i].address | ha->raw[i].id_list[j];
341 if (!ha->hdr[i].is_logdrv)
406 if (!ha->hdr[i].is_arraydrv)
409 sprintf(hrec, "%d", ha->hdr[i].master_no);
422 if (!(ha->hdr[i].is_arraydrv && ha->hdr[i].is_master))
478 if (!ha->hdr[i].is_logdrv ||
479 (ha->hdr[i].is_arraydrv && !ha->hdr[i].is_master))
493 ha->hdr[i].ldr_no = i;
494 ha->hdr[i].rw_attribs = 0;
495 ha->hdr[i].start_sec = 0;
501 ha->hdr[k].ldr_no = phg->entry[j].log_drive;
502 ha->hdr[k].rw_attribs = phg->entry[j].rw_attribs;
503 ha->hdr[k].start_sec = phg->entry[j].start_sec;
507 dma_free_coherent(&ha->pdev->dev, size, buf, paddr);
510 if (!(ha->hdr[i].present))
515 i, ha->hdr[i].ldr_no);
520 (u32)(ha->hdr[i].size/2048), ha->hdr[i].start_sec);
531 id = gdth_read_event(ha, id, estr);
534 if (estr->event_data.eu.driver.ionode == ha->hanum &&
560 static void gdth_wait_completion(gdth_ha_str *ha, int busnum, int id)
568 spin_lock_irqsave(&ha->smp_lock, flags);
571 scp = ha->cmd_tab[i].cmnd;
579 spin_unlock_irqrestore(&ha->smp_lock, flags);
582 spin_lock_irqsave(&ha->smp_lock, flags);
585 spin_unlock_irqrestore(&ha->smp_lock, flags);