Lines Matching refs:frag_info
121 cpu_to_be32(priv->frag_info[i].frag_size); in mlx4_en_init_rx_desc()
475 const struct mlx4_en_frag_info *frag_info = priv->frag_info; in mlx4_en_complete_rx_desc() local
484 frag_size = min_t(int, length, frag_info->frag_size); in mlx4_en_complete_rx_desc()
497 truesize += frag_info->frag_stride; in mlx4_en_complete_rx_desc()
498 if (frag_info->frag_stride == PAGE_SIZE / 2) { in mlx4_en_complete_rx_desc()
511 release = frags->page_offset + frag_info->frag_size > PAGE_SIZE; in mlx4_en_complete_rx_desc()
524 frag_info++; in mlx4_en_complete_rx_desc()
736 xdp_init_buff(&mxbuf.xdp, priv->frag_info[0].frag_stride, &ring->xdp_rxq); in mlx4_en_process_rx_cq()
828 priv->frag_info[0].frag_size, in mlx4_en_process_rx_cq()
1060 priv->frag_info[0].frag_size = eff_mtu; in mlx4_en_calc_rx_buf()
1064 priv->frag_info[0].frag_stride = PAGE_SIZE; in mlx4_en_calc_rx_buf()
1082 priv->frag_info[i].frag_size = frag_size; in mlx4_en_calc_rx_buf()
1090 priv->frag_info[i].frag_stride = frag_stride + pad; in mlx4_en_calc_rx_buf()
1110 priv->frag_info[i].frag_size, in mlx4_en_calc_rx_buf()
1111 priv->frag_info[i].frag_stride); in mlx4_en_calc_rx_buf()