Lines Matching defs:IR

2  * i2c IR lirc driver for devices with zilog IR processors
16 * modified for Hauppauge PVR-150 IR TX device by
67 struct IR;
71 struct IR *ir;
87 struct IR *ir;
98 struct IR {
118 /* IR transceiver instance object list */
122 * b. struct IR kref get()s and put()s
128 /* Block size for IR transmitter */
131 /* Hauppauge IR transmitter data */
162 static bool tx_only; /* only handle the IR Tx function */
173 /* struct IR reference counting */
174 static struct IR *get_ir_device(struct IR *ir, bool ir_devices_lock_held)
188 struct IR *ir = container_of(ref, struct IR, ref);
208 static int put_ir_device(struct IR *ir, bool ir_devices_lock_held)
223 static struct IR_rx *get_ir_rx(struct IR *ir)
249 struct IR *ir = rx->ir;
266 struct IR *ir = rx->ir;
285 static struct IR_tx *get_ir_tx(struct IR *ir)
300 struct IR *ir = tx->ir;
311 struct IR *ir = tx->ir;
322 static int add_to_buf(struct IR *ir)
385 zilog_error("unable to read from the IR chip "
391 zilog_error("polling the IR receiver chip failed, "
472 struct IR *ir = arg;
651 /* send a block of data to the IR TX device */
676 /* send boot data to the IR TX device */
720 zilog_error("unexpected IR TX init response: %02x\n", buf[0]);
723 zilog_notify("Zilog/Hauppauge IR blaster firmware version "
741 dprintk("successfully unloaded IR blaster firmware\n");
745 /* unload "firmware" for the IR TX device */
753 /* load "firmware" for the IR TX device */
823 dprintk("%u IR blaster codesets loaded\n", tx_data->num_code_sets);
900 struct IR *ir = filep->private_data;
982 /* send a keypress to the IR TX device */
1033 zilog_error("unexpected IR TX response #1: %02x\n",
1073 zilog_error("IR TX chip never got ready: last i2c_master_send "
1085 zilog_error("unexpected IR TX response #2: %02x\n", buf[0]);
1103 struct IR *ir = filep->private_data;
1176 zilog_error("sending to the IR transmitter chip "
1180 zilog_error("unable to send to the IR chip "
1210 struct IR *ir = filep->private_data;
1242 struct IR *ir = filep->private_data;
1292 static struct IR *get_ir_device_by_minor(unsigned int minor)
1294 struct IR *ir;
1295 struct IR *ret = NULL;
1313 * Open the IR device. Get hold of our IR structure and
1318 struct IR *ir;
1321 /* find our IR struct */
1329 /* stash our IR struct */
1336 /* Close the IR device */
1339 /* find our IR struct */
1340 struct IR *ir = filep->private_data;
1370 .name = "Zilog/Hauppauge i2c IR",
1430 static struct IR *get_ir_device_by_adapter(struct i2c_adapter *adapter)
1432 struct IR *ir;
1448 struct IR *ir;
1459 * The IR receiver is at i2c address 0x71.
1460 * The IR transmitter is at i2c address 0x70.
1468 zilog_info("probing IR %s on %s (i2c-%d)\n",
1473 /* Use a single struct IR instance for both the Rx and Tx functions */
1476 ir = kzalloc(sizeof(struct IR), GFP_KERNEL);
1550 zilog_info("probe of IR Tx on %s (i2c-%d) done. Waiting"
1551 " on IR Rx.\n", adap->name, adap->nr);
1589 zilog_error("%s: could not start IR Rx polling thread"
1602 zilog_info("probe of IR Rx on %s (i2c-%d) done. Waiting"
1603 " on IR Tx.\n", adap->name, adap->nr);
1617 zilog_info("IR unit on %s (i2c-%d) registered as lirc%d and ready\n",
1626 zilog_info("probe of IR %s on %s (i2c-%d) done\n",
1639 zilog_error("%s: probing IR %s on %s (i2c-%d) failed with %d\n",
1650 zilog_notify("Zilog/Hauppauge IR driver initializing\n");
1670 zilog_notify("Zilog/Hauppauge IR driver unloaded\n");
1691 MODULE_PARM_DESC(tx_only, "Only handle the IR transmit function");