Lines Matching refs:pin
49 u16 cec_pin_rx_error_inj(struct cec_pin *pin) in cec_pin_rx_error_inj() argument
54 if (!(pin->error_inj[cmd] & CEC_ERROR_INJ_RX_MASK) && in cec_pin_rx_error_inj()
55 pin->rx_bit >= 18) in cec_pin_rx_error_inj()
56 cmd = pin->rx_msg.msg[1]; in cec_pin_rx_error_inj()
57 return (pin->error_inj[cmd] & CEC_ERROR_INJ_RX_MASK) ? cmd : in cec_pin_rx_error_inj()
61 u16 cec_pin_tx_error_inj(struct cec_pin *pin) in cec_pin_tx_error_inj() argument
65 if (!(pin->error_inj[cmd] & CEC_ERROR_INJ_TX_MASK) && in cec_pin_tx_error_inj()
66 pin->tx_msg.len > 1) in cec_pin_tx_error_inj()
67 cmd = pin->tx_msg.msg[1]; in cec_pin_tx_error_inj()
68 return (pin->error_inj[cmd] & CEC_ERROR_INJ_TX_MASK) ? cmd : in cec_pin_tx_error_inj()
75 struct cec_pin *pin = adap->pin; in cec_pin_error_inj_parse_line() local
91 memset(pin->error_inj, 0, sizeof(pin->error_inj)); in cec_pin_error_inj_parse_line()
92 pin->rx_toggle = pin->tx_toggle = false; in cec_pin_error_inj_parse_line()
93 pin->tx_ignore_nack_until_eom = false; in cec_pin_error_inj_parse_line()
94 pin->tx_custom_pulse = false; in cec_pin_error_inj_parse_line()
95 pin->tx_custom_low_usecs = CEC_TIM_CUSTOM_DEFAULT; in cec_pin_error_inj_parse_line()
96 pin->tx_custom_high_usecs = CEC_TIM_CUSTOM_DEFAULT; in cec_pin_error_inj_parse_line()
101 pin->error_inj[i] &= ~CEC_ERROR_INJ_RX_MASK; in cec_pin_error_inj_parse_line()
102 pin->rx_toggle = false; in cec_pin_error_inj_parse_line()
107 pin->error_inj[i] &= ~CEC_ERROR_INJ_TX_MASK; in cec_pin_error_inj_parse_line()
108 pin->tx_toggle = false; in cec_pin_error_inj_parse_line()
109 pin->tx_ignore_nack_until_eom = false; in cec_pin_error_inj_parse_line()
110 pin->tx_custom_pulse = false; in cec_pin_error_inj_parse_line()
111 pin->tx_custom_low_usecs = CEC_TIM_CUSTOM_DEFAULT; in cec_pin_error_inj_parse_line()
112 pin->tx_custom_high_usecs = CEC_TIM_CUSTOM_DEFAULT; in cec_pin_error_inj_parse_line()
116 pin->tx_ignore_nack_until_eom = true; in cec_pin_error_inj_parse_line()
120 pin->tx_custom_pulse = true; in cec_pin_error_inj_parse_line()
121 cec_pin_start_timer(pin); in cec_pin_error_inj_parse_line()
133 pin->tx_custom_low_usecs = usecs; in cec_pin_error_inj_parse_line()
141 pin->tx_custom_high_usecs = usecs; in cec_pin_error_inj_parse_line()
150 error = pin->error_inj + CEC_ERROR_INJ_OP_ANY; in cec_pin_error_inj_parse_line()
151 args = pin->error_inj_args[CEC_ERROR_INJ_OP_ANY]; in cec_pin_error_inj_parse_line()
154 error = pin->error_inj + op; in cec_pin_error_inj_parse_line()
155 args = pin->error_inj_args[op]; in cec_pin_error_inj_parse_line()
264 struct cec_pin *pin = adap->pin; in cec_pin_error_inj_show() local
311 for (i = 0; i < ARRAY_SIZE(pin->error_inj); i++) { in cec_pin_error_inj_show()
312 u64 e = pin->error_inj[i]; in cec_pin_error_inj_show()
329 pin->error_inj_args[i][arg_idx]); in cec_pin_error_inj_show()
334 if (pin->tx_ignore_nack_until_eom) in cec_pin_error_inj_show()
336 if (pin->tx_custom_pulse) in cec_pin_error_inj_show()
338 if (pin->tx_custom_low_usecs != CEC_TIM_CUSTOM_DEFAULT) in cec_pin_error_inj_show()
340 pin->tx_custom_low_usecs); in cec_pin_error_inj_show()
341 if (pin->tx_custom_high_usecs != CEC_TIM_CUSTOM_DEFAULT) in cec_pin_error_inj_show()
343 pin->tx_custom_high_usecs); in cec_pin_error_inj_show()