Home
last modified time | relevance | path

Searched refs:cregion (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_ctcam.c41 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_entry_insert()
46 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_entry_insert()
67 err = cregion->ops->entry_insert(cregion, centry, mask); in mlxsw_sp_acl_ctcam_region_entry_insert()
82 cregion->ops->entry_remove(cregion, centry); in mlxsw_sp_acl_ctcam_region_entry_insert()
88 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_entry_remove()
94 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_remove()
97 cregion->ops->entry_remove(cregion, centr in mlxsw_sp_acl_ctcam_region_entry_remove()
40 mlxsw_sp_acl_ctcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei, bool fillup_priority) mlxsw_sp_acl_ctcam_region_entry_insert() argument
87 mlxsw_sp_acl_ctcam_region_entry_remove(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry) mlxsw_sp_acl_ctcam_region_entry_remove() argument
101 mlxsw_sp_acl_ctcam_region_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_afa_block *afa_block, unsigned int priority) mlxsw_sp_acl_ctcam_region_entry_action_replace() argument
124 struct mlxsw_sp_acl_ctcam_region *cregion = priv; mlxsw_sp_acl_ctcam_region_parman_resize() local
140 struct mlxsw_sp_acl_ctcam_region *cregion = priv; mlxsw_sp_acl_ctcam_region_parman_move() local
157 mlxsw_sp_acl_ctcam_region_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_tcam_region *region, const struct mlxsw_sp_acl_ctcam_region_ops *ops) mlxsw_sp_acl_ctcam_region_init() argument
171 mlxsw_sp_acl_ctcam_region_fini(struct mlxsw_sp_acl_ctcam_region *cregion) mlxsw_sp_acl_ctcam_region_fini() argument
176 mlxsw_sp_acl_ctcam_chunk_init(struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_chunk *cchunk, unsigned int priority) mlxsw_sp_acl_ctcam_chunk_init() argument
188 mlxsw_sp_acl_ctcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_chunk *cchunk, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei, bool fillup_priority) mlxsw_sp_acl_ctcam_entry_add() argument
214 mlxsw_sp_acl_ctcam_entry_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_chunk *cchunk, struct mlxsw_sp_acl_ctcam_entry *centry) mlxsw_sp_acl_ctcam_entry_del() argument
224 mlxsw_sp_acl_ctcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_ctcam_entry_action_replace() argument
[all...]
H A Dspectrum1_acl_tcam.c13 struct mlxsw_sp_acl_ctcam_region cregion; member
31 mlxsw_sp1_acl_ctcam_region_entry_insert(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp1_acl_ctcam_region_entry_insert() argument
39 mlxsw_sp1_acl_ctcam_region_entry_remove(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp1_acl_ctcam_region_entry_remove() argument
67 mlxsw_sp_acl_ctcam_chunk_init(&region->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add()
81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, &region->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add()
105 mlxsw_sp_acl_ctcam_entry_del(mlxsw_sp, &region->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_del()
121 err = mlxsw_sp_acl_ctcam_region_init(mlxsw_sp, &region->cregion, in mlxsw_sp1_acl_tcam_region_init()
133 mlxsw_sp_acl_ctcam_region_fini(&region->cregion); in mlxsw_sp1_acl_tcam_region_init()
143 mlxsw_sp_acl_ctcam_region_fini(&region->cregion); in mlxsw_sp1_acl_tcam_region_fini()
159 mlxsw_sp_acl_ctcam_chunk_init(&region->cregion, in mlxsw_sp1_acl_tcam_chunk_init()
[all...]
H A Dspectrum_acl_tcam.h109 int (*entry_insert)(struct mlxsw_sp_acl_ctcam_region *cregion,
112 void (*entry_remove)(struct mlxsw_sp_acl_ctcam_region *cregion,
118 struct mlxsw_sp_acl_ctcam_region *cregion,
121 void mlxsw_sp_acl_ctcam_region_fini(struct mlxsw_sp_acl_ctcam_region *cregion);
122 void mlxsw_sp_acl_ctcam_chunk_init(struct mlxsw_sp_acl_ctcam_region *cregion,
127 struct mlxsw_sp_acl_ctcam_region *cregion,
133 struct mlxsw_sp_acl_ctcam_region *cregion,
137 struct mlxsw_sp_acl_ctcam_region *cregion,
164 struct mlxsw_sp_acl_ctcam_region cregion; member
202 mlxsw_sp_acl_tcam_cregion_aregion(struct mlxsw_sp_acl_ctcam_region *cregion) in mlxsw_sp_acl_tcam_cregion_aregion() argument
[all...]
H A Dspectrum2_acl_tcam.c31 mlxsw_sp2_acl_ctcam_region_entry_insert(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp2_acl_ctcam_region_entry_insert() argument
39 aregion = mlxsw_sp_acl_tcam_cregion_aregion(cregion); in mlxsw_sp2_acl_ctcam_region_entry_insert()
51 mlxsw_sp2_acl_ctcam_region_entry_remove(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp2_acl_ctcam_region_entry_remove() argument
57 aregion = mlxsw_sp_acl_tcam_cregion_aregion(cregion); in mlxsw_sp2_acl_ctcam_region_entry_remove()
H A Dspectrum_acl_atcam.c339 err = mlxsw_sp_acl_ctcam_region_init(mlxsw_sp, &aregion->cregion, in mlxsw_sp_acl_atcam_region_init()
357 mlxsw_sp_acl_ctcam_region_fini(&aregion->cregion); in mlxsw_sp_acl_atcam_region_fini()
368 mlxsw_sp_acl_ctcam_chunk_init(&aregion->cregion, &achunk->cchunk, in mlxsw_sp_acl_atcam_chunk_init()
583 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, &aregion->cregion, in mlxsw_sp_acl_atcam_entry_add()
598 mlxsw_sp_acl_ctcam_entry_del(mlxsw_sp, &aregion->cregion, in mlxsw_sp_acl_atcam_entry_del()
614 &aregion->cregion, in mlxsw_sp_acl_atcam_entry_action_replace()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_ctcam.c41 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_entry_insert()
46 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_entry_insert()
67 err = cregion->ops->entry_insert(cregion, centry, mask); in mlxsw_sp_acl_ctcam_region_entry_insert()
82 cregion->ops->entry_remove(cregion, centry); in mlxsw_sp_acl_ctcam_region_entry_insert()
88 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_entry_remove()
94 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_remove()
97 cregion->ops->entry_remove(cregion, centr in mlxsw_sp_acl_ctcam_region_entry_remove()
40 mlxsw_sp_acl_ctcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei, bool fillup_priority) mlxsw_sp_acl_ctcam_region_entry_insert() argument
87 mlxsw_sp_acl_ctcam_region_entry_remove(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry) mlxsw_sp_acl_ctcam_region_entry_remove() argument
101 mlxsw_sp_acl_ctcam_region_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_afa_block *afa_block, unsigned int priority) mlxsw_sp_acl_ctcam_region_entry_action_replace() argument
124 struct mlxsw_sp_acl_ctcam_region *cregion = priv; mlxsw_sp_acl_ctcam_region_parman_resize() local
140 struct mlxsw_sp_acl_ctcam_region *cregion = priv; mlxsw_sp_acl_ctcam_region_parman_move() local
157 mlxsw_sp_acl_ctcam_region_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_tcam_region *region, const struct mlxsw_sp_acl_ctcam_region_ops *ops) mlxsw_sp_acl_ctcam_region_init() argument
171 mlxsw_sp_acl_ctcam_region_fini(struct mlxsw_sp_acl_ctcam_region *cregion) mlxsw_sp_acl_ctcam_region_fini() argument
176 mlxsw_sp_acl_ctcam_chunk_init(struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_chunk *cchunk, unsigned int priority) mlxsw_sp_acl_ctcam_chunk_init() argument
188 mlxsw_sp_acl_ctcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_chunk *cchunk, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei, bool fillup_priority) mlxsw_sp_acl_ctcam_entry_add() argument
214 mlxsw_sp_acl_ctcam_entry_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_chunk *cchunk, struct mlxsw_sp_acl_ctcam_entry *centry) mlxsw_sp_acl_ctcam_entry_del() argument
224 mlxsw_sp_acl_ctcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_ctcam_entry_action_replace() argument
[all...]
H A Dspectrum1_acl_tcam.c13 struct mlxsw_sp_acl_ctcam_region cregion; member
31 mlxsw_sp1_acl_ctcam_region_entry_insert(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp1_acl_ctcam_region_entry_insert() argument
39 mlxsw_sp1_acl_ctcam_region_entry_remove(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp1_acl_ctcam_region_entry_remove() argument
67 mlxsw_sp_acl_ctcam_chunk_init(&region->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add()
81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, &region->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add()
105 mlxsw_sp_acl_ctcam_entry_del(mlxsw_sp, &region->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_del()
121 err = mlxsw_sp_acl_ctcam_region_init(mlxsw_sp, &region->cregion, in mlxsw_sp1_acl_tcam_region_init()
133 mlxsw_sp_acl_ctcam_region_fini(&region->cregion); in mlxsw_sp1_acl_tcam_region_init()
143 mlxsw_sp_acl_ctcam_region_fini(&region->cregion); in mlxsw_sp1_acl_tcam_region_fini()
159 mlxsw_sp_acl_ctcam_chunk_init(&region->cregion, in mlxsw_sp1_acl_tcam_chunk_init()
[all...]
H A Dspectrum_acl_tcam.h104 int (*entry_insert)(struct mlxsw_sp_acl_ctcam_region *cregion,
107 void (*entry_remove)(struct mlxsw_sp_acl_ctcam_region *cregion,
113 struct mlxsw_sp_acl_ctcam_region *cregion,
116 void mlxsw_sp_acl_ctcam_region_fini(struct mlxsw_sp_acl_ctcam_region *cregion);
117 void mlxsw_sp_acl_ctcam_chunk_init(struct mlxsw_sp_acl_ctcam_region *cregion,
122 struct mlxsw_sp_acl_ctcam_region *cregion,
128 struct mlxsw_sp_acl_ctcam_region *cregion,
132 struct mlxsw_sp_acl_ctcam_region *cregion,
159 struct mlxsw_sp_acl_ctcam_region cregion; member
197 mlxsw_sp_acl_tcam_cregion_aregion(struct mlxsw_sp_acl_ctcam_region *cregion) in mlxsw_sp_acl_tcam_cregion_aregion() argument
[all...]
H A Dspectrum2_acl_tcam.c31 mlxsw_sp2_acl_ctcam_region_entry_insert(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp2_acl_ctcam_region_entry_insert() argument
39 aregion = mlxsw_sp_acl_tcam_cregion_aregion(cregion); in mlxsw_sp2_acl_ctcam_region_entry_insert()
51 mlxsw_sp2_acl_ctcam_region_entry_remove(struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp2_acl_ctcam_region_entry_remove() argument
57 aregion = mlxsw_sp_acl_tcam_cregion_aregion(cregion); in mlxsw_sp2_acl_ctcam_region_entry_remove()
H A Dspectrum_acl_atcam.c339 err = mlxsw_sp_acl_ctcam_region_init(mlxsw_sp, &aregion->cregion, in mlxsw_sp_acl_atcam_region_init()
357 mlxsw_sp_acl_ctcam_region_fini(&aregion->cregion); in mlxsw_sp_acl_atcam_region_fini()
368 mlxsw_sp_acl_ctcam_chunk_init(&aregion->cregion, &achunk->cchunk, in mlxsw_sp_acl_atcam_chunk_init()
583 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, &aregion->cregion, in mlxsw_sp_acl_atcam_entry_add()
598 mlxsw_sp_acl_ctcam_entry_del(mlxsw_sp, &aregion->cregion, in mlxsw_sp_acl_atcam_entry_del()
614 &aregion->cregion, in mlxsw_sp_acl_atcam_entry_action_replace()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c832 struct userspace_mem_region *cregion; in vm_userspace_mem_region_gpa_insert() local
834 cregion = container_of(*cur, typeof(*cregion), gpa_node); in vm_userspace_mem_region_gpa_insert()
837 cregion->region.guest_phys_addr) in vm_userspace_mem_region_gpa_insert()
841 cregion->region.guest_phys_addr, in vm_userspace_mem_region_gpa_insert()
858 struct userspace_mem_region *cregion; in vm_userspace_mem_region_hva_insert() local
860 cregion = container_of(*cur, typeof(*cregion), hva_node); in vm_userspace_mem_region_hva_insert()
862 if (region->host_mem < cregion->host_mem) in vm_userspace_mem_region_hva_insert()
866 cregion in vm_userspace_mem_region_hva_insert()
[all...]

Completed in 8 milliseconds