Lines Matching refs:pin

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