Lines Matching +defs:code +defs:key
145 __u16 code;
205 dprintk("key (0x%02x/0x%02x)\n", ir->b[0], ir->b[1]);
208 /* key pressed ? */
222 code = (((__u16)ir->b[0] & 0x7f) << 6) | (ir->b[1] >> 2);
224 codes[0] = (code >> 8) & 0xff;
225 codes[1] = code & 0xff;
260 * code length). We use this interval as the chip
302 * this is completely broken code. lirc_unregister_driver()
357 /* decompress key data into the given buffer */
359 unsigned int codeset, unsigned int key)
399 /* Read the id of the first key */
403 /* Unpack the first key's data */
413 /* Early out key found/not found */
414 if (key == id)
424 /* Binary search for the key */
431 if (*key_data == key) {
432 /* skip key id */
445 } else if (key > *key_data) {
601 zilog_error("unsupported code set file version (%u, expected"
644 /* Filch out the position of each code set */
665 * After the diffs we have the first key id + data -
672 /* Then we have keys-1 blocks of key id+diffs */
739 * to avoid losing scan code (in case when queue is awaken somewhere
788 static int send_code(struct IR *ir, unsigned int code, unsigned int key)
794 /* Get data for the codeset/key */
795 ret = get_key_data(data_block, code, key);
798 zilog_error("failed to get data for code %u, key %u -- check "
799 "lircd.conf entries\n", code, key);
888 dprintk("sent code %u, key %u\n", code, key);
893 * Write a code to the device. We take in a 32-bit number (an int) and then
894 * decode this to a codeset/key index. The key data is then decompressed and
932 /* Send the code */