Lines Matching refs:phy_id
71 int phy_id = dl->status_block[0] & DL_PHY_MASK; in asd_phy_event_tasklet() local
72 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_phy_event_tasklet()
80 ASD_DPRINTK("phy%d: device unplugged\n", 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()
91 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
96 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
102 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id, in asd_phy_event_tasklet()
104 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
220 int edb_id, int phy_id) in asd_bytes_dmaed_tasklet() argument
225 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_bytes_dmaed_tasklet()
242 int phy_id) in asd_link_reset_err_tasklet() argument
246 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_link_reset_err_tasklet()
247 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_link_reset_err_tasklet()
253 ASD_DPRINTK("phy%d: Receive ID timer expired\n", phy_id); in asd_link_reset_err_tasklet()
256 ASD_DPRINTK("phy%d: Loss of signal\n", phy_id); in asd_link_reset_err_tasklet()
259 ASD_DPRINTK("phy%d: Loss of dword sync\n", phy_id); in asd_link_reset_err_tasklet()
262 ASD_DPRINTK("phy%d: Receive FIS timeout\n", phy_id); in asd_link_reset_err_tasklet()
266 phy_id, lr_error); in asd_link_reset_err_tasklet()
270 asd_turn_led(asd_ha, phy_id, 0); in asd_link_reset_err_tasklet()
284 phy_id); in asd_link_reset_err_tasklet()
285 asd_build_control_phy(cp, phy_id, ENABLE_PHY); in asd_link_reset_err_tasklet()
295 int phy_id) in asd_primitive_rcvd_tasklet() argument
299 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_primitive_rcvd_tasklet()
301 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_primitive_rcvd_tasklet()
314 phy_id, cont); in asd_primitive_rcvd_tasklet()
323 ASD_DPRINTK("phy%d: unknown BREAK\n", phy_id); in asd_primitive_rcvd_tasklet()
328 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
336 phy_id); in asd_primitive_rcvd_tasklet()
346 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
406 int phy_id = sb_opcode & DL_PHY_MASK; in escb_tasklet_complete() local
407 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete()
408 struct asd_phy *phy = &asd_ha->phys[phy_id]; in escb_tasklet_complete()
414 sb_opcode, phy_id); in escb_tasklet_complete()
548 ASD_DPRINTK("%s: phy%d: BYTES_DMAED\n", __func__, phy_id); in escb_tasklet_complete()
549 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id); in escb_tasklet_complete()
553 phy_id); in escb_tasklet_complete()
554 asd_primitive_rcvd_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
557 ASD_DPRINTK("%s: phy%d: PHY_EVENT\n", __func__, phy_id); in escb_tasklet_complete()
562 phy_id); in escb_tasklet_complete()
563 asd_link_reset_err_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
567 __func__, phy_id); in escb_tasklet_complete()
568 asd_turn_led(asd_ha, phy_id, 0); in escb_tasklet_complete()
576 phy_id, sb_opcode); in escb_tasklet_complete()
580 sb_opcode, phy_id); in escb_tasklet_complete()
632 u8 phy_id = control_phy->phy_id; in control_phy_tasklet_complete() local
633 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in control_phy_tasklet_complete()
642 __func__, phy_id, status); in control_phy_tasklet_complete()
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()
651 ASD_DPRINTK("%s: disable phy%d\n", __func__, phy_id); 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()
661 __func__, phy_id,phy->sas_phy.linkrate, 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()
667 phy_id); in control_phy_tasklet_complete()
669 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
671 __func__, phy_id, oob_status); 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()
677 __func__, phy_id); 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()
683 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
690 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
695 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
766 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) in asd_build_control_phy() argument
768 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_build_control_phy()
773 control_phy->phy_id = (u8) phy_id; in asd_build_control_phy()
821 u8 phy_id = link_adm->phy_id;
825 "0x%x\n", phy_id, link_adm->sub_func, opcode);
828 phy_id, link_adm->sub_func, opcode);
833 void asd_build_initiate_link_adm_task(struct asd_ascb *ascb, int phy_id,
841 link_adm->phy_id = phy_id;