Lines Matching refs:phy_id

72 	int phy_id = dl->status_block[0] & DL_PHY_MASK;  in asd_phy_event_tasklet()  local
73 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_phy_event_tasklet()
81 ASD_DPRINTK("phy%d: device unplugged\n", phy_id); in asd_phy_event_tasklet()
82 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()
101 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id, in asd_phy_event_tasklet()
103 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
219 int edb_id, int phy_id) in asd_bytes_dmaed_tasklet() argument
224 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()
322 ASD_DPRINTK("phy%d: unknown BREAK\n", phy_id); in asd_primitive_rcvd_tasklet()
327 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
335 phy_id); in asd_primitive_rcvd_tasklet()
344 phy_id, reg, cont); in asd_primitive_rcvd_tasklet()
404 int phy_id = sb_opcode & DL_PHY_MASK; in escb_tasklet_complete() local
405 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in escb_tasklet_complete()
406 struct asd_phy *phy = &asd_ha->phys[phy_id]; in escb_tasklet_complete()
412 sb_opcode, phy_id); in escb_tasklet_complete()
546 ASD_DPRINTK("%s: phy%d: BYTES_DMAED\n", __func__, phy_id); in escb_tasklet_complete()
547 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id); in escb_tasklet_complete()
551 phy_id); in escb_tasklet_complete()
552 asd_primitive_rcvd_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
555 ASD_DPRINTK("%s: phy%d: PHY_EVENT\n", __func__, phy_id); in escb_tasklet_complete()
560 phy_id); in escb_tasklet_complete()
561 asd_link_reset_err_tasklet(ascb, dl, phy_id); in escb_tasklet_complete()
565 __func__, phy_id); in escb_tasklet_complete()
566 asd_turn_led(asd_ha, phy_id, 0); in escb_tasklet_complete()
574 phy_id, sb_opcode); in escb_tasklet_complete()
578 sb_opcode, phy_id); in escb_tasklet_complete()
630 u8 phy_id = control_phy->phy_id; in control_phy_tasklet_complete() local
631 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in control_phy_tasklet_complete()
640 __func__, phy_id, status); in control_phy_tasklet_complete()
646 asd_ha->hw_prof.enabled_phys &= ~(1 << phy_id); in control_phy_tasklet_complete()
647 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
648 asd_control_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
649 ASD_DPRINTK("%s: disable phy%d\n", __func__, phy_id); in control_phy_tasklet_complete()
653 asd_control_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
655 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
657 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
659 __func__, phy_id,phy->sas_phy.linkrate, in control_phy_tasklet_complete()
662 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
663 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
665 phy_id); in control_phy_tasklet_complete()
667 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
669 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
672 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
673 asd_turn_led(asd_ha, phy_id, 1); in control_phy_tasklet_complete()
675 __func__, phy_id); in control_phy_tasklet_complete()
677 asd_ha->hw_prof.enabled_phys |= (1 << phy_id); in control_phy_tasklet_complete()
678 asd_turn_led(asd_ha, phy_id, 0); in control_phy_tasklet_complete()
681 __func__, phy_id, oob_status); in control_phy_tasklet_complete()
688 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
693 phy_id, control_phy->sub_func); in control_phy_tasklet_complete()
762 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) in asd_build_control_phy() argument
764 struct asd_phy *phy = &ascb->ha->phys[phy_id]; in asd_build_control_phy()
769 control_phy->phy_id = (u8) phy_id; in asd_build_control_phy()
817 u8 phy_id = link_adm->phy_id;
821 "0x%x\n", phy_id, link_adm->sub_func, opcode);
824 phy_id, link_adm->sub_func, opcode);
829 void asd_build_initiate_link_adm_task(struct asd_ascb *ascb, int phy_id,
837 link_adm->phy_id = phy_id;