Lines Matching refs:pod
144 struct usb_line6_podhd *pod = card->private_data; in serial_number_show() local
146 return sprintf(buf, "%u\n", pod->serial_number); in serial_number_show()
153 struct usb_line6_podhd *pod = card->private_data; in firmware_version_show() local
155 return sprintf(buf, "%06x\n", pod->firmware_version); in firmware_version_show()
180 static int podhd_dev_start(struct usb_line6_podhd *pod) in podhd_dev_start() argument
185 struct usb_device *usbdev = pod->line6.usbdev; in podhd_dev_start()
196 dev_err(pod->line6.ifcdev, "read request failed (error %d)\n", ret); in podhd_dev_start()
206 dev_err(pod->line6.ifcdev, in podhd_dev_start()
211 pod->firmware_version = in podhd_dev_start()
215 ret = line6_read_data(&pod->line6, 0xf000 + 0x08 * i, init_bytes, 8); in podhd_dev_start()
232 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_startup() local
234 podhd_dev_start(pod); in podhd_startup()
235 line6_read_serial_number(&pod->line6, &pod->serial_number); in podhd_startup()
242 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_disconnect() local
244 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO) { in podhd_disconnect()
248 pod->line6.properties->ctrl_if); in podhd_disconnect()
261 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_init() local
267 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL) { in podhd_init()
270 pod->line6.properties->ctrl_if); in podhd_init()
272 dev_err(pod->line6.ifcdev, "interface %d not found\n", in podhd_init()
273 pod->line6.properties->ctrl_if); in podhd_init()
279 dev_err(pod->line6.ifcdev, "can't claim interface %d, error %d\n", in podhd_init()
280 pod->line6.properties->ctrl_if, err); in podhd_init()
285 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO) { in podhd_init()
292 if (pod->line6.properties->capabilities & LINE6_CAP_PCM) { in podhd_init()
302 if (!(pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO)) { in podhd_init()