Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/display/dmub/src/
H A 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/drivers/gpu/drm/amd/display/dc/
H A Ddc_helper.c95 struct dc_reg_value_masks *field_value_mask, in set_reg_field_value_masks() argument
102 field_value_mask->value = (field_value_mask->value & ~mask) | (mask & (value << shift)); in set_reg_field_value_masks()
103 field_value_mask->mask = field_value_mask->mask | mask; in set_reg_field_value_masks()
106 static void set_reg_field_values(struct dc_reg_value_masks *field_value_mask, in set_reg_field_values() argument
115 set_reg_field_value_masks(field_value_mask, in set_reg_field_values()
123 set_reg_field_value_masks(field_value_mask, in set_reg_field_values()
169 struct dc_reg_value_masks *field_value_mask) in dmub_reg_value_pack() argument
181 if (dmub_reg_value_burst_set_pack(ctx, addr, field_value_mask->value)) in dmub_reg_value_pack()
182 return field_value_mask->value; in dmub_reg_value_pack()
200 seq->modify_mask = field_value_mask->mask; in dmub_reg_value_pack()
[all …]