Lines Matching full:sha
139 struct sas_ha_struct *sha = (struct sas_ha_struct *)opaque; in mvs_tasklet() local
141 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_tasklet()
142 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_tasklet()
152 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_tasklet()
165 struct sas_ha_struct *sha = opaque; in mvs_interrupt() local
170 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_interrupt()
173 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_interrupt()
190 tasklet_schedule(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_interrupt()
193 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_interrupt()
331 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local
345 ((struct mvs_prv_info *)sha->lldd_ha)->mvi[id] = mvi; in mvs_pci_alloc()
346 ((struct mvs_prv_info *)sha->lldd_ha)->n_phy = mvi->chip->n_phy; in mvs_pci_alloc()
349 mvi->sas = sha; in mvs_pci_alloc()
388 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_prep_sas_ha_init() local
394 memset(sha, 0x00, sizeof(struct sas_ha_struct)); in mvs_prep_sas_ha_init()
400 sha->sas_phy = arr_phy; in mvs_prep_sas_ha_init()
401 sha->sas_port = arr_port; in mvs_prep_sas_ha_init()
402 sha->shost = shost; in mvs_prep_sas_ha_init()
404 sha->lldd_ha = kzalloc(sizeof(struct mvs_prv_info), GFP_KERNEL); in mvs_prep_sas_ha_init()
405 if (!sha->lldd_ha) in mvs_prep_sas_ha_init()
408 ((struct mvs_prv_info *)sha->lldd_ha)->n_host = core_nr; in mvs_prep_sas_ha_init()
429 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_post_sas_ha_init() local
430 unsigned short nr_core = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_post_sas_ha_init()
433 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[j]; in mvs_post_sas_ha_init()
435 sha->sas_phy[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init()
437 sha->sas_port[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init()
442 sha->sas_ha_name = DRV_NAME; in mvs_post_sas_ha_init()
443 sha->dev = mvi->dev; in mvs_post_sas_ha_init()
444 sha->sas_addr = &mvi->sas_addr[0]; in mvs_post_sas_ha_init()
446 sha->num_phys = nr_core * chip_info->n_phy; in mvs_post_sas_ha_init()
458 sha->shost = mvi->shost; in mvs_post_sas_ha_init()
585 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in mvs_pci_remove() local
588 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_pci_remove()
589 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_pci_remove()
592 tasklet_kill(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_pci_remove()
595 sas_unregister_ha(sha); in mvs_pci_remove()
599 free_irq(mvi->pdev->irq, sha); in mvs_pci_remove()
601 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_pci_remove()
604 kfree(sha->sas_phy); in mvs_pci_remove()
605 kfree(sha->sas_port); in mvs_pci_remove()
606 kfree(sha); in mvs_pci_remove()
688 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in interrupt_coalescing_store() local
704 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in interrupt_coalescing_store()
705 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in interrupt_coalescing_store()
711 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in interrupt_coalescing_store()