Searched refs:payload_size (Results 1 - 9 of 9) sorted by relevance
/system/bt/stack/gatt/ |
H A D | att_protocol.c | 165 BT_HDR *attp_build_read_by_type_value_cmd (UINT16 payload_size, tGATT_FIND_TYPE_VALUE *p_value_type) argument 171 if ((p_buf = (BT_HDR *)GKI_getbuf((UINT16)(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET))) != NULL) 184 if (p_value_type->value_len + p_buf->len > payload_size ) 185 len = payload_size - p_buf->len; 202 BT_HDR *attp_build_read_multi_cmd(UINT16 payload_size, UINT16 num_handle, UINT16 *p_handle) argument 216 for (i = 0; i < num_handle && p_buf->len + 2 <= payload_size; i ++) 295 BT_HDR *attp_build_value_cmd (UINT16 payload_size, UINT8 op_code, UINT16 handle, argument 301 if ((p_buf = (BT_HDR *)GKI_getbuf((UINT16)(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET))) != NULL) 331 if (payload_size - p_buf->len < len) 333 len = payload_size [all...] |
H A D | gatt_sr.c | 275 if (!process_read_multi_rsp (&p_tcb->sr_cmd, status, p_msg, p_tcb->payload_size)) 569 if (p_msg->len + p_msg->offset <= p_tcb->payload_size && 768 UINT16 msg_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); 846 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); 861 buf_len = p_tcb->payload_size - 2; 930 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; 932 p_tcb->payload_size = GATT_MAX_MTU_SIZE; 934 p_tcb->payload_size = mtu; 936 GATT_TRACE_ERROR("MTU request PDU with MTU size %d", p_tcb->payload_size); 938 l2cble_set_fixed_channel_tx_data_length(p_tcb->peer_bda, L2CAP_ATT_CID, p_tcb->payload_size); [all...] |
H A D | gatt_auth.c | 48 UINT16 payload_size = p_clcb->p_tcb->payload_size; local 65 if ((payload_size - GATT_AUTH_SIGN_LEN - 3) < p_attr->len) 66 p_attr->len = payload_size - GATT_AUTH_SIGN_LEN - 3;
|
H A D | gatt_cl.c | 248 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE)) 373 if (to_send > (p_tcb->payload_size - GATT_WRITE_LONG_HDR_SIZE)) /* 2 = UINT16 offset bytes */ 374 to_send = p_tcb->payload_size - GATT_WRITE_LONG_HDR_SIZE; 766 if ((value_len > (p_tcb->payload_size - 2)) || (value_len > (len-1)) ) 771 op_code, value_len, (p_tcb->payload_size - 2), (len-1)); 862 if ( p_clcb->counter == (p_clcb->p_tcb->payload_size -4)) 981 if (len == (p_tcb->payload_size - 1) && /* full packet for read or read blob rsp */ 1065 if (mtu < p_tcb->payload_size && mtu >= GATT_DEF_BLE_MTU_SIZE) 1066 p_tcb->payload_size = mtu; 1069 l2cble_set_fixed_channel_tx_data_length(p_tcb->peer_bda, L2CAP_ATT_CID, p_tcb->payload_size); [all...] |
H A D | gatt_main.c | 441 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; 458 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; 756 p_tcb->payload_size = p_cfg->mtu; 758 p_tcb->payload_size = L2CAP_DEFAULT_MTU;
|
H A D | gatt_api.c | 804 p_clcb->p_tcb->payload_size = mtu;
|
H A D | gatt_int.h | 358 UINT16 payload_size; member in struct:__anon875
|
H A D | gatt_utils.c | 2160 cb_data.mtu = p_clcb->p_tcb->payload_size;
|
/system/core/liblog/ |
H A D | logd_write.c | 159 size_t i, payload_size; local 232 for (payload_size = 0, i = header_length; i < nr + header_length; i++) { 234 payload_size += newVec[i].iov_len = vec[i - header_length].iov_len; 236 if (payload_size > LOGGER_ENTRY_MAX_PAYLOAD) { 237 newVec[i].iov_len -= payload_size - LOGGER_ENTRY_MAX_PAYLOAD; 241 payload_size = LOGGER_ENTRY_MAX_PAYLOAD; 245 pmsg_header.len += payload_size;
|
Completed in 261 milliseconds