Home
last modified time | relevance | path

Searched refs:max_groups (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.15/drivers/dma/idxd/
Dinit.c316 idxd->groups = kcalloc_node(idxd->max_groups, sizeof(struct idxd_group *), in idxd_setup_groups()
321 for (i = 0; i < idxd->max_groups; i++) { in idxd_setup_groups()
366 for (i = 0; i < idxd->max_groups; i++) in idxd_cleanup_internals()
410 for (i = 0; i < idxd->max_groups; i++) in idxd_setup_internals()
465 idxd->max_groups = idxd->hw.group_cap.num_groups; in idxd_read_caps()
466 dev_dbg(dev, "max groups: %u\n", idxd->max_groups); in idxd_read_caps()
Dsysfs.c48 if (id > idxd->max_groups - 1 || id < -1) in engine_group_id_store()
106 for (i = 0, tokens = 0; i < idxd->max_groups; i++) { in idxd_set_free_tokens()
480 if (id > idxd->max_groups - 1 || id < -1) in wq_group_id_store()
1015 return sysfs_emit(buf, "%u\n", idxd->max_groups); in max_groups_show()
1017 static DEVICE_ATTR_RO(max_groups);
1322 for (i = 0; i < idxd->max_groups; i++) { in idxd_register_group_devices()
1333 for (; i < idxd->max_groups; i++) { in idxd_register_group_devices()
1429 for (i = 0; i < idxd->max_groups; i++) { in idxd_unregister_devices()
Ddevice.c690 for (i = 0; i < idxd->max_groups; i++) { in idxd_groups_clear_state()
804 for (i = 0; i < idxd->max_groups; i++) { in idxd_groups_config_write()
927 for (i = 0; i < idxd->max_groups; i++) { in idxd_group_flags_setup()
954 for (i = 0; i < idxd->max_groups; i++) { in idxd_engines_setup()
983 for (i = 0; i < idxd->max_groups; i++) { in idxd_wqs_setup()
1141 for (i = 0; i < idxd->max_groups; i++) { in idxd_device_load_config()
Didxd.h279 int max_groups; member
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c38 u64 max_groups; in mlxsw_sp_acl_tcam_init() local
61 max_groups = MLXSW_CORE_RES_GET(mlxsw_sp->core, ACL_MAX_GROUPS); in mlxsw_sp_acl_tcam_init()
62 alloc_size = sizeof(tcam->used_groups[0]) * BITS_TO_LONGS(max_groups); in mlxsw_sp_acl_tcam_init()
68 tcam->max_groups = max_groups; in mlxsw_sp_acl_tcam_init()
145 id = find_first_zero_bit(tcam->used_groups, tcam->max_groups); in mlxsw_sp_acl_tcam_group_id_get()
146 if (id < tcam->max_groups) { in mlxsw_sp_acl_tcam_group_id_get()
Dspectrum_acl_tcam.h18 unsigned int max_groups; member
/Linux-v5.15/Documentation/ABI/stable/
Dsysfs-driver-dma-idxd38 What: /sys/bus/dsa/devices/dsa<m>/max_groups