Lines Matching defs:ce_info

4847  * @ce_info:  a description of the struct to be filled
4850 ice_write_byte(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
4857 from = src_ctx + ce_info->offset;
4860 shift_width = ce_info->lsb % 8;
4861 mask = (u8)(BIT(ce_info->width) - 1);
4871 dest = dest_ctx + (ce_info->lsb / 8);
4886 * @ce_info: a description of the struct to be filled
4889 ice_write_word(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
4897 from = src_ctx + ce_info->offset;
4900 shift_width = ce_info->lsb % 8;
4901 mask = BIT(ce_info->width) - 1;
4914 dest = dest_ctx + (ce_info->lsb / 8);
4929 * @ce_info: a description of the struct to be filled
4932 ice_write_dword(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
4940 from = src_ctx + ce_info->offset;
4943 shift_width = ce_info->lsb % 8;
4949 if (ce_info->width < 32)
4950 mask = BIT(ce_info->width) - 1;
4965 dest = dest_ctx + (ce_info->lsb / 8);
4980 * @ce_info: a description of the struct to be filled
4983 ice_write_qword(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
4991 from = src_ctx + ce_info->offset;
4994 shift_width = ce_info->lsb % 8;
5000 if (ce_info->width < 64)
5001 mask = BIT_ULL(ce_info->width) - 1;
5016 dest = dest_ctx + (ce_info->lsb / 8);
5032 * @ce_info: a description of the structure to be transformed
5036 const struct ice_ctx_ele *ce_info)
5040 for (f = 0; ce_info[f].width; f++) {
5045 if (ce_info[f].width > (ce_info[f].size_of * BITS_PER_BYTE)) {
5047 f, ce_info[f].width, ce_info[f].size_of);
5050 switch (ce_info[f].size_of) {
5052 ice_write_byte(src_ctx, dest_ctx, &ce_info[f]);
5055 ice_write_word(src_ctx, dest_ctx, &ce_info[f]);
5058 ice_write_dword(src_ctx, dest_ctx, &ce_info[f]);
5061 ice_write_qword(src_ctx, dest_ctx, &ce_info[f]);
5128 * @ce_info: a description of the struct to be filled
5131 ice_read_byte(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
5138 shift_width = ce_info->lsb % 8;
5139 mask = (u8)(BIT(ce_info->width) - 1);
5145 src = src_ctx + (ce_info->lsb / 8);
5154 target = dest_ctx + ce_info->offset;
5164 * @ce_info: a description of the struct to be filled
5167 ice_read_word(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
5175 shift_width = ce_info->lsb % 8;
5176 mask = BIT(ce_info->width) - 1;
5182 src = src_ctx + (ce_info->lsb / 8);
5197 target = dest_ctx + ce_info->offset;
5207 * @ce_info: a description of the struct to be filled
5210 ice_read_dword(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
5218 shift_width = ce_info->lsb % 8;
5224 if (ce_info->width < 32)
5225 mask = BIT(ce_info->width) - 1;
5233 src = src_ctx + (ce_info->lsb / 8);
5248 target = dest_ctx + ce_info->offset;
5258 * @ce_info: a description of the struct to be filled
5261 ice_read_qword(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
5269 shift_width = ce_info->lsb % 8;
5275 if (ce_info->width < 64)
5276 mask = BIT_ULL(ce_info->width) - 1;
5284 src = src_ctx + (ce_info->lsb / 8);
5299 target = dest_ctx + ce_info->offset;
5309 * @ce_info: a description of the structure to be read from
5312 ice_get_ctx(u8 *src_ctx, u8 *dest_ctx, const struct ice_ctx_ele *ce_info)
5316 for (f = 0; ce_info[f].width; f++) {
5317 switch (ce_info[f].size_of) {
5319 ice_read_byte(src_ctx, dest_ctx, &ce_info[f]);
5322 ice_read_word(src_ctx, dest_ctx, &ce_info[f]);
5325 ice_read_dword(src_ctx, dest_ctx, &ce_info[f]);
5328 ice_read_qword(src_ctx, dest_ctx, &ce_info[f]);