/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl_ctcam.c | 41 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_entry_insert() argument 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() argument 94 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_remove() 97 cregion->ops->entry_remove(cregion, centry); in mlxsw_sp_acl_ctcam_region_entry_remove() 102 struct mlxsw_sp_acl_ctcam_region *cregion, in mlxsw_sp_acl_ctcam_region_entry_action_replace() argument 111 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_action_replace() 124 struct mlxsw_sp_acl_ctcam_region *cregion = priv; in mlxsw_sp_acl_ctcam_region_parman_resize() local [all …]
|
H A D | spectrum1_acl_tcam.c | 13 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(®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 105 mlxsw_sp_acl_ctcam_entry_del(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_del() 121 err = mlxsw_sp_acl_ctcam_region_init(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_tcam_region_init() 133 mlxsw_sp_acl_ctcam_region_fini(®ion->cregion); in mlxsw_sp1_acl_tcam_region_init() 143 mlxsw_sp_acl_ctcam_region_fini(®ion->cregion); in mlxsw_sp1_acl_tcam_region_fini() 159 mlxsw_sp_acl_ctcam_chunk_init(®ion->cregion, &chunk->cchunk, in mlxsw_sp1_acl_tcam_chunk_init() [all …]
|
H A D | spectrum_acl_tcam.h | 105 int (*entry_insert)(struct mlxsw_sp_acl_ctcam_region *cregion, 108 void (*entry_remove)(struct mlxsw_sp_acl_ctcam_region *cregion, 114 struct mlxsw_sp_acl_ctcam_region *cregion, 117 void mlxsw_sp_acl_ctcam_region_fini(struct mlxsw_sp_acl_ctcam_region *cregion); 118 void mlxsw_sp_acl_ctcam_chunk_init(struct mlxsw_sp_acl_ctcam_region *cregion, 123 struct mlxsw_sp_acl_ctcam_region *cregion, 129 struct mlxsw_sp_acl_ctcam_region *cregion, 133 struct mlxsw_sp_acl_ctcam_region *cregion, 160 struct mlxsw_sp_acl_ctcam_region cregion; member 195 mlxsw_sp_acl_tcam_cregion_aregion(struct mlxsw_sp_acl_ctcam_region *cregion) in mlxsw_sp_acl_tcam_cregion_aregion() argument [all …]
|
H A D | spectrum2_acl_tcam.c | 31 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 D | spectrum_acl_atcam.c | 339 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() 581 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, &aregion->cregion, in mlxsw_sp_acl_atcam_entry_add() 596 mlxsw_sp_acl_ctcam_entry_del(mlxsw_sp, &aregion->cregion, in mlxsw_sp_acl_atcam_entry_del() 612 &aregion->cregion, in mlxsw_sp_acl_atcam_entry_action_replace()
|
/linux/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 797 struct userspace_mem_region *cregion; in vm_userspace_mem_region_gpa_insert() 799 cregion = container_of(*cur, typeof(*cregion), gpa_node); in vm_userspace_mem_region_gpa_insert() 802 cregion->region.guest_phys_addr) in vm_userspace_mem_region_gpa_insert() 806 cregion->region.guest_phys_addr, in vm_userspace_mem_region_gpa_insert() 823 struct userspace_mem_region *cregion; in vm_userspace_mem_region_hva_insert() 825 cregion = container_of(*cur, typeof(*cregion), hva_node); in vm_userspace_mem_region_hva_insert() 827 if (region->host_mem < cregion->host_mem) in vm_userspace_mem_region_hva_insert() 831 cregion in vm_userspace_mem_region_hva_insert() 800 struct userspace_mem_region *cregion; vm_userspace_mem_region_gpa_insert() local 826 struct userspace_mem_region *cregion; vm_userspace_mem_region_hva_insert() local [all...] |