Lines Matching refs:tre_count
250 return &trans_info->trans[trans_id %= channel->tre_count]; in gsi_channel_trans_complete()
273 trans_info->committed_id += delta % channel->tre_count; in gsi_trans_move_pending()
286 delta %= channel->tre_count; in gsi_trans_move_complete()
302 gsi_trans_tre_reserve(struct gsi_trans_info *trans_info, u32 tre_count) in gsi_trans_tre_reserve() argument
308 new = avail - (int)tre_count; in gsi_trans_tre_reserve()
318 gsi_trans_tre_release(struct gsi_trans_info *trans_info, u32 tre_count) in gsi_trans_tre_release() argument
320 atomic_add(tre_count, &trans_info->tre_avail); in gsi_trans_tre_release()
336 u32 tre_count, in gsi_channel_trans_alloc() argument
344 if (WARN_ON(tre_count > channel->trans_tre_max)) in gsi_channel_trans_alloc()
350 if (!gsi_trans_tre_reserve(trans_info, tre_count)) in gsi_channel_trans_alloc()
353 trans_index = trans_info->free_id % channel->tre_count; in gsi_channel_trans_alloc()
360 trans->rsvd_count = tre_count; in gsi_channel_trans_alloc()
364 trans->sgl = gsi_trans_pool_alloc(&trans_info->sg_pool, tre_count); in gsi_channel_trans_alloc()
365 sg_init_marker(trans->sgl, tre_count); in gsi_channel_trans_alloc()
659 trans = &trans_info->trans[trans_id % channel->tre_count]; in gsi_channel_trans_cancel_pending()
707 u32 tre_count = channel->tre_count; in gsi_channel_trans_init() local
733 trans_info->trans = kcalloc(tre_count, sizeof(*trans_info->trans), in gsi_channel_trans_init()
749 trans_info->map = kcalloc(tre_count, sizeof(*trans_info->map), in gsi_channel_trans_init()