drivers/net/ethernet/chelsio/cxgb/common.h
208
struct cmac;
drivers/net/ethernet/chelsio/cxgb/common.h
213
struct cmac *mac;
drivers/net/ethernet/chelsio/cxgb/common.h
330
int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
118
struct cmac *mac = adapter->port[dev->if_port].mac;
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
177
struct cmac *mac = p->mac;
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
270
struct cmac *mac = p->mac;
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
457
struct cmac *mac = adapter->port[dev->if_port].mac;
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
841
struct cmac *mac = adapter->port[dev->if_port].mac;
drivers/net/ethernet/chelsio/cxgb/cxgb2.c
854
struct cmac *mac = adapter->port[dev->if_port].mac;
drivers/net/ethernet/chelsio/cxgb/gmac.h
101
int (*set_mtu)(struct cmac *, int mtu);
drivers/net/ethernet/chelsio/cxgb/gmac.h
102
int (*set_rx_mode)(struct cmac *, struct t1_rx_mode *rm);
drivers/net/ethernet/chelsio/cxgb/gmac.h
104
int (*set_speed_duplex_fc)(struct cmac *, int speed, int duplex, int fc);
drivers/net/ethernet/chelsio/cxgb/gmac.h
105
int (*get_speed_duplex_fc)(struct cmac *, int *speed, int *duplex,
drivers/net/ethernet/chelsio/cxgb/gmac.h
108
const struct cmac_statistics *(*statistics_update)(struct cmac *, int);
drivers/net/ethernet/chelsio/cxgb/gmac.h
110
int (*macaddress_get)(struct cmac *, u8 mac_addr[6]);
drivers/net/ethernet/chelsio/cxgb/gmac.h
111
int (*macaddress_set)(struct cmac *, const u8 mac_addr[6]);
drivers/net/ethernet/chelsio/cxgb/gmac.h
125
struct cmac *(*create)(adapter_t *adapter, int index);
drivers/net/ethernet/chelsio/cxgb/gmac.h
88
void (*destroy)(struct cmac *);
drivers/net/ethernet/chelsio/cxgb/gmac.h
89
int (*reset)(struct cmac *);
drivers/net/ethernet/chelsio/cxgb/gmac.h
90
int (*interrupt_enable)(struct cmac *);
drivers/net/ethernet/chelsio/cxgb/gmac.h
91
int (*interrupt_disable)(struct cmac *);
drivers/net/ethernet/chelsio/cxgb/gmac.h
92
int (*interrupt_clear)(struct cmac *);
drivers/net/ethernet/chelsio/cxgb/gmac.h
93
int (*interrupt_handler)(struct cmac *);
drivers/net/ethernet/chelsio/cxgb/gmac.h
95
int (*enable)(struct cmac *, int);
drivers/net/ethernet/chelsio/cxgb/gmac.h
96
int (*disable)(struct cmac *, int);
drivers/net/ethernet/chelsio/cxgb/gmac.h
98
int (*loopback_enable)(struct cmac *);
drivers/net/ethernet/chelsio/cxgb/gmac.h
99
int (*loopback_disable)(struct cmac *);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
111
static int pm3393_interrupt_enable(struct cmac *cmac)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
117
pmwrite(cmac, SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_ENABLE, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
118
pmwrite(cmac, SUNI1x10GEXP_REG_XRF_INTERRUPT_ENABLE, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
119
pmwrite(cmac, SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_ENABLE, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
120
pmwrite(cmac, SUNI1x10GEXP_REG_RXOAM_INTERRUPT_ENABLE, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
123
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_0, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
124
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_1, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
125
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_2, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
126
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_3, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
128
pmwrite(cmac, SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_ENABLE, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
129
pmwrite(cmac, SUNI1x10GEXP_REG_PL4ODP_INTERRUPT_MASK, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
130
pmwrite(cmac, SUNI1x10GEXP_REG_XTEF_INTERRUPT_ENABLE, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
131
pmwrite(cmac, SUNI1x10GEXP_REG_TXOAM_INTERRUPT_ENABLE, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
132
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_CONFIG_3, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
133
pmwrite(cmac, SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_MASK, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
134
pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_CONFIG_3, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
135
pmwrite(cmac, SUNI1x10GEXP_REG_PL4IDU_INTERRUPT_MASK, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
136
pmwrite(cmac, SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_ENABLE, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
141
pmwrite(cmac, SUNI1x10GEXP_REG_GLOBAL_INTERRUPT_ENABLE,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
145
pl_intr = readl(cmac->adapter->regs + A_PL_ENABLE);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
147
writel(pl_intr, cmac->adapter->regs + A_PL_ENABLE);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
151
static int pm3393_interrupt_disable(struct cmac *cmac)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
156
pmwrite(cmac, SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
157
pmwrite(cmac, SUNI1x10GEXP_REG_XRF_INTERRUPT_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
158
pmwrite(cmac, SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
159
pmwrite(cmac, SUNI1x10GEXP_REG_RXOAM_INTERRUPT_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
160
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_0, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
161
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_1, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
162
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_2, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
163
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_3, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
164
pmwrite(cmac, SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
165
pmwrite(cmac, SUNI1x10GEXP_REG_PL4ODP_INTERRUPT_MASK, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
166
pmwrite(cmac, SUNI1x10GEXP_REG_XTEF_INTERRUPT_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
167
pmwrite(cmac, SUNI1x10GEXP_REG_TXOAM_INTERRUPT_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
168
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_CONFIG_3, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
169
pmwrite(cmac, SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_MASK, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
170
pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_CONFIG_3, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
171
pmwrite(cmac, SUNI1x10GEXP_REG_PL4IDU_INTERRUPT_MASK, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
172
pmwrite(cmac, SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
175
pmwrite(cmac, SUNI1x10GEXP_REG_GLOBAL_INTERRUPT_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
178
t1_tpi_read(cmac->adapter, A_ELMER0_INT_ENABLE, &elmer);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
180
t1_tpi_write(cmac->adapter, A_ELMER0_INT_ENABLE, elmer);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
190
static int pm3393_interrupt_clear(struct cmac *cmac)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
199
pmread(cmac, SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_STATUS, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
200
pmread(cmac, SUNI1x10GEXP_REG_XRF_INTERRUPT_STATUS, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
201
pmread(cmac, SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_STATUS, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
202
pmread(cmac, SUNI1x10GEXP_REG_RXOAM_INTERRUPT_STATUS, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
203
pmread(cmac, SUNI1x10GEXP_REG_PL4ODP_INTERRUPT, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
204
pmread(cmac, SUNI1x10GEXP_REG_XTEF_INTERRUPT_STATUS, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
205
pmread(cmac, SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_INTERRUPT, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
206
pmread(cmac, SUNI1x10GEXP_REG_TXOAM_INTERRUPT_STATUS, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
207
pmread(cmac, SUNI1x10GEXP_REG_RXXG_INTERRUPT, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
208
pmread(cmac, SUNI1x10GEXP_REG_TXXG_INTERRUPT, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
209
pmread(cmac, SUNI1x10GEXP_REG_PL4IDU_INTERRUPT, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
210
pmread(cmac, SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_INDICATION,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
212
pmread(cmac, SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_STATUS, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
213
pmread(cmac, SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_CHANGE, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
217
pmread(cmac, SUNI1x10GEXP_REG_MASTER_INTERRUPT_STATUS, &val32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
221
t1_tpi_read(cmac->adapter, A_ELMER0_INT_CAUSE, &elmer);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
223
t1_tpi_write(cmac->adapter, A_ELMER0_INT_CAUSE, elmer);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
227
pl_intr = readl(cmac->adapter->regs + A_PL_CAUSE);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
229
writel(pl_intr, cmac->adapter->regs + A_PL_CAUSE);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
235
static int pm3393_interrupt_handler(struct cmac *cmac)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
240
pmread(cmac, SUNI1x10GEXP_REG_MASTER_INTERRUPT_STATUS,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
242
if (netif_msg_intr(cmac->adapter))
drivers/net/ethernet/chelsio/cxgb/pm3393.c
243
dev_dbg(&cmac->adapter->pdev->dev, "PM3393 intr cause 0x%x\n",
drivers/net/ethernet/chelsio/cxgb/pm3393.c
247
pm3393_interrupt_clear(cmac);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
252
static int pm3393_enable(struct cmac *cmac, int which)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
255
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_CONFIG_1,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
261
if (cmac->instance->fc & PAUSE_RX)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
263
if (cmac->instance->fc & PAUSE_TX)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
265
pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_CONFIG_1, val);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
268
cmac->instance->enabled |= which;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
272
static int pm3393_enable_port(struct cmac *cmac, int which)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
275
pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_CONTROL,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
278
memset(&cmac->stats, 0, sizeof(struct cmac_statistics));
drivers/net/ethernet/chelsio/cxgb/pm3393.c
280
pm3393_enable(cmac, which);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
287
t1_link_changed(cmac->adapter, 0);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
291
static int pm3393_disable(struct cmac *cmac, int which)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
294
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_CONFIG_1, RXXG_CONF1_VAL);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
296
pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_CONFIG_1, TXXG_CONF1_VAL);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
304
cmac->instance->enabled &= ~which;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
308
static int pm3393_loopback_enable(struct cmac *cmac)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
313
static int pm3393_loopback_disable(struct cmac *cmac)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
318
static int pm3393_set_mtu(struct cmac *cmac, int mtu)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
320
int enabled = cmac->instance->enabled;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
326
pm3393_disable(cmac, MAC_DIRECTION_RX | MAC_DIRECTION_TX);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
328
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH, mtu);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
329
pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE, mtu);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
332
pm3393_enable(cmac, enabled);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
336
static int pm3393_set_rx_mode(struct cmac *cmac, struct t1_rx_mode *rm)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
338
int enabled = cmac->instance->enabled & MAC_DIRECTION_RX;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
343
pm3393_disable(cmac, MAC_DIRECTION_RX);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
345
pmread(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2, &rx_mode);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
348
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
357
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
358
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
359
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
360
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH, 0xffff);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
373
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, mc_filter[0]);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
374
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW, mc_filter[1]);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
375
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH, mc_filter[2]);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
376
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH, mc_filter[3]);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
380
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2, (u16)rx_mode);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
383
pm3393_enable(cmac, MAC_DIRECTION_RX);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
388
static int pm3393_get_speed_duplex_fc(struct cmac *cmac, int *speed,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
396
*fc = cmac->instance->fc;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
400
static int pm3393_set_speed_duplex_fc(struct cmac *cmac, int speed, int duplex,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
410
if (fc != cmac->instance->fc) {
drivers/net/ethernet/chelsio/cxgb/pm3393.c
411
cmac->instance->fc = (u8) fc;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
412
if (cmac->instance->enabled & MAC_DIRECTION_TX)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
413
pm3393_enable(cmac, MAC_DIRECTION_TX);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
433
static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac,
drivers/net/ethernet/chelsio/cxgb/pm3393.c
484
static int pm3393_macaddress_get(struct cmac *cmac, u8 mac_addr[6])
drivers/net/ethernet/chelsio/cxgb/pm3393.c
486
memcpy(mac_addr, cmac->instance->mac_addr, ETH_ALEN);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
490
static int pm3393_macaddress_set(struct cmac *cmac, const u8 ma[6])
drivers/net/ethernet/chelsio/cxgb/pm3393.c
492
u32 val, lo, mid, hi, enabled = cmac->instance->enabled;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
513
memcpy(cmac->instance->mac_addr, ma, ETH_ALEN);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
521
pm3393_disable(cmac, MAC_DIRECTION_RX | MAC_DIRECTION_TX);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
524
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_15_0, lo);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
525
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_31_16, mid);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
526
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_47_32, hi);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
529
pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_15_0, lo);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
530
pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_31_16, mid);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
531
pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_47_32, hi);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
537
pmread(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0, &val);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
539
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0, val);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
541
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_LOW, lo);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
542
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID, mid);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
543
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_HIGH, hi);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
546
pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0, val);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
549
pm3393_enable(cmac, enabled);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
553
static void pm3393_destroy(struct cmac *cmac)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
555
kfree(cmac);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
578
static struct cmac *pm3393_mac_create(adapter_t *adapter, int index)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
580
struct cmac *cmac;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
582
cmac = kzalloc(sizeof(*cmac) + sizeof(cmac_instance), GFP_KERNEL);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
583
if (!cmac)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
586
cmac->ops = &pm3393_ops;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
587
cmac->instance = (cmac_instance *) (cmac + 1);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
588
cmac->adapter = adapter;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
589
cmac->instance->fc = PAUSE_TX | PAUSE_RX;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
672
return cmac;
drivers/net/ethernet/chelsio/cxgb/pm3393.c
85
static int pmread(struct cmac *cmac, u32 reg, u32 * data32)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
87
t1_tpi_read(cmac->adapter, OFFSET(reg), data32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
91
static int pmwrite(struct cmac *cmac, u32 reg, u32 data32)
drivers/net/ethernet/chelsio/cxgb/pm3393.c
93
t1_tpi_write(cmac->adapter, OFFSET(reg), data32);
drivers/net/ethernet/chelsio/cxgb/pm3393.c
98
static int pm3393_reset(struct cmac *cmac)
drivers/net/ethernet/chelsio/cxgb/subr.c
1030
struct cmac *mac = adapter->port[i].mac;
drivers/net/ethernet/chelsio/cxgb/subr.c
1105
struct cmac *mac;
drivers/net/ethernet/chelsio/cxgb/subr.c
156
struct cmac *mac = adapter->port[port_id].mac;
drivers/net/ethernet/chelsio/cxgb/subr.c
626
int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
drivers/net/ethernet/chelsio/cxgb/subr.c
738
struct cmac *mac = adapter->port[0].mac;
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
361
static int mac_intr_handler(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
366
static int mac_intr_enable(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
371
static int mac_intr_disable(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
376
static int mac_intr_clear(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
382
static int mac_set_address(struct cmac* mac, const u8 addr[6])
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
405
static int mac_get_address(struct cmac *mac, u8 addr[6])
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
423
static int mac_reset(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
433
static int mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
450
static int mac_set_mtu(struct cmac *mac, int mtu)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
459
static int mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex,
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
528
static int mac_enable(struct cmac *mac, int which)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
545
static int mac_disable(struct cmac *mac, int which)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
571
static void rmon_update(struct cmac *mac, unsigned int addr, u64 *stat)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
586
static void port_stats_update(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
639
static const struct cmac_statistics *mac_update_statistics(struct cmac *mac,
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
660
static void mac_destroy(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
682
static struct cmac *vsc7326_mac_create(adapter_t *adapter, int index)
drivers/net/ethernet/chelsio/cxgb/vsc7326.c
684
struct cmac *mac;
drivers/net/ethernet/chelsio/cxgb3/adapter.h
73
struct cmac mac;
drivers/net/ethernet/chelsio/cxgb3/common.h
678
int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
drivers/net/ethernet/chelsio/cxgb3/common.h
704
int t3_mac_reset(struct cmac *mac);
drivers/net/ethernet/chelsio/cxgb3/common.h
705
void t3b_pcs_reset(struct cmac *mac);
drivers/net/ethernet/chelsio/cxgb3/common.h
706
void t3_mac_disable_exact_filters(struct cmac *mac);
drivers/net/ethernet/chelsio/cxgb3/common.h
707
void t3_mac_enable_exact_filters(struct cmac *mac);
drivers/net/ethernet/chelsio/cxgb3/common.h
708
int t3_mac_enable(struct cmac *mac, int which);
drivers/net/ethernet/chelsio/cxgb3/common.h
709
int t3_mac_disable(struct cmac *mac, int which);
drivers/net/ethernet/chelsio/cxgb3/common.h
710
int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu);
drivers/net/ethernet/chelsio/cxgb3/common.h
711
int t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev);
drivers/net/ethernet/chelsio/cxgb3/common.h
712
int t3_mac_set_address(struct cmac *mac, unsigned int idx, const u8 addr[6]);
drivers/net/ethernet/chelsio/cxgb3/common.h
713
int t3_mac_set_num_ucast(struct cmac *mac, int n);
drivers/net/ethernet/chelsio/cxgb3/common.h
714
const struct mac_stats *t3_mac_update_stats(struct cmac *mac);
drivers/net/ethernet/chelsio/cxgb3/common.h
715
int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc);
drivers/net/ethernet/chelsio/cxgb3/common.h
716
int t3b2_mac_watchdog_task(struct cmac *mac);
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
207
struct cmac *mac = &pi->mac;
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
255
struct cmac *mac = &pi->mac;
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
2701
struct cmac *mac = &p->mac;
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
2748
struct cmac *mac = &adap2pinfo(adapter, port)->mac;
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
346
struct cmac *mac = &pi->mac;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1133
static void t3_gate_rx_traffic(struct cmac *mac, u32 *rx_cfg,
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1155
static void t3_open_rx_traffic(struct cmac *mac, u32 rx_cfg,
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1180
struct cmac *mac = &pi->mac;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1235
struct cmac *mac = &pi->mac;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1298
int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1781
struct cmac *mac = &adap2pinfo(adap, idx)->mac;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
3475
static void mac_prep(struct cmac *mac, struct adapter *adapter, int index)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
150
static int t3b2_mac_reset(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
230
static void set_addr_filter(struct cmac *mac, int idx, const u8 * addr)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
243
int t3_mac_set_address(struct cmac *mac, unsigned int idx, const u8 addr[6])
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
256
int t3_mac_set_num_ucast(struct cmac *mac, int n)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
264
void t3_mac_disable_exact_filters(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
275
void t3_mac_enable_exact_filters(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
300
int t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
345
int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
41
static inline int macidx(const struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
428
int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
46
static void xaui_serdes_reset(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
467
int t3_mac_enable(struct cmac *mac, int which)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
506
int t3_mac_disable(struct cmac *mac, int which)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
532
int t3b2_mac_watchdog_task(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
598
const struct mac_stats *t3_mac_update_stats(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
70
void t3b_pcs_reset(struct cmac *mac)
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
79
int t3_mac_reset(struct cmac *mac)
fs/smb/client/cifsencrypt.c
40
aes_cmac_update(ctx->cmac, iter_base, len);
fs/smb/client/cifsencrypt.c
51
aes_cmac_final(ctx->cmac, out);
fs/smb/client/cifsglob.h
2330
struct aes_cmac_ctx *cmac;
fs/smb/client/smb2transport.c
508
&(struct cifs_calc_sig_ctx){ .cmac = &cmac_ctx });