Lines Matching refs:cec

107 	struct secocec_data *cec = cec_get_drvdata(adap);  in secocec_adap_enable()  local
108 struct device *dev = cec->dev; in secocec_adap_enable()
256 struct secocec_data *cec = cec_get_drvdata(adap); in secocec_rx_done() local
257 struct device *dev = cec->dev; in secocec_rx_done()
319 cec_received_msg(cec->cec_adap, &msg); in secocec_rx_done()
349 struct secocec_data *cec = priv; in secocec_ir_probe() local
350 struct device *dev = cec->dev; in secocec_ir_probe()
355 cec->ir = devm_rc_allocate_device(dev, RC_DRIVER_SCANCODE); in secocec_ir_probe()
356 if (!cec->ir) in secocec_ir_probe()
359 snprintf(cec->ir_input_phys, sizeof(cec->ir_input_phys), in secocec_ir_probe()
362 cec->ir->device_name = dev_name(dev); in secocec_ir_probe()
363 cec->ir->input_phys = cec->ir_input_phys; in secocec_ir_probe()
364 cec->ir->input_id.bustype = BUS_HOST; in secocec_ir_probe()
365 cec->ir->input_id.vendor = 0; in secocec_ir_probe()
366 cec->ir->input_id.product = 0; in secocec_ir_probe()
367 cec->ir->input_id.version = 1; in secocec_ir_probe()
368 cec->ir->driver_name = SECOCEC_DEV_NAME; in secocec_ir_probe()
369 cec->ir->allowed_protocols = RC_PROTO_BIT_RC5; in secocec_ir_probe()
370 cec->ir->priv = cec; in secocec_ir_probe()
371 cec->ir->map_name = RC_MAP_HAUPPAUGE; in secocec_ir_probe()
372 cec->ir->timeout = MS_TO_US(100); in secocec_ir_probe()
395 status = devm_rc_register_device(dev, cec->ir); in secocec_ir_probe()
399 cec->ir = NULL; in secocec_ir_probe()
417 struct secocec_data *cec = priv; in secocec_ir_rx() local
418 struct device *dev = cec->dev; in secocec_ir_rx()
421 if (!cec->ir) in secocec_ir_rx()
432 rc_keydown(cec->ir, RC_PROTO_RC5, RC_SCANCODE_RC5(addr, key), toggle); in secocec_ir_rx()
456 struct secocec_data *cec = priv; in secocec_irq_handler() local
457 struct device *dev = cec->dev; in secocec_irq_handler()
473 secocec_rx_done(cec->cec_adap, cec_val); in secocec_irq_handler()
476 secocec_tx_done(cec->cec_adap, cec_val); in secocec_irq_handler()
489 secocec_ir_rx(cec); in secocec_irq_handler()