• Home
  • Raw
  • Download

Lines Matching refs:sha

157 	struct sas_ha_struct *sha = (struct sas_ha_struct *)opaque;  in mvs_tasklet()  local
159 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_tasklet()
160 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_tasklet()
170 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_tasklet()
183 struct sas_ha_struct *sha = opaque; in mvs_interrupt() local
188 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_interrupt()
191 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_interrupt()
208 tasklet_schedule(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_interrupt()
211 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_interrupt()
352 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local
366 ((struct mvs_prv_info *)sha->lldd_ha)->mvi[id] = mvi; in mvs_pci_alloc()
367 ((struct mvs_prv_info *)sha->lldd_ha)->n_phy = mvi->chip->n_phy; in mvs_pci_alloc()
370 mvi->sas = sha; in mvs_pci_alloc()
409 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_prep_sas_ha_init() local
415 memset(sha, 0x00, sizeof(struct sas_ha_struct)); in mvs_prep_sas_ha_init()
421 sha->sas_phy = arr_phy; in mvs_prep_sas_ha_init()
422 sha->sas_port = arr_port; in mvs_prep_sas_ha_init()
423 sha->core.shost = shost; in mvs_prep_sas_ha_init()
425 sha->lldd_ha = kzalloc(sizeof(struct mvs_prv_info), GFP_KERNEL); in mvs_prep_sas_ha_init()
426 if (!sha->lldd_ha) in mvs_prep_sas_ha_init()
429 ((struct mvs_prv_info *)sha->lldd_ha)->n_host = core_nr; in mvs_prep_sas_ha_init()
450 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_post_sas_ha_init() local
451 unsigned short nr_core = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_post_sas_ha_init()
454 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[j]; in mvs_post_sas_ha_init()
456 sha->sas_phy[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init()
458 sha->sas_port[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init()
463 sha->sas_ha_name = DRV_NAME; in mvs_post_sas_ha_init()
464 sha->dev = mvi->dev; in mvs_post_sas_ha_init()
465 sha->lldd_module = THIS_MODULE; in mvs_post_sas_ha_init()
466 sha->sas_addr = &mvi->sas_addr[0]; in mvs_post_sas_ha_init()
468 sha->num_phys = nr_core * chip_info->n_phy; in mvs_post_sas_ha_init()
478 sha->core.shost = mvi->shost; in mvs_post_sas_ha_init()
603 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in mvs_pci_remove() local
606 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_pci_remove()
607 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_pci_remove()
610 tasklet_kill(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_pci_remove()
613 sas_unregister_ha(sha); in mvs_pci_remove()
617 free_irq(mvi->pdev->irq, sha); in mvs_pci_remove()
619 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_pci_remove()
622 kfree(sha->sas_phy); in mvs_pci_remove()
623 kfree(sha->sas_port); in mvs_pci_remove()
624 kfree(sha); in mvs_pci_remove()
712 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in interrupt_coalescing_store() local
728 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in interrupt_coalescing_store()
729 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in interrupt_coalescing_store()
735 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in interrupt_coalescing_store()