Lines Matching refs:uuid_length
298 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_service()
302 if (btp2bt_uuid(cp->uuid, cp->uuid_length, &uuid.uuid)) { in add_service()
502 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_characteristic()
512 if (btp2bt_uuid(cp->uuid, cp->uuid_length, &uuid.uuid)) { in add_characteristic()
692 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_descriptor()
706 if (btp2bt_uuid(cp->uuid, cp->uuid_length, &uuid.uuid)) { in add_descriptor()
1041 uint8_t uuid_length; in disc_prim_cb() local
1052 uuid_length = data->uuid->type == BT_UUID_TYPE_16 ? 2 : 16; in disc_prim_cb()
1054 service = gatt_buf_reserve(sizeof(*service) + uuid_length); in disc_prim_cb()
1063 service->uuid_length = uuid_length; in disc_prim_cb()
1068 memcpy(service->uuid, &u16, uuid_length); in disc_prim_cb()
1071 uuid_length); in disc_prim_cb()
1122 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in disc_prim_uuid()
1131 if (btp2bt_uuid(cp->uuid, cp->uuid_length, &uuid.uuid)) { in disc_prim_uuid()
1168 uint8_t uuid_length; in find_included_cb() local
1179 uuid_length = data->uuid->type == BT_UUID_TYPE_16 ? 2 : 16; in find_included_cb()
1181 included = gatt_buf_reserve(sizeof(*included) + uuid_length); in find_included_cb()
1191 included->service.uuid_length = uuid_length; in find_included_cb()
1196 memcpy(included->service.uuid, &u16, uuid_length); in find_included_cb()
1199 uuid_length); in find_included_cb()
1247 uint8_t uuid_length; in disc_chrc_cb() local
1258 uuid_length = data->uuid->type == BT_UUID_TYPE_16 ? 2 : 16; in disc_chrc_cb()
1260 chrc = gatt_buf_reserve(sizeof(*chrc) + uuid_length); in disc_chrc_cb()
1270 chrc->uuid_length = uuid_length; in disc_chrc_cb()
1275 memcpy(chrc->uuid, &u16, uuid_length); in disc_chrc_cb()
1277 memcpy(chrc->uuid, BT_UUID_128(data->uuid)->val, uuid_length); in disc_chrc_cb()
1328 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in disc_chrc_uuid()
1337 if (btp2bt_uuid(cp->uuid, cp->uuid_length, &uuid.uuid)) { in disc_chrc_uuid()
1374 uint8_t uuid_length; in disc_all_desc_cb() local
1383 uuid_length = attr->uuid->type == BT_UUID_TYPE_16 ? 2 : 16; in disc_all_desc_cb()
1385 descriptor = gatt_buf_reserve(sizeof(*descriptor) + uuid_length); in disc_all_desc_cb()
1393 descriptor->uuid_length = uuid_length; in disc_all_desc_cb()
1398 memcpy(descriptor->uuid, &u16, uuid_length); in disc_all_desc_cb()
1401 uuid_length); in disc_all_desc_cb()
1566 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in read_uuid()
1575 if (btp2bt_uuid(cp->uuid, cp->uuid_length, &uuid.uuid)) { in read_uuid()