Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/display/dmub/src/
H A Ddmub_reg.c38 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()
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()
92 struct dmub_reg_value_masks field_value_mask = { 0 }; in dmub_reg_set() local
96 set_reg_field_values(&field_value_mask, addr, n, shift1, mask1, in dmub_reg_set()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_helper.c97 struct dc_reg_value_masks *field_value_mask, in set_reg_field_value_masks() argument
104 field_value_mask->value = (field_value_mask->value & ~mask) | (mask & (value << shift)); in set_reg_field_value_masks()
105 field_value_mask->mask = field_value_mask->mask | mask; in set_reg_field_value_masks()
117 set_reg_field_value_masks(field_value_mask, in set_reg_field_values()
125 set_reg_field_value_masks(field_value_mask, in set_reg_field_values()
184 return field_value_mask->value; in dmub_reg_value_pack()
202 seq->modify_mask = field_value_mask->mask; in dmub_reg_value_pack()
203 seq->modify_value = field_value_mask->value; in dmub_reg_value_pack()
206 return field_value_mask->value; in dmub_reg_value_pack()
246 reg_val = (reg_val & ~field_value_mask.mask) | field_value_mask.value; in generic_reg_update_ex()
[all …]