Lines Matching refs:sf
240 static void cec_pin_show_cmd(struct seq_file *sf, u32 cmd, u8 mode) in cec_pin_show_cmd() argument
243 seq_puts(sf, "any,"); in cec_pin_show_cmd()
245 seq_printf(sf, "0x%02x,", cmd); in cec_pin_show_cmd()
248 seq_puts(sf, "once "); in cec_pin_show_cmd()
251 seq_puts(sf, "always "); in cec_pin_show_cmd()
254 seq_puts(sf, "toggle "); in cec_pin_show_cmd()
257 seq_puts(sf, "off "); in cec_pin_show_cmd()
262 int cec_pin_error_inj_show(struct cec_adapter *adap, struct seq_file *sf) in cec_pin_error_inj_show() argument
267 seq_puts(sf, "# Clear error injections:\n"); in cec_pin_error_inj_show()
268 seq_puts(sf, "# clear clear all rx and tx error injections\n"); in cec_pin_error_inj_show()
269 seq_puts(sf, "# rx-clear clear all rx error injections\n"); in cec_pin_error_inj_show()
270 seq_puts(sf, "# tx-clear clear all tx error injections\n"); in cec_pin_error_inj_show()
271 seq_puts(sf, "# <op> clear clear all rx and tx error injections for <op>\n"); in cec_pin_error_inj_show()
272 seq_puts(sf, "# <op> rx-clear clear all rx error injections for <op>\n"); in cec_pin_error_inj_show()
273 seq_puts(sf, "# <op> tx-clear clear all tx error injections for <op>\n"); in cec_pin_error_inj_show()
274 seq_puts(sf, "#\n"); in cec_pin_error_inj_show()
275 seq_puts(sf, "# RX error injection:\n"); in cec_pin_error_inj_show()
276 …seq_puts(sf, "# <op>[,<mode>] rx-nack NACK the message instead of sending an ACK\n"… in cec_pin_error_inj_show()
277 …seq_puts(sf, "# <op>[,<mode>] rx-low-drive <bit> force a low-drive condition at this bit posit… in cec_pin_error_inj_show()
278 …seq_puts(sf, "# <op>[,<mode>] rx-add-byte add a spurious byte to the received CEC messa… in cec_pin_error_inj_show()
279 …seq_puts(sf, "# <op>[,<mode>] rx-remove-byte remove the last byte from the received CEC me… in cec_pin_error_inj_show()
280 …seq_puts(sf, "# any[,<mode>] rx-arb-lost [<poll>] generate a POLL message to trigger an arbitra… in cec_pin_error_inj_show()
281 seq_puts(sf, "#\n"); in cec_pin_error_inj_show()
282 seq_puts(sf, "# TX error injection settings:\n"); in cec_pin_error_inj_show()
283 seq_puts(sf, "# tx-ignore-nack-until-eom ignore early NACKs until EOM\n"); in cec_pin_error_inj_show()
284 …seq_puts(sf, "# tx-custom-low-usecs <usecs> define the 'low' time for the custom pulse\n"… in cec_pin_error_inj_show()
285 …seq_puts(sf, "# tx-custom-high-usecs <usecs> define the 'high' time for the custom pulse\n… in cec_pin_error_inj_show()
286 …seq_puts(sf, "# tx-custom-pulse transmit the custom pulse once the bus is idl… in cec_pin_error_inj_show()
287 seq_puts(sf, "#\n"); in cec_pin_error_inj_show()
288 seq_puts(sf, "# TX error injection:\n"); in cec_pin_error_inj_show()
289 seq_puts(sf, "# <op>[,<mode>] tx-no-eom don't set the EOM bit\n"); in cec_pin_error_inj_show()
290 seq_puts(sf, "# <op>[,<mode>] tx-early-eom set the EOM bit one byte too soon\n"); in cec_pin_error_inj_show()
291 …seq_puts(sf, "# <op>[,<mode>] tx-add-bytes <num> append <num> (1-255) spurious bytes to the me… in cec_pin_error_inj_show()
292 seq_puts(sf, "# <op>[,<mode>] tx-remove-byte drop the last byte from the message\n"); in cec_pin_error_inj_show()
293 seq_puts(sf, "# <op>[,<mode>] tx-short-bit <bit> make this bit shorter than allowed\n"); in cec_pin_error_inj_show()
294 seq_puts(sf, "# <op>[,<mode>] tx-long-bit <bit> make this bit longer than allowed\n"); in cec_pin_error_inj_show()
295 seq_puts(sf, "# <op>[,<mode>] tx-custom-bit <bit> send the custom pulse instead of this bit\n"); in cec_pin_error_inj_show()
296 seq_puts(sf, "# <op>[,<mode>] tx-short-start send a start pulse that's too short\n"); in cec_pin_error_inj_show()
297 seq_puts(sf, "# <op>[,<mode>] tx-long-start send a start pulse that's too long\n"); in cec_pin_error_inj_show()
298 …seq_puts(sf, "# <op>[,<mode>] tx-custom-start send the custom pulse instead of the start pu… in cec_pin_error_inj_show()
299 seq_puts(sf, "# <op>[,<mode>] tx-last-bit <bit> stop sending after this bit\n"); in cec_pin_error_inj_show()
300 …seq_puts(sf, "# <op>[,<mode>] tx-low-drive <bit> force a low-drive condition at this bit posit… in cec_pin_error_inj_show()
301 seq_puts(sf, "#\n"); in cec_pin_error_inj_show()
302 seq_puts(sf, "# <op> CEC message opcode (0-255) or 'any'\n"); in cec_pin_error_inj_show()
303 seq_puts(sf, "# <mode> 'once' (default), 'always', 'toggle' or 'off'\n"); in cec_pin_error_inj_show()
304 seq_puts(sf, "# <bit> CEC message bit (0-159)\n"); in cec_pin_error_inj_show()
305 seq_puts(sf, "# 10 bits per 'byte': bits 0-7: data, bit 8: EOM, bit 9: ACK\n"); in cec_pin_error_inj_show()
306 …seq_puts(sf, "# <poll> CEC poll message used to test arbitration lost (0x00-0xff, default 0x0f… in cec_pin_error_inj_show()
307 seq_puts(sf, "# <usecs> microseconds (0-10000000, default 1000)\n"); in cec_pin_error_inj_show()
309 seq_puts(sf, "\nclear\n"); in cec_pin_error_inj_show()
325 cec_pin_show_cmd(sf, i, mode); in cec_pin_error_inj_show()
326 seq_puts(sf, cmd); in cec_pin_error_inj_show()
328 seq_printf(sf, " %u", in cec_pin_error_inj_show()
330 seq_puts(sf, "\n"); in cec_pin_error_inj_show()
335 seq_puts(sf, "tx-ignore-nack-until-eom\n"); in cec_pin_error_inj_show()
337 seq_puts(sf, "tx-custom-pulse\n"); in cec_pin_error_inj_show()
339 seq_printf(sf, "tx-custom-low-usecs %u\n", in cec_pin_error_inj_show()
342 seq_printf(sf, "tx-custom-high-usecs %u\n", in cec_pin_error_inj_show()