Lines Matching refs:fc
69 static int flexcop_usb_readwrite_dw(struct flexcop_device *fc, u16 wRegOffsPCI, u32 *val, u8 read) in flexcop_usb_readwrite_dw() argument
71 struct flexcop_usb *fc_usb = fc->bus_specific; in flexcop_usb_readwrite_dw()
192 static int flexcop_usb_get_mac_addr(struct flexcop_device *fc, int extended) in flexcop_usb_get_mac_addr() argument
194 return flexcop_usb_memory_req(fc->bus_specific, B2C2_USB_READ_V8_MEM, in flexcop_usb_get_mac_addr()
196 fc->dvb_adapter.proposed_mac, 6); in flexcop_usb_get_mac_addr()
227 struct flexcop_usb *fc_usb = i2c->fc->bus_specific; in flexcop_usb_i2c_req()
273 static flexcop_ibi_value flexcop_usb_read_ibi_reg(struct flexcop_device *fc, in flexcop_usb_read_ibi_reg() argument
278 flexcop_usb_readwrite_dw(fc, reg, &val.raw, 1); in flexcop_usb_read_ibi_reg()
282 static int flexcop_usb_write_ibi_reg(struct flexcop_device *fc, in flexcop_usb_write_ibi_reg() argument
285 return flexcop_usb_readwrite_dw(fc, reg, &val.raw, 0); in flexcop_usb_write_ibi_reg()
376 static int flexcop_usb_stream_control(struct flexcop_device *fc, int onoff) in flexcop_usb_stream_control() argument
508 struct flexcop_device *fc = NULL; in flexcop_usb_probe() local
511 if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_usb))) == NULL) { in flexcop_usb_probe()
517 fc_usb = fc->bus_specific; in flexcop_usb_probe()
518 fc_usb->fc_dev = fc; in flexcop_usb_probe()
520 fc->read_ibi_reg = flexcop_usb_read_ibi_reg; in flexcop_usb_probe()
521 fc->write_ibi_reg = flexcop_usb_write_ibi_reg; in flexcop_usb_probe()
522 fc->i2c_request = flexcop_usb_i2c_request; in flexcop_usb_probe()
523 fc->get_mac_addr = flexcop_usb_get_mac_addr; in flexcop_usb_probe()
525 fc->stream_control = flexcop_usb_stream_control; in flexcop_usb_probe()
527 fc->pid_filtering = 1; in flexcop_usb_probe()
528 fc->bus_type = FC_USB; in flexcop_usb_probe()
530 fc->dev = &udev->dev; in flexcop_usb_probe()
531 fc->owner = THIS_MODULE; in flexcop_usb_probe()
540 if ((ret = flexcop_device_initialize(fc)) != 0) in flexcop_usb_probe()
551 flexcop_device_exit(fc); in flexcop_usb_probe()
555 flexcop_device_kfree(fc); in flexcop_usb_probe()