Lines Matching refs:num_aliases
89 size_t num_aliases; member
282 idx = find_first_zero_bit(atr->alias_use_mask, atr->num_aliases); in i2c_atr_reserve_alias()
283 if (idx >= atr->num_aliases) { in i2c_atr_reserve_alias()
302 for (idx = 0; idx < atr->num_aliases; ++idx) { in i2c_atr_release_alias()
430 size_t num_aliases; in i2c_atr_parse_alias_pool() local
443 num_aliases = ret; in i2c_atr_parse_alias_pool()
445 if (!num_aliases) in i2c_atr_parse_alias_pool()
448 aliases32 = kcalloc(num_aliases, sizeof(*aliases32), GFP_KERNEL); in i2c_atr_parse_alias_pool()
453 aliases32, num_aliases); in i2c_atr_parse_alias_pool()
460 aliases16 = kcalloc(num_aliases, sizeof(*aliases16), GFP_KERNEL); in i2c_atr_parse_alias_pool()
466 for (i = 0; i < num_aliases; i++) { in i2c_atr_parse_alias_pool()
477 alias_use_mask = bitmap_zalloc(num_aliases, GFP_KERNEL); in i2c_atr_parse_alias_pool()
485 atr->num_aliases = num_aliases; in i2c_atr_parse_alias_pool()
489 dev_dbg(dev, "i2c-alias-pool has %zu aliases", atr->num_aliases); in i2c_atr_parse_alias_pool()