Lines Matching refs:es

708 	if (prof >= hw->blk[blk].es.count)  in ice_find_prot_off()
711 if (fv_idx >= hw->blk[blk].es.fvw) in ice_find_prot_off()
714 fv_ext = hw->blk[blk].es.t + (prof * hw->blk[blk].es.fvw); in ice_find_prot_off()
923 u16 es; /* # extraction sequence entries */ member
1360 struct ice_es *es = &hw->blk[blk].es; in ice_find_prof_id() local
1364 for (i = 0; i < (u8)es->count; i++) { in ice_find_prof_id()
1365 off = i * es->fvw; in ice_find_prof_id()
1367 if (memcmp(&es->t[off], fv, es->fvw * sizeof(*fv))) in ice_find_prof_id()
1513 if (prof_id > hw->blk[blk].es.count) in ice_prof_inc_ref()
1516 hw->blk[blk].es.ref_count[prof_id]++; in ice_prof_inc_ref()
1534 off = prof_id * hw->blk[blk].es.fvw; in ice_write_es()
1536 ice_memset(&hw->blk[blk].es.t[off], 0, hw->blk[blk].es.fvw * in ice_write_es()
1538 hw->blk[blk].es.written[prof_id] = false; in ice_write_es()
1540 ice_memcpy(&hw->blk[blk].es.t[off], fv, hw->blk[blk].es.fvw * in ice_write_es()
1554 if (prof_id > hw->blk[blk].es.count) in ice_prof_dec_ref()
1557 if (hw->blk[blk].es.ref_count[prof_id] > 0) { in ice_prof_dec_ref()
1558 if (!--hw->blk[blk].es.ref_count[prof_id]) { in ice_prof_dec_ref()
1687 struct ice_sw_fv_section *es; in ice_fill_tbl() local
1764 es = (struct ice_sw_fv_section *)sect; in ice_fill_tbl()
1765 src = (u8 *)es->fv; in ice_fill_tbl()
1766 sect_len = (u32)(LE16_TO_CPU(es->count) * in ice_fill_tbl()
1767 hw->blk[block_id].es.fvw) * in ice_fill_tbl()
1768 sizeof(*hw->blk[block_id].es.t); in ice_fill_tbl()
1769 dst = (u8 *)hw->blk[block_id].es.t; in ice_fill_tbl()
1770 dst_len = (u32)(hw->blk[block_id].es.count * in ice_fill_tbl()
1771 hw->blk[block_id].es.fvw) * in ice_fill_tbl()
1772 sizeof(*hw->blk[block_id].es.t); in ice_fill_tbl()
1825 struct ice_es *es = &hw->blk[i].es; in ice_init_hw_tbls() local
1832 ice_init_lock(&es->prof_map_lock); in ice_init_hw_tbls()
1833 INIT_LIST_HEAD(&es->prof_map); in ice_init_hw_tbls()
1837 es->reverse = blk_sizes[i].reverse; in ice_init_hw_tbls()
1897 es->sid = ice_blk_sids[i][ICE_SID_ES_OFF]; in ice_init_hw_tbls()
1898 es->count = blk_sizes[i].es; in ice_init_hw_tbls()
1899 es->fvw = blk_sizes[i].fvw; in ice_init_hw_tbls()
1900 es->t = (struct ice_fv_word *) in ice_init_hw_tbls()
1901 ice_calloc(hw, (u32)(es->count * es->fvw), in ice_init_hw_tbls()
1902 sizeof(*es->t)); in ice_init_hw_tbls()
1903 if (!es->t) in ice_init_hw_tbls()
1906 es->ref_count = (u16 *) in ice_init_hw_tbls()
1907 ice_calloc(hw, es->count, sizeof(*es->ref_count)); in ice_init_hw_tbls()
1909 if (!es->ref_count) in ice_init_hw_tbls()
1912 es->written = (u8 *) in ice_init_hw_tbls()
1913 ice_calloc(hw, es->count, sizeof(*es->written)); in ice_init_hw_tbls()
1915 if (!es->written) in ice_init_hw_tbls()
1945 ice_fill_tbl(hw, blk_id, hw->blk[blk_id].es.sid); in ice_fill_blk_tbls()
1958 struct ice_es *es = &hw->blk[blk_idx].es; in ice_free_prof_map() local
1961 ice_acquire_lock(&es->prof_map_lock); in ice_free_prof_map()
1962 LIST_FOR_EACH_ENTRY_SAFE(del, tmp, &es->prof_map, in ice_free_prof_map()
1967 INIT_LIST_HEAD(&es->prof_map); in ice_free_prof_map()
1968 ice_release_lock(&es->prof_map_lock); in ice_free_prof_map()
2023 struct ice_es *es = &hw->blk[i].es; in ice_free_hw_tbls() local
2026 ice_destroy_lock(&es->prof_map_lock); in ice_free_hw_tbls()
2042 ice_free(hw, hw->blk[i].es.t); in ice_free_hw_tbls()
2043 ice_free(hw, hw->blk[i].es.ref_count); in ice_free_hw_tbls()
2044 ice_free(hw, hw->blk[i].es.written); in ice_free_hw_tbls()
2069 struct ice_es *es = &hw->blk[i].es; in ice_clear_hw_tbls() local
2115 if (es->t) in ice_clear_hw_tbls()
2116 ice_memset(es->t, 0, in ice_clear_hw_tbls()
2117 es->count * sizeof(*es->t) * es->fvw, in ice_clear_hw_tbls()
2120 if (es->ref_count) in ice_clear_hw_tbls()
2121 ice_memset(es->ref_count, 0, in ice_clear_hw_tbls()
2122 es->count * sizeof(*es->ref_count), in ice_clear_hw_tbls()
2125 if (es->written) in ice_clear_hw_tbls()
2126 ice_memset(es->written, 0, in ice_clear_hw_tbls()
2127 es->count * sizeof(*es->written), in ice_clear_hw_tbls()
2283 u16 vec_size = hw->blk[blk].es.fvw * sizeof(struct ice_fv_word); in ice_prof_bld_es()
2288 u16 off = tmp->prof_id * hw->blk[blk].es.fvw; in ice_prof_bld_es()
2295 ice_struct_size(p, es, in ice_prof_bld_es()
2298 sizeof(p->es[0])); in ice_prof_bld_es()
2306 ice_memcpy(p->es, &hw->blk[blk].es.t[off], vec_size, in ice_prof_bld_es()
2447 u16 es = 0; in ice_upd_prof_hw() local
2458 es++; in ice_upd_prof_hw()
2472 sects = xlt1 + xlt2 + tcam + es; in ice_upd_prof_hw()
2487 if (es) { in ice_upd_prof_hw()
2546 ice_bitmap_t *ptypes, struct ice_fv_word *es) in ice_add_prof() argument
2556 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock); in ice_add_prof()
2559 status = ice_find_prof_id(hw, blk, es, &prof_id); in ice_add_prof()
2567 ice_write_es(hw, blk, prof_id, es); in ice_add_prof()
2604 LIST_ADD(&prof->list, &hw->blk[blk].es.prof_map); in ice_add_prof()
2608 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_add_prof()
2627 LIST_FOR_EACH_ENTRY(map, &hw->blk[blk].es.prof_map, ice_prof_map, list) in ice_search_prof_id()
2649 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock); in ice_set_prof_context()
2655 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_set_prof_context()
2672 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock); in ice_get_prof_context()
2678 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_get_prof_context()
2897 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock); in ice_rem_prof()
2917 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_rem_prof()
2937 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock); in ice_get_prof()
2946 if (!hw->blk[blk].es.written[map->prof_id]) { in ice_get_prof()
2962 hw->blk[blk].es.written[map->prof_id] = true; in ice_get_prof()
2968 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_get_prof()
3029 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock); in ice_add_prof_to_lst()
3055 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_add_prof_to_lst()
3291 ice_acquire_lock(&hw->blk[blk].es.prof_map_lock); in ice_add_prof_id_vsig()
3356 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_add_prof_id_vsig()
3360 ice_release_lock(&hw->blk[blk].es.prof_map_lock); in ice_add_prof_id_vsig()