Searched refs:payload_size (Results 1 – 8 of 8) sorted by relevance
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/gatt/ |
D | att_protocol.c | 161 BT_HDR *attp_build_read_by_type_value_cmd (UINT16 payload_size, tGATT_FIND_TYPE_VALUE *p_value_type) in attp_build_read_by_type_value_cmd() argument 167 …if ((p_buf = (BT_HDR *)osi_malloc((UINT16)(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET))) != … in attp_build_read_by_type_value_cmd() 179 if (p_value_type->value_len + p_buf->len > payload_size ) { in attp_build_read_by_type_value_cmd() 180 len = payload_size - p_buf->len; in attp_build_read_by_type_value_cmd() 198 BT_HDR *attp_build_read_multi_cmd(UINT16 payload_size, UINT16 num_handle, UINT16 *p_handle) in attp_build_read_multi_cmd() argument 211 for (i = 0; i < num_handle && p_buf->len + 2 <= payload_size; i ++) { in attp_build_read_multi_cmd() 286 BT_HDR *attp_build_value_cmd (UINT16 payload_size, UINT8 op_code, UINT16 handle, in attp_build_value_cmd() argument 292 …if ((p_buf = (BT_HDR *)osi_malloc((UINT16)(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET))) != … in attp_build_value_cmd() 317 if (payload_size - p_buf->len < len) { in attp_build_value_cmd() 318 len = payload_size - p_buf->len; in attp_build_value_cmd() [all …]
|
D | gatt_sr.c | 54 if (len > p_tcb->payload_size){ in gatt_send_packet() 58 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatt_send_packet() 303 if (!process_read_multi_rsp (&p_tcb->sr_cmd, status, p_msg, p_tcb->payload_size)) { in gatt_sr_process_app_rsp() 633 if (p_msg->len + p_msg->offset <= p_tcb->payload_size && in gatt_build_primary_service_rsp() 812 UINT16 msg_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_primary_service_req() 878 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info() 889 buf_len = p_tcb->payload_size - 2; in gatts_process_find_info() 951 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; in gatts_process_mtu_req() 953 p_tcb->payload_size = gatt_default.local_mtu; in gatts_process_mtu_req() 955 p_tcb->payload_size = mtu; in gatts_process_mtu_req() [all …]
|
D | gatt_cl.c | 235 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE)) { in gatt_act_write() 350 if (to_send > (p_tcb->payload_size - GATT_WRITE_LONG_HDR_SIZE)) { /* 2 = UINT16 offset bytes */ in gatt_send_prepare_write() 351 to_send = p_tcb->payload_size - GATT_WRITE_LONG_HDR_SIZE; in gatt_send_prepare_write() 731 if ((value_len > (p_tcb->payload_size - 2)) || (value_len > (len - 1)) ) { in gatt_process_read_by_type_rsp() 735 op_code, value_len, (p_tcb->payload_size - 2), (len - 1)); in gatt_process_read_by_type_rsp() 812 if ( p_clcb->counter == (p_clcb->p_tcb->payload_size - 4)) { in gatt_process_read_by_type_rsp() 917 if (len == (p_tcb->payload_size - 1) && /* full packet for read or read blob rsp */ in gatt_process_read_rsp() 988 if (mtu < p_tcb->payload_size && mtu >= GATT_DEF_BLE_MTU_SIZE) { in gatt_process_mtu_rsp() 989 p_tcb->payload_size = mtu; in gatt_process_mtu_rsp() 1108 if (len >= p_tcb->payload_size) { in gatt_client_handle_server_rsp() [all …]
|
D | gatt_auth.c | 48 UINT16 payload_size = p_clcb->p_tcb->payload_size; in gatt_sign_data() local 64 if ((payload_size - GATT_AUTH_SIGN_LEN - 3) < p_attr->len) { in gatt_sign_data() 65 p_attr->len = payload_size - GATT_AUTH_SIGN_LEN - 3; in gatt_sign_data()
|
D | gatt_main.c | 477 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; in gatt_le_connect_cback() 495 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; in gatt_le_connect_cback() 766 p_tcb->payload_size = p_cfg->mtu; in gatt_l2cif_config_ind_cback() 768 p_tcb->payload_size = L2CAP_DEFAULT_MTU; in gatt_l2cif_config_ind_cback()
|
D | gatt_api.c | 832 p_clcb->p_tcb->payload_size = mtu; in GATTC_ConfigureMTU()
|
D | gatt_utils.c | 2279 cb_data.mtu = p_clcb->p_tcb->payload_size; in gatt_end_operation()
|
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/gatt/include/ |
D | gatt_int.h | 383 UINT16 payload_size; member
|