Home
last modified time | relevance | path

Searched refs:coredev (Results 1 – 10 of 10) sorted by relevance

/linux-4.19.296/drivers/media/common/siano/
Dsmsir.c23 void sms_ir_event(struct smscore_device_t *coredev, const char *buf, int len) in sms_ir_event() argument
34 ir_raw_event_store(coredev->ir.dev, &ev); in sms_ir_event()
36 ir_raw_event_handle(coredev->ir.dev); in sms_ir_event()
39 int sms_ir_init(struct smscore_device_t *coredev) in sms_ir_init() argument
42 int board_id = smscore_get_board_id(coredev); in sms_ir_init()
50 coredev->ir.controller = 0; /* Todo: vega/nova SPI number */ in sms_ir_init()
51 coredev->ir.timeout = IR_DEFAULT_TIMEOUT; in sms_ir_init()
53 coredev->ir.controller, coredev->ir.timeout); in sms_ir_init()
55 snprintf(coredev->ir.name, sizeof(coredev->ir.name), in sms_ir_init()
58 strlcpy(coredev->ir.phys, coredev->devpath, sizeof(coredev->ir.phys)); in sms_ir_init()
[all …]
Dsmscoreapi.c51 struct smscore_device_t *coredev; member
546 struct smscore_device_t *coredev = in smscore_register_hotplug() local
548 rc = hotplug(coredev, coredev->device, 1); in smscore_register_hotplug()
594 static void smscore_notify_clients(struct smscore_device_t *coredev) in smscore_notify_clients() argument
599 while (!list_empty(&coredev->clients)) { in smscore_notify_clients()
600 client = (struct smscore_client_t *) coredev->clients.next; in smscore_notify_clients()
605 static int smscore_notify_callbacks(struct smscore_device_t *coredev, in smscore_notify_callbacks() argument
614 rc = elem->hotplug(coredev, device, arrival); in smscore_notify_callbacks()
651 struct smscore_device_t **coredev, in smscore_register_device() argument
747 *coredev = dev; in smscore_register_device()
[all …]
Dsms-cards.c177 int sms_board_event(struct smscore_device_t *coredev, in sms_board_event() argument
234 static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable) in sms_set_gpio() argument
258 ret = smscore_configure_gpio(coredev, gpio, &gpioconfig); in sms_set_gpio()
262 return smscore_set_gpio(coredev, gpio, lvl); in sms_set_gpio()
265 int sms_board_setup(struct smscore_device_t *coredev) in sms_board_setup() argument
267 int board_id = smscore_get_board_id(coredev); in sms_board_setup()
273 sms_set_gpio(coredev, board->led_power, 0); in sms_board_setup()
274 sms_set_gpio(coredev, board->led_hi, 0); in sms_board_setup()
275 sms_set_gpio(coredev, board->led_lo, 0); in sms_board_setup()
280 sms_set_gpio(coredev, board->lna_ctrl, 0); in sms_board_setup()
[all …]
Dsmsir.h34 int sms_ir_init(struct smscore_device_t *coredev);
35 void sms_ir_exit(struct smscore_device_t *coredev);
36 void sms_ir_event(struct smscore_device_t *coredev,
39 inline static int sms_ir_init(struct smscore_device_t *coredev) { in sms_ir_init() argument
42 inline static void sms_ir_exit(struct smscore_device_t *coredev) {}; in sms_ir_exit() argument
43 inline static void sms_ir_event(struct smscore_device_t *coredev, in sms_ir_event() argument
Dsms-cards.h98 extern struct smscore_device_t *coredev;
121 int sms_board_event(struct smscore_device_t *coredev,
124 int sms_board_setup(struct smscore_device_t *coredev);
129 int sms_board_led_feedback(struct smscore_device_t *coredev, int led);
130 int sms_board_power(struct smscore_device_t *coredev, int onoff);
131 int sms_board_lna_control(struct smscore_device_t *coredev, int onoff);
Dsmsdvb-main.c78 struct smscore_device_t *coredev = client->coredev; in sms_board_dvb3_event() local
82 sms_board_event(coredev, BOARD_EVENT_BIND); in sms_board_dvb3_event()
86 sms_board_event(coredev, BOARD_EVENT_POWER_SUSPEND); in sms_board_dvb3_event()
90 sms_board_event(coredev, BOARD_EVENT_POWER_INIT); in sms_board_dvb3_event()
96 sms_board_event(coredev, BOARD_EVENT_FE_LOCK); in sms_board_dvb3_event()
103 sms_board_event(coredev, BOARD_EVENT_FE_UNLOCK); in sms_board_dvb3_event()
110 sms_board_event(coredev, BOARD_EVENT_MULTIPLEX_OK); in sms_board_dvb3_event()
117 sms_board_event(coredev, BOARD_EVENT_MULTIPLEX_ERRORS); in sms_board_dvb3_event()
131 struct smscore_device_t *coredev = client->coredev; in smsdvb_stats_not_ready() local
135 switch (smscore_get_device_mode(coredev)) { in smsdvb_stats_not_ready()
[all …]
Dsmscoreapi.h110 typedef int (*hotplug_t)(struct smscore_device_t *coredev,
1129 struct smscore_device_t **coredev,
1132 extern void smscore_unregister_device(struct smscore_device_t *coredev);
1134 extern int smscore_start_device(struct smscore_device_t *coredev);
1135 extern int smscore_load_firmware(struct smscore_device_t *coredev,
1139 extern int smscore_set_device_mode(struct smscore_device_t *coredev, int mode);
1140 extern int smscore_get_device_mode(struct smscore_device_t *coredev);
1142 extern int smscore_register_client(struct smscore_device_t *coredev,
1149 extern void smscore_onresponse(struct smscore_device_t *coredev,
1152 extern int smscore_get_common_buffer_size(struct smscore_device_t *coredev);
[all …]
Dsmsdvb-debugfs.c449 struct smscore_device_t *coredev = client->coredev; in smsdvb_debugfs_create() local
453 if (!smsdvb_debugfs_usb_root || !coredev->is_usb_device) in smsdvb_debugfs_create()
456 client->debugfs = debugfs_create_dir(coredev->devpath, in smsdvb_debugfs_create()
460 coredev->devpath); in smsdvb_debugfs_create()
Dsmsdvb.h35 struct smscore_device_t *coredev; member
/linux-4.19.296/drivers/media/mmc/siano/
Dsmssdio.c84 struct smscore_device_t *coredev; member
150 cb = smscore_getbuffer(smsdev->coredev); in smssdio_interrupt()
201 smscore_putbuffer(smsdev->coredev, cb); in smssdio_interrupt()
219 smscore_putbuffer(smsdev->coredev, cb); in smssdio_interrupt()
238 smscore_onresponse(smsdev->coredev, cb); in smssdio_interrupt()
282 ret = smscore_register_device(&params, &smsdev->coredev, GFP_DMA, NULL); in smssdio_probe()
286 smscore_set_board_id(smsdev->coredev, board_id); in smssdio_probe()
306 ret = smscore_start_device(smsdev->coredev); in smssdio_probe()
319 smscore_unregister_device(smsdev->coredev); in smssdio_probe()
334 smscore_putbuffer(smsdev->coredev, smsdev->split_cb); in smssdio_remove()
[all …]