Lines Matching refs:tre_count
306 gsi_trans_tre_reserve(struct gsi_trans_info *trans_info, u32 tre_count) in gsi_trans_tre_reserve() argument
312 new = avail - (int)tre_count; in gsi_trans_tre_reserve()
322 gsi_trans_tre_release(struct gsi_trans_info *trans_info, u32 tre_count) in gsi_trans_tre_release() argument
324 atomic_add(tre_count, &trans_info->tre_avail); in gsi_trans_tre_release()
329 u32 tre_count, in gsi_channel_trans_alloc() argument
343 if (!gsi_trans_tre_reserve(trans_info, tre_count)) in gsi_channel_trans_alloc()
350 trans->tre_count = tre_count; in gsi_channel_trans_alloc()
354 trans->sgl = gsi_trans_pool_alloc(&trans_info->sg_pool, tre_count); in gsi_channel_trans_alloc()
355 sg_init_marker(trans->sgl, tre_count); in gsi_channel_trans_alloc()
400 gsi_trans_tre_release(trans_info, trans->tre_count); in gsi_trans_free()
737 trans_info->map = kcalloc(channel->tre_count, sizeof(*trans_info->map), in gsi_channel_trans_init()