Lines Matching defs:sf

240 static void cec_pin_show_cmd(struct seq_file *sf, u32 cmd, u8 mode)
243 seq_puts(sf, "any,");
245 seq_printf(sf, "0x%02x,", cmd);
248 seq_puts(sf, "once ");
251 seq_puts(sf, "always ");
254 seq_puts(sf, "toggle ");
257 seq_puts(sf, "off ");
262 int cec_pin_error_inj_show(struct cec_adapter *adap, struct seq_file *sf)
267 seq_puts(sf, "# Clear error injections:\n");
268 seq_puts(sf, "# clear clear all rx and tx error injections\n");
269 seq_puts(sf, "# rx-clear clear all rx error injections\n");
270 seq_puts(sf, "# tx-clear clear all tx error injections\n");
271 seq_puts(sf, "# <op> clear clear all rx and tx error injections for <op>\n");
272 seq_puts(sf, "# <op> rx-clear clear all rx error injections for <op>\n");
273 seq_puts(sf, "# <op> tx-clear clear all tx error injections for <op>\n");
274 seq_puts(sf, "#\n");
275 seq_puts(sf, "# RX error injection:\n");
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");
281 seq_puts(sf, "#\n");
282 seq_puts(sf, "# TX error injection settings:\n");
283 seq_puts(sf, "# tx-ignore-nack-until-eom ignore early NACKs until EOM\n");
284 seq_puts(sf, "# tx-custom-low-usecs <usecs> define the 'low' time for the custom pulse\n");
285 seq_puts(sf, "# tx-custom-high-usecs <usecs> define the 'high' time for the custom pulse\n");
286 seq_puts(sf, "# tx-custom-pulse transmit the custom pulse once the bus is idle\n");
287 seq_puts(sf, "#\n");
288 seq_puts(sf, "# TX error injection:\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");
301 seq_puts(sf, "#\n");
302 seq_puts(sf, "# <op> CEC message opcode (0-255) or 'any'\n");
303 seq_puts(sf, "# <mode> 'once' (default), 'always', 'toggle' or 'off'\n");
304 seq_puts(sf, "# <bit> CEC message bit (0-159)\n");
305 seq_puts(sf, "# 10 bits per 'byte': bits 0-7: data, bit 8: EOM, bit 9: ACK\n");
306 seq_puts(sf, "# <poll> CEC poll message used to test arbitration lost (0x00-0xff, default 0x0f)\n");
307 seq_puts(sf, "# <usecs> microseconds (0-10000000, default 1000)\n");
309 seq_puts(sf, "\nclear\n");
325 cec_pin_show_cmd(sf, i, mode);
326 seq_puts(sf, cmd);
328 seq_printf(sf, " %u",
330 seq_puts(sf, "\n");
335 seq_puts(sf, "tx-ignore-nack-until-eom\n");
337 seq_puts(sf, "tx-custom-pulse\n");
339 seq_printf(sf, "tx-custom-low-usecs %u\n",
342 seq_printf(sf, "tx-custom-high-usecs %u\n",