Lines Matching refs:ecu
87 struct j1939_ecu *ecu; in j1939_ac_fixup() local
93 ecu = j1939_ecu_get_by_name(priv, skcb->addr.src_name); in j1939_ac_fixup()
94 if (!ecu) in j1939_ac_fixup()
97 if (ecu->addr != skcb->addr.sa) in j1939_ac_fixup()
99 j1939_ecu_unmap(ecu); in j1939_ac_fixup()
100 j1939_ecu_put(ecu); in j1939_ac_fixup()
129 struct j1939_ecu *ecu, *prev; in j1939_ac_process() local
167 ecu = j1939_ecu_get_by_name_locked(priv, name); in j1939_ac_process()
168 if (!ecu && j1939_address_is_unicast(skcb->addr.sa)) in j1939_ac_process()
169 ecu = j1939_ecu_create_locked(priv, name); in j1939_ac_process()
171 if (IS_ERR_OR_NULL(ecu)) in j1939_ac_process()
175 j1939_ecu_timer_cancel(ecu); in j1939_ac_process()
178 j1939_ecu_unmap_locked(ecu); in j1939_ac_process()
183 if (ecu->addr != skcb->addr.sa) in j1939_ac_process()
184 j1939_ecu_unmap_locked(ecu); in j1939_ac_process()
185 ecu->addr = skcb->addr.sa; in j1939_ac_process()
189 if (ecu->name > prev->name) { in j1939_ac_process()
190 j1939_ecu_unmap_locked(ecu); in j1939_ac_process()
200 j1939_ecu_timer_start(ecu); in j1939_ac_process()
202 j1939_ecu_put(ecu); in j1939_ac_process()
210 struct j1939_ecu *ecu; in j1939_ac_recv() local
217 ecu = j1939_ecu_get_by_addr(priv, skcb->addr.sa); in j1939_ac_recv()
218 if (ecu) { in j1939_ac_recv()
219 skcb->addr.src_name = ecu->name; in j1939_ac_recv()
220 j1939_ecu_put(ecu); in j1939_ac_recv()
225 ecu = j1939_ecu_get_by_addr(priv, skcb->addr.da); in j1939_ac_recv()
226 if (ecu) { in j1939_ac_recv()
227 skcb->addr.dst_name = ecu->name; in j1939_ac_recv()
228 j1939_ecu_put(ecu); in j1939_ac_recv()