Lines Matching refs:hdr

1024 	if (cmd->hdr.return_code == 0) {  in qeth_l3_default_setassparms_cb()
1025 cmd->hdr.return_code = cmd->data.setassparms.hdr.return_code; in qeth_l3_default_setassparms_cb()
1026 if (cmd->hdr.prot_version == QETH_PROT_IPV4) in qeth_l3_default_setassparms_cb()
1027 card->options.ipa4.enabled_funcs = cmd->hdr.ipa_enabled; in qeth_l3_default_setassparms_cb()
1028 if (cmd->hdr.prot_version == QETH_PROT_IPV6) in qeth_l3_default_setassparms_cb()
1029 card->options.ipa6.enabled_funcs = cmd->hdr.ipa_enabled; in qeth_l3_default_setassparms_cb()
1031 if (cmd->data.setassparms.hdr.assist_no == IPA_INBOUND_CHECKSUM && in qeth_l3_default_setassparms_cb()
1032 cmd->data.setassparms.hdr.command_code == IPA_CMD_ASS_START) { in qeth_l3_default_setassparms_cb()
1036 if (cmd->data.setassparms.hdr.assist_no == IPA_OUTBOUND_CHECKSUM && in qeth_l3_default_setassparms_cb()
1037 cmd->data.setassparms.hdr.command_code == IPA_CMD_ASS_START) { in qeth_l3_default_setassparms_cb()
1058 cmd->data.setassparms.hdr.assist_no = ipa_func; in qeth_l3_get_setassparms_cmd()
1059 cmd->data.setassparms.hdr.length = 8 + len; in qeth_l3_get_setassparms_cmd()
1060 cmd->data.setassparms.hdr.command_code = cmd_code; in qeth_l3_get_setassparms_cmd()
1061 cmd->data.setassparms.hdr.return_code = 0; in qeth_l3_get_setassparms_cmd()
1062 cmd->data.setassparms.hdr.seq_no = 0; in qeth_l3_get_setassparms_cmd()
1488 if (cmd->hdr.return_code == 0) in qeth_l3_iqd_read_initial_mac_cb()
1524 if (cmd->hdr.return_code == 0) in qeth_l3_get_unique_id_cb()
1572 rc = cmd->hdr.return_code; in qeth_diags_trace_cb()
1875 struct sk_buff *skb, struct qeth_hdr *hdr, in qeth_l3_rebuild_skb() argument
1883 if (!(hdr->hdr.l3.flags & QETH_HDR_PASSTHRU)) { in qeth_l3_rebuild_skb()
1884 prot = htons((hdr->hdr.l3.flags & QETH_HDR_IPV6)? ETH_P_IPV6 : in qeth_l3_rebuild_skb()
1886 switch (hdr->hdr.l3.flags & QETH_HDR_CAST_MASK) { in qeth_l3_rebuild_skb()
1924 if (hdr->hdr.l3.ext_flags & QETH_HDR_EXT_SRC_MAC_ADDR) in qeth_l3_rebuild_skb()
1926 tg_addr, &hdr->hdr.l3.dest_addr[2], in qeth_l3_rebuild_skb()
1935 if (hdr->hdr.l3.ext_flags & in qeth_l3_rebuild_skb()
1937 *vlan_id = (hdr->hdr.l3.ext_flags & QETH_HDR_EXT_VLAN_FRAME) ? in qeth_l3_rebuild_skb()
1938 hdr->hdr.l3.vlan_id : *((u16 *)&hdr->hdr.l3.dest_addr[12]); in qeth_l3_rebuild_skb()
1943 if ((hdr->hdr.l3.ext_flags & in qeth_l3_rebuild_skb()
1962 struct qeth_hdr *hdr; in qeth_l3_process_inbound_buffer() local
1973 &card->rx.b_element, &card->rx.e_offset, &hdr); in qeth_l3_process_inbound_buffer()
1979 switch (hdr->hdr.l3.id) { in qeth_l3_process_inbound_buffer()
1994 is_vlan = qeth_l3_rebuild_skb(card, skb, hdr, in qeth_l3_process_inbound_buffer()
2012 QETH_DBF_HEX(CTRL, 3, hdr, QETH_DBF_CTRL_LEN); in qeth_l3_process_inbound_buffer()
2363 QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.prot_version); in qeth_l3_arp_query_cb()
2364 if (cmd->hdr.return_code) { in qeth_l3_arp_query_cb()
2366 QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.return_code); in qeth_l3_arp_query_cb()
2369 if (cmd->data.setassparms.hdr.return_code) { in qeth_l3_arp_query_cb()
2370 cmd->hdr.return_code = cmd->data.setassparms.hdr.return_code; in qeth_l3_arp_query_cb()
2372 QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.return_code); in qeth_l3_arp_query_cb()
2388 if (!arpentry_matches_prot(etype, cmd->hdr.prot_version)) { in qeth_l3_arp_query_cb()
2401 cmd->hdr.return_code = IPA_RC_ENOMEM; in qeth_l3_arp_query_cb()
2413 if (cmd->data.setassparms.hdr.seq_no < in qeth_l3_arp_query_cb()
2414 cmd->data.setassparms.hdr.number_of_replies) in qeth_l3_arp_query_cb()
2788 struct qeth_hdr *hdr, struct sk_buff *skb) in qeth_l3_fill_af_iucv_hdr() argument
2799 memset(hdr, 0, sizeof(struct qeth_hdr)); in qeth_l3_fill_af_iucv_hdr()
2800 hdr->hdr.l3.id = QETH_HEADER_TYPE_LAYER3; in qeth_l3_fill_af_iucv_hdr()
2801 hdr->hdr.l3.ext_flags = 0; in qeth_l3_fill_af_iucv_hdr()
2802 hdr->hdr.l3.length = skb->len; in qeth_l3_fill_af_iucv_hdr()
2803 hdr->hdr.l3.flags = QETH_HDR_IPV6 | QETH_CAST_UNICAST; in qeth_l3_fill_af_iucv_hdr()
2808 memcpy(hdr->hdr.l3.dest_addr, daddr, 16); in qeth_l3_fill_af_iucv_hdr()
2811 static void qeth_l3_fill_header(struct qeth_card *card, struct qeth_hdr *hdr, in qeth_l3_fill_header() argument
2816 memset(hdr, 0, sizeof(struct qeth_hdr)); in qeth_l3_fill_header()
2817 hdr->hdr.l3.id = QETH_HEADER_TYPE_LAYER3; in qeth_l3_fill_header()
2818 hdr->hdr.l3.ext_flags = 0; in qeth_l3_fill_header()
2826 hdr->hdr.l3.ext_flags = QETH_HDR_EXT_VLAN_FRAME; in qeth_l3_fill_header()
2828 hdr->hdr.l3.ext_flags = QETH_HDR_EXT_INCLUDE_VLAN_TAG; in qeth_l3_fill_header()
2829 hdr->hdr.l3.vlan_id = skb_vlan_tag_get(skb); in qeth_l3_fill_header()
2832 hdr->hdr.l3.length = skb->len - sizeof(struct qeth_hdr); in qeth_l3_fill_header()
2844 hdr->hdr.l3.flags = qeth_l3_get_qeth_hdr_flags4(cast_type); in qeth_l3_fill_header()
2845 memset(hdr->hdr.l3.dest_addr, 0, 12); in qeth_l3_fill_header()
2846 *((__be32 *) (&hdr->hdr.l3.dest_addr[12])) = *pkey; in qeth_l3_fill_header()
2855 hdr->hdr.l3.flags = qeth_l3_get_qeth_hdr_flags6(cast_type); in qeth_l3_fill_header()
2857 hdr->hdr.l3.flags &= ~QETH_HDR_PASSTHRU; in qeth_l3_fill_header()
2858 memcpy(hdr->hdr.l3.dest_addr, pkey, 16); in qeth_l3_fill_header()
2863 hdr->hdr.l3.flags = QETH_CAST_BROADCAST | in qeth_l3_fill_header()
2866 hdr->hdr.l3.flags = (cast_type == RTN_MULTICAST) ? in qeth_l3_fill_header()
2875 struct qeth_hdr *hdr, struct sk_buff *skb) in qeth_l3_hdr_csum() argument
2883 hdr->hdr.l3.ext_flags |= QETH_HDR_EXT_UDP; in qeth_l3_hdr_csum()
2884 hdr->hdr.l3.ext_flags |= QETH_HDR_EXT_CSUM_TRANSP_REQ | in qeth_l3_hdr_csum()
2894 struct qeth_hdr_tso *hdr = (struct qeth_hdr_tso *)qhdr; in qeth_tso_fill_header() local
2900 hdr->hdr.hdr.l3.id = QETH_HEADER_TYPE_TSO; in qeth_tso_fill_header()
2901 hdr->hdr.hdr.l3.length = skb->len - sizeof(struct qeth_hdr_tso); in qeth_tso_fill_header()
2903 hdr->ext.hdr_tot_len = (__u16) sizeof(struct qeth_hdr_ext_tso); in qeth_tso_fill_header()
2904 hdr->ext.imb_hdr_no = 1; in qeth_tso_fill_header()
2905 hdr->ext.hdr_type = 1; in qeth_tso_fill_header()
2906 hdr->ext.hdr_version = 1; in qeth_tso_fill_header()
2907 hdr->ext.hdr_len = 28; in qeth_tso_fill_header()
2909 hdr->ext.mss = skb_shinfo(skb)->gso_size; in qeth_tso_fill_header()
2910 hdr->ext.dg_hdr_len = (__u16)(iph->ihl*4 + tcph->doff*4); in qeth_tso_fill_header()
2911 hdr->ext.payload_len = (__u16)(skb->len - hdr->ext.dg_hdr_len - in qeth_tso_fill_header()
2943 struct qeth_hdr *hdr = NULL; in qeth_l3_hard_start_xmit() local
2990 hdr = kmem_cache_alloc(qeth_core_header_cache, GFP_ATOMIC); in qeth_l3_hard_start_xmit()
2991 if (!hdr) in qeth_l3_hard_start_xmit()
3038 hdr = (struct qeth_hdr *)skb_push(new_skb, in qeth_l3_hard_start_xmit()
3040 memset(hdr, 0, sizeof(struct qeth_hdr_tso)); in qeth_l3_hard_start_xmit()
3041 qeth_l3_fill_header(card, hdr, new_skb, ipv, cast_type); in qeth_l3_hard_start_xmit()
3042 qeth_tso_fill_header(card, hdr, new_skb); in qeth_l3_hard_start_xmit()
3046 hdr = (struct qeth_hdr *)skb_push(new_skb, in qeth_l3_hard_start_xmit()
3048 qeth_l3_fill_header(card, hdr, new_skb, ipv, in qeth_l3_hard_start_xmit()
3052 qeth_l3_fill_af_iucv_hdr(card, hdr, new_skb); in qeth_l3_hard_start_xmit()
3054 qeth_l3_fill_header(card, hdr, new_skb, ipv, in qeth_l3_hard_start_xmit()
3056 hdr->hdr.l3.length = new_skb->len - data_offset; in qeth_l3_hard_start_xmit()
3061 qeth_l3_hdr_csum(card, hdr, new_skb); in qeth_l3_hard_start_xmit()
3067 kmem_cache_free(qeth_core_header_cache, hdr); in qeth_l3_hard_start_xmit()
3082 if (qeth_hdr_chk_and_bounce(new_skb, &hdr, len)) in qeth_l3_hard_start_xmit()
3084 rc = qeth_do_send_packet(card, queue, new_skb, hdr, in qeth_l3_hard_start_xmit()
3087 rc = qeth_do_send_packet_fast(card, queue, new_skb, hdr, in qeth_l3_hard_start_xmit()
3109 kmem_cache_free(qeth_core_header_cache, hdr); in qeth_l3_hard_start_xmit()