/kernel/linux/linux-6.6/drivers/net/ipa/ |
H A D | gsi_trans.c | 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() 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() 335 gsi_channel_trans_alloc(struct gsi *gsi, u32 channel_id, u32 tre_count, enum dma_data_direction direction) gsi_channel_trans_alloc() argument 707 u32 tre_count = channel->tre_count; gsi_channel_trans_init() local [all...] |
H A D | ipa_cmd.h | 71 * @tre_count: Number of pool elements to allocate 75 int ipa_cmd_pool_init(struct gsi_channel *channel, u32 tre_count); 158 * @tre_count: Number of elements in the transaction 163 struct gsi_trans *ipa_cmd_trans_alloc(struct ipa *ipa, u32 tre_count);
|
H A D | gsi.c | 805 trans = &trans_info->trans[trans_id % channel->tre_count]; in gsi_channel_trans_last() 2193 * gsi_channel_tre_max() is computed, tre_count has to be almost in gsi_channel_data_valid() 2196 if (channel_data->tre_count < 2 * channel_data->tlv_count - 1) { in gsi_channel_data_valid() 2199 channel_data->tre_count); in gsi_channel_data_valid() 2203 if (!is_power_of_2(channel_data->tre_count)) { in gsi_channel_data_valid() 2204 dev_err(dev, "channel %u bad tre_count %u; not power of 2\n", in gsi_channel_data_valid() 2205 channel_id, channel_data->tre_count); in gsi_channel_data_valid() 2224 u32 tre_count; in gsi_channel_init_one() local 2231 if (data->channel.tre_count > data->channel.event_count) { in gsi_channel_init_one() 2232 tre_count in gsi_channel_init_one() [all...] |
H A D | ipa_data.h | 72 * @tre_count: number of TREs in the channel ring 93 u16 tre_count; /* must be a power of 2 */ member
|
H A D | gsi_trans.h | 149 * @tre_count: Number of elements in the transaction 156 u32 tre_count,
|
H A D | ipa_cmd.c | 622 struct gsi_trans *ipa_cmd_trans_alloc(struct ipa *ipa, u32 tre_count) in ipa_cmd_trans_alloc() argument 626 if (WARN_ON(tre_count > IPA_COMMAND_TRANS_TRE_MAX)) in ipa_cmd_trans_alloc() 632 tre_count, DMA_NONE); in ipa_cmd_trans_alloc()
|
H A D | gsi.h | 109 u16 tre_count; member
|
/kernel/linux/linux-5.10/drivers/net/ipa/ |
H A D | gsi_trans.c | 131 /* Home-grown DMA pool. This way we can preallocate and use the tre_count 305 gsi_trans_tre_reserve(struct gsi_trans_info *trans_info, u32 tre_count) in gsi_trans_tre_reserve() argument 311 new = avail - (int)tre_count; in gsi_trans_tre_reserve() 321 gsi_trans_tre_release(struct gsi_trans_info *trans_info, u32 tre_count) in gsi_trans_tre_release() argument 323 atomic_add(tre_count, &trans_info->tre_avail); in gsi_trans_tre_release() 328 u32 tre_count, in gsi_channel_trans_alloc() 335 /* assert(tre_count <= gsi_channel_trans_tre_max(gsi, channel_id)); */ in gsi_channel_trans_alloc() 342 if (!gsi_trans_tre_reserve(trans_info, tre_count)) in gsi_channel_trans_alloc() 349 trans->tre_count = tre_count; in gsi_channel_trans_alloc() 327 gsi_channel_trans_alloc(struct gsi *gsi, u32 channel_id, u32 tre_count, enum dma_data_direction direction) gsi_channel_trans_alloc() argument [all...] |
H A D | ipa_data-sdm845.c | 22 .tre_count = 512, 40 .tre_count = 256, 61 .tre_count = 512, 86 .tre_count = 256,
|
H A D | ipa_data-sc7180.c | 20 .tre_count = 256, 38 .tre_count = 256, 59 .tre_count = 512, 84 .tre_count = 256,
|
H A D | gsi_trans.h | 32 * @tre_count: Number of TREs reserved for this transaction 33 * @used: Number of TREs *used* (could be less than tre_count) 55 u8 tre_count; /* # TREs requested */ member 134 * @tre_count: Number of elements in the transaction 141 u32 tre_count,
|
H A D | ipa_cmd.h | 96 * @tre_count: Number of pool elements to allocate 100 int ipa_cmd_pool_init(struct gsi_channel *gsi_channel, u32 tre_count); 185 * @tre_count: Number of elements in the transaction 190 struct gsi_trans *ipa_cmd_trans_alloc(struct ipa *ipa, u32 tre_count);
|
H A D | ipa_cmd.c | 637 ipa_cmd_info_alloc(struct ipa_endpoint *endpoint, u32 tre_count) in ipa_cmd_info_alloc() argument 643 return gsi_trans_pool_alloc(&channel->trans_info.info_pool, tre_count); in ipa_cmd_info_alloc() 647 struct gsi_trans *ipa_cmd_trans_alloc(struct ipa *ipa, u32 tre_count) in ipa_cmd_trans_alloc() argument 655 tre_count, DMA_NONE); in ipa_cmd_trans_alloc() 657 trans->info = ipa_cmd_info_alloc(endpoint, tre_count); in ipa_cmd_trans_alloc()
|
H A D | gsi.c | 1789 * gsi_channel_tre_max() is computed, tre_count has to be almost in gsi_channel_data_valid() 1792 if (data->channel.tre_count < 2 * data->channel.tlv_count - 1) { in gsi_channel_data_valid() 1795 data->channel.tre_count); in gsi_channel_data_valid() 1799 if (!is_power_of_2(data->channel.tre_count)) { in gsi_channel_data_valid() 1800 dev_err(dev, "channel %u bad tre_count %u; not power of 2\n", in gsi_channel_data_valid() 1801 channel_id, data->channel.tre_count); in gsi_channel_data_valid() 1821 u32 tre_count; in gsi_channel_init_one() local 1828 if (data->channel.tre_count > data->channel.event_count) { in gsi_channel_init_one() 1829 tre_count = data->channel.event_count; in gsi_channel_init_one() 1831 data->channel_id, tre_count); in gsi_channel_init_one() [all...] |
H A D | ipa_data.h | 54 * @tre_count: number of TREs in the channel ring 75 u16 tre_count; /* must be a power of 2 */ member
|
H A D | gsi.h | 113 u16 tre_count; member
|
H A D | ipa_endpoint.c | 235 u32 tre_count) in ipa_endpoint_trans_alloc() 243 return gsi_channel_trans_alloc(gsi, channel_id, tre_count, direction); in ipa_endpoint_trans_alloc() 234 ipa_endpoint_trans_alloc(struct ipa_endpoint *endpoint, u32 tre_count) ipa_endpoint_trans_alloc() argument
|
/kernel/linux/linux-6.6/drivers/net/ipa/data/ |
H A D | ipa_data-v3.5.1.c | 64 .tre_count = 512, 85 .tre_count = 256, 108 .tre_count = 512, 134 .tre_count = 256,
|
H A D | ipa_data-v4.11.c | 58 .tre_count = 256, 79 .tre_count = 256, 102 .tre_count = 512, 127 .tre_count = 256,
|
H A D | ipa_data-v4.2.c | 54 .tre_count = 256, 75 .tre_count = 256, 98 .tre_count = 512, 124 .tre_count = 256,
|
H A D | ipa_data-v4.7.c | 56 .tre_count = 256, 77 .tre_count = 256, 100 .tre_count = 512, 124 .tre_count = 256,
|
H A D | ipa_data-v3.1.c | 73 .tre_count = 256, 94 .tre_count = 256, 117 .tre_count = 512, 142 .tre_count = 256,
|
H A D | ipa_data-v4.5.c | 67 .tre_count = 256, 88 .tre_count = 256, 111 .tre_count = 512, 136 .tre_count = 256,
|
H A D | ipa_data-v5.0.c | 71 .tre_count = 256, 92 .tre_count = 256, 115 .tre_count = 512, 140 .tre_count = 256,
|
H A D | ipa_data-v4.9.c | 59 .tre_count = 256, 80 .tre_count = 256, 103 .tre_count = 512, 128 .tre_count = 256,
|