Lines Matching refs:adapter

99 	struct ixgb_adapter *adapter = netdev_priv(netdev);  in ixgb_get_settings()  local
106 if (netif_carrier_ok(adapter->netdev)) { in ixgb_get_settings()
120 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_set_speed_duplex() local
122 adapter->link_speed = 10000; in ixgb_set_speed_duplex()
123 adapter->link_duplex = FULL_DUPLEX; in ixgb_set_speed_duplex()
131 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_set_settings() local
138 if (netif_running(adapter->netdev)) { in ixgb_set_settings()
139 ixgb_down(adapter, true); in ixgb_set_settings()
140 ixgb_reset(adapter); in ixgb_set_settings()
141 ixgb_up(adapter); in ixgb_set_settings()
144 ixgb_reset(adapter); in ixgb_set_settings()
153 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_get_pauseparam() local
154 struct ixgb_hw *hw = &adapter->hw; in ixgb_get_pauseparam()
172 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_set_pauseparam() local
173 struct ixgb_hw *hw = &adapter->hw; in ixgb_set_pauseparam()
187 if (netif_running(adapter->netdev)) { in ixgb_set_pauseparam()
188 ixgb_down(adapter, true); in ixgb_set_pauseparam()
189 ixgb_up(adapter); in ixgb_set_pauseparam()
192 ixgb_reset(adapter); in ixgb_set_pauseparam()
200 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_get_msglevel() local
201 return adapter->msg_enable; in ixgb_get_msglevel()
207 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_set_msglevel() local
208 adapter->msg_enable = data; in ixgb_set_msglevel()
223 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_get_regs() local
224 struct ixgb_hw *hw = &adapter->hw; in ixgb_get_regs()
295 *reg++ = IXGB_GET_STAT(adapter, tprl); /* 76 */ in ixgb_get_regs()
296 *reg++ = IXGB_GET_STAT(adapter, tprh); /* 77 */ in ixgb_get_regs()
297 *reg++ = IXGB_GET_STAT(adapter, gprcl); /* 78 */ in ixgb_get_regs()
298 *reg++ = IXGB_GET_STAT(adapter, gprch); /* 79 */ in ixgb_get_regs()
299 *reg++ = IXGB_GET_STAT(adapter, bprcl); /* 80 */ in ixgb_get_regs()
300 *reg++ = IXGB_GET_STAT(adapter, bprch); /* 81 */ in ixgb_get_regs()
301 *reg++ = IXGB_GET_STAT(adapter, mprcl); /* 82 */ in ixgb_get_regs()
302 *reg++ = IXGB_GET_STAT(adapter, mprch); /* 83 */ in ixgb_get_regs()
303 *reg++ = IXGB_GET_STAT(adapter, uprcl); /* 84 */ in ixgb_get_regs()
304 *reg++ = IXGB_GET_STAT(adapter, uprch); /* 85 */ in ixgb_get_regs()
305 *reg++ = IXGB_GET_STAT(adapter, vprcl); /* 86 */ in ixgb_get_regs()
306 *reg++ = IXGB_GET_STAT(adapter, vprch); /* 87 */ in ixgb_get_regs()
307 *reg++ = IXGB_GET_STAT(adapter, jprcl); /* 88 */ in ixgb_get_regs()
308 *reg++ = IXGB_GET_STAT(adapter, jprch); /* 89 */ in ixgb_get_regs()
309 *reg++ = IXGB_GET_STAT(adapter, gorcl); /* 90 */ in ixgb_get_regs()
310 *reg++ = IXGB_GET_STAT(adapter, gorch); /* 91 */ in ixgb_get_regs()
311 *reg++ = IXGB_GET_STAT(adapter, torl); /* 92 */ in ixgb_get_regs()
312 *reg++ = IXGB_GET_STAT(adapter, torh); /* 93 */ in ixgb_get_regs()
313 *reg++ = IXGB_GET_STAT(adapter, rnbc); /* 94 */ in ixgb_get_regs()
314 *reg++ = IXGB_GET_STAT(adapter, ruc); /* 95 */ in ixgb_get_regs()
315 *reg++ = IXGB_GET_STAT(adapter, roc); /* 96 */ in ixgb_get_regs()
316 *reg++ = IXGB_GET_STAT(adapter, rlec); /* 97 */ in ixgb_get_regs()
317 *reg++ = IXGB_GET_STAT(adapter, crcerrs); /* 98 */ in ixgb_get_regs()
318 *reg++ = IXGB_GET_STAT(adapter, icbc); /* 99 */ in ixgb_get_regs()
319 *reg++ = IXGB_GET_STAT(adapter, ecbc); /* 100 */ in ixgb_get_regs()
320 *reg++ = IXGB_GET_STAT(adapter, mpc); /* 101 */ in ixgb_get_regs()
321 *reg++ = IXGB_GET_STAT(adapter, tptl); /* 102 */ in ixgb_get_regs()
322 *reg++ = IXGB_GET_STAT(adapter, tpth); /* 103 */ in ixgb_get_regs()
323 *reg++ = IXGB_GET_STAT(adapter, gptcl); /* 104 */ in ixgb_get_regs()
324 *reg++ = IXGB_GET_STAT(adapter, gptch); /* 105 */ in ixgb_get_regs()
325 *reg++ = IXGB_GET_STAT(adapter, bptcl); /* 106 */ in ixgb_get_regs()
326 *reg++ = IXGB_GET_STAT(adapter, bptch); /* 107 */ in ixgb_get_regs()
327 *reg++ = IXGB_GET_STAT(adapter, mptcl); /* 108 */ in ixgb_get_regs()
328 *reg++ = IXGB_GET_STAT(adapter, mptch); /* 109 */ in ixgb_get_regs()
329 *reg++ = IXGB_GET_STAT(adapter, uptcl); /* 110 */ in ixgb_get_regs()
330 *reg++ = IXGB_GET_STAT(adapter, uptch); /* 111 */ in ixgb_get_regs()
331 *reg++ = IXGB_GET_STAT(adapter, vptcl); /* 112 */ in ixgb_get_regs()
332 *reg++ = IXGB_GET_STAT(adapter, vptch); /* 113 */ in ixgb_get_regs()
333 *reg++ = IXGB_GET_STAT(adapter, jptcl); /* 114 */ in ixgb_get_regs()
334 *reg++ = IXGB_GET_STAT(adapter, jptch); /* 115 */ in ixgb_get_regs()
335 *reg++ = IXGB_GET_STAT(adapter, gotcl); /* 116 */ in ixgb_get_regs()
336 *reg++ = IXGB_GET_STAT(adapter, gotch); /* 117 */ in ixgb_get_regs()
337 *reg++ = IXGB_GET_STAT(adapter, totl); /* 118 */ in ixgb_get_regs()
338 *reg++ = IXGB_GET_STAT(adapter, toth); /* 119 */ in ixgb_get_regs()
339 *reg++ = IXGB_GET_STAT(adapter, dc); /* 120 */ in ixgb_get_regs()
340 *reg++ = IXGB_GET_STAT(adapter, plt64c); /* 121 */ in ixgb_get_regs()
341 *reg++ = IXGB_GET_STAT(adapter, tsctc); /* 122 */ in ixgb_get_regs()
342 *reg++ = IXGB_GET_STAT(adapter, tsctfc); /* 123 */ in ixgb_get_regs()
343 *reg++ = IXGB_GET_STAT(adapter, ibic); /* 124 */ in ixgb_get_regs()
344 *reg++ = IXGB_GET_STAT(adapter, rfc); /* 125 */ in ixgb_get_regs()
345 *reg++ = IXGB_GET_STAT(adapter, lfc); /* 126 */ in ixgb_get_regs()
346 *reg++ = IXGB_GET_STAT(adapter, pfrc); /* 127 */ in ixgb_get_regs()
347 *reg++ = IXGB_GET_STAT(adapter, pftc); /* 128 */ in ixgb_get_regs()
348 *reg++ = IXGB_GET_STAT(adapter, mcfrc); /* 129 */ in ixgb_get_regs()
349 *reg++ = IXGB_GET_STAT(adapter, mcftc); /* 130 */ in ixgb_get_regs()
350 *reg++ = IXGB_GET_STAT(adapter, xonrxc); /* 131 */ in ixgb_get_regs()
351 *reg++ = IXGB_GET_STAT(adapter, xontxc); /* 132 */ in ixgb_get_regs()
352 *reg++ = IXGB_GET_STAT(adapter, xoffrxc); /* 133 */ in ixgb_get_regs()
353 *reg++ = IXGB_GET_STAT(adapter, xofftxc); /* 134 */ in ixgb_get_regs()
354 *reg++ = IXGB_GET_STAT(adapter, rjc); /* 135 */ in ixgb_get_regs()
370 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_get_eeprom() local
371 struct ixgb_hw *hw = &adapter->hw; in ixgb_get_eeprom()
416 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_set_eeprom() local
417 struct ixgb_hw *hw = &adapter->hw; in ixgb_set_eeprom()
474 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_get_drvinfo() local
480 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), in ixgb_get_drvinfo()
488 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_get_ringparam() local
489 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_get_ringparam()
490 struct ixgb_desc_ring *rxdr = &adapter->rx_ring; in ixgb_get_ringparam()
502 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_set_ringparam() local
503 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_set_ringparam()
504 struct ixgb_desc_ring *rxdr = &adapter->rx_ring; in ixgb_set_ringparam()
508 tx_old = adapter->tx_ring; in ixgb_set_ringparam()
509 rx_old = adapter->rx_ring; in ixgb_set_ringparam()
514 if (netif_running(adapter->netdev)) in ixgb_set_ringparam()
515 ixgb_down(adapter, true); in ixgb_set_ringparam()
525 if (netif_running(adapter->netdev)) { in ixgb_set_ringparam()
527 if ((err = ixgb_setup_rx_resources(adapter))) in ixgb_set_ringparam()
529 if ((err = ixgb_setup_tx_resources(adapter))) in ixgb_set_ringparam()
535 rx_new = adapter->rx_ring; in ixgb_set_ringparam()
536 tx_new = adapter->tx_ring; in ixgb_set_ringparam()
537 adapter->rx_ring = rx_old; in ixgb_set_ringparam()
538 adapter->tx_ring = tx_old; in ixgb_set_ringparam()
539 ixgb_free_rx_resources(adapter); in ixgb_set_ringparam()
540 ixgb_free_tx_resources(adapter); in ixgb_set_ringparam()
541 adapter->rx_ring = rx_new; in ixgb_set_ringparam()
542 adapter->tx_ring = tx_new; in ixgb_set_ringparam()
543 if ((err = ixgb_up(adapter))) in ixgb_set_ringparam()
550 ixgb_free_rx_resources(adapter); in ixgb_set_ringparam()
552 adapter->rx_ring = rx_old; in ixgb_set_ringparam()
553 adapter->tx_ring = tx_old; in ixgb_set_ringparam()
554 ixgb_up(adapter); in ixgb_set_ringparam()
561 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_set_phys_id() local
568 ixgb_led_on(&adapter->hw); in ixgb_set_phys_id()
573 ixgb_led_off(&adapter->hw); in ixgb_set_phys_id()
594 struct ixgb_adapter *adapter = netdev_priv(netdev); in ixgb_get_ethtool_stats() local
598 ixgb_update_stats(adapter); in ixgb_get_ethtool_stats()
606 p = (char *) adapter + in ixgb_get_ethtool_stats()