Lines Matching refs:qmp_cdev
342 struct qmp_cooling_device *qmp_cdev = cdev->devdata; in qmp_cdev_get_cur_state() local
344 *state = qmp_cdev->state; in qmp_cdev_get_cur_state()
351 struct qmp_cooling_device *qmp_cdev = cdev->devdata; in qmp_cdev_set_cur_state() local
358 if (qmp_cdev->state == state) in qmp_cdev_set_cur_state()
361 ret = qmp_send(qmp_cdev->qmp, "{class: volt_flr, event:zero_temp, res:%s, value:%s}", in qmp_cdev_set_cur_state()
362 qmp_cdev->name, str_on_off(cdev_state)); in qmp_cdev_set_cur_state()
364 qmp_cdev->state = cdev_state; in qmp_cdev_set_cur_state()
376 struct qmp_cooling_device *qmp_cdev, in qmp_cooling_device_add() argument
381 qmp_cdev->qmp = qmp; in qmp_cooling_device_add()
382 qmp_cdev->state = !qmp_cdev_max_state; in qmp_cooling_device_add()
383 qmp_cdev->name = cdev_name; in qmp_cooling_device_add()
384 qmp_cdev->cdev = devm_thermal_of_cooling_device_register in qmp_cooling_device_add()
387 qmp_cdev, &qmp_cooling_device_ops); in qmp_cooling_device_add()
389 if (IS_ERR(qmp_cdev->cdev)) in qmp_cooling_device_add()
393 return PTR_ERR_OR_ZERO(qmp_cdev->cdev); in qmp_cooling_device_add()