Lines Matching defs:num_tds

92 static int	uhci_alloc_memory_for_tds(uhci_state_t *uhcip, uint_t num_tds,
94 static int uhci_alloc_bulk_isoc_tds(uhci_state_t *uhcip, uint_t num_tds,
2900 for (j = 0; j < (td_pool_ptr->num_tds - 1); j++) {
2924 bulk_xfer_info->num_tds = (ushort_t)num_bulk_tds;
3066 uint_t num_tds,
3070 "uhci_alloc_bulk_isoc_tds: num_tds: 0x%x info: 0x%p",
3071 num_tds, (void *)info);
3075 if (uhci_alloc_memory_for_tds(uhcip, num_tds, info) !=
3078 "alloc_memory_for_tds failed: num_tds %d num_pools %d",
3079 num_tds, info->num_pools);
3082 info->num_pools = num_tds / UHCI_MAX_TD_NUM_PER_POOL;
3083 if (num_tds % UHCI_MAX_TD_NUM_PER_POOL) {
3087 if (uhci_alloc_memory_for_tds(uhcip, num_tds, info) !=
3090 "alloc_memory_for_tds failed: num_tds %d "
3091 "num_pools %d", num_tds, info->num_pools);
3108 uint_t num_tds,
3118 "uhci_alloc_memory_for_tds: num_tds: 0x%x info: 0x%p "
3119 "num_pools: %u", num_tds, (void *)info, info->num_pools);
3138 num = num_tds;
3142 num = (num_tds % UHCI_MAX_TD_NUM_PER_POOL);
3249 td_pool_ptr1->num_tds = (ushort_t)num;
3322 bulk_xfer_info->num_tds = 1;
3341 if (--bulk_xfer_info->num_tds == 0) {
3392 (j < (td_pool_ptr->num_tds - 1)) &&
3429 bulk_xfer_info->num_tds = (ushort_t)num_bulk_tds;
3687 ASSERT(info->num_tds > 0);
3688 if (--info->num_tds == 0) {
3715 ASSERT(info->num_tds == 0);
4060 isoc_xfer_info->num_tds = isoc_req->isoc_pkts_count;
4093 for (j = 0; j < td_pool_ptr->num_tds; j++) {
4195 --isoc_xfer_info->num_tds;
4267 if ((i + info->td_pools[j].num_tds) <= index) {
4268 i += info->td_pools[j].num_tds;
4332 if (--isoc_xfer_info->num_tds != 0) {
4335 isoc_xfer_info->num_tds);