Lines Matching refs:hw_prof
28 if (asd_ha->hw_prof.sas_addr[0])
32 asd_ha->hw_prof.sas_addr);
40 if (asd_ha->hw_prof.phy_desc[i].sas_addr[0] == 0)
45 SAS_ADDR(asd_ha->hw_prof.sas_addr));
46 memcpy(asd_ha->hw_prof.phy_desc[i].sas_addr,
47 asd_ha->hw_prof.sas_addr, SAS_ADDR_SIZE);
115 u8 phy_mask = asd_ha->hw_prof.enabled_phys;
120 phy->phy_desc = &asd_ha->hw_prof.phy_desc[i];
204 asd_ha->seq.tc_index_bitmap_bits = asd_ha->hw_prof.max_scbs;
242 asd_ha->hw_prof.max_scbs = asd_get_cmdctx_size(asd_ha)/ASD_SCB_SIZE;
243 asd_ha->hw_prof.max_ddbs = asd_get_devctx_size(asd_ha)/ASD_DDB_SIZE;
245 asd_ha->hw_prof.max_scbs,
246 asd_ha->hw_prof.max_ddbs);
376 int edbs = 2*(1+asd_ha->hw_prof.num_phys);
400 seq->can_queue = 1 + (asd_ha->hw_prof.max_scbs - seq->pending)/2;
494 dma_addr -= asd_ha->hw_prof.max_ddbs * ASD_DDB_SIZE;
499 asd_ha->hw_prof.max_ddbs += MAX_DEVS;
511 asd_ha->hw_prof.ddb_ext = NULL;
512 if (max_devs <= asd_ha->hw_prof.max_ddbs || max_devs > 0xFFFF) {
513 max_devs = asd_ha->hw_prof.max_ddbs;
517 size = (max_devs - asd_ha->hw_prof.max_ddbs + 1) * ASD_DDB_SIZE;
519 asd_ha->hw_prof.ddb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL);
520 if (!asd_ha->hw_prof.ddb_ext) {
523 max_devs = asd_ha->hw_prof.max_ddbs;
526 dma_handle = asd_ha->hw_prof.ddb_ext->dma_handle;
528 dma_addr -= asd_ha->hw_prof.max_ddbs * ASD_DDB_SIZE;
535 asd_ha->hw_prof.max_ddbs = max_devs;
547 asd_ha->hw_prof.scb_ext = NULL;
548 if (max_cmnds <= asd_ha->hw_prof.max_scbs || max_cmnds > 0xFFFF) {
549 max_cmnds = asd_ha->hw_prof.max_scbs;
553 size = (max_cmnds - asd_ha->hw_prof.max_scbs + 1) * ASD_SCB_SIZE;
555 asd_ha->hw_prof.scb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL);
556 if (!asd_ha->hw_prof.scb_ext) {
559 max_cmnds = asd_ha->hw_prof.max_scbs;
562 dma_handle = asd_ha->hw_prof.scb_ext->dma_handle;
564 dma_addr -= asd_ha->hw_prof.max_scbs * ASD_SCB_SIZE;
571 asd_ha->hw_prof.max_scbs = max_cmnds;
597 bitmap_bytes = (asd_ha->hw_prof.max_ddbs+7)/8;
599 asd_ha->hw_prof.ddb_bitmap = kzalloc(bitmap_bytes, GFP_KERNEL);
600 if (!asd_ha->hw_prof.ddb_bitmap)
602 spin_lock_init(&asd_ha->hw_prof.ddb_lock);
1194 can_queue = asd_ha->hw_prof.max_scbs - asd_ha->seq.pending;