Lines Matching defs:mode

85 	u8 mode;
160 mode = CEC_ERROR_INJ_MODE_ONCE;
163 mode = CEC_ERROR_INJ_MODE_OFF;
165 mode = CEC_ERROR_INJ_MODE_ONCE;
167 mode = CEC_ERROR_INJ_MODE_ALWAYS;
169 mode = CEC_ERROR_INJ_MODE_TOGGLE;
232 *error |= (u64)mode << mode_offset;
240 static void cec_pin_show_cmd(struct seq_file *sf, u32 cmd, u8 mode)
246 switch (mode) {
276 seq_puts(sf, "# <op>[,<mode>] rx-nack NACK the message instead of sending an ACK\n");
277 seq_puts(sf, "# <op>[,<mode>] rx-low-drive <bit> force a low-drive condition at this bit position\n");
278 seq_puts(sf, "# <op>[,<mode>] rx-add-byte add a spurious byte to the received CEC message\n");
279 seq_puts(sf, "# <op>[,<mode>] rx-remove-byte remove the last byte from the received CEC message\n");
280 seq_puts(sf, "# any[,<mode>] rx-arb-lost [<poll>] generate a POLL message to trigger an arbitration lost\n");
289 seq_puts(sf, "# <op>[,<mode>] tx-no-eom don't set the EOM bit\n");
290 seq_puts(sf, "# <op>[,<mode>] tx-early-eom set the EOM bit one byte too soon\n");
291 seq_puts(sf, "# <op>[,<mode>] tx-add-bytes <num> append <num> (1-255) spurious bytes to the message\n");
292 seq_puts(sf, "# <op>[,<mode>] tx-remove-byte drop the last byte from the message\n");
293 seq_puts(sf, "# <op>[,<mode>] tx-short-bit <bit> make this bit shorter than allowed\n");
294 seq_puts(sf, "# <op>[,<mode>] tx-long-bit <bit> make this bit longer than allowed\n");
295 seq_puts(sf, "# <op>[,<mode>] tx-custom-bit <bit> send the custom pulse instead of this bit\n");
296 seq_puts(sf, "# <op>[,<mode>] tx-short-start send a start pulse that's too short\n");
297 seq_puts(sf, "# <op>[,<mode>] tx-long-start send a start pulse that's too long\n");
298 seq_puts(sf, "# <op>[,<mode>] tx-custom-start send the custom pulse instead of the start pulse\n");
299 seq_puts(sf, "# <op>[,<mode>] tx-last-bit <bit> stop sending after this bit\n");
300 seq_puts(sf, "# <op>[,<mode>] tx-low-drive <bit> force a low-drive condition at this bit position\n");
303 seq_puts(sf, "# <mode> 'once' (default), 'always', 'toggle' or 'off'\n");
316 unsigned int mode;
322 mode = (e >> mode_offset) & CEC_ERROR_INJ_MODE_MASK;
323 if (!mode)
325 cec_pin_show_cmd(sf, i, mode);