Lines Matching refs:idev
33 struct qnap_mcu_input_dev *idev = input_get_drvdata(input);
39 ret = qnap_mcu_exec(idev->mcu, cmd, sizeof(cmd), reply, sizeof(reply));
45 dev_err(idev->dev, "malformed data received\n");
56 struct qnap_mcu_input_dev *idev =
58 const u8 cmd[] = { '@', 'C', (idev->beep_type == SND_TONE) ? '3' : '2' };
60 qnap_mcu_exec_with_ack(idev->mcu, cmd, sizeof(cmd));
66 struct qnap_mcu_input_dev *idev = input_get_drvdata(input);
79 idev->beep_type = code;
80 schedule_work(&idev->beep_work);
87 struct qnap_mcu_input_dev *idev = input_get_drvdata(input);
89 cancel_work_sync(&idev->beep_work);
95 struct qnap_mcu_input_dev *idev;
100 idev = devm_kzalloc(dev, sizeof(*idev), GFP_KERNEL);
101 if (!idev)
108 idev->input = input;
109 idev->dev = dev;
110 idev->mcu = mcu;
112 input_set_drvdata(input, idev);
127 INIT_WORK(&idev->beep_work, qnap_mcu_input_beeper_work);