Home
last modified time | relevance | path

Searched refs:rem_len (Results 1 – 25 of 34) sorted by relevance

12

/device/board/isoftstone/yangfan/common/mqtt/mqttpacket/src/
DMQTTPacket.c84 int MQTTPacket_len(int rem_len) in MQTTPacket_len() argument
86 rem_len += 1; /* header byte */ in MQTTPacket_len()
89 if (rem_len < 128) in MQTTPacket_len()
90 rem_len += 1; in MQTTPacket_len()
91 else if (rem_len < 16384) in MQTTPacket_len()
92 rem_len += 2; in MQTTPacket_len()
93 else if (rem_len < 2097151) in MQTTPacket_len()
94 rem_len += 3; in MQTTPacket_len()
96 rem_len += 4; in MQTTPacket_len()
97 return rem_len; in MQTTPacket_len()
[all …]
DMQTTUnsubscribeClient.c54 int rem_len = 0; in MQTTSerialize_unsubscribe() local
59 if (MQTTPacket_len(rem_len = MQTTSerialize_unsubscribeLength(count, topicFilters)) > buflen) { in MQTTSerialize_unsubscribe()
71 ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */ in MQTTSerialize_unsubscribe()
DMQTTSubscribeClient.c55 int rem_len = 0; in MQTTSerialize_subscribe() local
60 if (MQTTPacket_len(rem_len = MQTTSerialize_subscribeLength(count, topicFilters)) > buflen) in MQTTSerialize_subscribe()
72 ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */; in MQTTSerialize_subscribe()
DMQTTSerializePublish.c60 int rem_len = 0; in MQTTSerialize_publish() local
64 if (MQTTPacket_len(rem_len = MQTTSerialize_publishLength(qos, topicName, payloadlen)) > buflen) in MQTTSerialize_publish()
76 ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */; in MQTTSerialize_publish()
DMQTTPacket.h104 int MQTTPacket_len(int rem_len);
125 int rem_len; member
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/sdp/
Dsdp_server.c311 INT16 rem_len; in process_service_attr_req() local
412 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]); in process_service_attr_req()
415 if (rem_len <= 0) { in process_service_attr_req()
424 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, rem_len, in process_service_attr_req()
433 } else if (rem_len < attr_len) { /* Not enough space for attr... so add partially */ in process_service_attr_req()
441 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, (UINT16)rem_len, in process_service_attr_req()
550 INT16 rem_len; in process_service_search_attr_req() local
650 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
651 if (rem_len < 3) { in process_service_search_attr_req()
666 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
[all …]
Dsdp_db.c948 UINT16 rem_len; in SDP_ReadRecord() local
957 rem_len = *p_data_len - (UINT16) (p_rsp - p_data); in SDP_ReadRecord()
959 if (p_attr->len > (UINT32)(rem_len - 6)) { in SDP_ReadRecord()
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Dwl_ext_genl.c232 uint rem_len, buflen = MAX_CUSTOM_PKT_LENGTH; in wl_ext_probreq_event() local
239 rem_len = buflen; in wl_ext_probreq_event()
249 rem_len -= (DOT11_MGMT_HDR_LEN+1); in wl_ext_probreq_event()
267 if ((ie->id == ie_id) && (totlen >= ie_len) && (rem_len >= ie_len)) { in wl_ext_probreq_event()
270 rem_len -= ie_len; in wl_ext_probreq_event()
280 while (rem_len > 0) { in wl_ext_probreq_event()
284 if (rem_len < (ie->len+TLV_HDR_LEN)) { in wl_ext_probreq_event()
288 memcpy(pbuf, ie, min(ie->len+TLV_HDR_LEN, rem_len)); in wl_ext_probreq_event()
290 rem_len -= (ie->len+TLV_HDR_LEN); in wl_ext_probreq_event()
298 event_len = buflen - rem_len; in wl_ext_probreq_event()
Ddhd_dbg_ring.c115 ring->rem_len = 0; in dhd_dbg_ring_init()
225 ring->rem_len = ring->ring_size - ring->wp; in dhd_dbg_ring_push()
230 ring->rem_len, ring->ring_size, avail_size, in dhd_dbg_ring_push()
234 memset((uint8 *)ring->ring_buf + ring->wp, 0, ring->rem_len); in dhd_dbg_ring_push()
268 ((ring->rp + ring->rem_len) == ring->ring_size)) { in dhd_dbg_ring_push()
275 ring->rem_len = 0; in dhd_dbg_ring_push()
386 ring->tail_padded && ((ring->rp + ring->rem_len) >= ring->ring_size)) { in dhd_dbg_ring_pull_single()
391 ring->rem_len = 0; in dhd_dbg_ring_pull_single()
Dwl_android.c11172 uint16 rem_len = sizeof(mybuf); in wl_android_twt_setup() local
11306 bw = bcm_pack_xtlv_entry(&rem, &rem_len, WL_TWT_CMD_CONFIG, in wl_android_twt_setup()
11313 mybuf, sizeof(mybuf) - rem_len, resp_buf, WLC_IOCTL_SMLEN, NULL); in wl_android_twt_setup()
11324 int rem_len = 0, bytes_written = 0; in wl_android_twt_display_cap() local
11326 rem_len = total_len; in wl_android_twt_display_cap()
11327 bytes_written = scnprintf(command, rem_len, "Device TWT Capabilities:\n"); in wl_android_twt_display_cap()
11329 rem_len -= bytes_written; in wl_android_twt_display_cap()
11331 bytes_written = scnprintf(command, rem_len, "Requester Support %d, \t", in wl_android_twt_display_cap()
11334 rem_len -= bytes_written; in wl_android_twt_display_cap()
11336 bytes_written = scnprintf(command, rem_len, "Responder Support %d, \t", in wl_android_twt_display_cap()
[all …]
Ddhd_dbg_ring.h93 uint32 rem_len; /* number of bytes from wp_pad to end */ member
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Dwl_ext_genl.c231 uint rem_len, buflen = MAX_CUSTOM_PKT_LENGTH; in wl_ext_probreq_event() local
238 rem_len = buflen; in wl_ext_probreq_event()
248 rem_len -= (DOT11_MGMT_HDR_LEN+1); in wl_ext_probreq_event()
266 if ((ie->id == ie_id) && (totlen >= ie_len) && (rem_len >= ie_len)) { in wl_ext_probreq_event()
269 rem_len -= ie_len; in wl_ext_probreq_event()
279 while (rem_len > 0) { in wl_ext_probreq_event()
283 if (rem_len < (ie->len+TLV_HDR_LEN)) { in wl_ext_probreq_event()
287 memcpy(pbuf, ie, min(ie->len+TLV_HDR_LEN, rem_len)); in wl_ext_probreq_event()
289 rem_len -= (ie->len+TLV_HDR_LEN); in wl_ext_probreq_event()
297 event_len = buflen - rem_len; in wl_ext_probreq_event()
Ddhd_dbg_ring.c64 ring->rem_len = 0; in dhd_dbg_ring_init()
171 ring->rem_len = ring->ring_size - ring->wp; in dhd_dbg_ring_push()
176 ring->rem_len, ring->ring_size, avail_size, in dhd_dbg_ring_push()
180 memset((uint8 *)ring->ring_buf + ring->wp, 0, ring->rem_len); in dhd_dbg_ring_push()
214 ((ring->rp + ring->rem_len) == ring->ring_size)) { in dhd_dbg_ring_push()
221 ring->rem_len = 0; in dhd_dbg_ring_push()
335 ring->tail_padded && ((ring->rp + ring->rem_len) >= ring->ring_size)) { in dhd_dbg_ring_pull_single()
340 ring->rem_len = 0; in dhd_dbg_ring_pull_single()
Ddhd_dbg_ring.h93 uint32 rem_len; /* number of bytes from wp_pad to end */ member
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Dwl_ext_genl.c238 uint rem_len, buflen = MAX_CUSTOM_PKT_LENGTH; in wl_ext_probreq_event() local
245 rem_len = buflen; in wl_ext_probreq_event()
255 rem_len -= (DOT11_MGMT_HDR_LEN + 1); in wl_ext_probreq_event()
273 if ((ie->id == ie_id) && (totlen >= ie_len) && (rem_len >= ie_len)) { in wl_ext_probreq_event()
276 rem_len -= ie_len; in wl_ext_probreq_event()
286 while (rem_len > 0) { in wl_ext_probreq_event()
291 if (rem_len < (ie->len + TLV_HDR_LEN)) { in wl_ext_probreq_event()
295 memcpy(pbuf, ie, min(ie->len + TLV_HDR_LEN, rem_len)); in wl_ext_probreq_event()
297 rem_len -= (ie->len + TLV_HDR_LEN); in wl_ext_probreq_event()
305 event_len = buflen - rem_len; in wl_ext_probreq_event()
Ddhd_dbg_ring.c64 ring->rem_len = 0; in dhd_dbg_ring_init()
171 ring->rem_len = ring->ring_size - ring->wp; in dhd_dbg_ring_push()
176 ring->wp, ring->rem_len, ring->ring_size, avail_size, in dhd_dbg_ring_push()
180 memset((uint8 *)ring->ring_buf + ring->wp, 0, ring->rem_len); in dhd_dbg_ring_push()
214 ((ring->rp + ring->rem_len) == ring->ring_size)) { in dhd_dbg_ring_push()
221 ring->rem_len = 0; in dhd_dbg_ring_push()
340 ((ring->rp + ring->rem_len) >= ring->ring_size)) { in dhd_dbg_ring_pull_single()
345 ring->rem_len = 0; in dhd_dbg_ring_pull_single()
Ddhd_dbg_ring.h92 uint32 rem_len; /* number of bytes from wp_pad to end */ member
/device/soc/esp/esp32/components/esp_lwip/lwip/src/core/
Dpbuf.c241 u16_t rem_len; /* remaining length */ in pbuf_alloc() local
244 rem_len = length; in pbuf_alloc()
257 qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset))); in pbuf_alloc()
259 rem_len, qlen, type, 0); in pbuf_alloc()
272 rem_len = (u16_t)(rem_len - qlen); in pbuf_alloc()
274 } while (rem_len > 0); in pbuf_alloc()
409 u16_t rem_len; /* remaining length */ in pbuf_realloc() local
425 rem_len = new_len; in pbuf_realloc()
428 while (rem_len > q->len) { in pbuf_realloc()
430 rem_len = (u16_t)(rem_len - q->len); in pbuf_realloc()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/btm/
Dbtm_ble_5_gap.c422 UINT16 rem_len = len; in BTM_BleConfigExtendedAdvDataRaw() local
433 …UINT8 send_data_len = (rem_len > BTM_BLE_EXT_ADV_DATA_LEN_MAX) ? BTM_BLE_EXT_ADV_DATA_LEN_MAX : re… in BTM_BleConfigExtendedAdvDataRaw()
437 if (rem_len == len) { in BTM_BleConfigExtendedAdvDataRaw()
439 } else if (rem_len <= BTM_BLE_EXT_ADV_DATA_LEN_MAX) { in BTM_BleConfigExtendedAdvDataRaw()
457 rem_len -= send_data_len; in BTM_BleConfigExtendedAdvDataRaw()
459 } while (rem_len); in BTM_BleConfigExtendedAdvDataRaw()
696 uint16_t rem_len; in BTM_BlePeriodicAdvCfgDataRaw() local
711 rem_len = len; in BTM_BlePeriodicAdvCfgDataRaw()
714 …UINT8 send_data_len = (rem_len > BTM_BLE_PERIODIC_ADV_DATA_LEN_MAX) ? BTM_BLE_PERIODIC_ADV_DATA_LE… in BTM_BlePeriodicAdvCfgDataRaw()
719 if (rem_len == len) { in BTM_BlePeriodicAdvCfgDataRaw()
[all …]
/device/soc/bestechnic/bes2600/liteos_m/components/net/lwip-2.1/porting/src/
Dethernetif.c229 int rem_len; in low_level_input() local
249 rem_len = p->tot_len; in low_level_input()
259 if (rem_len > 0) { in low_level_input()
261 mymemcpy(q->payload, (char *)p_buf + (p->tot_len - rem_len), q->len); in low_level_input()
262 rem_len -= q->len; in low_level_input()
/device/board/bearpi/bearpi_hm_nano/third_party/paho_mqtt/MQTTPacket/src/
DMQTTPacket.h90 int MQTTPacket_len(int rem_len);
113 int rem_len; member
/device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/src/
DMQTTClient.c132 int rem_len = 0; in readPacket() local
143 decodePacket(c, &rem_len, TimerLeftMS(timer)); in readPacket()
144 …len += MQTTPacket_encode(c->readbuf + 1, rem_len); /* put the original remaining length back into … in readPacket()
146 if (rem_len > (c->readbuf_size - len)) in readPacket()
154 …if (rem_len > 0 && (rc = c->ipstack->mqttread(c->ipstack, c->readbuf + len, rem_len, TimerLeftMS(t… in readPacket()
155 LogError("rem_len = %{public}d, rc = %{public}d", rem_len, rc); in readPacket()
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/src/
DMQTTClient.h453 int rem_len = 0; in readPacket() local
462 decodePacket(&rem_len, timer.left_ms()); in readPacket()
463 …len += MQTTPacket_encode(readbuf + 1, rem_len); /* put the original remaining length into the buff… in readPacket()
465 if (rem_len > (MAX_MQTT_PACKET_SIZE - len)) in readPacket()
472 if (rem_len > 0 && (ipstack.read(readbuf + len, rem_len, timer.left_ms()) != rem_len)) in readPacket()
/device/soc/winnermicro/wm800/board/src/bt/blehost/porting/w800/src/
Dos_mbuf.c1047 uint16_t rem_len = OS_MBUF_TRAILINGSPACE(cur); in os_mbuf_pack_chains() local
1049 while (rem_len && next) { in os_mbuf_pack_chains()
1050 copylen = min(rem_len, next->om_len); in os_mbuf_pack_chains()
1054 rem_len -= copylen; in os_mbuf_pack_chains()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/
DMQTTPacket.h268 int MQTTPacket_VBIlen(int rem_len);

12