DWC_OTG_MAX_CHANNELS
if (channel >= DWC_OTG_MAX_CHANNELS)
if (channel >= DWC_OTG_MAX_CHANNELS)
if (channel < DWC_OTG_MAX_CHANNELS) {
td->channel[0] = DWC_OTG_MAX_CHANNELS;
td->channel[1] = DWC_OTG_MAX_CHANNELS;
td->channel[2] = DWC_OTG_MAX_CHANNELS;
if (sc->sc_host_ch_max > DWC_OTG_MAX_CHANNELS)
sc->sc_host_ch_max = DWC_OTG_MAX_CHANNELS;
if (td->channel[0] < DWC_OTG_MAX_CHANNELS)
td->channel[0] = DWC_OTG_MAX_CHANNELS;
td->channel[1] = DWC_OTG_MAX_CHANNELS;
td->channel[2] = DWC_OTG_MAX_CHANNELS;
if (td->channel[index] >= DWC_OTG_MAX_CHANNELS)
td->channel[index] = DWC_OTG_MAX_CHANNELS;
if (td->channel[x] >= DWC_OTG_MAX_CHANNELS ||
if (td->channel[0] < DWC_OTG_MAX_CHANNELS) {
struct dwc_otg_chan_state sc_chan_state[DWC_OTG_MAX_CHANNELS];