Lines Matching full:duration
493 uint8_t hash[16], int32_t duration) in enc_id_adv() argument
535 duration, enc_id_ad, ARRAY_SIZE(enc_id_ad), in enc_id_adv()
546 static int node_id_adv(struct bt_mesh_subnet *sub, int32_t duration) in node_id_adv() argument
563 return enc_id_adv(sub, BT_MESH_ID_TYPE_NODE, tmp, duration); in node_id_adv()
566 static int priv_node_id_adv(struct bt_mesh_subnet *sub, int32_t duration) in priv_node_id_adv() argument
584 return enc_id_adv(sub, BT_MESH_ID_TYPE_PRIV_NODE, tmp, duration); in priv_node_id_adv()
587 static int priv_net_id_adv(struct bt_mesh_subnet *sub, int32_t duration) in priv_net_id_adv() argument
603 return enc_id_adv(sub, BT_MESH_ID_TYPE_PRIV_NET, tmp, duration); in priv_net_id_adv()
606 static int net_id_adv(struct bt_mesh_subnet *sub, int32_t duration) in net_id_adv() argument
628 err = bt_mesh_adv_gatt_start(&slow_adv_param, duration, net_id_ad, in net_id_adv()
714 int32_t duration; member
740 request->duration = !sub->priv_net_id_sent in proxy_adv_request_get()
748 request->duration = NODE_ID_TIMEOUT - (k_uptime_get_32() - sub->node_id_start); in proxy_adv_request_get()
760 request->duration = PROXY_RANDOM_UPDATE_INTERVAL; in proxy_adv_request_get()
766 request->duration = SYS_FOREVER_MS; in proxy_adv_request_get()
832 if ((sub_adv.request.duration != SYS_FOREVER_MS) && in gatt_proxy_advertise()
837 if (time_passed < sub_adv.request.duration && in gatt_proxy_advertise()
838 ((sub_adv.request.duration - time_passed) >= MSEC_PER_SEC)) { in gatt_proxy_advertise()
840 request.duration = sub_adv.request.duration - time_passed; in gatt_proxy_advertise()
853 request.duration = (request.duration == SYS_FOREVER_MS) in gatt_proxy_advertise()
855 : MIN(request.duration, max_adv_duration); in gatt_proxy_advertise()
865 err = net_id_adv(sub, request.duration); in gatt_proxy_advertise()
875 err = priv_net_id_adv(sub, request.duration); in gatt_proxy_advertise()
878 err = node_id_adv(sub, request.duration); in gatt_proxy_advertise()
881 err = priv_node_id_adv(sub, request.duration); in gatt_proxy_advertise()
893 LOG_DBG("Advertising %d ms for net_idx 0x%04x", request.duration, sub->net_idx); in gatt_proxy_advertise()