Lines Matching refs:max_supported
271 for (i = 0; i < edev->max_supported; i++) { in find_cable_index_by_id()
374 if (edev->max_supported == 0) in state_show()
377 for (i = 0; i < edev->max_supported; i++) { in state_show()
1067 edev->max_supported = 0; in extcon_dev_allocate()
1098 if (!edev->max_supported) in extcon_alloc_cables()
1101 edev->cables = kcalloc(edev->max_supported, sizeof(*edev->cables), in extcon_alloc_cables()
1106 for (index = 0; index < edev->max_supported; index++) { in extcon_alloc_cables()
1156 if (!(edev->max_supported && edev->mutually_exclusive)) in extcon_alloc_muex()
1210 if (!edev->max_supported) in extcon_alloc_groups()
1213 edev->extcon_dev_type.groups = kcalloc(edev->max_supported + 2, in extcon_alloc_groups()
1222 for (index = 0; index < edev->max_supported; index++) in extcon_alloc_groups()
1260 edev->max_supported = index; in extcon_dev_register()
1296 if (edev->max_supported) { in extcon_dev_register()
1297 edev->nh = kcalloc(edev->max_supported, sizeof(*edev->nh), in extcon_dev_register()
1305 for (index = 0; index < edev->max_supported; index++) in extcon_dev_register()
1327 if (edev->max_supported) in extcon_dev_register()
1330 if (edev->max_supported) in extcon_dev_register()
1333 if (edev->max_supported && edev->mutually_exclusive) { in extcon_dev_register()
1340 for (index = 0; index < edev->max_supported; index++) in extcon_dev_register()
1342 if (edev->max_supported) in extcon_dev_register()
1378 if (edev->mutually_exclusive && edev->max_supported) { in extcon_dev_unregister()
1386 for (index = 0; index < edev->max_supported; index++) in extcon_dev_unregister()
1389 if (edev->max_supported) { in extcon_dev_unregister()