• Home
  • Raw
  • Download

Lines Matching refs:rx_small

179 	struct myri10ge_rx_buf rx_small;  member
1161 ss->rx_small.cnt = 0; in myri10ge_reset()
1437 rx = &ss->rx_small; in myri10ge_rx_done()
1623 if (ss->rx_small.fill_cnt - ss->rx_small.cnt < myri10ge_fill_thresh) in myri10ge_clean_rx_done()
1624 myri10ge_alloc_rx_pages(mgp, &ss->rx_small, in myri10ge_clean_rx_done()
1890 ring->rx_mini_max_pending = mgp->ss[0].rx_small.mask + 1; in myri10ge_get_ringparam()
2026 data[i++] = (unsigned int)ss->rx_small.cnt; in myri10ge_get_ethtool_stats()
2147 ss->rx_small.mask = ss->rx_big.mask = rx_ring_entries - 1; in myri10ge_allocate_rings()
2164 bytes = rx_ring_entries * sizeof(*ss->rx_small.shadow); in myri10ge_allocate_rings()
2165 ss->rx_small.shadow = kzalloc(bytes, GFP_KERNEL); in myri10ge_allocate_rings()
2166 if (ss->rx_small.shadow == NULL) in myri10ge_allocate_rings()
2181 bytes = rx_ring_entries * sizeof(*ss->rx_small.info); in myri10ge_allocate_rings()
2182 ss->rx_small.info = kzalloc(bytes, GFP_KERNEL); in myri10ge_allocate_rings()
2183 if (ss->rx_small.info == NULL) in myri10ge_allocate_rings()
2193 ss->rx_small.cnt = 0; in myri10ge_allocate_rings()
2195 ss->rx_small.fill_cnt = 0; in myri10ge_allocate_rings()
2196 ss->rx_small.page_offset = MYRI10GE_ALLOC_SIZE; in myri10ge_allocate_rings()
2198 ss->rx_small.watchdog_needed = 0; in myri10ge_allocate_rings()
2201 ss->rx_small.fill_cnt = ss->rx_small.mask + 1; in myri10ge_allocate_rings()
2203 myri10ge_alloc_rx_pages(mgp, &ss->rx_small, in myri10ge_allocate_rings()
2207 if (ss->rx_small.fill_cnt < ss->rx_small.mask + 1) { in myri10ge_allocate_rings()
2209 slice, ss->rx_small.fill_cnt); in myri10ge_allocate_rings()
2232 ss->rx_small.fill_cnt = ss->rx_small.cnt; in myri10ge_allocate_rings()
2233 for (i = ss->rx_small.cnt; i < ss->rx_small.fill_cnt; i++) { in myri10ge_allocate_rings()
2234 int idx = i & ss->rx_small.mask; in myri10ge_allocate_rings()
2235 myri10ge_unmap_rx_page(mgp->pdev, &ss->rx_small.info[idx], in myri10ge_allocate_rings()
2237 put_page(ss->rx_small.info[idx].page); in myri10ge_allocate_rings()
2243 kfree(ss->rx_small.info); in myri10ge_allocate_rings()
2252 kfree(ss->rx_small.shadow); in myri10ge_allocate_rings()
2284 ss->rx_small.fill_cnt = ss->rx_small.cnt; in myri10ge_free_rings()
2285 for (i = ss->rx_small.cnt; i < ss->rx_small.fill_cnt; i++) { in myri10ge_free_rings()
2286 idx = i & ss->rx_small.mask; in myri10ge_free_rings()
2287 if (i == ss->rx_small.fill_cnt - 1) in myri10ge_free_rings()
2288 ss->rx_small.info[idx].page_offset = in myri10ge_free_rings()
2290 myri10ge_unmap_rx_page(mgp->pdev, &ss->rx_small.info[idx], in myri10ge_free_rings()
2292 put_page(ss->rx_small.info[idx].page); in myri10ge_free_rings()
2322 kfree(ss->rx_small.info); in myri10ge_free_rings()
2328 kfree(ss->rx_small.shadow); in myri10ge_free_rings()
2436 ss->rx_small.lanai = (struct mcp_kreq_ether_recv __iomem *) in myri10ge_get_txrx()
3725 if (ss->rx_small.watchdog_needed) { in myri10ge_watchdog_timer()
3726 myri10ge_alloc_rx_pages(mgp, &ss->rx_small, in myri10ge_watchdog_timer()
3729 if (ss->rx_small.fill_cnt - ss->rx_small.cnt >= in myri10ge_watchdog_timer()
3731 ss->rx_small.watchdog_needed = 0; in myri10ge_watchdog_timer()