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