/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/prot/ |
A D | ip4.h | 86 #define IPH_V(hdr) ((hdr)->_v_hl >> 4) argument 87 #define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) argument 88 #define IPH_TOS(hdr) ((hdr)->_tos) argument 89 #define IPH_LEN(hdr) ((hdr)->_len) argument 90 #define IPH_ID(hdr) ((hdr)->_id) argument 91 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument 92 #define IPH_TTL(hdr) ((hdr)->_ttl) argument 93 #define IPH_PROTO(hdr) ((hdr)->_proto) argument 94 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument 98 #define IPH_TOS_SET(hdr, tos) (hdr)->_tos = (tos) argument [all …]
|
A D | ip6.h | 137 #define IP6H_V(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 28) & 0x0f) argument 138 #define IP6H_TC(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 20) & 0xff) argument 139 #define IP6H_FL(hdr) (lwip_ntohl((hdr)->_v_tc_fl) & 0x000fffff) argument 140 #define IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen)) argument 141 #define IP6H_NEXTH(hdr) ((hdr)->_nexth) argument 142 #define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) argument 143 #define IP6H_HOPLIM(hdr) ((hdr)->_hoplim) argument 145 #define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (lwip_htonl((((u32_t)(v)) << 28) | (((u32_… argument 146 #define IP6H_PLEN_SET(hdr, plen) (hdr)->_plen = lwip_htons(plen) argument 147 #define IP6H_NEXTH_SET(hdr, nexth) (hdr)->_nexth = (nexth) argument [all …]
|
A D | icmp.h | 82 #define ICMPH_TYPE(hdr) ((hdr)->type) argument 83 #define ICMPH_CODE(hdr) ((hdr)->code) argument 84 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) argument 85 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c)) argument
|
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/prot/ |
A D | ip4.h | 86 #define IPH_V(hdr) ((hdr)->_v_hl >> 4) argument 87 #define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) argument 88 #define IPH_TOS(hdr) ((hdr)->_tos) argument 89 #define IPH_LEN(hdr) ((hdr)->_len) argument 90 #define IPH_ID(hdr) ((hdr)->_id) argument 91 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument 92 #define IPH_TTL(hdr) ((hdr)->_ttl) argument 93 #define IPH_PROTO(hdr) ((hdr)->_proto) argument 94 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument 98 #define IPH_TOS_SET(hdr, tos) (hdr)->_tos = (tos) argument [all …]
|
A D | ip6.h | 137 #define IP6H_V(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 28) & 0x0f) argument 138 #define IP6H_TC(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 20) & 0xff) argument 139 #define IP6H_FL(hdr) (lwip_ntohl((hdr)->_v_tc_fl) & 0x000fffff) argument 140 #define IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen)) argument 141 #define IP6H_NEXTH(hdr) ((hdr)->_nexth) argument 142 #define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) argument 143 #define IP6H_HOPLIM(hdr) ((hdr)->_hoplim) argument 145 #define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (lwip_htonl((((u32_t)(v)) << 28) | (((u32_… argument 146 #define IP6H_PLEN_SET(hdr, plen) (hdr)->_plen = lwip_htons(plen) argument 147 #define IP6H_NEXTH_SET(hdr, nexth) (hdr)->_nexth = (nexth) argument [all …]
|
A D | icmp.h | 82 #define ICMPH_TYPE(hdr) ((hdr)->type) argument 83 #define ICMPH_CODE(hdr) ((hdr)->code) argument 84 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) argument 85 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c)) argument
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | memory_buffer_alloc.c | 99 (size_t) hdr, (size_t) hdr->prev, (size_t) hdr->next, in debug_header() 100 hdr->alloc, hdr->size ); in debug_header() 160 if( hdr->prev != NULL && hdr->prev == hdr->next ) in verify_header() 168 if( hdr->prev_free != NULL && hdr->prev_free == hdr->next_free ) in verify_header() 434 hdr->prev->next = hdr->next; in buffer_alloc_free() 436 hdr = hdr->prev; in buffer_alloc_free() 439 hdr->next->prev = hdr; in buffer_alloc_free() 453 hdr->next = hdr->next->next; in buffer_alloc_free() 470 hdr->prev_free->next_free = hdr; in buffer_alloc_free() 475 hdr->next_free->prev_free = hdr; in buffer_alloc_free() [all …]
|
/AliOS-Things-master/components/kv/src/ |
A D | kv.c | 129 block_hdr_t hdr; in kv_block_format() local 232 item_hdr_t hdr; in kv_item_del() local 249 (hdr.key_len != item->hdr.key_len)) { in kv_item_del() 479 item_hdr_t hdr; in kv_item_store() local 488 store.len = KV_ALIGN(KV_ITEM_HDR_SIZE + hdr.key_len + hdr.val_len); in kv_item_store() 504 hdr.crc = calc_crc8((uint8_t *)p, hdr.key_len + hdr.val_len); in kv_item_store() 566 block_hdr_t hdr; in kv_init_internal() local 754 hdr = &(item->hdr); in kv_item_traverse() 762 if ((hdr->magic == 0xFF) && (hdr->state == 0xFF)) { in kv_item_traverse() 771 (hdr->val_len == 0) || (hdr->key_len == 0)) { in kv_item_traverse() [all …]
|
A D | kv_cli.c | 21 p_key = (char *)kv_malloc(item->hdr.key_len + 1); in __item_print_cb() 26 memset(p_key, 0, item->hdr.key_len + 1); in __item_print_cb() 28 kv_flash_read(off, p_key, item->hdr.key_len); in __item_print_cb() 30 p_val = (char *)kv_malloc(item->hdr.val_len + 1); in __item_print_cb() 36 memset(p_val, 0, item->hdr.val_len + 1); in __item_print_cb() 37 off = item->pos + KV_ITEM_HDR_SIZE + item->hdr.key_len; in __item_print_cb() 38 kv_flash_read(off, p_val, item->hdr.val_len); in __item_print_cb()
|
/AliOS-Things-master/components/ble_host/bt_host/host/ |
A D | avdtp.c | 36 #define AVDTP_GET_TR_ID(hdr) ((hdr & 0xf0) >> AVDTP_TID_POSITION) argument 37 #define AVDTP_GET_MSG_TYPE(hdr) (hdr & 0x03) argument 38 #define AVDTP_GET_PKT_TYPE(hdr) ((hdr & 0x0c) >> AVDTP_PKT_POSITION) argument 75 req->tid = AVDTP_GET_TR_ID(hdr->hdr); in avdtp_send() 96 hdr = net_buf_add(buf, sizeof(*hdr)); in avdtp_create_pdu() 98 hdr->hdr = (msg_type | pkt_type << AVDTP_PKT_POSITION | in avdtp_create_pdu() 103 BT_DBG("hdr = 0x%02X, Signal_ID = 0x%02X", hdr->hdr, hdr->signal_id); in avdtp_create_pdu() 153 if (buf->len < sizeof(*hdr)) { in bt_avdtp_l2cap_recv() 158 hdr = net_buf_pull_mem(buf, sizeof(*hdr)); in bt_avdtp_l2cap_recv() 159 msgtype = AVDTP_GET_MSG_TYPE(hdr->hdr); in bt_avdtp_l2cap_recv() [all …]
|
A D | monitor.c | 90 hdr->ext[hdr->hdr_len++] = type; in encode_drops() 91 hdr->ext[hdr->hdr_len++] = MIN(count, 255); in encode_drops() 107 hdr->flags = 0U; in encode_hdr() 109 ts = (void *)hdr->ext; in encode_hdr() 112 hdr->hdr_len = sizeof(*ts); in encode_hdr() 124 hdr->data_len = sys_cpu_to_le16(4 + hdr->hdr_len + len); in encode_hdr() 158 struct bt_monitor_hdr hdr; in bt_monitor_send() local 167 monitor_send(&hdr, BT_MONITOR_BASE_HDR_LEN + hdr.hdr_len); in bt_monitor_send() 273 struct bt_monitor_hdr hdr; in monitor_log_put() local 290 encode_hdr(&hdr, msg->hdr.timestamp, BT_MONITOR_USER_LOGGING, in monitor_log_put() [all …]
|
A D | l2cap_br.c | 272 hdr = net_buf_add(buf, sizeof(*hdr)); in l2cap_br_get_info() 514 hdr = net_buf_add(buf, sizeof(*hdr)); in l2cap_br_conf() 634 hdr = net_buf_add(buf, sizeof(*hdr)); in l2cap_br_send_conn_rsp() 871 hdr = net_buf_add(buf, sizeof(*hdr)); in l2cap_br_send_reject() 997 hdr = net_buf_add(buf, sizeof(*hdr)); in l2cap_br_conf_req() 1094 hdr = net_buf_add(buf, sizeof(*hdr)); in l2cap_br_disconn_req() 1147 hdr = net_buf_add(buf, sizeof(*hdr)); in bt_l2cap_br_chan_disconnect() 1255 hdr = net_buf_add(buf, sizeof(*hdr)); in bt_l2cap_br_chan_connect() 1346 hdr = net_buf_pull_mem(buf, sizeof(*hdr)); in l2cap_br_recv() 1445 hdr = net_buf_add(buf, sizeof(*hdr)); in l2cap_br_conn_pend() [all …]
|
A D | hci_ecc.c | 91 struct bt_hci_evt_hdr *hdr; in send_cmd_status() local 99 hdr = net_buf_add(buf, sizeof(*hdr)); in send_cmd_status() 100 hdr->evt = BT_HCI_EVT_CMD_STATUS; in send_cmd_status() 101 hdr->len = sizeof(*evt); in send_cmd_status() 137 struct bt_hci_evt_hdr *hdr; in emulate_le_p256_public_key_cmd() local 147 hdr = net_buf_add(buf, sizeof(*hdr)); in emulate_le_p256_public_key_cmd() 148 hdr->evt = BT_HCI_EVT_LE_META_EVENT; in emulate_le_p256_public_key_cmd() 149 hdr->len = sizeof(*meta) + sizeof(*evt); in emulate_le_p256_public_key_cmd() 176 struct bt_hci_evt_hdr *hdr; in emulate_le_generate_dhkey() local 198 hdr = net_buf_add(buf, sizeof(*hdr)); in emulate_le_generate_dhkey() [all …]
|
A D | rfcomm.c | 322 struct bt_rfcomm_hdr *hdr; in rfcomm_send_sabm() local 328 hdr = net_buf_add(buf, sizeof(*hdr)); in rfcomm_send_sabm() 350 hdr = net_buf_add(buf, sizeof(*hdr)); in rfcomm_send_disc() 383 hdr = net_buf_add(buf, sizeof(*hdr)); in rfcomm_make_uih_msg() 496 hdr = net_buf_add(buf, sizeof(*hdr)); in rfcomm_send_dm() 602 hdr = net_buf_add(buf, sizeof(*hdr)); in rfcomm_send_ua() 942 hdr = net_buf_add(buf, sizeof(*hdr)); in rfcomm_send_credit() 1271 hdr = net_buf_pull_mem(buf, sizeof(*hdr)); in rfcomm_handle_msg() 1429 hdr = net_buf_push(buf, sizeof(*hdr) + 1); in bt_rfcomm_dlc_send() 1434 hdr = net_buf_push(buf, sizeof(*hdr)); in bt_rfcomm_dlc_send() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/ |
A D | IMG_tga.c | 88 struct TGAheader hdr; in IMG_LoadTGA_RW() local 110 if (!SDL_RWread(src, &hdr, sizeof(hdr), 1)) { in IMG_LoadTGA_RW() 114 ncols = LE16(hdr.cmap_len); in IMG_LoadTGA_RW() 115 switch(hdr.type) { in IMG_LoadTGA_RW() 120 if (!hdr.has_cmap || hdr.pixel_bits != 8 || ncols > 256) in IMG_LoadTGA_RW() 136 if (hdr.pixel_bits != 8) in IMG_LoadTGA_RW() 146 bpp = (hdr.pixel_bits + 7) >> 3; in IMG_LoadTGA_RW() 148 switch(hdr.pixel_bits) { in IMG_LoadTGA_RW() 195 w = LE16(hdr.width); in IMG_LoadTGA_RW() 196 h = LE16(hdr.height); in IMG_LoadTGA_RW() [all …]
|
/AliOS-Things-master/components/minilibc/include/ |
A D | mm.h | 410 uint64_t magic = (uint64_t)hdr->caller; in mdbg_calc_magic() 411 magic ^= hdr->size; in mdbg_calc_magic() 412 magic ^= hdr->pid; in mdbg_calc_magic() 419 return mdbg_calc_magic(hdr) == hdr->magic; in mdbg_check_magic_hdr() 424 void *p = hdr + 1; in mdbg_check_magic_end() 425 uint64_t *m = (uint64_t *)((uint64_t)p + hdr->size); in mdbg_check_magic_end() 426 uint32_t magic = MAGIC_END ^ hdr->magic; in mdbg_check_magic_end() 439 hdr->magic = mdbg_calc_magic(hdr); in mdbg_set_magic_hdr() 444 void *p = hdr + 1; in mdbg_set_magic_end() 445 uint64_t *m = (uint64_t *)((uint64_t)p + hdr->size); in mdbg_set_magic_end() [all …]
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | modwebrepl.c | 66 struct webrepl_file hdr; member 138 switch (self->hdr.type) { in handle_op() 150 mp_obj_new_str(self->hdr.fname, strlen(self->hdr.fname)), in handle_op() 154 if (self->hdr.type == PUT_FILE) { in handle_op() 169 if (self->hdr.type == PUT_FILE) { in handle_op() 170 self->data_to_recv = self->hdr.size; in handle_op() 172 } else if (self->hdr.type == GET_FILE) { in handle_op() 227 char *p = (char *)&self->hdr + sizeof(self->hdr) - self->hdr_to_recv; in _webrepl_read() 240 …p: %d, file: %s, chunk @%x, sz=%d\n", self->hdr.type, self->hdr.fname, (uint32_t)self->hdr.offset,… in _webrepl_read() 265 if (self->hdr.type == PUT_FILE) { in _webrepl_read() [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/ieee80211/ |
A D | zconfig_ieee80211.c | 150 return hdr->addr4; in ieee80211_get_SA() 152 return hdr->addr3; in ieee80211_get_SA() 153 return hdr->addr2; in ieee80211_get_SA() 169 return hdr->addr3; in ieee80211_get_DA() 171 return hdr->addr1; in ieee80211_get_DA() 178 return hdr->addr1; in ieee80211_get_BSSID() 183 return hdr->addr2; in ieee80211_get_BSSID() 185 return hdr->addr3; in ieee80211_get_BSSID() 249 struct ieee80211_radiotap_header *hdr = in ieee80211_get_radiotap_len() local 762 struct ieee80211_hdr *hdr; in ieee80211_data_extract() local [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/hci_driver/ |
A D | h5_driver.c | 92 struct bt_hci_evt_hdr hdr; in hci_h5_event_recv() local 104 hdr.evt = *pdata++; in hci_h5_event_recv() 105 hdr.len = *pdata++; in hci_h5_event_recv() 107 if (len < hdr.len + 2) { in hci_h5_event_recv() 111 if (hdr.evt == BT_HCI_EVT_LE_META_EVENT) { in hci_h5_event_recv() 119 if (hdr.evt == BT_HCI_EVT_CMD_COMPLETE || in hci_h5_event_recv() 120 hdr.evt == BT_HCI_EVT_CMD_STATUS) { in hci_h5_event_recv() 143 net_buf_add_mem(buf, ((uint8_t *)(data)), hdr.len + sizeof(hdr)); in hci_h5_event_recv() 148 if (bt_hci_evt_is_prio(hdr.evt)) { in hci_h5_event_recv()
|
A D | h4_driver.c | 68 uint8_t hdr[4]; member 173 struct bt_hci_evt_hdr hdr; in hci_event_recv() local 189 hdr.evt = *pdata++; in hci_event_recv() 190 hdr.len = *pdata++; in hci_event_recv() 192 if (len < hdr.len + 3) { in hci_event_recv() 204 if (hdr.evt == BT_HCI_EVT_CMD_COMPLETE || in hci_event_recv() 205 hdr.evt == BT_HCI_EVT_CMD_STATUS) { in hci_event_recv() 228 net_buf_add_mem(buf, ((uint8_t *)(data)) + 1, hdr.len + sizeof(hdr)); in hci_event_recv() 233 if (bt_hci_evt_is_prio(hdr.evt)) { in hci_event_recv() 360 hci_h4.rx.remaining = hdr->len; in get_acl_hdr() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/tools/ |
A D | tiffdump.c | 70 } hdr; variable 187 hdr.common.tiff_magic, hdr.common.tiff_magic); in dump() 196 if (hdr.common.tiff_version==42) in dump() 203 hdr.classic.tiff_magic, in dump() 207 diroff = hdr.classic.tiff_diroff; in dump() 209 else if (hdr.common.tiff_version==43) in dump() 216 TIFFSwabShort(&hdr.big.tiff_unused); in dump() 220 hdr.big.tiff_magic, in dump() 224 hdr.big.tiff_offsetsize,hdr.big.tiff_unused); in dump() 226 diroff = hdr.big.tiff_diroff; in dump() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/ |
A D | vp8_dec.c | 151 assert(hdr != NULL); in ResetSegmentHeader() 152 hdr->use_segment_ = 0; in ResetSegmentHeader() 153 hdr->update_map_ = 0; in ResetSegmentHeader() 154 hdr->absolute_delta_ = 1; in ResetSegmentHeader() 155 memset(hdr->quantizer_, 0, sizeof(hdr->quantizer_)); in ResetSegmentHeader() 156 memset(hdr->filter_strength_, 0, sizeof(hdr->filter_strength_)); in ResetSegmentHeader() 163 assert(hdr != NULL); in ParseSegmentHeader() 165 if (hdr->use_segment_) { in ParseSegmentHeader() 177 if (hdr->update_map_) { in ParseSegmentHeader() 184 hdr->update_map_ = 0; in ParseSegmentHeader() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv4/ |
A D | etharp.c | 662 struct etharp_hdr *hdr; local 678 hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen)); 690 autoip_arp_reply(netif, hdr); 715 switch (hdr->opcode) { 732 IPADDR2_COPY(&hdr->dipaddr, &hdr->sipaddr); 741 ETHADDR16_COPY(&hdr->dhwaddr, &hdr->shwaddr); 754 ethernet_output(netif, p, &hdr->shwaddr, &hdr->dhwaddr, ETHTYPE_ARP); 1155 struct etharp_hdr *hdr; local 1173 hdr->opcode = lwip_htons(opcode); 1187 hdr->proto = PP_HTONS(ETHTYPE_IP); [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/hci_driver/ |
A D | hci_driver.c | 74 uint8_t hdr[4]; member 83 net_buf_add_mem(buf, rx.hdr, rx.hdr_len); in copy_hdr() 97 struct bt_hci_evt_hdr *hdr = &rx.evt; in get_evt_hdr() local 100 memcpy((uint8_t *)hdr, data, rx.hdr_len); in get_evt_hdr() 103 memcpy((uint8_t *)hdr + rx.hdr_len, data + rx.hdr_len, 1); in get_evt_hdr() 108 rx.hdr[sizeof(*hdr)] == BT_HCI_EVT_LE_ADVERTISING_REPORT) { in get_evt_hdr() 113 rx.remaining = hdr->len - (rx.hdr_len - sizeof(*hdr)); in get_evt_hdr() 114 BT_DBG("Got event header. Payload %u bytes", hdr->len); in get_evt_hdr() 122 struct bt_hci_acl_hdr *hdr = &rx.acl; in get_acl_hdr() local 125 memcpy((uint8_t *)hdr, data, rx.hdr_len); in get_acl_hdr() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/communication/comminication_knowles/ |
A D | tool_msg.h | 27 ((unsigned char *)&((struct boot_struct_t *)(b))->hdr.security) 30 (unsigned int)&((struct boot_struct_t *)0)->hdr.security) 44 #define MSG_TOTAL_LEN(msg) (sizeof((msg)->hdr) + (msg)->hdr.len + 1) 148 } hdr; member 161 } hdr; member
|