Lines Matching refs:phy_id
89 int phy_id = dl->status_block[0] & DL_PHY_MASK; in asd_phy_event_tasklet() local
90 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_phy_event_tasklet()
98 ASD_DPRINTK("phy%d: device unplugged\n", phy_id); in asd_phy_event_tasklet()
99 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
105 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
108 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
113 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
118 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id, in asd_phy_event_tasklet()
120 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
236 int edb_id, int phy_id) in asd_bytes_dmaed_tasklet() argument
241 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_bytes_dmaed_tasklet()
259 int phy_id) in asd_link_reset_err_tasklet() argument
263 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_link_reset_err_tasklet()
264 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_link_reset_err_tasklet()
270 ASD_DPRINTK("phy%d: Receive ID timer expired\n", phy_id); in asd_link_reset_err_tasklet()
273 ASD_DPRINTK("phy%d: Loss of signal\n", phy_id); in asd_link_reset_err_tasklet()
276 ASD_DPRINTK("phy%d: Loss of dword sync\n", phy_id); in asd_link_reset_err_tasklet()
279 ASD_DPRINTK("phy%d: Receive FIS timeout\n", phy_id); in asd_link_reset_err_tasklet()
283 phy_id, lr_error); in asd_link_reset_err_tasklet()
287 asd_turn_led(asd_ha, phy_id, 0); in asd_link_reset_err_tasklet()
301 phy_id); in asd_link_reset_err_tasklet()
302 asd_build_control_phy(cp, phy_id, ENABLE_PHY); in asd_link_reset_err_tasklet()
312 int phy_id) in asd_primitive_rcvd_tasklet() argument
316 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_primitive_rcvd_tasklet()
318 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_primitive_rcvd_tasklet()
331 phy_id, cont); in asd_primitive_rcvd_tasklet()
339 ASD_DPRINTK("phy%d: unknown BREAK\n", phy_id); in asd_primitive_rcvd_tasklet()
344 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
352 phy_id); in asd_primitive_rcvd_tasklet()
361 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
421 int phy_id = sb_opcode & DL_PHY_MASK; in escb_tasklet_complete() local
422 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete()
423 struct asd_phy *phy = &asd_ha->phys[phy_id]; in escb_tasklet_complete()
429 sb_opcode, phy_id); in escb_tasklet_complete()
563 ASD_DPRINTK("%s: phy%d: BYTES_DMAED\n", __func__, phy_id); in escb_tasklet_complete()
564 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id); in escb_tasklet_complete()
568 phy_id); in escb_tasklet_complete()
569 asd_primitive_rcvd_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
572 ASD_DPRINTK("%s: phy%d: PHY_EVENT\n", __func__, phy_id); in escb_tasklet_complete()
577 phy_id); in escb_tasklet_complete()
578 asd_link_reset_err_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
582 __func__, phy_id); in escb_tasklet_complete()
583 asd_turn_led(asd_ha, phy_id, 0); in escb_tasklet_complete()
591 phy_id, sb_opcode); in escb_tasklet_complete()
595 sb_opcode, phy_id); in escb_tasklet_complete()
647 u8 phy_id = control_phy->phy_id; in control_phy_tasklet_complete() local
648 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in control_phy_tasklet_complete()
657 __func__, phy_id, status); in control_phy_tasklet_complete()
663 asd_ha->hw_prof.enabled_phys &= ~(1 << phy_id); in control_phy_tasklet_complete()
664 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
665 asd_control_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
666 ASD_DPRINTK("%s: disable phy%d\n", __func__, phy_id); in control_phy_tasklet_complete()
670 asd_control_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
672 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
674 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
676 __func__, phy_id,phy->sas_phy.linkrate, 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, 1); in control_phy_tasklet_complete()
682 phy_id); in control_phy_tasklet_complete()
684 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
686 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
689 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
690 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
692 __func__, phy_id); in control_phy_tasklet_complete()
694 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
695 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
698 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
705 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
710 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
775 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) in asd_build_control_phy() argument
777 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_build_control_phy()
782 control_phy->phy_id = (u8) phy_id; in asd_build_control_phy()
829 u8 phy_id = link_adm->phy_id;
833 "0x%x\n", phy_id, link_adm->sub_func, opcode);
836 phy_id, link_adm->sub_func, opcode);
841 void asd_build_initiate_link_adm_task(struct asd_ascb *ascb, int phy_id,
849 link_adm->phy_id = phy_id;