Lines Matching refs:mask_idx
3309 ice_write_prof_mask_reg(struct ice_hw *hw, enum ice_block blk, u16 mask_idx, in ice_write_prof_mask_reg() argument
3317 offset = GLQF_HMASK(mask_idx); in ice_write_prof_mask_reg()
3322 offset = GLQF_FDMASK(mask_idx); in ice_write_prof_mask_reg()
3412 u16 *mask_idx) in ice_alloc_prof_mask() argument
3463 *mask_idx = i; in ice_alloc_prof_mask()
3479 ice_free_prof_mask(struct ice_hw *hw, enum ice_block blk, u16 mask_idx) in ice_free_prof_mask() argument
3484 if (!(mask_idx >= hw->blk[blk].masks.first && in ice_free_prof_mask()
3485 mask_idx < hw->blk[blk].masks.first + hw->blk[blk].masks.count)) in ice_free_prof_mask()
3490 if (!hw->blk[blk].masks.masks[mask_idx].in_use) in ice_free_prof_mask()
3493 if (hw->blk[blk].masks.masks[mask_idx].ref > 1) { in ice_free_prof_mask()
3494 hw->blk[blk].masks.masks[mask_idx].ref--; in ice_free_prof_mask()
3499 hw->blk[blk].masks.masks[mask_idx].in_use = false; in ice_free_prof_mask()
3500 hw->blk[blk].masks.masks[mask_idx].mask = 0; in ice_free_prof_mask()
3501 hw->blk[blk].masks.masks[mask_idx].idx = 0; in ice_free_prof_mask()
3505 mask_idx); in ice_free_prof_mask()
3506 ice_write_prof_mask_reg(hw, blk, mask_idx, 0, 0); in ice_free_prof_mask()