Lines Matching refs:hw_prof

46 	if (asd_ha->hw_prof.sas_addr[0])  in asd_get_user_sas_addr()
50 asd_ha->hw_prof.sas_addr); in asd_get_user_sas_addr()
58 if (asd_ha->hw_prof.phy_desc[i].sas_addr[0] == 0) in asd_propagate_sas_addr()
63 SAS_ADDR(asd_ha->hw_prof.sas_addr)); in asd_propagate_sas_addr()
64 memcpy(asd_ha->hw_prof.phy_desc[i].sas_addr, in asd_propagate_sas_addr()
65 asd_ha->hw_prof.sas_addr, SAS_ADDR_SIZE); in asd_propagate_sas_addr()
133 u8 phy_mask = asd_ha->hw_prof.enabled_phys; in asd_init_phys()
138 phy->phy_desc = &asd_ha->hw_prof.phy_desc[i]; in asd_init_phys()
222 asd_ha->seq.tc_index_bitmap_bits = asd_ha->hw_prof.max_scbs; in asd_init_scbs()
256 asd_ha->hw_prof.max_scbs = asd_get_cmdctx_size(asd_ha)/ASD_SCB_SIZE; in asd_get_max_scb_ddb()
257 asd_ha->hw_prof.max_ddbs = asd_get_devctx_size(asd_ha)/ASD_DDB_SIZE; in asd_get_max_scb_ddb()
259 asd_ha->hw_prof.max_scbs, in asd_get_max_scb_ddb()
260 asd_ha->hw_prof.max_ddbs); in asd_get_max_scb_ddb()
389 int edbs = 2*(1+asd_ha->hw_prof.num_phys); in asd_init_escbs()
413 seq->can_queue = 1 + (asd_ha->hw_prof.max_scbs - seq->pending)/2; in asd_init_escbs()
507 dma_addr -= asd_ha->hw_prof.max_ddbs * ASD_DDB_SIZE; in asd_extend_devctx_ocm()
512 asd_ha->hw_prof.max_ddbs += MAX_DEVS; in asd_extend_devctx_ocm()
524 asd_ha->hw_prof.ddb_ext = NULL; in asd_extend_devctx()
525 if (max_devs <= asd_ha->hw_prof.max_ddbs || max_devs > 0xFFFF) { in asd_extend_devctx()
526 max_devs = asd_ha->hw_prof.max_ddbs; in asd_extend_devctx()
530 size = (max_devs - asd_ha->hw_prof.max_ddbs + 1) * ASD_DDB_SIZE; in asd_extend_devctx()
532 asd_ha->hw_prof.ddb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL); in asd_extend_devctx()
533 if (!asd_ha->hw_prof.ddb_ext) { in asd_extend_devctx()
536 max_devs = asd_ha->hw_prof.max_ddbs; in asd_extend_devctx()
539 dma_handle = asd_ha->hw_prof.ddb_ext->dma_handle; in asd_extend_devctx()
541 dma_addr -= asd_ha->hw_prof.max_ddbs * ASD_DDB_SIZE; in asd_extend_devctx()
548 asd_ha->hw_prof.max_ddbs = max_devs; in asd_extend_devctx()
560 asd_ha->hw_prof.scb_ext = NULL; in asd_extend_cmdctx()
561 if (max_cmnds <= asd_ha->hw_prof.max_scbs || max_cmnds > 0xFFFF) { in asd_extend_cmdctx()
562 max_cmnds = asd_ha->hw_prof.max_scbs; in asd_extend_cmdctx()
566 size = (max_cmnds - asd_ha->hw_prof.max_scbs + 1) * ASD_SCB_SIZE; in asd_extend_cmdctx()
568 asd_ha->hw_prof.scb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL); in asd_extend_cmdctx()
569 if (!asd_ha->hw_prof.scb_ext) { in asd_extend_cmdctx()
572 max_cmnds = asd_ha->hw_prof.max_scbs; in asd_extend_cmdctx()
575 dma_handle = asd_ha->hw_prof.scb_ext->dma_handle; in asd_extend_cmdctx()
577 dma_addr -= asd_ha->hw_prof.max_scbs * ASD_SCB_SIZE; in asd_extend_cmdctx()
584 asd_ha->hw_prof.max_scbs = max_cmnds; in asd_extend_cmdctx()
610 bitmap_bytes = (asd_ha->hw_prof.max_ddbs+7)/8; in asd_init_ctxmem()
612 asd_ha->hw_prof.ddb_bitmap = kzalloc(bitmap_bytes, GFP_KERNEL); in asd_init_ctxmem()
613 if (!asd_ha->hw_prof.ddb_bitmap) in asd_init_ctxmem()
615 spin_lock_init(&asd_ha->hw_prof.ddb_lock); in asd_init_ctxmem()
1213 can_queue = asd_ha->hw_prof.max_scbs - asd_ha->seq.pending; in asd_post_ascb_list()