Home
last modified time | relevance | path

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

/system/core/libsparse/
Dbacked_block.c366 unsigned int max_len) in backed_block_split() argument
370 max_len = ALIGN_DOWN(max_len, bbl->block_size); in backed_block_split()
372 if (bb->len <= max_len) { in backed_block_split()
383 new_bb->len = bb->len - max_len; in backed_block_split()
384 new_bb->block = bb->block + max_len / bbl->block_size; in backed_block_split()
387 bb->len = max_len; in backed_block_split()
391 new_bb->data.data = (char *)bb->data.data + max_len; in backed_block_split()
394 new_bb->file.offset += max_len; in backed_block_split()
397 new_bb->fd.offset += max_len; in backed_block_split()
Dbacked_block.h52 unsigned int max_len);
Dsparse.c300 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len, in sparse_file_resparse() argument
316 bb = move_chunks_up_to_len(in_s, s, max_len); in sparse_file_resparse()
/system/bt/stack/rfcomm/
Dport_api.c1213 int PORT_ReadData (UINT16 handle, char *p_data, UINT16 max_len, UINT16 *p_len) in PORT_ReadData() argument
1219 RFCOMM_TRACE_API ("PORT_ReadData() handle:%d max_len:%d", handle, max_len); in PORT_ReadData()
1247 while (max_len) in PORT_ReadData()
1253 if (p_buf->len > max_len) in PORT_ReadData()
1255 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData()
1256 p_buf->offset += max_len; in PORT_ReadData()
1257 p_buf->len -= max_len; in PORT_ReadData()
1259 *p_len += max_len; in PORT_ReadData()
1263 p_port->rx.queue_size -= max_len; in PORT_ReadData()
1274 max_len -= p_buf->len; in PORT_ReadData()
[all …]
/system/bt/stack/gap/
Dgap_conn.c344 UINT16 GAP_ConnReadData (UINT16 gap_handle, UINT8 *p_data, UINT16 max_len, UINT16 *p_len) in GAP_ConnReadData() argument
359 while (max_len) in GAP_ConnReadData()
365 copy_len = (p_buf->len > max_len)?max_len:p_buf->len; in GAP_ConnReadData()
366 max_len -= copy_len; in GAP_ConnReadData()
487 UINT16 GAP_ConnWriteData (UINT16 gap_handle, UINT8 *p_data, UINT16 max_len, UINT16 *p_len) in GAP_ConnWriteData() argument
500 while (max_len) in GAP_ConnWriteData()
508 p_buf->len = (p_ccb->rem_mtu_size < max_len) ? p_ccb->rem_mtu_size : max_len; in GAP_ConnWriteData()
514 max_len -= p_buf->len; in GAP_ConnWriteData()
/system/bt/stack/include/
Dgap_api.h179 UINT16 max_len, UINT16 *p_len);
224 UINT16 max_len, UINT16 *p_len);
Dport_api.h559 extern int PORT_ReadData (UINT16 handle, char *p_data, UINT16 max_len,
590 extern int PORT_WriteData (UINT16 handle, char *p_data, UINT16 max_len,
Dhcimsgs.h731 … UINT16 conn_latency, UINT16 conn_timeout, UINT16 min_len, UINT16 max_len);
Dbtm_api.h3566 extern UINT16 BTM_BuildOobData(UINT8 *p_data, UINT16 max_len, BT_OCTET16 c,
/system/bt/stack/hid/
Dhidh_api.c77 void hidh_get_str_attr( tSDP_DISC_REC *p_rec, UINT16 attr_id, UINT16 max_len, char *str ) in hidh_get_str_attr() argument
84 if((name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type)) < max_len ) in hidh_get_str_attr()
91 memcpy( str, (char *) p_attr->attr_value.v.array, max_len-1 ); in hidh_get_str_attr()
92 str[max_len-1] = '\0'; in hidh_get_str_attr()
/system/core/libsparse/include/sparse/
Dsparse.h260 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len,
/system/core/lmkd/
Dlmkd.c126 static ssize_t read_all(int fd, char *buf, size_t max_len) in read_all() argument
130 while (max_len > 0) { in read_all()
131 ssize_t r = read(fd, buf, max_len); in read_all()
140 max_len -= r; in read_all()
/system/bt/stack/btm/
Dbtm_sec.c1752 UINT16 BTM_BuildOobData(UINT8 *p_data, UINT16 max_len, BT_OCTET16 c, in BTM_BuildOobData() argument
1762 if (p_data && max_len >= BTM_OOB_MANDATORY_SIZE) in BTM_BuildOobData()
1769 max_len -= len; in BTM_BuildOobData()
1775 if (max_len >= delta) in BTM_BuildOobData()
1781 max_len -= delta; in BTM_BuildOobData()
1786 if (max_len >= delta) in BTM_BuildOobData()
1792 max_len -= delta; in BTM_BuildOobData()
1797 if (max_len >= delta) in BTM_BuildOobData()
1803 max_len -= delta; in BTM_BuildOobData()
1813 if (max_len >= delta) in BTM_BuildOobData()
[all …]
/system/core/liblog/tests/
Dliblog_test.cpp920 ssize_t max_len = 0; in TEST() local
947 if (max_len <= (left - data)) { in TEST()
948 max_len = left - data + 1; in TEST()
951 if (max_len > 512) { in TEST()
961 EXPECT_LE(SIZEOF_MAX_PAYLOAD_BUF, static_cast<size_t>(max_len)); in TEST()
1037 ssize_t max_len = 0; in TEST() local
1064 if (max_len <= (left - data)) { in TEST()
1065 max_len = left - data + 1; in TEST()
1072 static_cast<size_t>(max_len)); in TEST()
1074 EXPECT_EQ(ret, max_len + static_cast<ssize_t>(sizeof(big_payload_tag))); in TEST()
/system/bt/stack/sdp/
Dsdp_db.c611 INT32 max_len = SDP_MAX_ATTR_LEN -3; in SDP_AddUuidSequence() local
623 if((p - p_buff) > max_len) in SDP_AddUuidSequence()
/system/bt/btif/src/
Dbtif_dm.c3444 int max_len = sizeof(btif_default_local_name) - 1; in btif_get_default_local_name() local
3447 strncpy(btif_default_local_name, BTM_DEF_LOCAL_NAME, max_len); in btif_get_default_local_name()
3453 strncpy(btif_default_local_name, prop_model, max_len); in btif_get_default_local_name()
3455 btif_default_local_name[max_len] = '\0'; in btif_get_default_local_name()