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()
169 if (ecu && ecu->addr == skcb->addr.sa) { in j1939_ac_process()
208 if (!ecu && j1939_address_is_unicast(skcb->addr.sa)) in j1939_ac_process()
209 ecu = j1939_ecu_create_locked(priv, name); in j1939_ac_process()
211 if (IS_ERR_OR_NULL(ecu)) in j1939_ac_process()
215 j1939_ecu_timer_cancel(ecu); in j1939_ac_process()
218 j1939_ecu_unmap_locked(ecu); in j1939_ac_process()
223 if (ecu->addr != skcb->addr.sa) in j1939_ac_process()
224 j1939_ecu_unmap_locked(ecu); in j1939_ac_process()
225 ecu->addr = skcb->addr.sa; in j1939_ac_process()
229 if (ecu->name > prev->name) { in j1939_ac_process()
230 j1939_ecu_unmap_locked(ecu); in j1939_ac_process()
240 j1939_ecu_timer_start(ecu); in j1939_ac_process()
242 j1939_ecu_put(ecu); in j1939_ac_process()
250 struct j1939_ecu *ecu; in j1939_ac_recv() local
257 ecu = j1939_ecu_get_by_addr(priv, skcb->addr.sa); in j1939_ac_recv()
258 if (ecu) { in j1939_ac_recv()
259 skcb->addr.src_name = ecu->name; in j1939_ac_recv()
260 j1939_ecu_put(ecu); in j1939_ac_recv()
265 ecu = j1939_ecu_get_by_addr(priv, skcb->addr.da); in j1939_ac_recv()
266 if (ecu) { in j1939_ac_recv()
267 skcb->addr.dst_name = ecu->name; in j1939_ac_recv()
268 j1939_ecu_put(ecu); in j1939_ac_recv()