Lines Matching refs:phy_id
90 int phy_id = dl->status_block[0] & DL_PHY_MASK; in asd_phy_event_tasklet() local
91 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_phy_event_tasklet()
99 ASD_DPRINTK("phy%d: device unplugged\n", phy_id); in asd_phy_event_tasklet()
100 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
106 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
109 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
114 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
119 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id, in asd_phy_event_tasklet()
121 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
237 int edb_id, int phy_id) in asd_bytes_dmaed_tasklet() argument
242 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_bytes_dmaed_tasklet()
260 int phy_id) in asd_link_reset_err_tasklet() argument
264 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_link_reset_err_tasklet()
265 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_link_reset_err_tasklet()
271 ASD_DPRINTK("phy%d: Receive ID timer expired\n", phy_id); in asd_link_reset_err_tasklet()
274 ASD_DPRINTK("phy%d: Loss of signal\n", phy_id); in asd_link_reset_err_tasklet()
277 ASD_DPRINTK("phy%d: Loss of dword sync\n", phy_id); in asd_link_reset_err_tasklet()
280 ASD_DPRINTK("phy%d: Receive FIS timeout\n", phy_id); in asd_link_reset_err_tasklet()
284 phy_id, lr_error); in asd_link_reset_err_tasklet()
288 asd_turn_led(asd_ha, phy_id, 0); in asd_link_reset_err_tasklet()
302 phy_id); in asd_link_reset_err_tasklet()
303 asd_build_control_phy(cp, phy_id, ENABLE_PHY); in asd_link_reset_err_tasklet()
313 int phy_id) in asd_primitive_rcvd_tasklet() argument
317 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in asd_primitive_rcvd_tasklet()
319 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_primitive_rcvd_tasklet()
332 phy_id, cont); in asd_primitive_rcvd_tasklet()
340 ASD_DPRINTK("phy%d: unknown BREAK\n", phy_id); in asd_primitive_rcvd_tasklet()
345 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
353 phy_id); in asd_primitive_rcvd_tasklet()
362 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
422 int phy_id = sb_opcode & DL_PHY_MASK; in escb_tasklet_complete() local
423 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete()
424 struct asd_phy *phy = &asd_ha->phys[phy_id]; in escb_tasklet_complete()
430 sb_opcode, phy_id); in escb_tasklet_complete()
564 ASD_DPRINTK("%s: phy%d: BYTES_DMAED\n", __func__, phy_id); in escb_tasklet_complete()
565 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id); in escb_tasklet_complete()
569 phy_id); in escb_tasklet_complete()
570 asd_primitive_rcvd_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
573 ASD_DPRINTK("%s: phy%d: PHY_EVENT\n", __func__, phy_id); in escb_tasklet_complete()
578 phy_id); in escb_tasklet_complete()
579 asd_link_reset_err_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
583 __func__, phy_id); in escb_tasklet_complete()
584 asd_turn_led(asd_ha, phy_id, 0); in escb_tasklet_complete()
592 phy_id, sb_opcode); in escb_tasklet_complete()
596 sb_opcode, phy_id); in escb_tasklet_complete()
648 u8 phy_id = control_phy->phy_id; in control_phy_tasklet_complete() local
649 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in control_phy_tasklet_complete()
658 __func__, phy_id, status); 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, 0); in control_phy_tasklet_complete()
666 asd_control_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
667 ASD_DPRINTK("%s: disable phy%d\n", __func__, phy_id); in control_phy_tasklet_complete()
671 asd_control_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
673 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,phy->sas_phy.linkrate, in control_phy_tasklet_complete()
680 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
681 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
683 phy_id); in control_phy_tasklet_complete()
685 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
687 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
690 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
691 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
693 __func__, phy_id); in control_phy_tasklet_complete()
695 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
696 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
699 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
706 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
711 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
776 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) in asd_build_control_phy() argument
778 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_build_control_phy()
783 control_phy->phy_id = (u8) phy_id; in asd_build_control_phy()
830 u8 phy_id = link_adm->phy_id;
834 "0x%x\n", phy_id, link_adm->sub_func, opcode);
837 phy_id, link_adm->sub_func, opcode);
842 void asd_build_initiate_link_adm_task(struct asd_ascb *ascb, int phy_id,
850 link_adm->phy_id = phy_id;