Lines Matching refs:skb_info
462 const struct dpmaif_cur_rx_skb_info *skb_info) in t7xx_dpmaif_get_frag() argument
471 ret = t7xx_dpmaif_set_frag_to_skb(rxq, pkt_info, skb_info->cur_skb); in t7xx_dpmaif_get_frag()
648 struct dpmaif_cur_rx_skb_info *skb_info) in t7xx_dpmaif_parse_msg_pit() argument
652 skb_info->cur_chn_idx = FIELD_GET(MSG_PIT_CHANNEL_ID, header); in t7xx_dpmaif_parse_msg_pit()
653 skb_info->check_sum = FIELD_GET(MSG_PIT_CHECKSUM, header); in t7xx_dpmaif_parse_msg_pit()
654 skb_info->pit_dp = FIELD_GET(MSG_PIT_DP, header); in t7xx_dpmaif_parse_msg_pit()
655 skb_info->pkt_type = FIELD_GET(MSG_PIT_IP, le32_to_cpu(msg_pit->msg.params_3)); in t7xx_dpmaif_parse_msg_pit()
660 struct dpmaif_cur_rx_skb_info *skb_info) in t7xx_dpmaif_set_data_to_skb() argument
689 skb_info->cur_skb = skb; in t7xx_dpmaif_set_data_to_skb()
696 struct dpmaif_cur_rx_skb_info *skb_info) in t7xx_dpmaif_get_rx_pkt() argument
705 ret = t7xx_dpmaif_set_data_to_skb(rxq, pkt_info, skb_info); in t7xx_dpmaif_get_rx_pkt()
742 struct dpmaif_cur_rx_skb_info *skb_info) in t7xx_dpmaif_rx_skb() argument
744 struct sk_buff *skb = skb_info->cur_skb; in t7xx_dpmaif_rx_skb()
748 skb_info->cur_skb = NULL; in t7xx_dpmaif_rx_skb()
750 if (skb_info->pit_dp) { in t7xx_dpmaif_rx_skb()
755 skb->ip_summed = skb_info->check_sum == DPMAIF_CS_RESULT_PASS ? CHECKSUM_UNNECESSARY : in t7xx_dpmaif_rx_skb()
757 netif_id = FIELD_GET(NETIF_MASK, skb_info->cur_chn_idx); in t7xx_dpmaif_rx_skb()
760 skb_cb->rx_pkt_type = skb_info->pkt_type; in t7xx_dpmaif_rx_skb()
769 struct dpmaif_cur_rx_skb_info *skb_info; in t7xx_dpmaif_rx_start() local
773 skb_info = &rxq->rx_data_info; in t7xx_dpmaif_rx_start()
780 if (!skb_info->msg_pit_received && time_after_eq(jiffies, timeout)) in t7xx_dpmaif_rx_start()
791 if (skb_info->msg_pit_received) in t7xx_dpmaif_rx_start()
794 skb_info->msg_pit_received = true; in t7xx_dpmaif_rx_start()
795 t7xx_dpmaif_parse_msg_pit(rxq, pkt_info, skb_info); in t7xx_dpmaif_rx_start()
799 ret = t7xx_dpmaif_get_rx_pkt(rxq, pkt_info, skb_info); in t7xx_dpmaif_rx_start()
800 else if (!skb_info->cur_skb) in t7xx_dpmaif_rx_start()
803 ret = t7xx_dpmaif_get_frag(rxq, pkt_info, skb_info); in t7xx_dpmaif_rx_start()
806 skb_info->err_payload = 1; in t7xx_dpmaif_rx_start()
812 if (!skb_info->err_payload) { in t7xx_dpmaif_rx_start()
813 t7xx_dpmaif_rx_skb(rxq, skb_info); in t7xx_dpmaif_rx_start()
814 } else if (skb_info->cur_skb) { in t7xx_dpmaif_rx_start()
815 dev_kfree_skb_any(skb_info->cur_skb); in t7xx_dpmaif_rx_start()
816 skb_info->cur_skb = NULL; in t7xx_dpmaif_rx_start()
819 memset(skb_info, 0, sizeof(*skb_info)); in t7xx_dpmaif_rx_start()