Lines Matching refs:idx

2427   uint8_t idx;  in HAL_HCD_DeInit()  local
2441 for (idx = 0U; idx < hhcd->Init.Host_channels; idx++) in HAL_HCD_DeInit()
2443 hhcd->phy_chin_state[idx] = 0U; in HAL_HCD_DeInit()
2444 hhcd->phy_chout_state[idx] = 0U; in HAL_HCD_DeInit()
4216 uint8_t idx; in HAL_HCD_Check_usedChannel() local
4219 for (idx = 0U; idx < hhcd->Init.Host_channels; idx++) in HAL_HCD_Check_usedChannel()
4221 if ((((hhcd->phy_chin_state[idx] & 0xF0U) >> 4U) == ((uint16_t)ch_num + 1U)) && in HAL_HCD_Check_usedChannel()
4222 (hhcd->phy_chin_state[idx] != 0U)) in HAL_HCD_Check_usedChannel()
4224 return (1U | (idx << 4U)); in HAL_HCD_Check_usedChannel()
4227 if ((((hhcd->phy_chout_state[idx] & 0xF0U) >> 4U) == ((uint16_t)ch_num + 1U)) && in HAL_HCD_Check_usedChannel()
4228 (hhcd->phy_chout_state[idx] != 0U)) in HAL_HCD_Check_usedChannel()
4230 return (1U | (idx << 4U)); in HAL_HCD_Check_usedChannel()
4299 uint8_t idx; in HAL_HCD_Get_FreePhyChannel() local
4303 idx = 0U; in HAL_HCD_Get_FreePhyChannel()
4307 if (hhcd->phy_chin_state[idx] == 0U) in HAL_HCD_Get_FreePhyChannel()
4311 hhcd->phy_chin_state[idx] = (((uint16_t)ch_num + 1U) << 4U) | in HAL_HCD_Get_FreePhyChannel()
4316 if (hhcd->phy_chout_state[idx] == 0U) in HAL_HCD_Get_FreePhyChannel()
4320 hhcd->phy_chout_state[idx] = (((uint16_t)ch_num + 1U) << 4U) | in HAL_HCD_Get_FreePhyChannel()
4329 if (((hhcd->phy_chin_state[idx] & 0xF0U) >> 4U) != ((uint16_t)ch_num + 1U)) in HAL_HCD_Get_FreePhyChannel()
4333 hhcd->phy_chin_state[idx] = (((uint16_t)ch_num + 1U) << 4U) | in HAL_HCD_Get_FreePhyChannel()
4340 if (((hhcd->phy_chout_state[idx] & 0xF0U) >> 4U) != ((uint16_t)ch_num + 1U)) in HAL_HCD_Get_FreePhyChannel()
4344 hhcd->phy_chout_state[idx] = (((uint16_t)ch_num + 1U) << 4U) | in HAL_HCD_Get_FreePhyChannel()
4351 return idx; in HAL_HCD_Get_FreePhyChannel()
4357 for (idx = 1U; idx < hhcd->Init.Host_channels; idx++) in HAL_HCD_Get_FreePhyChannel()
4360 if ((hhcd->phy_chin_state[idx] == 0U) && in HAL_HCD_Get_FreePhyChannel()
4361 ((((hhcd->phy_chout_state[idx] & 0x000FU) == ((uint16_t)ep_type + 1U)) && in HAL_HCD_Get_FreePhyChannel()
4362 (((hhcd->phy_chout_state[idx] & 0x0F00U) == ((uint16_t)epnum & 0x0FU)))) || in HAL_HCD_Get_FreePhyChannel()
4363 (hhcd->phy_chout_state[idx] == 0U))) in HAL_HCD_Get_FreePhyChannel()
4367 hhcd->phy_chin_state[idx] = (((uint16_t)ch_num + 1U) << 4U) | in HAL_HCD_Get_FreePhyChannel()
4371 return idx; in HAL_HCD_Get_FreePhyChannel()
4378 for (idx = 1U; idx < hhcd->Init.Host_channels; idx++) in HAL_HCD_Get_FreePhyChannel()
4381 if ((hhcd->phy_chout_state[idx] == 0U) && in HAL_HCD_Get_FreePhyChannel()
4382 ((((hhcd->phy_chin_state[idx] & 0x0FU) == ((uint16_t)ep_type + 1U)) && in HAL_HCD_Get_FreePhyChannel()
4383 ((hhcd->phy_chin_state[idx] & 0x0F00U) == ((uint16_t)epnum & 0x0FU))) || in HAL_HCD_Get_FreePhyChannel()
4384 (hhcd->phy_chin_state[idx] == 0U))) in HAL_HCD_Get_FreePhyChannel()
4388 hhcd->phy_chout_state[idx] = (((uint16_t)ch_num + 1U) << 4U) | in HAL_HCD_Get_FreePhyChannel()
4392 return idx; in HAL_HCD_Get_FreePhyChannel()
4408 uint8_t idx; in HAL_HCD_ClearPhyChannel() local
4410 for (idx = 0U; idx < hhcd->Init.Host_channels; idx++) in HAL_HCD_ClearPhyChannel()
4413 hhcd->phy_chout_state[idx] = 0U; in HAL_HCD_ClearPhyChannel()
4414 hhcd->phy_chin_state[idx] = 0U; in HAL_HCD_ClearPhyChannel()