Lines Matching refs:sha

168 	struct sas_ha_struct *sha = (struct sas_ha_struct *)opaque;  in mvs_tasklet()  local
170 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_tasklet()
171 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_tasklet()
181 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_tasklet()
195 struct sas_ha_struct *sha = opaque; in mvs_interrupt() local
200 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_interrupt()
201 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_interrupt()
218 tasklet_schedule(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_interrupt()
221 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_interrupt()
367 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local
381 ((struct mvs_prv_info *)sha->lldd_ha)->mvi[id] = mvi; in mvs_pci_alloc()
382 ((struct mvs_prv_info *)sha->lldd_ha)->n_phy = mvi->chip->n_phy; in mvs_pci_alloc()
385 mvi->sas = sha; in mvs_pci_alloc()
439 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_prep_sas_ha_init() local
445 memset(sha, 0x00, sizeof(struct sas_ha_struct)); in mvs_prep_sas_ha_init()
451 sha->sas_phy = arr_phy; in mvs_prep_sas_ha_init()
452 sha->sas_port = arr_port; in mvs_prep_sas_ha_init()
453 sha->core.shost = shost; in mvs_prep_sas_ha_init()
455 sha->lldd_ha = kzalloc(sizeof(struct mvs_prv_info), GFP_KERNEL); in mvs_prep_sas_ha_init()
456 if (!sha->lldd_ha) in mvs_prep_sas_ha_init()
459 ((struct mvs_prv_info *)sha->lldd_ha)->n_host = core_nr; in mvs_prep_sas_ha_init()
480 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_post_sas_ha_init() local
481 unsigned short nr_core = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_post_sas_ha_init()
484 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[j]; in mvs_post_sas_ha_init()
486 sha->sas_phy[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init()
488 sha->sas_port[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init()
493 sha->sas_ha_name = DRV_NAME; in mvs_post_sas_ha_init()
494 sha->dev = mvi->dev; in mvs_post_sas_ha_init()
495 sha->lldd_module = THIS_MODULE; in mvs_post_sas_ha_init()
496 sha->sas_addr = &mvi->sas_addr[0]; in mvs_post_sas_ha_init()
498 sha->num_phys = nr_core * chip_info->n_phy; in mvs_post_sas_ha_init()
508 sha->core.shost = mvi->shost; in mvs_post_sas_ha_init()
633 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in mvs_pci_remove() local
636 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_pci_remove()
637 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_pci_remove()
640 tasklet_kill(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_pci_remove()
644 sas_unregister_ha(sha); in mvs_pci_remove()
648 free_irq(mvi->pdev->irq, sha); in mvs_pci_remove()
650 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_pci_remove()
653 kfree(sha->sas_phy); in mvs_pci_remove()
654 kfree(sha->sas_port); in mvs_pci_remove()
655 kfree(sha); in mvs_pci_remove()
764 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_store_interrupt_coalescing() local
780 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_store_interrupt_coalescing()
781 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_store_interrupt_coalescing()
787 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_store_interrupt_coalescing()