Lines Matching refs:asd_ha

70 	struct asd_ha_struct *asd_ha = ascb->ha;  in asd_phy_event_tasklet()  local
72 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_phy_event_tasklet()
81 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
88 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
96 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
104 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
112 static unsigned ord_phy(struct asd_ha_struct *asd_ha, struct asd_phy *phy) in ord_phy() argument
114 u8 enabled_mask = asd_ha->hw_prof.enabled_phys; in ord_phy()
118 if (&asd_ha->phys[i] == phy) in ord_phy()
141 struct asd_ha_struct *asd_ha = phy->sas_phy.ha->lldd_ha; in asd_get_attached_sas_addr() local
145 addr += asd_ha->hw_prof.sata_name_base + ord_phy(asd_ha, phy); in asd_get_attached_sas_addr()
154 static void asd_form_port(struct asd_ha_struct *asd_ha, struct asd_phy *phy) in asd_form_port() argument
162 spin_lock_irqsave(&asd_ha->asd_ports_lock, flags); in asd_form_port()
165 port = &asd_ha->asd_ports[i]; in asd_form_port()
199 asd_update_port_links(asd_ha, phy); in asd_form_port()
200 spin_unlock_irqrestore(&asd_ha->asd_ports_lock, flags); in asd_form_port()
203 static void asd_deform_port(struct asd_ha_struct *asd_ha, struct asd_phy *phy) in asd_deform_port() argument
209 spin_lock_irqsave(&asd_ha->asd_ports_lock, flags); in asd_deform_port()
215 spin_unlock_irqrestore(&asd_ha->asd_ports_lock, flags); in asd_deform_port()
244 struct asd_ha_struct *asd_ha = ascb->ha; in asd_link_reset_err_tasklet() local
245 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; in asd_link_reset_err_tasklet()
247 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_link_reset_err_tasklet()
270 asd_turn_led(asd_ha, phy_id, 0); in asd_link_reset_err_tasklet()
272 asd_deform_port(asd_ha, phy); in asd_link_reset_err_tasklet()
300 struct asd_ha_struct *asd_ha = ascb->ha; in asd_primitive_rcvd_tasklet() local
301 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_primitive_rcvd_tasklet()
339 asd_deform_port(asd_ha, phy); in asd_primitive_rcvd_tasklet()
402 struct asd_ha_struct *asd_ha = ascb->ha; in escb_tasklet_complete() local
403 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; in escb_tasklet_complete()
408 struct asd_phy *phy = &asd_ha->phys[phy_id]; in escb_tasklet_complete()
444 list_for_each_entry_safe(a, b, &asd_ha->seq.pend_q, list) { in escb_tasklet_complete()
470 list_for_each_entry_safe(a, b, &asd_ha->seq.pend_q, list) { in escb_tasklet_complete()
494 list_for_each_entry(a, &asd_ha->seq.pend_q, list) { in escb_tasklet_complete()
520 list_for_each_entry(a, &asd_ha->seq.pend_q, list) { in escb_tasklet_complete()
568 asd_turn_led(asd_ha, phy_id, 0); in escb_tasklet_complete()
571 asd_deform_port(asd_ha, phy); in escb_tasklet_complete()
597 int asd_init_post_escbs(struct asd_ha_struct *asd_ha) in asd_init_post_escbs() argument
599 struct asd_seq_data *seq = &asd_ha->seq; in asd_init_post_escbs()
606 return asd_post_escb_list(asd_ha, seq->escb_arr[0], seq->num_escbs); in asd_init_post_escbs()
629 struct asd_ha_struct *asd_ha = ascb->ha; in control_phy_tasklet_complete() local
648 asd_ha->hw_prof.enabled_phys &= ~(1 << phy_id); in control_phy_tasklet_complete()
649 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
650 asd_control_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
655 asd_control_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
657 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
659 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
664 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
665 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
669 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
674 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
675 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
679 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
680 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
892 struct asd_ha_struct *asd_ha = phy->ha->lldd_ha; in asd_control_phy() local
893 struct asd_phy_desc *pd = asd_ha->phys[phy->id].phy_desc; in asd_control_phy()
918 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); in asd_control_phy()
923 res = asd_post_ascb_list(asd_ha, ascb , 1); in asd_control_phy()