Lines Matching refs:phy_id

71 	int phy_id = dl->status_block[0] & DL_PHY_MASK;
72 struct asd_phy *phy = &asd_ha->phys[phy_id];
80 ASD_DPRINTK("phy%d: device unplugged\n", phy_id);
81 asd_turn_led(asd_ha, phy_id, 0);
88 asd_turn_led(asd_ha, phy_id, 1);
91 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto);
96 asd_turn_led(asd_ha, phy_id, 1);
102 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id,
104 asd_turn_led(asd_ha, phy_id, 0);
220 int edb_id, int phy_id)
225 struct asd_phy *phy = &ascb->ha->phys[phy_id];
242 int phy_id)
246 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
247 struct asd_phy *phy = &asd_ha->phys[phy_id];
253 ASD_DPRINTK("phy%d: Receive ID timer expired\n", phy_id);
256 ASD_DPRINTK("phy%d: Loss of signal\n", phy_id);
259 ASD_DPRINTK("phy%d: Loss of dword sync\n", phy_id);
262 ASD_DPRINTK("phy%d: Receive FIS timeout\n", phy_id);
266 phy_id, lr_error);
270 asd_turn_led(asd_ha, phy_id, 0);
284 phy_id);
285 asd_build_control_phy(cp, phy_id, ENABLE_PHY);
295 int phy_id)
299 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
301 struct asd_phy *phy = &asd_ha->phys[phy_id];
314 phy_id, cont);
323 ASD_DPRINTK("phy%d: unknown BREAK\n", phy_id);
328 phy_id, reg, cont);
336 phy_id);
346 phy_id, reg, cont);
406 int phy_id = sb_opcode & DL_PHY_MASK;
407 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
408 struct asd_phy *phy = &asd_ha->phys[phy_id];
413 ASD_DPRINTK("sb_opcode : 0x%x, phy_id: 0x%x\n",
414 sb_opcode, phy_id);
548 ASD_DPRINTK("%s: phy%d: BYTES_DMAED\n", __func__, phy_id);
549 asd_bytes_dmaed_tasklet(ascb, dl, edb, phy_id);
553 phy_id);
554 asd_primitive_rcvd_tasklet(ascb, dl, phy_id);
557 ASD_DPRINTK("%s: phy%d: PHY_EVENT\n", __func__, phy_id);
562 phy_id);
563 asd_link_reset_err_tasklet(ascb, dl, phy_id);
567 __func__, phy_id);
568 asd_turn_led(asd_ha, phy_id, 0);
576 phy_id, sb_opcode);
579 ASD_DPRINTK("sb_opcode : 0x%x, phy_id: 0x%x\n",
580 sb_opcode, phy_id);
632 u8 phy_id = control_phy->phy_id;
633 struct asd_phy *phy = &ascb->ha->phys[phy_id];
642 __func__, phy_id, status);
648 asd_ha->hw_prof.enabled_phys &= ~(1 << phy_id);
649 asd_turn_led(asd_ha, phy_id, 0);
650 asd_control_led(asd_ha, phy_id, 0);
651 ASD_DPRINTK("%s: disable phy%d\n", __func__, phy_id);
655 asd_control_led(asd_ha, phy_id, 1);
657 asd_ha->hw_prof.enabled_phys |= (1 << phy_id);
659 asd_turn_led(asd_ha, phy_id, 1);
661 __func__, phy_id,phy->sas_phy.linkrate,
664 asd_ha->hw_prof.enabled_phys |= (1 << phy_id);
665 asd_turn_led(asd_ha, phy_id, 1);
667 phy_id);
669 asd_turn_led(asd_ha, phy_id, 0);
671 __func__, phy_id, oob_status);
674 asd_ha->hw_prof.enabled_phys |= (1 << phy_id);
675 asd_turn_led(asd_ha, phy_id, 1);
677 __func__, phy_id);
679 asd_ha->hw_prof.enabled_phys |= (1 << phy_id);
680 asd_turn_led(asd_ha, phy_id, 0);
683 __func__, phy_id, oob_status);
690 phy_id, control_phy->sub_func);
695 phy_id, control_phy->sub_func);
756 * @phy_id: phy id to control, integer
766 void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc)
768 struct asd_phy *phy = &ascb->ha->phys[phy_id];
773 control_phy->phy_id = (u8) phy_id;
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;