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