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()
87 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
90 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
95 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
100 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id, in asd_phy_event_tasklet()
102 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
218 int edb_id, int phy_id) in asd_bytes_dmaed_tasklet() argument
223 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_bytes_dmaed_tasklet()
240 int phy_id) in asd_link_reset_err_tasklet() argument
244 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_link_reset_err_tasklet()
245 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_link_reset_err_tasklet()
251 ASD_DPRINTK("phy%d: Receive ID timer expired\n", phy_id); in asd_link_reset_err_tasklet()
254 ASD_DPRINTK("phy%d: Loss of signal\n", phy_id); in asd_link_reset_err_tasklet()
257 ASD_DPRINTK("phy%d: Loss of dword sync\n", phy_id); in asd_link_reset_err_tasklet()
260 ASD_DPRINTK("phy%d: Receive FIS timeout\n", phy_id); in asd_link_reset_err_tasklet()
264 phy_id, lr_error); in asd_link_reset_err_tasklet()
268 asd_turn_led(asd_ha, phy_id, 0); in asd_link_reset_err_tasklet()
282 phy_id); in asd_link_reset_err_tasklet()
283 asd_build_control_phy(cp, phy_id, ENABLE_PHY); in asd_link_reset_err_tasklet()
293 int phy_id) in asd_primitive_rcvd_tasklet() argument
297 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_primitive_rcvd_tasklet()
299 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_primitive_rcvd_tasklet()
312 phy_id, cont); in asd_primitive_rcvd_tasklet()
320 ASD_DPRINTK("phy%d: unknown BREAK\n", phy_id); in asd_primitive_rcvd_tasklet()
325 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
333 phy_id); in asd_primitive_rcvd_tasklet()
342 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
402 int phy_id = sb_opcode & DL_PHY_MASK; in escb_tasklet_complete() local
403 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete()
404 struct asd_phy *phy = &asd_ha->phys[phy_id]; in escb_tasklet_complete()
410 sb_opcode, phy_id); in escb_tasklet_complete()
544 ASD_DPRINTK("%s: phy%d: BYTES_DMAED\n", __func__, phy_id); in escb_tasklet_complete()
545 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id); in escb_tasklet_complete()
549 phy_id); in escb_tasklet_complete()
550 asd_primitive_rcvd_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
553 ASD_DPRINTK("%s: phy%d: PHY_EVENT\n", __func__, phy_id); in escb_tasklet_complete()
558 phy_id); in escb_tasklet_complete()
559 asd_link_reset_err_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
563 __func__, phy_id); in escb_tasklet_complete()
564 asd_turn_led(asd_ha, phy_id, 0); in escb_tasklet_complete()
572 phy_id, sb_opcode); in escb_tasklet_complete()
576 sb_opcode, phy_id); in escb_tasklet_complete()
628 u8 phy_id = control_phy->phy_id; in control_phy_tasklet_complete() local
629 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in control_phy_tasklet_complete()
638 __func__, phy_id, status); in control_phy_tasklet_complete()
644 asd_ha->hw_prof.enabled_phys &= ~(1 << phy_id); in control_phy_tasklet_complete()
645 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
646 asd_control_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
647 ASD_DPRINTK("%s: disable phy%d\n", __func__, phy_id); in control_phy_tasklet_complete()
651 asd_control_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
653 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
655 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
657 __func__, phy_id,phy->sas_phy.linkrate, in control_phy_tasklet_complete()
660 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
661 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
663 phy_id); in control_phy_tasklet_complete()
665 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
667 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
670 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
671 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
673 __func__, phy_id); in control_phy_tasklet_complete()
675 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
676 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
679 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
686 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
691 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
760 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) in asd_build_control_phy() argument
762 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_build_control_phy()
767 control_phy->phy_id = (u8) phy_id; in asd_build_control_phy()
815 u8 phy_id = link_adm->phy_id;
819 "0x%x\n", phy_id, link_adm->sub_func, opcode);
822 phy_id, link_adm->sub_func, opcode);
827 void asd_build_initiate_link_adm_task(struct asd_ascb *ascb, int phy_id,
835 link_adm->phy_id = phy_id;