Searched refs:num_ssid (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/s390/cio/
H A Didset.c13 int num_ssid; member in struct:idset
18 static inline unsigned long bitmap_size(int num_ssid, int num_id) bitmap_size() argument
20 return BITS_TO_LONGS(num_ssid * num_id) * sizeof(unsigned long); bitmap_size()
23 static struct idset *idset_new(int num_ssid, int num_id) idset_new() argument
27 set = vmalloc(sizeof(struct idset) + bitmap_size(num_ssid, num_id)); idset_new()
29 set->num_ssid = num_ssid; idset_new()
31 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); idset_new()
43 memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id)); idset_fill()
65 bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id); idset_get_first()
66 if (bitnum >= set->num_ssid * set->num_id) idset_get_first()
103 return bitmap_empty(set->bitmap, set->num_ssid * set->num_id); idset_is_empty()
108 int len = min(to->num_ssid * to->num_id, from->num_ssid * from->num_id); idset_add_set()

Completed in 92 milliseconds