Home
last modified time | relevance | path

Searched refs:base_index (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_cnt.c12 unsigned int base_index; member
71 unsigned int base_index; in mlxsw_sp_counter_pool_init() local
104 base_index = 0; in mlxsw_sp_counter_pool_init()
109 sub_pool->base_index = base_index; in mlxsw_sp_counter_pool_init()
110 base_index += sub_pool->size; in mlxsw_sp_counter_pool_init()
112 if (sub_pool->base_index + sub_pool->size > pool->pool_size) in mlxsw_sp_counter_pool_init()
113 sub_pool->size = pool->pool_size - sub_pool->base_index; in mlxsw_sp_counter_pool_init()
145 stop_index = sub_pool->base_index + sub_pool->size; in mlxsw_sp_counter_alloc()
146 entry_index = sub_pool->base_index; in mlxsw_sp_counter_alloc()
Dspectrum_acl_erp.c61 unsigned long base_index; member
326 unsigned long base_index; in mlxsw_sp_acl_erp_table_free() local
331 base_index = index + MLXSW_SP_ACL_ERP_GENALLOC_OFFSET; in mlxsw_sp_acl_erp_table_free()
333 gen_pool_free(erp_core->erp_tables, base_index, size); in mlxsw_sp_acl_erp_table_free()
379 *p_erpt_index = erp_table->base_index + row * entry_size; in mlxsw_sp_acl_erp_table_locate()
394 0, erp_table->base_index, erp->index, in mlxsw_sp_acl_erp_table_erp_add()
414 0, erp_table->base_index, erp->index, empty_mask); in mlxsw_sp_acl_erp_table_erp_del()
430 erp_table->base_index, 0); in mlxsw_sp_acl_erp_table_enable()
481 unsigned long old_base_index = erp_table->base_index; in mlxsw_sp_acl_erp_table_expand()
494 &erp_table->base_index); in mlxsw_sp_acl_erp_table_expand()
[all …]
/Linux-v5.4/arch/x86/kernel/
Damd_gart_64.c96 unsigned long base_index; in alloc_iommu() local
98 base_index = ALIGN(iommu_bus_base & dma_get_seg_boundary(dev), in alloc_iommu()
105 size, base_index, boundary_size, align_mask); in alloc_iommu()
109 size, base_index, boundary_size, in alloc_iommu()
/Linux-v5.4/drivers/gpu/drm/vc4/
Dvc4_validate.c298 uint32_t base_index = *(uint32_t *)(untrusted + 5); in validate_gl_array_primitive() local
309 if (length + base_index < length) { in validate_gl_array_primitive()
313 max_index = length + base_index - 1; in validate_gl_array_primitive()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c2188 int base_index, offset; in hns_dsaf_get_inode_prio_reg() local
2191 base_index = (index + 1) / DSAF_REG_PER_ZONE; in hns_dsaf_get_inode_prio_reg()
2194 return base_addr + DSAF_INODE_IN_PRIO_PAUSE_BASE_OFFSET * base_index + in hns_dsaf_get_inode_prio_reg()