Lines Matching refs:tea
60 struct radio_tea5777 tea; member
75 static int shark_write_reg(struct radio_tea5777 *tea, u64 reg) in shark_write_reg() argument
77 struct shark_device *shark = tea->private_data; in shark_write_reg()
85 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-write: %*ph\n", in shark_write_reg()
93 v4l2_err(tea->v4l2_dev, "write error: %d\n", res); in shark_write_reg()
100 static int shark_read_reg(struct radio_tea5777 *tea, u32 *reg_ret) in shark_read_reg() argument
102 struct shark_device *shark = tea->private_data; in shark_read_reg()
113 v4l2_err(tea->v4l2_dev, "request-read error: %d\n", res); in shark_read_reg()
122 v4l2_err(tea->v4l2_dev, "read error: %d\n", res); in shark_read_reg()
129 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-read: %*ph\n", in shark_read_reg()
261 mutex_lock(&shark->tea.mutex); in usb_shark_disconnect()
263 radio_tea5777_exit(&shark->tea); in usb_shark_disconnect()
264 mutex_unlock(&shark->tea.mutex); in usb_shark_disconnect()
308 shark->tea.v4l2_dev = &shark->v4l2_dev; in usb_shark_probe()
309 shark->tea.private_data = shark; in usb_shark_probe()
310 shark->tea.ops = &shark_tea_ops; in usb_shark_probe()
311 shark->tea.has_am = true; in usb_shark_probe()
312 shark->tea.write_before_read = true; in usb_shark_probe()
313 strscpy(shark->tea.card, "Griffin radioSHARK2", in usb_shark_probe()
314 sizeof(shark->tea.card)); in usb_shark_probe()
315 usb_make_path(shark->usbdev, shark->tea.bus_info, in usb_shark_probe()
316 sizeof(shark->tea.bus_info)); in usb_shark_probe()
318 retval = radio_tea5777_init(&shark->tea, THIS_MODULE); in usb_shark_probe()
350 mutex_lock(&shark->tea.mutex); in usb_shark_resume()
351 ret = radio_tea5777_set_freq(&shark->tea); in usb_shark_resume()
352 mutex_unlock(&shark->tea.mutex); in usb_shark_resume()