Lines Matching refs:priority
95 u32 *priority, bool fillup_priority) in mlxsw_sp_acl_tcam_priority_get() argument
100 *priority = 0; in mlxsw_sp_acl_tcam_priority_get()
109 if (rulei->priority >= max_priority) in mlxsw_sp_acl_tcam_priority_get()
113 *priority = max_priority - rulei->priority; in mlxsw_sp_acl_tcam_priority_get()
236 unsigned int priority; /* Priority within the vregion and group */ member
258 .key_offset = offsetof(struct mlxsw_sp_acl_tcam_vchunk, priority),
408 return vchunk->priority; in mlxsw_sp_acl_tcam_vregion_prio()
420 return vchunk->priority; in mlxsw_sp_acl_tcam_vregion_max_prio()
442 unsigned int priority, in mlxsw_sp_acl_tcam_group_region_attach() argument
465 priority) in mlxsw_sp_acl_tcam_group_region_attach()
504 unsigned int priority) in mlxsw_sp_acl_tcam_vgroup_vregion_attach() argument
513 if (mlxsw_sp_acl_tcam_vregion_prio(vregion2) > priority) in mlxsw_sp_acl_tcam_vgroup_vregion_attach()
520 priority, NULL); in mlxsw_sp_acl_tcam_vgroup_vregion_attach()
544 unsigned int priority, in mlxsw_sp_acl_tcam_vgroup_vregion_find() argument
561 if (priority >= in mlxsw_sp_acl_tcam_vgroup_vregion_find()
575 priority < mlxsw_sp_acl_tcam_vregion_prio(vregion)) in mlxsw_sp_acl_tcam_vgroup_vregion_find()
585 priority > mlxsw_sp_acl_tcam_vregion_max_prio(vregion)) in mlxsw_sp_acl_tcam_vgroup_vregion_find()
815 unsigned int priority, in mlxsw_sp_acl_tcam_vregion_create() argument
848 priority); in mlxsw_sp_acl_tcam_vregion_create()
934 unsigned int priority, in mlxsw_sp_acl_tcam_vregion_get() argument
941 vregion = mlxsw_sp_acl_tcam_vgroup_vregion_find(vgroup, priority, in mlxsw_sp_acl_tcam_vregion_get()
961 return mlxsw_sp_acl_tcam_vregion_create(mlxsw_sp, vgroup, priority, in mlxsw_sp_acl_tcam_vregion_get()
988 ops->chunk_init(region->priv, chunk->priv, vchunk->priority); in mlxsw_sp_acl_tcam_chunk_create()
1005 unsigned int priority, in mlxsw_sp_acl_tcam_vchunk_create() argument
1013 if (priority == MLXSW_SP_ACL_TCAM_CATCHALL_PRIO) in mlxsw_sp_acl_tcam_vchunk_create()
1020 vchunk->priority = priority; in mlxsw_sp_acl_tcam_vchunk_create()
1025 priority, elusage); in mlxsw_sp_acl_tcam_vchunk_create()
1052 if (vchunk2->priority > priority) in mlxsw_sp_acl_tcam_vchunk_create()
1095 unsigned int priority, in mlxsw_sp_acl_tcam_vchunk_get() argument
1100 vchunk = rhashtable_lookup_fast(&vgroup->vchunk_ht, &priority, in mlxsw_sp_acl_tcam_vchunk_get()
1110 priority, elusage); in mlxsw_sp_acl_tcam_vchunk_get()
1191 vchunk = mlxsw_sp_acl_tcam_vchunk_get(mlxsw_sp, vgroup, rulei->priority, in mlxsw_sp_acl_tcam_ventry_add()
1454 unsigned int priority = mlxsw_sp_acl_tcam_vregion_prio(vregion); in mlxsw_sp_acl_tcam_vregion_rehash_start() local
1479 new_region, priority, in mlxsw_sp_acl_tcam_vregion_rehash_start()