Home
last modified time | relevance | path

Searched refs:ecu (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/net/can/j1939/
Dbus.c19 struct j1939_ecu *ecu = container_of(kref, struct j1939_ecu, kref); in __j1939_ecu_release() local
20 struct j1939_priv *priv = ecu->priv; in __j1939_ecu_release()
22 list_del(&ecu->list); in __j1939_ecu_release()
23 kfree(ecu); in __j1939_ecu_release()
27 void j1939_ecu_put(struct j1939_ecu *ecu) in j1939_ecu_put() argument
29 kref_put(&ecu->kref, __j1939_ecu_release); in j1939_ecu_put()
32 static void j1939_ecu_get(struct j1939_ecu *ecu) in j1939_ecu_get() argument
34 kref_get(&ecu->kref); in j1939_ecu_get()
37 static bool j1939_ecu_is_mapped_locked(struct j1939_ecu *ecu) in j1939_ecu_is_mapped_locked() argument
39 struct j1939_priv *priv = ecu->priv; in j1939_ecu_is_mapped_locked()
[all …]
Daddress-claim.c87 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()
[all …]
Dj1939-priv.h68 struct j1939_ecu *ecu; member
96 void j1939_ecu_put(struct j1939_ecu *ecu);
124 void j1939_ecu_unmap_locked(struct j1939_ecu *ecu);
125 void j1939_ecu_unmap(struct j1939_ecu *ecu);
203 void j1939_ecu_timer_start(struct j1939_ecu *ecu);
204 void j1939_ecu_timer_cancel(struct j1939_ecu *ecu);