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

/linux-4.1.27/drivers/s390/cio/
H A Didset.c14 int num_id; 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()
30 set->num_id = num_id; 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()
48 set_bit(ssid * set->num_id + id, set->bitmap); idset_add()
53 clear_bit(ssid * set->num_id + id, set->bitmap); idset_del()
58 return test_bit(ssid * set->num_id + id, set->bitmap); idset_contains()
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()
68 *ssid = bitnum / set->num_id; idset_get_first()
69 *id = bitnum % set->num_id; idset_get_first()
91 int pos = schid.ssid * set->num_id + schid.sch_no; idset_sch_del_subseq()
93 bitmap_clear(set->bitmap, pos, set->num_id - schid.sch_no); idset_sch_del_subseq()
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()
/linux-4.1.27/include/linux/regulator/
H A Dconsumer.h185 int num_id);
187 const char * const *id, int num_id);
199 int num_id);
202 int num_id);
336 int num_id) regulator_bulk_register_supply_alias()
343 int num_id) regulator_bulk_unregister_supply_alias()
364 int num_id) devm_regulator_bulk_register_supply_alias()
370 struct device *dev, const char *const *id, int num_id) devm_regulator_bulk_unregister_supply_alias()
332 regulator_bulk_register_supply_alias(struct device *dev, const char *const *id, struct device *alias_dev, const char * const *alias_id, int num_id) regulator_bulk_register_supply_alias() argument
341 regulator_bulk_unregister_supply_alias(struct device *dev, const char * const *id, int num_id) regulator_bulk_unregister_supply_alias() argument
360 devm_regulator_bulk_register_supply_alias(struct device *dev, const char *const *id, struct device *alias_dev, const char *const *alias_id, int num_id) devm_regulator_bulk_register_supply_alias() argument
369 devm_regulator_bulk_unregister_supply_alias( struct device *dev, const char *const *id, int num_id) devm_regulator_bulk_unregister_supply_alias() argument
/linux-4.1.27/drivers/regulator/
H A Ddevres.c352 * @num_id: Number of aliases to register
366 int num_id) devm_regulator_bulk_register_supply_alias()
371 for (i = 0; i < num_id; ++i) { devm_regulator_bulk_register_supply_alias()
399 * @num_id: Number of aliases to unregister
408 int num_id) devm_regulator_bulk_unregister_supply_alias()
412 for (i = 0; i < num_id; ++i) devm_regulator_bulk_unregister_supply_alias()
362 devm_regulator_bulk_register_supply_alias(struct device *dev, const char *const *id, struct device *alias_dev, const char *const *alias_id, int num_id) devm_regulator_bulk_register_supply_alias() argument
406 devm_regulator_bulk_unregister_supply_alias(struct device *dev, const char *const *id, int num_id) devm_regulator_bulk_unregister_supply_alias() argument
H A Dcore.c1666 * @num_id: Number of aliases to register
1679 int num_id) regulator_bulk_register_supply_alias()
1684 for (i = 0; i < num_id; ++i) { regulator_bulk_register_supply_alias()
1710 * @num_id: Number of aliases to unregister
1717 int num_id) regulator_bulk_unregister_supply_alias()
1721 for (i = 0; i < num_id; ++i) regulator_bulk_unregister_supply_alias()
1675 regulator_bulk_register_supply_alias(struct device *dev, const char *const *id, struct device *alias_dev, const char *const *alias_id, int num_id) regulator_bulk_register_supply_alias() argument
1715 regulator_bulk_unregister_supply_alias(struct device *dev, const char *const *id, int num_id) regulator_bulk_unregister_supply_alias() argument

Completed in 183 milliseconds