Lines Matching defs:slice

953 	 * slice 0.  It must also be called *after*
1547 /* an interrupt on a non-zero receive-only slice is implicitly
1590 /* Only slice 0 updates stats */
1738 "----------- slice ---------",
1788 int slice;
1812 /* firmware stats are useful only in the first slice */
1829 for (slice = 0; slice < mgp->num_slices; slice++) {
1830 ss = &mgp->ss[slice];
1831 data[i++] = slice;
1935 int i, slice, status;
1939 slice = ss - mgp->ss;
1940 cmd.data0 = slice;
1943 cmd.data0 = slice;
2013 netdev_err(dev, "slice-%d: alloced only %d small bufs\n",
2014 slice, ss->rx_small.fill_cnt);
2020 netdev_err(dev, "slice-%d: alloced only %d big bufs\n",
2021 slice, ss->rx_big.fill_cnt);
2177 "%s:slice-%d", netdev->name, i);
2183 "slice %d failed to allocate IRQ\n", i);
2223 static int myri10ge_get_txrx(struct myri10ge_priv *mgp, int slice)
2229 ss = &mgp->ss[slice];
2231 if (slice == 0 || (mgp->dev->real_num_tx_queues > 1)) {
2232 cmd.data0 = slice;
2238 cmd.data0 = slice;
2244 cmd.data0 = slice;
2250 (mgp->sram + MXGEFW_ETH_SEND_GO + 64 * slice);
2252 (mgp->sram + MXGEFW_ETH_SEND_STOP + 64 * slice);
2257 static int myri10ge_set_stats(struct myri10ge_priv *mgp, int slice)
2263 ss = &mgp->ss[slice];
2266 cmd.data2 = sizeof(struct mcp_irq_data) | (slice << 16);
2270 if (slice != 0)
2291 int i, status, big_pow2, slice;
2380 /* setup the per-slice data structures */
2381 for (slice = 0; slice < mgp->num_slices; slice++) {
2382 ss = &mgp->ss[slice];
2384 status = myri10ge_get_txrx(mgp, slice);
2396 if (slice == 0 || mgp->dev->real_num_tx_queues > 1)
2397 status = myri10ge_set_stats(mgp, slice);
2450 while (slice) {
2451 slice--;
2452 napi_disable(&mgp->ss[slice].napi);
2847 * current slice */
3338 int slice = ss - mgp->ss;
3346 netdev_warn(mgp->dev, "slice %d: TX paused, "
3347 "check link partner\n", slice);
3350 "slice %d: TX stuck %d %d %d %d %d %d\n",
3351 slice, ss->tx.queue_active, ss->tx.req,
3354 (int)ntohl(mgp->ss[slice].fw_stats->
3426 /* Perhaps it is a software error. See if stuck slice
3611 /* try to load the slice aware rss firmware */
3839 dev_err(&pdev->dev, "failed to alloc slice state\n");