Lines Matching refs:sc_idx
548 sc->sc_idx = 0; in mtw_attach()
1408 sc->sc_idx = 0; in mtw_mcu_cmd()
1409 sc->txd_fw[sc->sc_idx]->len = htole16( in mtw_mcu_cmd()
1411 sc->txd_fw[sc->sc_idx]->flags = htole16(MTW_TXD_CMD | MTW_TXD_MCU | in mtw_mcu_cmd()
1414 memset(&sc->txd_fw[sc->sc_idx]->fw, 0, 2004); in mtw_mcu_cmd()
1415 memcpy(&sc->txd_fw[sc->sc_idx]->fw, buf, len); in mtw_mcu_cmd()
2836 memset(sc->txd_fw[sc->sc_idx], 0, actlen); in mtw_fw_callback()
2838 if (actlen < 0x2c44 && sc->sc_idx == 0) { in mtw_fw_callback()
2841 if (sc->sc_idx == 3) { in mtw_fw_callback()
2873 sc->sc_idx++; in mtw_fw_callback()
2879 dlen = sc->txd_fw[sc->sc_idx]->len; in mtw_fw_callback()
2885 usbd_xfer_set_frame_data(xfer, 0, sc->txd_fw[sc->sc_idx], dlen); in mtw_fw_callback()