/openbmc/qemu/block/ |
H A D | qed-table.c | 142 qed_unref_l2_cache_entry(request->l2_table); in qed_read_l2_table() 146 if (request->l2_table) { in qed_read_l2_table() 150 request->l2_table = qed_alloc_l2_cache_entry(&s->l2_cache); in qed_read_l2_table() 151 request->l2_table->table = qed_alloc_table(s); in qed_read_l2_table() 154 ret = qed_read_table(s, offset, request->l2_table->table); in qed_read_l2_table() 158 qed_unref_l2_cache_entry(request->l2_table); in qed_read_l2_table() 159 request->l2_table = NULL; in qed_read_l2_table() 161 request->l2_table->offset = offset; in qed_read_l2_table() 163 qed_commit_l2_cache_entry(&s->l2_cache, request->l2_table); in qed_read_l2_table() 169 assert(request->l2_table != NULL); in qed_read_l2_table() [all …]
|
H A D | qed-l2-cache.c | 161 void qed_commit_l2_cache_entry(L2TableCache *l2_cache, CachedL2Table *l2_table) in qed_commit_l2_cache_entry() argument 165 entry = qed_find_l2_cache_entry(l2_cache, l2_table->offset); in qed_commit_l2_cache_entry() 168 qed_unref_l2_cache_entry(l2_table); in qed_commit_l2_cache_entry() 194 QTAILQ_INSERT_TAIL(&l2_cache->entries, l2_table, node); in qed_commit_l2_cache_entry()
|
H A D | qed-check.c | 155 check->request.l2_table->table); in qed_check_l1_table() 170 qed_unref_l2_cache_entry(check->request.l2_table); in qed_check_l1_table() 171 check->request.l2_table = NULL; in qed_check_l1_table() 230 .request = { .l2_table = NULL }, in qed_check()
|
H A D | qed.c | 250 l2_table->table = qed_alloc_table(s); in qed_new_l2_table() 253 memset(l2_table->table->offsets, 0, in qed_new_l2_table() 255 return l2_table; in qed_new_l2_table() 842 QEDRequest request = { .l2_table = NULL }; in bdrv_qed_co_block_status() 869 qed_unref_l2_cache_entry(request.l2_table); in bdrv_qed_co_block_status() 975 qed_unref_l2_cache_entry(acb->request.l2_table); in qed_aio_complete() 1007 CachedL2Table *l2_table = acb->request.l2_table; in qed_aio_write_l1_update() local 1008 uint64_t l2_offset = l2_table->offset; in qed_aio_write_l1_update() 1012 s->l1_table->offsets[index] = l2_table->offset; in qed_aio_write_l1_update() 1023 assert(acb->request.l2_table != NULL); in qed_aio_write_l1_update() [all …]
|
H A D | qcow.c | 366 uint64_t *l2_table, cluster_offset, tmp; in get_cluster_offset() local 404 l2_table = s->l2_cache + (i << s->l2_bits); in get_cluster_offset() 417 l2_table = s->l2_cache + (min_index << s->l2_bits); in get_cluster_offset() 420 memset(l2_table, 0, s->l2_size * sizeof(uint64_t)); in get_cluster_offset() 422 s->l2_size * sizeof(uint64_t), l2_table, 0); in get_cluster_offset() 428 s->l2_size * sizeof(uint64_t), l2_table, 0); in get_cluster_offset() 437 cluster_offset = be64_to_cpu(l2_table[l2_index]); in get_cluster_offset() 516 l2_table[l2_index] = tmp; in get_cluster_offset()
|
H A D | qed.h | 123 CachedL2Table *l2_table; member 198 void qed_commit_l2_cache_entry(L2TableCache *l2_cache, CachedL2Table *l2_table);
|
H A D | qcow2-refcount.c | 1604 uint64_t l2_offset, uint64_t *l2_table, in fix_l2_entry_by_zero() argument 1621 set_l2_bitmap(s, l2_table, l2_index, l2_bitmap); in fix_l2_entry_by_zero() 1622 set_l2_entry(s, l2_table, l2_index, 0); in fix_l2_entry_by_zero() 1624 set_l2_entry(s, l2_table, l2_index, QCOW_OFLAG_ZERO); in fix_l2_entry_by_zero() 1638 &l2_table[idx], 0); in fix_l2_entry_by_zero() 1673 g_autofree uint64_t *l2_table = g_malloc(l2_size_bytes); in check_refcounts_l2() local 1690 l2_entry = get_l2_entry(s, l2_table, i); in check_refcounts_l2() 1691 l2_bitmap = get_l2_bitmap(s, l2_table, i); in check_refcounts_l2() 2009 l2_table, 0); in check_oflag_copied() 2041 set_l2_entry(s, l2_table, j, in check_oflag_copied() [all …]
|
H A D | qed-cluster.c | 123 n = qed_count_contiguous_clusters(s, request->l2_table->table, in qed_find_cluster()
|
H A D | vmdk.c | 1591 void *l2_table; in get_cluster_offset() local 1651 l2_table = (char *)extent->l2_cache + (i * l2_size_bytes); in get_cluster_offset() 1664 l2_table = (char *)extent->l2_cache + (min_index * l2_size_bytes); in get_cluster_offset() 1669 l2_table, 0 in get_cluster_offset() 1682 m_data->l2_cache_entry = ((uint32_t *)l2_table) + l2_index; in get_cluster_offset() 1686 cluster_sector = le64_to_cpu(((uint64_t *)l2_table)[l2_index]); in get_cluster_offset() 1711 cluster_sector = le32_to_cpu(((uint32_t *)l2_table)[l2_index]); in get_cluster_offset()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | qed.py | 174 l2_table = qed.read_table(l2_offset) 177 l2_table[l2_index] = 1 # zero the data cluster 178 qed.write_table(l2_offset, l2_table) 203 l2_table = qed.read_table(l2_offset) 205 s = ''.join(pack_table_elem(x) for x in l2_table)
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_tc.c | 955 rc = rhashtable_remove_fast(&tc_info->l2_table, &l2_node->node, in bnxt_tc_put_l2_node() 967 bnxt_tc_get_l2_node(struct bnxt *bp, struct rhashtable *l2_table, in bnxt_tc_get_l2_node() argument 974 l2_node = rhashtable_lookup_fast(l2_table, l2_key, ht_params); in bnxt_tc_get_l2_node() 983 rc = rhashtable_insert_fast(l2_table, &l2_node->node, in bnxt_tc_get_l2_node() 1009 l2_node = bnxt_tc_get_l2_node(bp, &tc_info->l2_table, in bnxt_tc_get_ref_flow_handle() 2032 rc = rhashtable_init(&tc_info->l2_table, &tc_info->l2_ht_params); in bnxt_init_tc() 2073 rhashtable_destroy(&tc_info->l2_table); in bnxt_init_tc() 2092 rhashtable_destroy(&tc_info->l2_table); in bnxt_shutdown_tc()
|
H A D | bnxt.h | 1436 struct rhashtable l2_table; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs.c | 1013 static int mlx5e_create_l2_table_groups(struct mlx5e_l2_table *l2_table) in mlx5e_create_l2_table_groups() argument 1016 struct mlx5e_flow_table *ft = &l2_table->ft; in mlx5e_create_l2_table_groups() 1087 struct mlx5e_l2_table *l2_table = &fs->l2; in mlx5e_create_l2_table() local 1088 struct mlx5e_flow_table *ft = &l2_table->ft; in mlx5e_create_l2_table() 1105 err = mlx5e_create_l2_table_groups(l2_table); in mlx5e_create_l2_table()
|
/openbmc/qemu/docs/interop/ |
H A D | qed_spec.txt | 123 l2_table = load_table(l2_offset) 124 cluster_offset = l2_table[l2_index] & offset_mask
|
H A D | qcow2.txt | 519 l2_table = load_cluster(l1_table[l1_index]); 520 cluster_offset = l2_table[l2_index];
|