Lines Matching refs:cod
424 bool check_cod(const bt_bdaddr_t* remote_bdaddr, uint32_t cod) {
425 return get_cod(remote_bdaddr) == cod;
562 uint32_t cod;
580 cod = devclass2uint(dev_class);
581 BTIF_TRACE_DEBUG("%s cod is 0x%06x", __func__, cod);
582 if (cod == 0) {
583 /* Try to retrieve cod from storage */
584 BTIF_TRACE_DEBUG("%s cod is 0, checking cod from storage", __func__);
586 BT_PROPERTY_CLASS_OF_DEVICE, sizeof(cod), &cod);
589 BTIF_TRACE_DEBUG("%s cod retrieved from storage is 0x%06x", __func__, cod);
590 if (cod == 0) {
591 BTIF_TRACE_DEBUG("%s cod is again 0, set as unclassified", __func__);
592 cod = COD_UNCLASSIFIED;
597 BT_PROPERTY_CLASS_OF_DEVICE, sizeof(cod), &cod);
843 uint32_t cod;
860 cod = devclass2uint(p_pin_req->dev_class);
862 if (cod == 0) {
863 BTIF_TRACE_DEBUG("%s cod is 0, set as unclassified", __func__);
864 cod = COD_UNCLASSIFIED;
907 HAL_CBACK(bt_hal_cbacks, pin_request_cb, &bd_addr, &bd_name, cod,
923 uint32_t cod;
979 cod = devclass2uint(p_ssp_cfm_req->dev_class);
981 if (cod == 0) {
982 LOG_DEBUG(LOG_TAG, "%s cod is 0, set as unclassified", __func__);
983 cod = COD_UNCLASSIFIED;
987 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod,
996 uint32_t cod;
1014 cod = devclass2uint(p_ssp_key_notif->dev_class);
1016 if (cod == 0) {
1017 LOG_DEBUG(LOG_TAG, "%s cod is 0, set as unclassified", __func__);
1018 cod = COD_UNCLASSIFIED;
1021 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod,
1295 uint32_t cod = devclass2uint(p_search_data->inq_res.dev_class);
1296 BTIF_TRACE_DEBUG("%s cod is 0x%06x", __func__, cod);
1297 if (cod != 0) {
1299 BT_PROPERTY_CLASS_OF_DEVICE, sizeof(cod),
1300 &cod);
2848 uint32_t cod;
2865 cod = COD_UNCLASSIFIED;
2867 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod,
3043 uint32_t cod;
3071 cod = COD_UNCLASSIFIED;
3073 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod,
3089 uint32_t cod;
3105 cod = COD_UNCLASSIFIED;
3107 HAL_CBACK(bt_hal_cbacks, pin_request_cb, &bd_addr, &bd_name, cod, false);
3325 uint32_t cod = get_cod(bd_addr);
3329 0, ts, cod, device_type);