Lines Matching refs:tre_count
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
343 if (WARN_ON(tre_count > gsi_channel_trans_tre_max(gsi, channel_id))) in gsi_channel_trans_alloc()
351 if (!gsi_trans_tre_reserve(trans_info, tre_count)) in gsi_channel_trans_alloc()
358 trans->tre_count = tre_count; in gsi_channel_trans_alloc()
362 trans->sgl = gsi_trans_pool_alloc(&trans_info->sg_pool, tre_count); in gsi_channel_trans_alloc()
363 sg_init_marker(trans->sgl, tre_count); in gsi_channel_trans_alloc()
408 gsi_trans_tre_release(trans_info, trans->tre_count); in gsi_trans_free()
418 WARN_ON(which >= trans->tre_count); in gsi_trans_cmd_add()
449 if (WARN_ON(trans->tre_count != 1)) in gsi_trans_page_add()
471 if (WARN_ON(trans->tre_count != 1)) in gsi_trans_skb_add()
723 trans_info->map = kcalloc(channel->tre_count, sizeof(*trans_info->map), in gsi_channel_trans_init()