Lines Matching full:sha
154 struct sas_ha_struct *sha = (struct sas_ha_struct *)opaque; in mvs_tasklet() local
156 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_tasklet()
157 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_tasklet()
167 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_tasklet()
180 struct sas_ha_struct *sha = opaque; in mvs_interrupt() local
185 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_interrupt()
188 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_interrupt()
205 tasklet_schedule(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_interrupt()
208 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_interrupt()
346 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local
360 ((struct mvs_prv_info *)sha->lldd_ha)->mvi[id] = mvi; in mvs_pci_alloc()
361 ((struct mvs_prv_info *)sha->lldd_ha)->n_phy = mvi->chip->n_phy; in mvs_pci_alloc()
364 mvi->sas = sha; in mvs_pci_alloc()
403 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_prep_sas_ha_init() local
409 memset(sha, 0x00, sizeof(struct sas_ha_struct)); in mvs_prep_sas_ha_init()
415 sha->sas_phy = arr_phy; in mvs_prep_sas_ha_init()
416 sha->sas_port = arr_port; in mvs_prep_sas_ha_init()
417 sha->shost = shost; in mvs_prep_sas_ha_init()
419 sha->lldd_ha = kzalloc(sizeof(struct mvs_prv_info), GFP_KERNEL); in mvs_prep_sas_ha_init()
420 if (!sha->lldd_ha) in mvs_prep_sas_ha_init()
423 ((struct mvs_prv_info *)sha->lldd_ha)->n_host = core_nr; in mvs_prep_sas_ha_init()
444 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_post_sas_ha_init() local
445 unsigned short nr_core = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_post_sas_ha_init()
448 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[j]; in mvs_post_sas_ha_init()
450 sha->sas_phy[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init()
452 sha->sas_port[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init()
457 sha->sas_ha_name = DRV_NAME; in mvs_post_sas_ha_init()
458 sha->dev = mvi->dev; in mvs_post_sas_ha_init()
459 sha->sas_addr = &mvi->sas_addr[0]; in mvs_post_sas_ha_init()
461 sha->num_phys = nr_core * chip_info->n_phy; in mvs_post_sas_ha_init()
473 sha->shost = mvi->shost; in mvs_post_sas_ha_init()
600 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in mvs_pci_remove() local
603 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_pci_remove()
604 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_pci_remove()
607 tasklet_kill(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_pci_remove()
610 sas_unregister_ha(sha); in mvs_pci_remove()
614 free_irq(mvi->pdev->irq, sha); in mvs_pci_remove()
616 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_pci_remove()
619 kfree(sha->sas_phy); in mvs_pci_remove()
620 kfree(sha->sas_port); in mvs_pci_remove()
621 kfree(sha); in mvs_pci_remove()
709 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in interrupt_coalescing_store() local
725 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in interrupt_coalescing_store()
726 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in interrupt_coalescing_store()
732 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in interrupt_coalescing_store()