Lines Matching refs:rc_map
26 static struct rc_map *rc_map; variable
49 if (rc_map[i].usercode == usercode) in ir_lookup_by_scancode()
52 for (j = 0; i < priv->num && j < rc_map[i].nbuttons; j++) { in ir_lookup_by_scancode()
53 if (rc_map[i].scan[j].scancode == scancode) { in ir_lookup_by_scancode()
54 if (priv->keycode == rc_map[i].scan[j].keycode) in ir_lookup_by_scancode()
58 priv->keycode = rc_map[i].scan[j].keycode; in ir_lookup_by_scancode()
84 rc_map[i].usercode = val; in ir_parse_keys()
85 if (rc_map[i].usercode == 0) { in ir_parse_keys()
89 debug("add new usercode:0x%x\n", rc_map[i].usercode); in ir_parse_keys()
93 rc_map[i].nbuttons = len / 2; in ir_parse_keys()
96 (u32 *)rc_map[i].scan, len); in ir_parse_keys()
104 rc_map[i].usercode, in ir_parse_keys()
105 rc_map[i].scan[j].scancode, in ir_parse_keys()
106 rc_map[i].scan[j].keycode); in ir_parse_keys()
290 rc_map = calloc(1, priv->num * sizeof(struct rc_map)); in rockchip_ir_probe()
291 if (!rc_map) { in rockchip_ir_probe()