| /components/net/lwip/lwip-2.1.2/src/include/lwip/prot/ |
| A D | ip4.h | 104 #define IPH_V(hdr) ((hdr)->_v_hl >> 4) argument 105 #define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) argument 107 #define IPH_TOS(hdr) ((hdr)->_tos) argument 108 #define IPH_LEN(hdr) ((hdr)->_len) argument 109 #define IPH_ID(hdr) ((hdr)->_id) argument 110 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument 112 #define IPH_TTL(hdr) ((hdr)->_ttl) argument 113 #define IPH_PROTO(hdr) ((hdr)->_proto) argument 114 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument 118 #define IPH_TOS_SET(hdr, tos) (hdr)->_tos = (tos) argument [all …]
|
| A D | ip6.h | 100 #define IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen)) argument 101 #define IP6H_NEXTH(hdr) ((hdr)->_nexth) argument 102 #define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) argument 103 #define IP6H_HOPLIM(hdr) ((hdr)->_hoplim) argument 135 #define IP6_OPT_TYPE(hdr) ((hdr)->_opt_type) argument 136 #define IP6_OPT_DLEN(hdr) ((hdr)->_opt_dlen) argument 155 #define IP6_HBH_NEXTH(hdr) ((hdr)->_nexth) argument 174 #define IP6_DEST_NEXTH(hdr) ((hdr)->_nexth) argument 198 #define IP6_ROUT_NEXTH(hdr) ((hdr)->_nexth) argument 199 #define IP6_ROUT_TYPE(hdr) ((hdr)->_routing_type) 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
|
| A D | dns.h | 96 #define DNS_HDR_GET_OPCODE(hdr) ((((hdr)->flags1) >> 3) & 0xF) argument
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/prot/ |
| A D | ip4.h | 102 #define IPH_V(hdr) ((hdr)->_v_hl >> 4) argument 103 #define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) argument 104 #define IPH_TOS(hdr) ((hdr)->_tos) argument 105 #define IPH_LEN(hdr) ((hdr)->_len) argument 106 #define IPH_ID(hdr) ((hdr)->_id) argument 107 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument 108 #define IPH_TTL(hdr) ((hdr)->_ttl) argument 109 #define IPH_PROTO(hdr) ((hdr)->_proto) argument 110 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument 114 #define IPH_TOS_SET(hdr, tos) (hdr)->_tos = (tos) argument [all …]
|
| A D | ip6.h | 152 #define IP6H_V(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 28) & 0x0f) argument 153 #define IP6H_TC(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 20) & 0xff) argument 154 #define IP6H_FL(hdr) (lwip_ntohl((hdr)->_v_tc_fl) & 0x000fffff) argument 155 #define IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen)) argument 156 #define IP6H_NEXTH(hdr) ((hdr)->_nexth) argument 157 #define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) argument 158 #define IP6H_HOPLIM(hdr) ((hdr)->_hoplim) argument 160 #define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (lwip_htonl((((u32_t)(v)) << 28) | (((u32_… argument 161 #define IP6H_PLEN_SET(hdr, plen) (hdr)->_plen = lwip_htons(plen) argument 162 #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
|
| A D | dns.h | 96 #define DNS_HDR_GET_OPCODE(hdr) ((((hdr)->flags1) >> 3) & 0xF) argument
|
| /components/net/lwip/lwip-1.4.1/src/include/ipv4/lwip/ |
| A D | ip.h | 146 #define IPH_V(hdr) ((hdr)->_v_hl >> 4) argument 147 #define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) argument 148 #define IPH_TOS(hdr) ((hdr)->_tos) argument 149 #define IPH_LEN(hdr) ((hdr)->_len) argument 150 #define IPH_ID(hdr) ((hdr)->_id) argument 151 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument 152 #define IPH_TTL(hdr) ((hdr)->_ttl) argument 153 #define IPH_PROTO(hdr) ((hdr)->_proto) argument 154 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument 157 #define IPH_TOS_SET(hdr, tos) (hdr)->_tos = (tos) argument [all …]
|
| A D | icmp.h | 91 #define ICMPH_TYPE(hdr) ((hdr)->type) argument 92 #define ICMPH_CODE(hdr) ((hdr)->code) argument 95 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) argument 96 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c)) argument
|
| /components/drivers/virtio/ |
| A D | virtio_gpu.h | 125 struct virtio_gpu_ctrl_hdr hdr; member 136 struct virtio_gpu_ctrl_hdr hdr; member 143 struct virtio_gpu_ctrl_hdr hdr; member 165 struct virtio_gpu_ctrl_hdr hdr; member 174 struct virtio_gpu_ctrl_hdr hdr; member 181 struct virtio_gpu_ctrl_hdr hdr; member 189 struct virtio_gpu_ctrl_hdr hdr; member 197 struct virtio_gpu_ctrl_hdr hdr; member 206 struct virtio_gpu_ctrl_hdr hdr; member 220 struct virtio_gpu_ctrl_hdr hdr; member [all …]
|
| A D | virtio_net.c | 29 virtio_net_dev->info[id].hdr.flags = 0; in virtio_net_tx() 30 virtio_net_dev->info[id].hdr.gso_type = 0; in virtio_net_tx() 31 virtio_net_dev->info[id].hdr.hdr_len = 0; in virtio_net_tx() 32 virtio_net_dev->info[id].hdr.gso_size = 0; in virtio_net_tx() 33 virtio_net_dev->info[id].hdr.csum_start = 0; in virtio_net_tx() 34 virtio_net_dev->info[id].hdr.csum_offset = 0; in virtio_net_tx() 35 virtio_net_dev->info[id].hdr.num_buffers = 0; in virtio_net_tx() 43 … VIRTIO_VA2PA(&virtio_net_dev->info[id].hdr), VIRTIO_NET_HDR_SIZE, VIRTQ_DESC_F_NEXT, id + 1); in virtio_net_tx()
|
| /components/drivers/can/ |
| A D | dev_can.c | 31 can->hdr = RT_NULL; in rt_can_init() 70 … if (hdr >= 0 && can->hdr && hdr < can->config.maxhdr && !rt_list_isempty(&can->hdr[hdr].list)) in _can_int_rx() 75 if (can->hdr[hdr].msgs) in _can_int_rx() 77 can->hdr[hdr].msgs--; in _can_int_rx() 850 RT_ASSERT(hdr < can->config.maxhdr && hdr >= 0); in rt_hw_can_isr() 851 if (can->hdr[hdr].connected) in rt_hw_can_isr() 854 listmsg->owner = &can->hdr[hdr]; in rt_hw_can_isr() 855 can->hdr[hdr].msgs++; in rt_hw_can_isr() 865 if (can->hdr != RT_NULL && can->hdr[hdr].connected && can->hdr[hdr].filter.ind) in rt_hw_can_isr() 868 RT_ASSERT(hdr < can->config.maxhdr && hdr >= 0); in rt_hw_can_isr() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/netif/ |
| A D | etharp.c | 690 struct etharp_hdr *hdr; local 728 hdr->hwtype, hdr->hwlen, hdr->proto, hdr->protolen)); 740 autoip_arp_reply(netif, hdr); 765 switch (hdr->opcode) { 782 IPADDR2_COPY(&hdr->dipaddr, &hdr->sipaddr); 794 ETHADDR16_COPY(&hdr->dhwaddr, &hdr->shwaddr); 1184 struct etharp_hdr *hdr; local 1206 hdr->opcode = htons(opcode); 1232 hdr->proto = PP_HTONS(ETHTYPE_IP); 1234 hdr->hwlen = ETHARP_HWADDR_LEN; [all …]
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | ip6_frag.h | 71 #define IPV6_FRAG_HDRREF(hdr) (&(hdr)) argument 74 #define IPV6_FRAG_HDRREF(hdr) (hdr)
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv4/ |
| A D | etharp.c | 643 struct etharp_hdr *hdr; local 650 hdr = (struct etharp_hdr *)p->payload; 654 (hdr->hwlen != ETH_HWADDR_LEN) || 659 hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen)); 671 autoip_arp_reply(netif, hdr); 696 switch (hdr->opcode) { 1110 struct etharp_hdr *hdr; local 1128 hdr->opcode = lwip_htons(opcode); 1142 hdr->proto = PP_HTONS(ETHTYPE_IP); 1144 hdr->hwlen = ETH_HWADDR_LEN; [all …]
|
| A D | autoip.c | 453 autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) in autoip_arp_reply() argument 471 IPADDR2_COPY(&sipaddr, &hdr->sipaddr); in autoip_arp_reply() 472 IPADDR2_COPY(&dipaddr, &hdr->dipaddr); in autoip_arp_reply() 484 !eth_addr_cmp(&netifaddr, &hdr->shwaddr))) { in autoip_arp_reply() 495 !eth_addr_cmp(&netifaddr, &hdr->shwaddr)) { in autoip_arp_reply()
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv4/ |
| A D | etharp.c | 643 struct etharp_hdr *hdr; local 652 hdr = (struct etharp_hdr *)p->payload; 656 (hdr->hwlen != ETH_HWADDR_LEN) || 661 hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen)); 673 autoip_arp_reply(netif, hdr); 698 switch (hdr->opcode) { 1109 struct etharp_hdr *hdr; local 1127 hdr->opcode = lwip_htons(opcode); 1141 hdr->proto = PP_HTONS(ETHTYPE_IP); 1143 hdr->hwlen = ETH_HWADDR_LEN; [all …]
|
| /components/drivers/usb/cherryusb/class/vendor/wifi/ |
| A D | usbh_bl616.h | 111 rnm_base_msg_t hdr; member 115 rnm_base_msg_t hdr; member 121 rnm_base_msg_t hdr; member 128 rnm_base_msg_t hdr; member 148 rnm_base_msg_t hdr; member
|
| /components/drivers/usb/cherryusb/class/wireless/ |
| A D | usbd_rndis.c | 475 rndis_data_packet_t *hdr; in rndis_bulk_out() local 480 hdr = (rndis_data_packet_t *)g_rndis_rx_data_buffer; in rndis_bulk_out() 481 if ((hdr->MessageType != REMOTE_NDIS_PACKET_MSG) || (nbytes < hdr->MessageLength)) { in rndis_bulk_out() 487 g_rndis_rx_data_buffer += hdr->DataOffset + sizeof(rndis_generic_msg_t); in rndis_bulk_out() 488 g_rndis_rx_data_length = hdr->DataLength; in rndis_bulk_out() 570 rndis_data_packet_t *hdr; in usbd_rndis_eth_tx() local 590 hdr = (rndis_data_packet_t *)g_rndis_tx_buffer; in usbd_rndis_eth_tx() 592 memset(hdr, 0, sizeof(rndis_data_packet_t)); in usbd_rndis_eth_tx() 593 hdr->MessageType = REMOTE_NDIS_PACKET_MSG; in usbd_rndis_eth_tx() 594 hdr->MessageLength = sizeof(rndis_data_packet_t) + p->tot_len; in usbd_rndis_eth_tx() [all …]
|
| A D | usbh_rndis.c | 554 rndis_data_packet_t *hdr; local 561 hdr = (rndis_data_packet_t *)g_rndis_tx_buffer; 562 memset(hdr, 0, sizeof(rndis_data_packet_t)); 564 hdr->MessageType = REMOTE_NDIS_PACKET_MSG; 565 hdr->MessageLength = sizeof(rndis_data_packet_t) + buflen; 566 hdr->DataOffset = sizeof(rndis_data_packet_t) - sizeof(rndis_generic_msg_t); 567 hdr->DataLength = buflen; 569 len = hdr->MessageLength;
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | dns.c | 577 struct dns_hdr *hdr; in dns_send() local 595 hdr = (struct dns_hdr*)p->payload; in dns_send() 596 memset(hdr, 0, SIZEOF_DNS_HDR); in dns_send() 597 hdr->id = htons(id); in dns_send() 598 hdr->flags1 = DNS_FLAG1_RD; in dns_send() 599 hdr->numquestions = PP_HTONS(1); in dns_send() 600 query = (char*)hdr + SIZEOF_DNS_HDR; in dns_send() 751 struct dns_hdr *hdr; in dns_recv() local 778 hdr = (struct dns_hdr*)dns_payload; in dns_recv() 779 i = htons(hdr->id); in dns_recv() [all …]
|
| /components/drivers/pin/ |
| A D | dev_pin_dm.c | 71 rt_uint8_t mode, void (*hdr)(void *args), void *args) in pin_api_attach_irq() 92 legacy_isr->hdr = hdr; in pin_api_attach_irq() 99 return gpio->ops->pin_attach_irq(&gpio->parent, pin_index, mode, hdr, args); in pin_api_attach_irq() 359 if (legacy_isr->hdr) in pin_pic_handle_isr() 361 legacy_isr->hdr(legacy_isr->args); in pin_pic_handle_isr()
|
| /components/drivers/include/drivers/ |
| A D | dev_pin.h | 191 void (*hdr)(void *args); member 216 rt_uint8_t mode, void (*hdr)(void *args), void *args); 276 void (*hdr)(void *args), void *args);
|
| /components/drivers/pci/host/dw/ |
| A D | pcie-dw_ep.c | 172 struct rt_pci_ep_header *hdr) in dw_pcie_ep_write_header() argument 182 dw_pcie_writew_dbi(pci, func_offset + PCIR_VENDOR, hdr->vendor); in dw_pcie_ep_write_header() 183 dw_pcie_writew_dbi(pci, func_offset + PCIR_DEVICE, hdr->device); in dw_pcie_ep_write_header() 184 dw_pcie_writeb_dbi(pci, func_offset + PCIR_REVID, hdr->revision); in dw_pcie_ep_write_header() 185 dw_pcie_writeb_dbi(pci, func_offset + PCIR_PROGIF, hdr->progif); in dw_pcie_ep_write_header() 186 dw_pcie_writew_dbi(pci, func_offset + PCIR_SUBCLASS, hdr->subclass | hdr->class_code << 8); in dw_pcie_ep_write_header() 187 dw_pcie_writeb_dbi(pci, func_offset + PCIR_CACHELNSZ, hdr->cache_line_size); in dw_pcie_ep_write_header() 188 dw_pcie_writew_dbi(pci, func_offset + PCIR_SUBVEND_0, hdr->subsystem_vendor); in dw_pcie_ep_write_header() 189 dw_pcie_writew_dbi(pci, func_offset + PCIR_SUBDEV_0, hdr->subsystem_device); in dw_pcie_ep_write_header() 190 dw_pcie_writeb_dbi(pci, func_offset + PCIR_INTPIN, hdr->intx); in dw_pcie_ep_write_header()
|