Lines Matching refs:pod

147 	struct usb_line6_podhd *pod = card->private_data;  in serial_number_show()  local
149 return sysfs_emit(buf, "%u\n", pod->serial_number); in serial_number_show()
156 struct usb_line6_podhd *pod = card->private_data; in firmware_version_show() local
158 return sysfs_emit(buf, "%06x\n", pod->firmware_version); in firmware_version_show()
183 static int podhd_dev_start(struct usb_line6_podhd *pod) in podhd_dev_start() argument
188 struct usb_device *usbdev = pod->line6.usbdev; in podhd_dev_start()
195 dev_err(pod->line6.ifcdev, "read request failed (error %d)\n", ret); in podhd_dev_start()
205 dev_err(pod->line6.ifcdev, in podhd_dev_start()
210 pod->firmware_version = in podhd_dev_start()
214 ret = line6_read_data(&pod->line6, 0xf000 + 0x08 * i, init_bytes, 8); in podhd_dev_start()
230 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_startup() local
232 podhd_dev_start(pod); in podhd_startup()
233 line6_read_serial_number(&pod->line6, &pod->serial_number); in podhd_startup()
240 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_disconnect() local
242 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO) { in podhd_disconnect()
246 pod->line6.properties->ctrl_if); in podhd_disconnect()
369 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_init() local
375 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL) { in podhd_init()
378 pod->line6.properties->ctrl_if); in podhd_init()
380 dev_err(pod->line6.ifcdev, "interface %d not found\n", in podhd_init()
381 pod->line6.properties->ctrl_if); in podhd_init()
387 dev_err(pod->line6.ifcdev, "can't claim interface %d, error %d\n", in podhd_init()
388 pod->line6.properties->ctrl_if, err); in podhd_init()
393 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO) { in podhd_init()
400 if (pod->line6.properties->capabilities & LINE6_CAP_PCM) { in podhd_init()
410 if (pod->line6.properties->capabilities & LINE6_CAP_HWMON_CTL) { in podhd_init()
411 podhd_set_monitor_level(pod, 100); in podhd_init()
419 if (!(pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO)) { in podhd_init()