Lines Matching refs:volt
83 struct nvkm_volt *volt = clk->subdev.device->volt; in nvkm_cstate_valid() local
102 if (!volt) in nvkm_cstate_valid()
105 voltage = nvkm_volt_map(volt, cstate->voltage, temp); in nvkm_cstate_valid()
108 return voltage <= min(max_volt, volt->max_uv); in nvkm_cstate_valid()
116 struct nvkm_volt *volt = device->volt; in nvkm_cstate_find_best() local
122 if (!volt) in nvkm_cstate_find_best()
125 max_volt = volt->max_uv; in nvkm_cstate_find_best()
126 if (volt->max0_id != 0xff) in nvkm_cstate_find_best()
128 nvkm_volt_map(volt, volt->max0_id, clk->temp)); in nvkm_cstate_find_best()
129 if (volt->max1_id != 0xff) in nvkm_cstate_find_best()
131 nvkm_volt_map(volt, volt->max1_id, clk->temp)); in nvkm_cstate_find_best()
132 if (volt->max2_id != 0xff) in nvkm_cstate_find_best()
134 nvkm_volt_map(volt, volt->max2_id, clk->temp)); in nvkm_cstate_find_best()
165 struct nvkm_volt *volt = device->volt; in nvkm_cstate_prog() local
184 if (volt) { in nvkm_cstate_prog()
185 ret = nvkm_volt_set_id(volt, cstate->voltage, in nvkm_cstate_prog()
199 if (volt) { in nvkm_cstate_prog()
200 ret = nvkm_volt_set_id(volt, cstate->voltage, in nvkm_cstate_prog()
226 struct nvkm_volt *volt = clk->subdev.device->volt; in nvkm_cstate_new() local
237 if (volt && nvkm_volt_map_min(volt, cstepX.voltage) > volt->max_uv) in nvkm_cstate_new()