Searched refs:max_adapters (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/i2c/ |
| H A D | i2c-atr.c | 125 int max_adapters; member 132 struct i2c_adapter *adapter[] __counted_by(max_adapters); 614 for (chan_id = 0; chan_id < atr->max_adapters; ++chan_id) { in i2c_atr_bus_notifier_call() 619 if (chan_id == atr->max_adapters) in i2c_atr_bus_notifier_call() 715 const struct i2c_atr_ops *ops, int max_adapters, in i2c_atr_new() argument 721 if (max_adapters > ATR_MAX_ADAPTERS) in i2c_atr_new() 727 atr = kzalloc_flex(*atr, adapter, max_adapters); in i2c_atr_new() 737 atr->max_adapters = max_adapters; in i2c_atr_new() 772 for (i = 0; i < atr->max_adapters; ++i) in i2c_atr_delete() 793 if (chan_id >= atr->max_adapters) { in i2c_atr_add_adapter()
|
| H A D | i2c-mux.c | 227 struct device *dev, int max_adapters, in i2c_mux_alloc() argument 235 mux_size = struct_size(muxc, adapter, max_adapters); in i2c_mux_alloc() 240 muxc->priv = &muxc->adapter[max_adapters]; in i2c_mux_alloc() 249 muxc->max_adapters = max_adapters; in i2c_mux_alloc() 275 if (muxc->num_adapters >= muxc->max_adapters) { in i2c_mux_add_adapter()
|
| /linux/include/linux/ |
| H A D | i2c-atr.h | 93 const struct i2c_atr_ops *ops, int max_adapters,
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_api.c | 1368 static void zcrypt_status_mask(char status[], size_t max_adapters) in zcrypt_status_mask() argument 1374 memset(status, 0, max_adapters); in zcrypt_status_mask() 1380 card >= max_adapters) in zcrypt_status_mask() 1388 static void zcrypt_qdepth_mask(char qdepth[], size_t max_adapters) in zcrypt_qdepth_mask() argument 1394 memset(qdepth, 0, max_adapters); in zcrypt_qdepth_mask() 1401 card >= max_adapters) in zcrypt_qdepth_mask() 1414 static void zcrypt_perdev_reqcnt(u32 reqcnt[], size_t max_adapters) in zcrypt_perdev_reqcnt() argument 1421 memset(reqcnt, 0, sizeof(int) * max_adapters); in zcrypt_perdev_reqcnt() 1428 card >= max_adapters) in zcrypt_perdev_reqcnt()
|