Lines Matching defs:sc

765 	struct octeon_soft_command *sc;
770 sc = (struct octeon_soft_command *)
775 if (!sc)
778 mdio_cmd_rsp = (struct oct_mdio_cmd_resp *)sc->virtrptr;
779 mdio_cmd = (struct oct_mdio_cmd *)sc->virtdptr;
787 sc->iq_no = lio->linfo.txpciq[0].s.q_no;
789 octeon_prepare_soft_command(oct_dev, sc, OPCODE_NIC, OPCODE_NIC_MDIO45,
792 init_completion(&sc->complete);
793 sc->sc_status = OCTEON_REQUEST_PENDING;
795 retval = octeon_send_soft_command(oct_dev, sc);
800 octeon_free_soft_command(oct_dev, sc);
806 retval = wait_for_sc_completion_timeout(oct_dev, sc, 0);
814 WRITE_ONCE(sc->caller_is_done, true);
824 WRITE_ONCE(sc->caller_is_done, true);
993 struct octeon_soft_command *sc;
1002 sc = (struct octeon_soft_command *)
1005 if (!sc) {
1011 resp = (struct liquidio_if_cfg_resp *)sc->virtrptr;
1012 vdata = (struct lio_version *)sc->virtdptr;
1026 sc->iq_no = 0;
1027 octeon_prepare_soft_command(oct, sc, OPCODE_NIC,
1031 init_completion(&sc->complete);
1032 sc->sc_status = OCTEON_REQUEST_PENDING;
1034 retval = octeon_send_soft_command(oct, sc);
1039 octeon_free_soft_command(oct, sc);
1043 retval = wait_for_sc_completion_timeout(oct, sc, 0);
1051 WRITE_ONCE(sc->caller_is_done, true);
1080 WRITE_ONCE(sc->caller_is_done, true);
2004 struct octeon_soft_command *sc;
2010 sc = (struct octeon_soft_command *)
2015 if (!sc)
2018 resp = (struct oct_intrmod_resp *)sc->virtrptr;
2021 sc->iq_no = lio->linfo.txpciq[0].s.q_no;
2023 octeon_prepare_soft_command(oct_dev, sc, OPCODE_NIC,
2026 init_completion(&sc->complete);
2027 sc->sc_status = OCTEON_REQUEST_PENDING;
2029 retval = octeon_send_soft_command(oct_dev, sc);
2031 octeon_free_soft_command(oct_dev, sc);
2038 retval = wait_for_sc_completion_timeout(oct_dev, sc, 0);
2045 WRITE_ONCE(sc->caller_is_done, true);
2052 WRITE_ONCE(sc->caller_is_done, true);
2061 struct octeon_soft_command *sc;
2067 sc = (struct octeon_soft_command *)
2072 if (!sc)
2075 cfg = (struct oct_intrmod_cfg *)sc->virtdptr;
2080 sc->iq_no = lio->linfo.txpciq[0].s.q_no;
2082 octeon_prepare_soft_command(oct_dev, sc, OPCODE_NIC,
2085 init_completion(&sc->complete);
2086 sc->sc_status = OCTEON_REQUEST_PENDING;
2088 retval = octeon_send_soft_command(oct_dev, sc);
2090 octeon_free_soft_command(oct_dev, sc);
2097 retval = wait_for_sc_completion_timeout(oct_dev, sc, 0);
2101 retval = sc->sc_status;
2107 WRITE_ONCE(sc->caller_is_done, true);
2113 WRITE_ONCE(sc->caller_is_done, true);