Lines Matching full:period
77 int period; in bt_mesh_model_pub_period_get() local
83 switch (mod->pub->period >> 6) { in bt_mesh_model_pub_period_get()
86 period = K_MSEC((mod->pub->period & BIT_MASK(6)) * 100); in bt_mesh_model_pub_period_get()
90 period = K_SECONDS(mod->pub->period & BIT_MASK(6)); in bt_mesh_model_pub_period_get()
94 period = K_SECONDS((mod->pub->period & BIT_MASK(6)) * 10); in bt_mesh_model_pub_period_get()
98 period = K_MINUTES((mod->pub->period & BIT_MASK(6)) * 10); in bt_mesh_model_pub_period_get()
104 return period >> mod->pub->period_div; in bt_mesh_model_pub_period_get()
110 u32_t elapsed, period; in next_period() local
112 period = bt_mesh_model_pub_period_get(mod); in next_period()
113 if (!period) { in next_period()
121 if (elapsed > period) { in next_period()
122 BT_WARN("Publication sending took longer than the period"); in next_period()
127 return period - elapsed; in next_period()
202 BT_DBG("period %u ms", period_ms); in mod_publish()