Lines Matching defs:ctl_data
111 struct yld_ctl_packet *ctl_data;
296 struct yld_ctl_packet *p = yld->ctl_data;
303 memset(yld->ctl_data, 0, sizeof(*(yld->ctl_data)));
304 yld->ctl_data->cmd = CMD_RING_VOLUME;
305 yld->ctl_data->size = 1;
306 yld->ctl_data->data[0] = buf[0];
336 memset(yld->ctl_data, 0, sizeof(*(yld->ctl_data)));
337 yld->ctl_data->cmd = CMD_KEYPRESS;
338 yld->ctl_data->size = 1;
339 yld->ctl_data->sum = 0xff - CMD_KEYPRESS;
365 yld->ctl_data->data[0] = val;
369 yld->ctl_data->cmd = CMD_LED;
370 yld->ctl_data->sum = -1 - CMD_LED - val;
373 yld->ctl_data->cmd = CMD_DIALTONE;
374 yld->ctl_data->sum = -1 - CMD_DIALTONE - val;
377 yld->ctl_data->cmd = CMD_RINGTONE;
378 yld->ctl_data->sum = -1 - CMD_RINGTONE - val;
383 yld->ctl_data->cmd = CMD_SCANCODE;
384 yld->ctl_data->offset = cpu_to_be16(val);
385 yld->ctl_data->data[0] = 0;
386 yld->ctl_data->sum = -1 - CMD_SCANCODE - val;
390 if (len > sizeof(yld->ctl_data->data))
391 len = sizeof(yld->ctl_data->data);
395 yld->ctl_data->cmd = CMD_LCD;
396 yld->ctl_data->offset = cpu_to_be16(ix);
397 yld->ctl_data->size = len;
398 yld->ctl_data->sum = -CMD_LCD - ix - val - len;
403 yld->ctl_data->data[i] = val;
404 yld->ctl_data->sum -= val;
466 switch (yld->ctl_data->cmd) {
524 memset(yld->ctl_data, 0, sizeof(*(yld->ctl_data)));
525 yld->ctl_data->cmd = CMD_INIT;
526 yld->ctl_data->size = 10;
527 yld->ctl_data->sum = 0x100-CMD_INIT-10;
839 usb_free_coherent(yld->udev, USB_PKT_LEN, yld->ctl_data, yld->ctl_dma);
890 yld->ctl_data = usb_alloc_coherent(udev, USB_PKT_LEN,
892 if (!yld->ctl_data)
932 (void *)yld->ctl_req, yld->ctl_data, USB_PKT_LEN,