Lines Matching refs:header
190 struct pkt_hdr *header;
195 skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL);
201 header = (void *)skb_put(skb, sizeof(*header));
203 buflen = snprintf((void *)&header[1], buflen - 1,
207 header->size = cpu_to_le16(buflen);
208 header->vpi = cpu_to_le16(0);
209 header->vci = cpu_to_le16(0);
210 header->type = cpu_to_le16(PKT_COMMAND);
245 struct pkt_hdr *header;
251 skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL);
257 header = (void *)skb_put(skb, sizeof(*header));
259 buflen = snprintf((void *)&header[1], buflen - 1,
263 header->size = cpu_to_le16(buflen);
264 header->vpi = cpu_to_le16(0);
265 header->vci = cpu_to_le16(0);
266 header->type = cpu_to_le16(PKT_COMMAND);
466 struct pkt_hdr *header;
468 if (size > (BUF_SIZE - sizeof(*header))) {
472 skb = alloc_skb(size + sizeof(*header), GFP_ATOMIC);
478 header = (void *)skb_put(skb, sizeof(*header));
480 header->size = cpu_to_le16(size);
481 header->vpi = cpu_to_le16(0);
482 header->vci = cpu_to_le16(0);
483 header->type = cpu_to_le16(PKT_COMMAND);
659 struct pkt_hdr _hdr, *header;
671 header = (void *)skb->data;
672 size = le16_to_cpu(header->size);
673 skb_put(skb, size + sizeof(*header));
674 skb_pull(skb, sizeof(*header));
676 header = &_hdr;
680 memcpy_fromio(header, RX_BUF(card, port), sizeof(*header));
682 size = le16_to_cpu(header->size);
683 if (size > (card->buffer_size - sizeof(*header))){
696 RX_BUF(card, port) + sizeof(*header),
702 size, le16_to_cpu(header->vpi),
703 le16_to_cpu(header->vci));
707 switch (le16_to_cpu(header->type)) {
709 vcc = find_vcc(card->atmdev[port], le16_to_cpu(header->vpi),
710 le16_to_cpu(header->vci));
714 le16_to_cpu(header->vci), le16_to_cpu(header->vpi),
860 struct pkt_hdr *header;
868 skb = alloc_skb(sizeof(*header), GFP_ATOMIC);
873 header = (void *)skb_put(skb, sizeof(*header));
875 header->size = cpu_to_le16(0);
876 header->vpi = cpu_to_le16(vcc->vpi);
877 header->vci = cpu_to_le16(vcc->vci);
878 header->type = cpu_to_le16(PKT_POPEN);
894 struct pkt_hdr *header;
896 skb = alloc_skb(sizeof(*header), GFP_ATOMIC);
901 header = (void *)skb_put(skb, sizeof(*header));
903 header->size = cpu_to_le16(0);
904 header->vpi = cpu_to_le16(vcc->vpi);
905 header->vci = cpu_to_le16(vcc->vci);
906 header->type = cpu_to_le16(PKT_PCLOSE);
1046 struct pkt_hdr *header;
1050 if (pktlen > (BUF_SIZE - sizeof(*header))) {
1056 if (!skb_clone_writable(skb, sizeof(*header))) {
1060 if (skb_headroom(skb) < sizeof(*header))
1061 expand_by = sizeof(*header) - skb_headroom(skb);
1071 header = (void *)skb_push(skb, sizeof(*header));
1073 /* This does _not_ include the size of the header */
1074 header->size = cpu_to_le16(pktlen);
1075 header->vpi = cpu_to_le16(vcc->vpi);
1076 header->vci = cpu_to_le16(vcc->vci);
1077 header->type = cpu_to_le16(PKT_DATA);
1234 struct pkt_hdr *header;
1258 skb = alloc_skb(sizeof(*header), GFP_ATOMIC);
1264 header = (void *)skb_put(skb, sizeof(*header));
1266 header->size = cpu_to_le16(0);
1267 header->vpi = cpu_to_le16(0);
1268 header->vci = cpu_to_le16(0);
1269 header->type = cpu_to_le16(PKT_STATUS);