Lines Matching refs:sc
148 struct lio_soft_command *sc; in lio_dev_xstats_get() local
163 sc = lio_alloc_soft_command(lio_dev, 0, resp_size, 0); in lio_dev_xstats_get()
164 if (sc == NULL) in lio_dev_xstats_get()
167 resp = (struct lio_link_stats_resp *)sc->virtrptr; in lio_dev_xstats_get()
168 lio_prepare_soft_command(lio_dev, sc, LIO_OPCODE, in lio_dev_xstats_get()
172 sc->wait_time = LIO_MAX_CMD_TIMEOUT / 1000; in lio_dev_xstats_get()
174 retval = lio_send_soft_command(lio_dev, sc); in lio_dev_xstats_get()
181 while ((*sc->status_word == LIO_COMPLETION_WORD_INIT) && --timeout) { in lio_dev_xstats_get()
182 lio_flush_iq(lio_dev, lio_dev->instr_queue[sc->iq_no]); in lio_dev_xstats_get()
205 lio_free_soft_command(sc); in lio_dev_xstats_get()
210 lio_free_soft_command(sc); in lio_dev_xstats_get()
1310 struct lio_soft_command *sc; in lio_dev_get_link_status() local
1317 sc = lio_alloc_soft_command(lio_dev, 0, resp_size, 0); in lio_dev_get_link_status()
1318 if (sc == NULL) in lio_dev_get_link_status()
1321 resp = (struct lio_link_status_resp *)sc->virtrptr; in lio_dev_get_link_status()
1322 lio_prepare_soft_command(lio_dev, sc, LIO_OPCODE, in lio_dev_get_link_status()
1326 sc->wait_time = LIO_MAX_CMD_TIMEOUT / 1000; in lio_dev_get_link_status()
1328 if (lio_send_soft_command(lio_dev, sc) == LIO_IQ_SEND_FAILED) in lio_dev_get_link_status()
1331 while ((*sc->status_word == LIO_COMPLETION_WORD_INIT) && --timeout) { in lio_dev_get_link_status()
1332 lio_flush_iq(lio_dev, lio_dev->instr_queue[sc->iq_no]); in lio_dev_get_link_status()
1353 lio_free_soft_command(sc); in lio_dev_get_link_status()
1358 lio_free_soft_command(sc); in lio_dev_get_link_status()
1718 struct lio_soft_command *sc; in lio_dev_configure() local
1744 sc = lio_alloc_soft_command(lio_dev, 0, resp_size, 0); in lio_dev_configure()
1745 if (sc == NULL) in lio_dev_configure()
1748 resp = (struct lio_if_cfg_resp *)sc->virtrptr; in lio_dev_configure()
1760 lio_prepare_soft_command(lio_dev, sc, LIO_OPCODE, in lio_dev_configure()
1765 sc->wait_time = LIO_MAX_CMD_TIMEOUT / 1000; in lio_dev_configure()
1767 retval = lio_send_soft_command(lio_dev, sc); in lio_dev_configure()
1778 while ((*sc->status_word == LIO_COMPLETION_WORD_INIT) && --timeout) { in lio_dev_configure()
1779 lio_flush_iq(lio_dev, lio_dev->instr_queue[sc->iq_no]); in lio_dev_configure()
1868 lio_free_soft_command(sc); in lio_dev_configure()
1880 lio_free_soft_command(sc); in lio_dev_configure()