• Home
  • Raw
  • Download

Lines Matching refs:hw_prof

45 	if (asd_ha->hw_prof.sas_addr[0])  in asd_get_user_sas_addr()
49 asd_ha->hw_prof.sas_addr); in asd_get_user_sas_addr()
57 if (asd_ha->hw_prof.phy_desc[i].sas_addr[0] == 0) in asd_propagate_sas_addr()
62 SAS_ADDR(asd_ha->hw_prof.sas_addr)); in asd_propagate_sas_addr()
63 memcpy(asd_ha->hw_prof.phy_desc[i].sas_addr, in asd_propagate_sas_addr()
64 asd_ha->hw_prof.sas_addr, SAS_ADDR_SIZE); in asd_propagate_sas_addr()
132 u8 phy_mask = asd_ha->hw_prof.enabled_phys; in asd_init_phys()
137 phy->phy_desc = &asd_ha->hw_prof.phy_desc[i]; in asd_init_phys()
221 asd_ha->seq.tc_index_bitmap_bits = asd_ha->hw_prof.max_scbs; in asd_init_scbs()
255 asd_ha->hw_prof.max_scbs = asd_get_cmdctx_size(asd_ha)/ASD_SCB_SIZE; in asd_get_max_scb_ddb()
256 asd_ha->hw_prof.max_ddbs = asd_get_devctx_size(asd_ha)/ASD_DDB_SIZE; in asd_get_max_scb_ddb()
258 asd_ha->hw_prof.max_scbs, in asd_get_max_scb_ddb()
259 asd_ha->hw_prof.max_ddbs); in asd_get_max_scb_ddb()
388 int edbs = 2*(1+asd_ha->hw_prof.num_phys); in asd_init_escbs()
412 seq->can_queue = 1 + (asd_ha->hw_prof.max_scbs - seq->pending)/2; in asd_init_escbs()
506 dma_addr -= asd_ha->hw_prof.max_ddbs * ASD_DDB_SIZE; in asd_extend_devctx_ocm()
511 asd_ha->hw_prof.max_ddbs += MAX_DEVS; in asd_extend_devctx_ocm()
523 asd_ha->hw_prof.ddb_ext = NULL; in asd_extend_devctx()
524 if (max_devs <= asd_ha->hw_prof.max_ddbs || max_devs > 0xFFFF) { in asd_extend_devctx()
525 max_devs = asd_ha->hw_prof.max_ddbs; in asd_extend_devctx()
529 size = (max_devs - asd_ha->hw_prof.max_ddbs + 1) * ASD_DDB_SIZE; in asd_extend_devctx()
531 asd_ha->hw_prof.ddb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL); in asd_extend_devctx()
532 if (!asd_ha->hw_prof.ddb_ext) { in asd_extend_devctx()
535 max_devs = asd_ha->hw_prof.max_ddbs; in asd_extend_devctx()
538 dma_handle = asd_ha->hw_prof.ddb_ext->dma_handle; in asd_extend_devctx()
540 dma_addr -= asd_ha->hw_prof.max_ddbs * ASD_DDB_SIZE; in asd_extend_devctx()
547 asd_ha->hw_prof.max_ddbs = max_devs; in asd_extend_devctx()
559 asd_ha->hw_prof.scb_ext = NULL; in asd_extend_cmdctx()
560 if (max_cmnds <= asd_ha->hw_prof.max_scbs || max_cmnds > 0xFFFF) { in asd_extend_cmdctx()
561 max_cmnds = asd_ha->hw_prof.max_scbs; in asd_extend_cmdctx()
565 size = (max_cmnds - asd_ha->hw_prof.max_scbs + 1) * ASD_SCB_SIZE; in asd_extend_cmdctx()
567 asd_ha->hw_prof.scb_ext = asd_alloc_coherent(asd_ha, size, GFP_KERNEL); in asd_extend_cmdctx()
568 if (!asd_ha->hw_prof.scb_ext) { in asd_extend_cmdctx()
571 max_cmnds = asd_ha->hw_prof.max_scbs; in asd_extend_cmdctx()
574 dma_handle = asd_ha->hw_prof.scb_ext->dma_handle; in asd_extend_cmdctx()
576 dma_addr -= asd_ha->hw_prof.max_scbs * ASD_SCB_SIZE; in asd_extend_cmdctx()
583 asd_ha->hw_prof.max_scbs = max_cmnds; in asd_extend_cmdctx()
609 bitmap_bytes = (asd_ha->hw_prof.max_ddbs+7)/8; in asd_init_ctxmem()
611 asd_ha->hw_prof.ddb_bitmap = kzalloc(bitmap_bytes, GFP_KERNEL); in asd_init_ctxmem()
612 if (!asd_ha->hw_prof.ddb_bitmap) in asd_init_ctxmem()
614 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()