Lines Matching refs:line
28 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx)
32 if (*line == 0x04) {
34 *line = 4;
37 if (*line == 0x09) {
39 *line = 9;
42 if (*line == 0x10) {
44 *line = 0;
47 nvkm_error(subdev, "unknown pwm ctrl for gpio %d\n", *line);
55 nv50_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable)
59 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id);
61 nvkm_mask(device, ctrl, 0x00010001 << line, data << line);
66 nv50_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty)
69 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id);
73 if (nvkm_rd32(device, ctrl) & (1 << line)) {
83 nv50_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty)
86 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id);
96 nv50_fan_pwm_clock(struct nvkm_therm *therm, int line)