Lines Matching refs:rsp
3825 const struct bt_att_handle_group *rsp = pdu; in gatt_find_type_rsp() local
3844 start_handle = sys_le16_to_cpu(rsp[i].start_handle); in gatt_find_type_rsp()
3845 end_handle = sys_le16_to_cpu(rsp[i].end_handle); in gatt_find_type_rsp()
4011 const struct bt_att_read_type_rsp *rsp; in parse_include() local
4020 if (length < sizeof(*rsp)) { in parse_include()
4025 rsp = pdu; in parse_include()
4028 switch (rsp->len) { in parse_include()
4040 LOG_ERR("Invalid data len %u", rsp->len); in parse_include()
4045 for (length--, pdu = rsp->data; length >= rsp->len; in parse_include()
4046 length -= rsp->len, pdu = (const uint8_t *)pdu + rsp->len) { in parse_include()
4111 const struct bt_att_read_type_rsp *rsp; in parse_characteristic() local
4119 if (length < sizeof(*rsp)) { in parse_characteristic()
4124 rsp = pdu; in parse_characteristic()
4127 switch (rsp->len) { in parse_characteristic()
4135 LOG_ERR("Invalid data len %u", rsp->len); in parse_characteristic()
4140 for (length--, pdu = rsp->data; length >= rsp->len; in parse_characteristic()
4141 length -= rsp->len, pdu = (const uint8_t *)pdu + rsp->len) { in parse_characteristic()
4199 const struct bt_att_read_type_rsp *rsp; in parse_read_std_char_desc() local
4209 if (length < sizeof(*rsp)) { in parse_read_std_char_desc()
4214 rsp = pdu; in parse_read_std_char_desc()
4217 for (length--, pdu = rsp->data; length >= rsp->len; in parse_read_std_char_desc()
4218 length -= rsp->len, pdu = (const uint8_t *)pdu + rsp->len) { in parse_read_std_char_desc()
4378 const struct bt_att_read_group_rsp *rsp; in parse_service() local
4386 if (length < sizeof(*rsp)) { in parse_service()
4391 rsp = pdu; in parse_service()
4394 switch (rsp->len) { in parse_service()
4402 LOG_ERR("Invalid data len %u", rsp->len); in parse_service()
4407 for (length--, pdu = rsp->data; length >= rsp->len; in parse_service()
4408 length -= rsp->len, pdu = (const uint8_t *)pdu + rsp->len) { in parse_service()
4523 const struct bt_att_find_info_rsp *rsp; in gatt_find_info_rsp() local
4545 if (length < sizeof(*rsp)) { in gatt_find_info_rsp()
4550 rsp = pdu; in gatt_find_info_rsp()
4553 switch (rsp->format) { in gatt_find_info_rsp()
4563 LOG_ERR("Invalid format %u", rsp->format); in gatt_find_info_rsp()
4575 for (i = length / len, pdu = rsp->info; i != 0; in gatt_find_info_rsp()
4722 const struct bt_att_read_type_rsp *rsp = pdu; in parse_read_by_uuid() local
4728 for (length--, pdu = rsp->data; length; in parse_read_by_uuid()
4729 length -= rsp->len, pdu = (const uint8_t *)pdu + rsp->len) { in parse_read_by_uuid()
4742 len = rsp->len > length ? length - 2 : rsp->len - 2; in parse_read_by_uuid()
4744 LOG_DBG("handle 0x%04x len %u value %u", handle, rsp->len, len); in parse_read_by_uuid()
4764 if (rsp->len > length) { in parse_read_by_uuid()
4938 const struct bt_att_read_mult_vl_rsp *rsp; in gatt_read_mult_vl_rsp() local
4950 while (buf.len >= sizeof(*rsp)) { in gatt_read_mult_vl_rsp()
4953 rsp = net_buf_simple_pull_mem(&buf, sizeof(*rsp)); in gatt_read_mult_vl_rsp()
4954 len = sys_le16_to_cpu(rsp->len); in gatt_read_mult_vl_rsp()
4964 params->func(conn, 0, params, rsp->value, len); in gatt_read_mult_vl_rsp()
5157 const struct bt_att_prepare_write_rsp *rsp; in gatt_prepare_write_rsp() local
5169 if (length < sizeof(*rsp)) { in gatt_prepare_write_rsp()
5174 rsp = pdu; in gatt_prepare_write_rsp()
5176 len = length - sizeof(*rsp); in gatt_prepare_write_rsp()
5186 data_valid = memcmp(params->data, rsp->value, len) == 0; in gatt_prepare_write_rsp()
5187 if (params->offset != rsp->offset || !data_valid) { in gatt_prepare_write_rsp()
5361 bt_att_func_t rsp) in gatt_write_ccc() argument
5372 return gatt_req_send(conn, rsp, params, in gatt_write_ccc()