• Home
  • Raw
  • Download

Lines Matching refs:rxdp

100 static inline int RXD_IS_UP2DT(struct RxD_t *rxdp)  in RXD_IS_UP2DT()  argument
104 ret = ((!(rxdp->Control_1 & RXD_OWN_XENA)) && in RXD_IS_UP2DT()
105 (GET_RXD_MARKER(rxdp->Control_2) != THE_RXD_MARK)); in RXD_IS_UP2DT()
2455 struct RxD_t *rxdp; in fill_rx_buffers() local
2475 rxdp = ring->rx_blocks[block_no].rxds[off].virt_addr; in fill_rx_buffers()
2479 (rxdp->Host_Control)) { in fill_rx_buffers()
2492 rxdp = ring->rx_blocks[block_no].block_virt_addr; in fill_rx_buffers()
2494 ring->dev->name, rxdp); in fill_rx_buffers()
2498 if ((rxdp->Control_1 & RXD_OWN_XENA) && in fill_rx_buffers()
2500 (rxdp->Control_2 & s2BIT(0)))) { in fill_rx_buffers()
2530 rxdp1 = (struct RxD1 *)rxdp; in fill_rx_buffers()
2531 memset(rxdp, 0, sizeof(struct RxD1)); in fill_rx_buffers()
2540 rxdp->Control_2 = in fill_rx_buffers()
2542 rxdp->Host_Control = (unsigned long)skb; in fill_rx_buffers()
2550 rxdp3 = (struct RxD3 *)rxdp; in fill_rx_buffers()
2554 memset(rxdp, 0, sizeof(struct RxD3)); in fill_rx_buffers()
2580 rxdp->Control_2 = SET_BUFFER0_SIZE_3(BUF0_LEN); in fill_rx_buffers()
2613 rxdp->Control_2 |= SET_BUFFER1_SIZE_3(1); in fill_rx_buffers()
2614 rxdp->Control_2 |= SET_BUFFER2_SIZE_3 in fill_rx_buffers()
2617 rxdp->Control_2 |= s2BIT(0); in fill_rx_buffers()
2618 rxdp->Host_Control = (unsigned long) (skb); in fill_rx_buffers()
2621 rxdp->Control_1 |= RXD_OWN_XENA; in fill_rx_buffers()
2627 rxdp->Control_2 |= SET_RXD_MARKER; in fill_rx_buffers()
2633 first_rxdp = rxdp; in fill_rx_buffers()
2663 struct RxD_t *rxdp; in free_rxd_blk() local
2671 rxdp = mac_control->rings[ring_no]. in free_rxd_blk()
2673 skb = (struct sk_buff *)((unsigned long)rxdp->Host_Control); in free_rxd_blk()
2677 rxdp1 = (struct RxD1 *)rxdp; in free_rxd_blk()
2684 memset(rxdp, 0, sizeof(struct RxD1)); in free_rxd_blk()
2686 rxdp3 = (struct RxD3 *)rxdp; in free_rxd_blk()
2696 memset(rxdp, 0, sizeof(struct RxD3)); in free_rxd_blk()
2891 struct RxD_t *rxdp; in rx_intr_handler() local
2905 rxdp = ring_data->rx_blocks[get_block].rxds[get_info.offset].virt_addr; in rx_intr_handler()
2907 while (RXD_IS_UP2DT(rxdp)) { in rx_intr_handler()
2918 skb = (struct sk_buff *)((unsigned long)rxdp->Host_Control); in rx_intr_handler()
2925 rxdp1 = (struct RxD1 *)rxdp; in rx_intr_handler()
2934 rxdp3 = (struct RxD3 *)rxdp; in rx_intr_handler()
2943 rx_osm_handler(ring_data, rxdp); in rx_intr_handler()
2946 rxdp = ring_data->rx_blocks[get_block]. in rx_intr_handler()
2955 rxdp = ring_data->rx_blocks[get_block].block_virt_addr; in rx_intr_handler()
6736 static int set_rxd_buffer_pointer(struct s2io_nic *sp, struct RxD_t *rxdp, in set_rxd_buffer_pointer() argument
6744 if ((sp->rxd_mode == RXD_MODE_1) && (rxdp->Host_Control == 0)) { in set_rxd_buffer_pointer()
6745 struct RxD1 *rxdp1 = (struct RxD1 *)rxdp; in set_rxd_buffer_pointer()
6775 rxdp->Host_Control = (unsigned long) (*skb); in set_rxd_buffer_pointer()
6777 } else if ((sp->rxd_mode == RXD_MODE_3B) && (rxdp->Host_Control == 0)) { in set_rxd_buffer_pointer()
6778 struct RxD3 *rxdp3 = (struct RxD3 *)rxdp; in set_rxd_buffer_pointer()
6810 rxdp->Host_Control = (unsigned long) (*skb); in set_rxd_buffer_pointer()
6837 static void set_rxd_buffer_size(struct s2io_nic *sp, struct RxD_t *rxdp, in set_rxd_buffer_size() argument
6842 rxdp->Control_2 = SET_BUFFER0_SIZE_1(size - NET_IP_ALIGN); in set_rxd_buffer_size()
6844 rxdp->Control_2 = SET_BUFFER0_SIZE_3(BUF0_LEN); in set_rxd_buffer_size()
6845 rxdp->Control_2 |= SET_BUFFER1_SIZE_3(1); in set_rxd_buffer_size()
6846 rxdp->Control_2 |= SET_BUFFER2_SIZE_3(dev->mtu + 4); in set_rxd_buffer_size()
6856 struct RxD_t *rxdp = NULL; in rxd_owner_bit_reset() local
6877 rxdp = ring->rx_blocks[j].rxds[k].virt_addr; in rxd_owner_bit_reset()
6880 if (set_rxd_buffer_pointer(sp, rxdp, ba, &skb, in rxd_owner_bit_reset()
6888 set_rxd_buffer_size(sp, rxdp, size); in rxd_owner_bit_reset()
6891 rxdp->Control_1 |= RXD_OWN_XENA; in rxd_owner_bit_reset()
7260 static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp) in rx_osm_handler() argument
7265 ((unsigned long)rxdp->Host_Control); in rx_osm_handler()
7268 unsigned long long err = rxdp->Control_1 & RXD_T_CODE; in rx_osm_handler()
7333 rxdp->Host_Control = 0; in rx_osm_handler()
7338 rxdp->Host_Control = 0; in rx_osm_handler()
7340 int len = RXD_GET_BUFFER0_SIZE_1(rxdp->Control_2); in rx_osm_handler()
7346 int buf0_len = RXD_GET_BUFFER0_SIZE_3(rxdp->Control_2); in rx_osm_handler()
7347 int buf2_len = RXD_GET_BUFFER2_SIZE_3(rxdp->Control_2); in rx_osm_handler()
7355 if ((rxdp->Control_1 & TCP_OR_UDP_FRAME) && in rx_osm_handler()
7357 (!(rxdp->Control_1 & RXD_FRAME_IP_FRAG))) && in rx_osm_handler()
7359 l3_csum = RXD_GET_L3_CKSUM(rxdp->Control_1); in rx_osm_handler()
7360 l4_csum = RXD_GET_L4_CKSUM(rxdp->Control_1); in rx_osm_handler()
7376 rxdp, sp); in rx_osm_handler()
7425 queue_rx_frame(skb, RXD_GET_VLAN_TAG(rxdp->Control_2)); in rx_osm_handler()
8160 struct tcphdr **tcp, struct RxD_t *rxdp, in check_L2_lro_capable() argument
8164 u8 l2_type = (u8)((rxdp->Control_1 >> 37) & 0x7), ip_len; in check_L2_lro_capable()
8166 if (!(rxdp->Control_1 & RXD_FRAME_PROTO_TCP)) { in check_L2_lro_capable()
8181 (rxdp->Control_1 & RXD_FRAME_VLAN_TAG)) in check_L2_lro_capable()
8352 struct RxD_t *rxdp, struct s2io_nic *sp) in s2io_club_tcp_session() argument
8361 rxdp, sp); in s2io_club_tcp_session()
8367 vlan_tag = RXD_GET_VLAN_TAG(rxdp->Control_2); in s2io_club_tcp_session()