Lines Matching defs:cytherm
53 .name = "cytherm",
90 struct usb_cytherm *cytherm = usb_get_intfdata(intf);
92 return sprintf(buf, "%i", cytherm->brightness);
99 struct usb_cytherm *cytherm = usb_get_intfdata(intf);
106 dev_err(&cytherm->udev->dev, "out of memory\n");
110 cytherm->brightness = simple_strtoul(buf, NULL, 10);
112 if (cytherm->brightness > 0xFF)
113 cytherm->brightness = 0xFF;
114 else if (cytherm->brightness < 0)
115 cytherm->brightness = 0;
118 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS,
119 cytherm->brightness, buffer, 8);
121 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);
123 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS_SEM,
126 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);
144 struct usb_cytherm *cytherm = usb_get_intfdata(intf);
153 dev_err(&cytherm->udev->dev, "out of memory\n");
158 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8);
160 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);
164 retval = vendor_command(cytherm->udev, READ_RAM, SIGN, 0, buffer, 8);
166 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);
190 struct usb_cytherm *cytherm = usb_get_intfdata(intf);
197 dev_err(&cytherm->udev->dev, "out of memory\n");
202 retval = vendor_command(cytherm->udev, READ_RAM, BUTTON, 0, buffer, 8);
204 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);
228 struct usb_cytherm *cytherm = usb_get_intfdata(intf);
235 dev_err(&cytherm->udev->dev, "out of memory\n");
239 retval = vendor_command(cytherm->udev, READ_PORT, 0, 0, buffer, 8);
241 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);
254 struct usb_cytherm *cytherm = usb_get_intfdata(intf);
262 dev_err(&cytherm->udev->dev, "out of memory\n");
273 retval = vendor_command(cytherm->udev, WRITE_PORT, 0,
276 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);
288 struct usb_cytherm *cytherm = usb_get_intfdata(intf);
295 dev_err(&cytherm->udev->dev, "out of memory\n");
299 retval = vendor_command(cytherm->udev, READ_PORT, 1, 0, buffer, 8);
301 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);
314 struct usb_cytherm *cytherm = usb_get_intfdata(intf);
322 dev_err(&cytherm->udev->dev, "out of memory\n");
333 retval = vendor_command(cytherm->udev, WRITE_PORT, 1,
336 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval);