Searched refs:ppkb (Results 1 – 1 of 1) sorted by relevance
208 struct pinephone_keyboard *ppkb = i2c_get_clientdata(client); in ppkb_update() local209 unsigned short *keymap = ppkb->input->keycode; in ppkb_update()211 u8 *old_buf = ppkb->buf[!ppkb->buf_swap]; in ppkb_update()212 u8 *new_buf = ppkb->buf[ppkb->buf_swap]; in ppkb_update()223 crc = crc8(ppkb->crc_table, &new_buf[1], PPKB_COLS, CRC8_INIT_VALUE); in ppkb_update()229 ppkb->buf_swap = !ppkb->buf_swap; in ppkb_update()252 fn_state = value ? ppkb->fn_pressed : ppkb->fn_state[col] & mask; in ppkb_update()254 ppkb->fn_state[col] ^= mask; in ppkb_update()259 input_event(ppkb->input, EV_MSC, MSC_SCAN, code); in ppkb_update()260 input_report_key(ppkb->input, keymap[code], value); in ppkb_update()[all …]