Lines Matching refs:sub
34 static struct bt_mesh_hb_sub sub; variable
49 if (sub.dst == BT_MESH_ADDR_UNASSIGNED) { in sub_remaining()
76 sub.remaining = sub_remaining(); in notify_recv()
80 cb->recv(&sub, hops, feat); in notify_recv()
87 sub.remaining = 0; in notify_sub_end()
91 cb->sub_end(&sub); in notify_sub_end()
115 .sub = bt_mesh_subnet_get(pub.net_idx), in heartbeat_send()
124 if (!tx.sub || pub.dst == BT_MESH_ADDR_UNASSIGNED) { in heartbeat_send()
205 if (rx->ctx.addr != sub.src || rx->ctx.recv_dst != sub.dst) { in bt_mesh_hb_recv()
215 sub.min_hops = MIN(sub.min_hops, hops); in bt_mesh_hb_recv()
216 sub.max_hops = MAX(sub.max_hops, hops); in bt_mesh_hb_recv()
218 if (sub.count < 0xffff) { in bt_mesh_hb_recv()
219 sub.count++; in bt_mesh_hb_recv()
318 sub.src = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_hb_sub_set()
319 sub.dst = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_hb_sub_set()
320 sub.min_hops = 0U; in bt_mesh_hb_sub_set()
321 sub.max_hops = 0U; in bt_mesh_hb_sub_set()
322 sub.count = 0U; in bt_mesh_hb_sub_set()
323 sub.period = 0U; in bt_mesh_hb_sub_set()
325 sub.src = src; in bt_mesh_hb_sub_set()
326 sub.dst = dst; in bt_mesh_hb_sub_set()
327 sub.min_hops = BT_MESH_TTL_MAX; in bt_mesh_hb_sub_set()
328 sub.max_hops = 0U; in bt_mesh_hb_sub_set()
329 sub.count = 0U; in bt_mesh_hb_sub_set()
330 sub.period = period; in bt_mesh_hb_sub_set()
335 sub.period = 0U; in bt_mesh_hb_sub_set()
341 k_work_reschedule(&sub_timer, K_SECONDS(sub.period)); in bt_mesh_hb_sub_set()
348 sub.count = 0; in bt_mesh_hb_sub_reset_count()
353 *get = sub; in bt_mesh_hb_sub_get()