Lines Matching defs:count
213 u32 count;
221 count = hweight32(filter_map);
222 if (count > IPA_FILTER_COUNT_MAX) {
224 count, IPA_FILTER_COUNT_MAX);
240 /* Zero entry count means no table, so just return a 0 address */
241 static dma_addr_t ipa_table_addr(struct ipa *ipa, bool filter_mask, u16 count)
245 if (!count)
248 /* assert(count <= max_t(u32, IPA_FILTER_COUNT_MAX, IPA_ROUTE_COUNT_MAX)); */
257 u16 first, u16 count, const struct ipa_mem *mem)
272 size = count * sizeof(__le64);
273 addr = ipa_table_addr(ipa, false, count);
286 u32 count = hweight32(ep_mask);
293 trans = ipa_cmd_trans_alloc(ipa, count);
354 u16 count;
366 count = IPA_ROUTE_MODEM_COUNT;
369 count = IPA_ROUTE_AP_COUNT;
372 ipa_table_reset_add(trans, false, first, count,
374 ipa_table_reset_add(trans, false, first, count,
377 ipa_table_reset_add(trans, false, first, count,
379 ipa_table_reset_add(trans, false, first, count,
443 u16 count;
453 count = 1 + hweight32(ipa->filter_map);
454 hash_count = hash_mem->size ? count : 0;
456 count = mem->size / sizeof(__le64);
459 size = count * sizeof(__le64);
462 addr = ipa_table_addr(ipa, filter, count);
654 u32 count = max_t(u32, IPA_FILTER_COUNT_MAX, IPA_ROUTE_COUNT_MAX);
669 size = IPA_ZERO_RULE_SIZE + (1 + count) * sizeof(__le64);
689 while (count--)
697 u32 count = max_t(u32, 1 + IPA_FILTER_COUNT_MAX, IPA_ROUTE_COUNT_MAX);
701 size = IPA_ZERO_RULE_SIZE + (1 + count) * sizeof(__le64);