Lines Matching refs:fc_regs

1090 static void set_port_online(__be64 __iomem *fc_regs)  in set_port_online()  argument
1094 cmdcfg = readq_be(&fc_regs[FC_MTIP_CMDCONFIG / 8]); in set_port_online()
1097 writeq_be(cmdcfg, &fc_regs[FC_MTIP_CMDCONFIG / 8]); in set_port_online()
1106 static void set_port_offline(__be64 __iomem *fc_regs) in set_port_offline() argument
1110 cmdcfg = readq_be(&fc_regs[FC_MTIP_CMDCONFIG / 8]); in set_port_offline()
1113 writeq_be(cmdcfg, &fc_regs[FC_MTIP_CMDCONFIG / 8]); in set_port_offline()
1129 static bool wait_port_online(__be64 __iomem *fc_regs, u32 delay_us, u32 nretry) in wait_port_online() argument
1137 status = readq_be(&fc_regs[FC_MTIP_STATUS / 8]); in wait_port_online()
1158 static bool wait_port_offline(__be64 __iomem *fc_regs, u32 delay_us, u32 nretry) in wait_port_offline() argument
1166 status = readq_be(&fc_regs[FC_MTIP_STATUS / 8]); in wait_port_offline()
1188 static void afu_set_wwpn(struct afu *afu, int port, __be64 __iomem *fc_regs, in afu_set_wwpn() argument
1194 set_port_offline(fc_regs); in afu_set_wwpn()
1195 if (!wait_port_offline(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US, in afu_set_wwpn()
1201 writeq_be(wwpn, &fc_regs[FC_PNAME / 8]); in afu_set_wwpn()
1203 set_port_online(fc_regs); in afu_set_wwpn()
1204 if (!wait_port_online(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US, in afu_set_wwpn()
1224 static void afu_link_reset(struct afu *afu, int port, __be64 __iomem *fc_regs) in afu_link_reset() argument
1236 set_port_offline(fc_regs); in afu_link_reset()
1237 if (!wait_port_offline(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US, in afu_link_reset()
1242 set_port_online(fc_regs); in afu_link_reset()
1243 if (!wait_port_online(fc_regs, FC_PORT_STATUS_RETRY_INTERVAL_US, in afu_link_reset()