Searched refs:num_ssid (Results 1 – 1 of 1) sorted by relevance
/linux-2.6.39/drivers/s390/cio/ |
D | idset.c | 14 int num_ssid; member 19 static inline unsigned long bitmap_size(int num_ssid, int num_id) in bitmap_size() argument 21 return __BITOPS_WORDS(num_ssid * num_id) * sizeof(unsigned long); in bitmap_size() 24 static struct idset *idset_new(int num_ssid, int num_id) in idset_new() argument 28 set = vmalloc(sizeof(struct idset) + bitmap_size(num_ssid, num_id)); in idset_new() 30 set->num_ssid = num_ssid; in idset_new() 32 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); in idset_new() 44 memset(set->bitmap, 0, bitmap_size(set->num_ssid, set->num_id)); in idset_clear() 49 memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id)); in idset_fill() 71 bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id); in idset_get_first() [all …]
|