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);
113 u8 phy_mask = asd_ha->hw_prof.enabled_phys;
118 phy->phy_desc = &asd_ha->hw_prof.phy_desc[i];
202 asd_ha->seq.tc_index_bitmap_bits = asd_ha->hw_prof.max_scbs;
240 asd_ha->hw_prof.max_scbs = asd_get_cmdctx_size(asd_ha)/ASD_SCB_SIZE;
241 asd_ha->hw_prof.max_ddbs = asd_get_devctx_size(asd_ha)/ASD_DDB_SIZE;
243 asd_ha->hw_prof.max_scbs,
244 asd_ha->hw_prof.max_ddbs);
374 int edbs = 2*(1+asd_ha->hw_prof.num_phys);
398 seq->can_queue = 1 + (asd_ha->hw_prof.max_scbs - seq->pending)/2;
492 dma_addr -= asd_ha->hw_prof.max_ddbs * ASD_DDB_SIZE;
497 asd_ha->hw_prof.max_ddbs += MAX_DEVS;
509 asd_ha->hw_prof.ddb_ext = NULL;
510 if (max_devs <= asd_ha->hw_prof.max_ddbs || max_devs > 0xFFFF) {
511 max_devs = asd_ha->hw_prof.max_ddbs;
515 size = (max_devs - asd_ha->hw_prof.max_ddbs + 1) * ASD_DDB_SIZE;
517 asd_ha->hw_prof.ddb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL);
518 if (!asd_ha->hw_prof.ddb_ext) {
521 max_devs = asd_ha->hw_prof.max_ddbs;
524 dma_handle = asd_ha->hw_prof.ddb_ext->dma_handle;
526 dma_addr -= asd_ha->hw_prof.max_ddbs * ASD_DDB_SIZE;
533 asd_ha->hw_prof.max_ddbs = max_devs;
545 asd_ha->hw_prof.scb_ext = NULL;
546 if (max_cmnds <= asd_ha->hw_prof.max_scbs || max_cmnds > 0xFFFF) {
547 max_cmnds = asd_ha->hw_prof.max_scbs;
551 size = (max_cmnds - asd_ha->hw_prof.max_scbs + 1) * ASD_SCB_SIZE;
553 asd_ha->hw_prof.scb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL);
554 if (!asd_ha->hw_prof.scb_ext) {
557 max_cmnds = asd_ha->hw_prof.max_scbs;
560 dma_handle = asd_ha->hw_prof.scb_ext->dma_handle;
562 dma_addr -= asd_ha->hw_prof.max_scbs * ASD_SCB_SIZE;
569 asd_ha->hw_prof.max_scbs = max_cmnds;
595 bitmap_bytes = (asd_ha->hw_prof.max_ddbs+7)/8;
597 asd_ha->hw_prof.ddb_bitmap = kzalloc(bitmap_bytes, GFP_KERNEL);
598 if (!asd_ha->hw_prof.ddb_bitmap)
600 spin_lock_init(&asd_ha->hw_prof.ddb_lock);
1192 can_queue = asd_ha->hw_prof.max_scbs - asd_ha->seq.pending;