Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 20 of 20) sorted by relevance

/system/nfc/src/nfa/dm/
Dnfa_dm_main.cc216 uint8_t type, len, *p_value, *p_stored, max_len; in nfa_dm_check_set_config() local
246 max_len = NCI_PARAM_LEN_PF_RC; in nfa_dm_check_set_config()
250 max_len = NCI_PARAM_LEN_TOTAL_DURATION; in nfa_dm_check_set_config()
258 max_len = NCI_PARAM_LEN_LA_BIT_FRAME_SDD; in nfa_dm_check_set_config()
263 max_len = NCI_PARAM_LEN_LA_PLATFORM_CONFIG; in nfa_dm_check_set_config()
268 max_len = NCI_PARAM_LEN_LA_SEL_INFO; in nfa_dm_check_set_config()
273 max_len = NCI_NFCID1_MAX_LEN; in nfa_dm_check_set_config()
278 max_len = NCI_MAX_HIS_BYTES_LEN; in nfa_dm_check_set_config()
287 max_len = NCI_PARAM_LEN_LB_SENSB_INFO; in nfa_dm_check_set_config()
292 max_len = NCI_PARAM_LEN_LB_NFCID0; in nfa_dm_check_set_config()
[all …]
/system/bt/stack/rfcomm/
Dport_api.cc675 int PORT_ReadData(uint16_t handle, char* p_data, uint16_t max_len, in PORT_ReadData() argument
681 RFCOMM_TRACE_API("PORT_ReadData() handle:%d max_len:%d", handle, max_len); in PORT_ReadData()
705 while (max_len) { in PORT_ReadData()
709 if (p_buf->len > max_len) { in PORT_ReadData()
710 memcpy(p_data, (uint8_t*)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData()
711 p_buf->offset += max_len; in PORT_ReadData()
712 p_buf->len -= max_len; in PORT_ReadData()
714 *p_len += max_len; in PORT_ReadData()
718 p_port->rx.queue_size -= max_len; in PORT_ReadData()
727 max_len -= p_buf->len; in PORT_ReadData()
[all …]
/system/core/libsparse/
Dbacked_block.cpp343 unsigned int max_len) { in backed_block_split() argument
346 max_len = ALIGN_DOWN(max_len, bbl->block_size); in backed_block_split()
348 if (bb->len <= max_len) { in backed_block_split()
359 new_bb->len = bb->len - max_len; in backed_block_split()
360 new_bb->block = bb->block + max_len / bbl->block_size; in backed_block_split()
363 bb->len = max_len; in backed_block_split()
367 new_bb->data.data = (char*)bb->data.data + max_len; in backed_block_split()
370 new_bb->file.offset += max_len; in backed_block_split()
373 new_bb->fd.offset += max_len; in backed_block_split()
Dbacked_block.h51 int backed_block_split(struct backed_block_list* bbl, struct backed_block* bb, unsigned int max_len
Dsparse.cpp325 int sparse_file_resparse(struct sparse_file* in_s, unsigned int max_len, struct sparse_file** out_s, in sparse_file_resparse() argument
340 bb = move_chunks_up_to_len(in_s, s, max_len); in sparse_file_resparse()
/system/bt/btif/src/
Dbtif_sock.cc255 uint16_t max_len = controller->get_ble_maximum_tx_data_length(); in btsock_request_max_tx_data_length() local
257 DVLOG(2) << __func__ << ": max_len=" << max_len; in btsock_request_max_tx_data_length()
259 BTA_DmBleSetDataLength(remote_device, max_len); in btsock_request_max_tx_data_length()
Dbtif_dm.cc3333 int max_len = sizeof(btif_default_local_name) - 1; in btif_get_default_local_name() local
3335 strncpy(btif_default_local_name, BTM_DEF_LOCAL_NAME, max_len); in btif_get_default_local_name()
3339 strncpy(btif_default_local_name, prop_model, max_len); in btif_get_default_local_name()
3341 btif_default_local_name[max_len] = '\0'; in btif_get_default_local_name()
/system/bt/stack/include/
Dport_api.h360 extern int PORT_ReadData(uint16_t handle, char* p_data, uint16_t max_len,
376 extern int PORT_WriteData(uint16_t handle, const char* p_data, uint16_t max_len,
Dgap_api.h209 uint16_t max_len, uint16_t* p_len);
Dhcimsgs.h775 uint16_t max_len);
/system/bt/stack/hid/
Dhidh_api.cc71 void hidh_get_str_attr(tSDP_DISC_REC* p_rec, uint16_t attr_id, uint16_t max_len, in hidh_get_str_attr() argument
79 if (name_len < max_len) { in hidh_get_str_attr()
83 memcpy(str, (char*)p_attr->attr_value.v.array, max_len - 1); in hidh_get_str_attr()
84 str[max_len - 1] = '\0'; in hidh_get_str_attr()
/system/core/libsparse/include/sparse/
Dsparse.h321 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len,
/system/bt/stack/gap/
Dgap_conn.cc373 uint16_t max_len, uint16_t* p_len) { in GAP_ConnReadData() argument
385 while (max_len) { in GAP_ConnReadData()
390 copy_len = (p_buf->len > max_len) ? max_len : p_buf->len; in GAP_ConnReadData()
391 max_len -= copy_len; in GAP_ConnReadData()
/system/nfc/src/nfc/nfc/
Dnfc_ncif.cc1165 uint8_t max_len; in nfc_ncif_proc_ee_action() local
1195 max_len = ulen; in nfc_ncif_proc_ee_action()
1198 if (max_len > NFC_MAX_AID_LEN) max_len = NFC_MAX_AID_LEN; in nfc_ncif_proc_ee_action()
1199 evt_data.act_data.param.app_init.len_aid = max_len; in nfc_ncif_proc_ee_action()
1203 if (max_len > NFC_MAX_APP_DATA_LEN) in nfc_ncif_proc_ee_action()
1204 max_len = NFC_MAX_APP_DATA_LEN; in nfc_ncif_proc_ee_action()
1205 evt_data.act_data.param.app_init.len_data = max_len; in nfc_ncif_proc_ee_action()
1210 STREAM_TO_ARRAY(p_data, p, max_len); in nfc_ncif_proc_ee_action()
/system/bt/stack/btm/
Dbtm_ble_adv_filter.cc548 uint8_t max_len = len + BTM_BLE_META_UUID_LEN; in BTM_LE_PF_uuid_filter() local
549 uint8_t param[max_len]; in BTM_LE_PF_uuid_filter()
550 memset(param, 0, max_len); in BTM_LE_PF_uuid_filter()
/system/bt/stack/sdp/
Dsdp_db.cc551 int32_t max_len = SDP_MAX_ATTR_LEN - 3; in SDP_AddUuidSequence() local
563 if ((p - p_buff) > max_len) { in SDP_AddUuidSequence()
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc2767 int max_len; in nfa_ee_lmrt_to_nfcc() local
2773 max_len = (NFC_GetLmrtSize() > NFA_EE_ROUT_BUF_SIZE) ? NFC_GetLmrtSize() in nfa_ee_lmrt_to_nfcc()
2775 p = (uint8_t*)GKI_getbuf(max_len); in nfa_ee_lmrt_to_nfcc()
2800 (uint8_t)((max_len > NFA_EE_ROUT_MAX_TLV_SIZE) ? NFA_EE_ROUT_MAX_TLV_SIZE in nfa_ee_lmrt_to_nfcc()
2801 : max_len); in nfa_ee_lmrt_to_nfcc()
2813 nfa_ee_route_add_one_ecb_by_route_order(p_cb, rt, &max_len, more, p, in nfa_ee_lmrt_to_nfcc()
2822 &max_len, more, p, &cur_offset); in nfa_ee_lmrt_to_nfcc()
/system/core/liblog/tests/
Dliblog_test.cpp954 ssize_t max_len = 0; in TEST() local
971 if (max_len <= (left - data)) { in TEST()
972 max_len = left - data + 1; in TEST()
975 if (max_len > 512) { in TEST()
982 EXPECT_LE(SIZEOF_MAX_PAYLOAD_BUF, static_cast<size_t>(max_len)); in TEST()
/system/memory/lmkd/
Dlmkd.cpp574 static ssize_t read_all(int fd, char *buf, size_t max_len) in read_all() argument
579 while (max_len > 0) { in read_all()
580 ssize_t r = TEMP_FAILURE_RETRY(pread(fd, buf, max_len, offset)); in read_all()
590 max_len -= r; in read_all()
/system/connectivity/wificond/net/kernel-header-latest/
Dnl80211.h4327 __u32 min_len, max_len, bufsize; member