Lines Matching full:command
20 u8 command[11]; member
22 spinlock_t lock; /* protects writes to idx and command */
32 for (i = 0; i < sizeof(panel->command) - 1; ++i) { in ibm_panel_calculate_checksum()
33 sum += panel->command[i]; in ibm_panel_calculate_checksum()
52 if (panel->command[0] != 0xff && panel->command[1] != 0xf0) { in ibm_panel_process_command()
53 dev_dbg(&panel->input->dev, "command invalid: %02x %02x\n", in ibm_panel_process_command()
54 panel->command[0], panel->command[1]); in ibm_panel_process_command()
59 if (chksum != panel->command[sizeof(panel->command) - 1]) { in ibm_panel_process_command()
61 "command failed checksum: %u != %u\n", chksum, in ibm_panel_process_command()
62 panel->command[sizeof(panel->command) - 1]); in ibm_panel_process_command()
66 button = panel->command[2] & 0xf; in ibm_panel_process_command()
69 !(panel->command[2] & 0x80)); in ibm_panel_process_command()
89 if (panel->idx == sizeof(panel->command)) in ibm_panel_i2c_slave_cb()
93 "command incorrect size %u\n", panel->idx); in ibm_panel_i2c_slave_cb()
99 if (panel->idx < sizeof(panel->command)) in ibm_panel_i2c_slave_cb()
100 panel->command[panel->idx++] = *val; in ibm_panel_i2c_slave_cb()
103 * The command is too long and therefore invalid, so set the index in ibm_panel_i2c_slave_cb()
105 * the command will be rejected upon processing. in ibm_panel_i2c_slave_cb()