Home
last modified time | relevance | path

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

/drivers/s390/cio/
Didset.c13 int num_ssid; member
18 static inline unsigned long bitmap_size(int num_ssid, int num_id) in bitmap_size() argument
20 return BITS_TO_LONGS(num_ssid * num_id) * sizeof(unsigned long); in bitmap_size()
23 static struct idset *idset_new(int num_ssid, int num_id) in idset_new() argument
27 set = vmalloc(sizeof(struct idset) + bitmap_size(num_ssid, num_id)); in idset_new()
29 set->num_ssid = num_ssid; in idset_new()
31 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); in idset_new()
43 memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id)); in idset_fill()
65 bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id); in idset_get_first()
66 if (bitnum >= set->num_ssid * set->num_id) in idset_get_first()
[all …]