/kernel/linux/linux-6.6/drivers/i2c/ |
H A D | i2c-atr.c | 69 * @max_adapters: Maximum number of adapters this I2C ATR can have 87 int max_adapters; member 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() 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; in i2c_atr_delete() 500 i2c_atr_new(struct i2c_adapter *parent, struct device *dev, const struct i2c_atr_ops *ops, int max_adapters) i2c_atr_new() argument [all...] |
H A D | i2c-mux.c | 240 struct device *dev, int max_adapters, in i2c_mux_alloc() 248 mux_size = struct_size(muxc, adapter, max_adapters); in i2c_mux_alloc() 253 muxc->priv = &muxc->adapter[max_adapters]; in i2c_mux_alloc() 265 muxc->max_adapters = max_adapters; in i2c_mux_alloc() 292 if (muxc->num_adapters >= muxc->max_adapters) { in i2c_mux_add_adapter() 239 i2c_mux_alloc(struct i2c_adapter *parent, struct device *dev, int max_adapters, int sizeof_priv, u32 flags, int (*select)(struct i2c_mux_core *, u32), int (*deselect)(struct i2c_mux_core *, u32)) i2c_mux_alloc() argument
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | i2c-mux.h | 31 int max_adapters; member 36 struct device *dev, int max_adapters,
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | i2c-mux.h | 31 int max_adapters; member 36 struct device *dev, int max_adapters,
|
H A D | i2c-atr.h | 44 * @max_adapters: Maximum number of child adapters 54 const struct i2c_atr_ops *ops, int max_adapters); 68 * @chan_id: Index of the new adapter (0 .. max_adapters-1). This value is 97 * @chan_id: Index of the adapter to be removed (0 .. max_adapters-1)
|
/kernel/linux/linux-5.10/drivers/i2c/ |
H A D | i2c-mux.c | 240 struct device *dev, int max_adapters, in i2c_mux_alloc() 247 muxc = devm_kzalloc(dev, struct_size(muxc, adapter, max_adapters) in i2c_mux_alloc() 252 muxc->priv = &muxc->adapter[max_adapters]; in i2c_mux_alloc() 264 muxc->max_adapters = max_adapters; in i2c_mux_alloc() 291 if (muxc->num_adapters >= muxc->max_adapters) { in i2c_mux_add_adapter() 239 i2c_mux_alloc(struct i2c_adapter *parent, struct device *dev, int max_adapters, int sizeof_priv, u32 flags, int (*select)(struct i2c_mux_core *, u32), int (*deselect)(struct i2c_mux_core *, u32)) i2c_mux_alloc() argument
|
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
H A D | zcrypt_api.c | 1288 static void zcrypt_status_mask(char status[], size_t max_adapters) in zcrypt_status_mask() argument 1294 memset(status, 0, max_adapters); in zcrypt_status_mask() 1300 || card >= max_adapters) in zcrypt_status_mask() 1308 static void zcrypt_qdepth_mask(char qdepth[], size_t max_adapters) in zcrypt_qdepth_mask() argument 1314 memset(qdepth, 0, max_adapters); in zcrypt_qdepth_mask() 1321 || card >= max_adapters) in zcrypt_qdepth_mask() 1334 static void zcrypt_perdev_reqcnt(u32 reqcnt[], size_t max_adapters) in zcrypt_perdev_reqcnt() argument 1341 memset(reqcnt, 0, sizeof(int) * max_adapters); in zcrypt_perdev_reqcnt() 1348 || card >= max_adapters) in zcrypt_perdev_reqcnt()
|
/kernel/linux/linux-6.6/drivers/s390/crypto/ |
H A D | zcrypt_api.c | 1303 static void zcrypt_status_mask(char status[], size_t max_adapters) in zcrypt_status_mask() argument 1309 memset(status, 0, max_adapters); in zcrypt_status_mask() 1315 card >= max_adapters) in zcrypt_status_mask() 1323 static void zcrypt_qdepth_mask(char qdepth[], size_t max_adapters) in zcrypt_qdepth_mask() argument 1329 memset(qdepth, 0, max_adapters); in zcrypt_qdepth_mask() 1336 card >= max_adapters) in zcrypt_qdepth_mask() 1349 static void zcrypt_perdev_reqcnt(u32 reqcnt[], size_t max_adapters) in zcrypt_perdev_reqcnt() argument 1356 memset(reqcnt, 0, sizeof(int) * max_adapters); in zcrypt_perdev_reqcnt() 1363 card >= max_adapters) in zcrypt_perdev_reqcnt()
|