Home
last modified time | relevance | path

Searched refs:field_value_mask (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_reg.c35 set_reg_field_value_masks(struct dmub_reg_value_masks *field_value_mask, in set_reg_field_value_masks() argument
38 field_value_mask->value = in set_reg_field_value_masks()
39 (field_value_mask->value & ~mask) | (mask & (value << shift)); in set_reg_field_value_masks()
40 field_value_mask->mask = field_value_mask->mask | mask; in set_reg_field_value_masks()
43 static void set_reg_field_values(struct dmub_reg_value_masks *field_value_mask, in set_reg_field_values() argument
52 set_reg_field_value_masks(field_value_mask, field_value1, mask1, in set_reg_field_values()
60 set_reg_field_value_masks(field_value_mask, field_value, mask, in set_reg_field_values()
75 struct dmub_reg_value_masks field_value_mask = { 0 }; in dmub_reg_update() local
80 set_reg_field_values(&field_value_mask, addr, n, shift1, mask1, in dmub_reg_update()
85 reg_val = (reg_val & ~field_value_mask.mask) | field_value_mask.value; in dmub_reg_update()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/
Ddc_helper.c114 struct dc_reg_value_masks *field_value_mask, in set_reg_field_value_masks() argument
121 field_value_mask->value = (field_value_mask->value & ~mask) | (mask & (value << shift)); in set_reg_field_value_masks()
122 field_value_mask->mask = field_value_mask->mask | mask; in set_reg_field_value_masks()
125 static void set_reg_field_values(struct dc_reg_value_masks *field_value_mask, in set_reg_field_values() argument
134 set_reg_field_value_masks(field_value_mask, in set_reg_field_values()
142 set_reg_field_value_masks(field_value_mask, in set_reg_field_values()
190 struct dc_reg_value_masks *field_value_mask) in dmub_reg_value_pack() argument
202 if (dmub_reg_value_burst_set_pack(ctx, addr, field_value_mask->value)) in dmub_reg_value_pack()
203 return field_value_mask->value; in dmub_reg_value_pack()
221 seq->modify_mask = field_value_mask->mask; in dmub_reg_value_pack()
[all …]