Lines Matching refs:words
51 ice_check_sr_access_params(struct ice_hw *hw, u32 offset, u16 words) in ice_check_sr_access_params() argument
53 if ((offset + words) > hw->nvm.sr_words) { in ice_check_sr_access_params()
59 if (words > ICE_SR_SECTOR_SIZE_IN_WORDS) { in ice_check_sr_access_params()
63 words, ICE_SR_SECTOR_SIZE_IN_WORDS); in ice_check_sr_access_params()
67 if (((offset + (words - 1)) / ICE_SR_SECTOR_SIZE_IN_WORDS) != in ice_check_sr_access_params()
89 ice_read_sr_aq(struct ice_hw *hw, u32 offset, u16 words, u16 *data, in ice_read_sr_aq() argument
94 status = ice_check_sr_access_params(hw, offset, words); in ice_read_sr_aq()
101 status = ice_aq_read_nvm(hw, 0, 2 * offset, 2 * words, data, in ice_read_sr_aq()
139 ice_read_sr_buf_aq(struct ice_hw *hw, u16 offset, u16 *words, u16 *data) in ice_read_sr_buf_aq() argument
155 min_t(u16, *words, in ice_read_sr_buf_aq()
157 min_t(u16, (*words - words_read), in ice_read_sr_buf_aq()
161 if ((words_read + read_size) >= *words) in ice_read_sr_buf_aq()
174 } while (words_read < *words); in ice_read_sr_buf_aq()
176 for (i = 0; i < *words; i++) in ice_read_sr_buf_aq()
180 *words = words_read; in ice_read_sr_buf_aq()
307 ice_read_sr_buf(struct ice_hw *hw, u16 offset, u16 *words, u16 *data) in ice_read_sr_buf() argument
313 status = ice_read_sr_buf_aq(hw, offset, words, data); in ice_read_sr_buf()