Lines Matching refs:qmp_cdev
412 struct qmp_cooling_device *qmp_cdev = cdev->devdata; in qmp_cdev_get_cur_state() local
414 *state = qmp_cdev->state; in qmp_cdev_get_cur_state()
421 struct qmp_cooling_device *qmp_cdev = cdev->devdata; in qmp_cdev_set_cur_state() local
429 if (qmp_cdev->state == state) in qmp_cdev_set_cur_state()
434 qmp_cdev->name, in qmp_cdev_set_cur_state()
437 ret = qmp_send(qmp_cdev->qmp, buf, sizeof(buf)); in qmp_cdev_set_cur_state()
440 qmp_cdev->state = cdev_state; in qmp_cdev_set_cur_state()
452 struct qmp_cooling_device *qmp_cdev, in qmp_cooling_device_add() argument
457 qmp_cdev->qmp = qmp; in qmp_cooling_device_add()
458 qmp_cdev->state = qmp_cdev_init_state; in qmp_cooling_device_add()
459 qmp_cdev->name = cdev_name; in qmp_cooling_device_add()
460 qmp_cdev->cdev = devm_thermal_of_cooling_device_register in qmp_cooling_device_add()
463 qmp_cdev, &qmp_cooling_device_ops); in qmp_cooling_device_add()
465 if (IS_ERR(qmp_cdev->cdev)) in qmp_cooling_device_add()
469 return PTR_ERR_OR_ZERO(qmp_cdev->cdev); in qmp_cooling_device_add()