Home
last modified time | relevance | path

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

/linux/drivers/i2c/
H A Di2c-atr.c87 int max_adapters; member
97 struct i2c_adapter *adapter[] __counted_by(max_adapters);
398 for (chan_id = 0; chan_id < atr->max_adapters; ++chan_id) { in i2c_atr_bus_notifier_call()
403 if (chan_id == atr->max_adapters) in i2c_atr_bus_notifier_call()
501 const struct i2c_atr_ops *ops, int max_adapters) in i2c_atr_new() argument
506 if (max_adapters > ATR_MAX_ADAPTERS) in i2c_atr_new()
512 atr = kzalloc(struct_size(atr, adapter, max_adapters), GFP_KERNEL); in i2c_atr_new()
522 atr->max_adapters = max_adapters; in i2c_atr_new()
556 for (i = 0; i < atr->max_adapters; ++i) in i2c_atr_delete()
577 if (chan_id >= atr->max_adapters) { in i2c_atr_add_adapter()
/linux/include/linux/
H A Di2c-atr.h54 const struct i2c_atr_ops *ops, int max_adapters);
/linux/drivers/s390/crypto/
H A Dzcrypt_api.c1345 static void zcrypt_status_mask(char status[], size_t max_adapters) in zcrypt_status_mask() argument
1351 memset(status, 0, max_adapters); in zcrypt_status_mask()
1357 card >= max_adapters) in zcrypt_status_mask()
1365 static void zcrypt_qdepth_mask(char qdepth[], size_t max_adapters) in zcrypt_qdepth_mask() argument
1371 memset(qdepth, 0, max_adapters); in zcrypt_qdepth_mask()
1378 card >= max_adapters) in zcrypt_qdepth_mask()
1391 static void zcrypt_perdev_reqcnt(u32 reqcnt[], size_t max_adapters) in zcrypt_perdev_reqcnt() argument
1398 memset(reqcnt, 0, sizeof(int) * max_adapters); in zcrypt_perdev_reqcnt()
1405 card >= max_adapters) in zcrypt_perdev_reqcnt()