• Home
  • Raw
  • Download

Lines Matching refs:hw_prof

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