cmac              218 drivers/net/ethernet/chelsio/cxgb/common.h struct cmac;
cmac              223 drivers/net/ethernet/chelsio/cxgb/common.h 	struct cmac *mac;
cmac              341 drivers/net/ethernet/chelsio/cxgb/common.h int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
cmac              118 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	struct cmac *mac = adapter->port[dev->if_port].mac;
cmac              177 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	struct cmac *mac = p->mac;
cmac              269 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	struct cmac *mac = p->mac;
cmac              457 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	struct cmac *mac = adapter->port[dev->if_port].mac;
cmac              830 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	struct cmac *mac = adapter->port[dev->if_port].mac;
cmac              843 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	struct cmac *mac = adapter->port[dev->if_port].mac;
cmac               97 drivers/net/ethernet/chelsio/cxgb/gmac.h 	void (*destroy)(struct cmac *);
cmac               98 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*reset)(struct cmac *);
cmac               99 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*interrupt_enable)(struct cmac *);
cmac              100 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*interrupt_disable)(struct cmac *);
cmac              101 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*interrupt_clear)(struct cmac *);
cmac              102 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*interrupt_handler)(struct cmac *);
cmac              104 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*enable)(struct cmac *, int);
cmac              105 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*disable)(struct cmac *, int);
cmac              107 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*loopback_enable)(struct cmac *);
cmac              108 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*loopback_disable)(struct cmac *);
cmac              110 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*set_mtu)(struct cmac *, int mtu);
cmac              111 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*set_rx_mode)(struct cmac *, struct t1_rx_mode *rm);
cmac              113 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*set_speed_duplex_fc)(struct cmac *, int speed, int duplex, int fc);
cmac              114 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*get_speed_duplex_fc)(struct cmac *, int *speed, int *duplex,
cmac              117 drivers/net/ethernet/chelsio/cxgb/gmac.h 	const struct cmac_statistics *(*statistics_update)(struct cmac *, int);
cmac              119 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*macaddress_get)(struct cmac *, u8 mac_addr[6]);
cmac              120 drivers/net/ethernet/chelsio/cxgb/gmac.h 	int (*macaddress_set)(struct cmac *, u8 mac_addr[6]);
cmac              134 drivers/net/ethernet/chelsio/cxgb/gmac.h 	struct cmac *(*create)(adapter_t *adapter, int index);
cmac               94 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pmread(struct cmac *cmac, u32 reg, u32 * data32)
cmac               96 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	t1_tpi_read(cmac->adapter, OFFSET(reg), data32);
cmac              100 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pmwrite(struct cmac *cmac, u32 reg, u32 data32)
cmac              102 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	t1_tpi_write(cmac->adapter, OFFSET(reg), data32);
cmac              107 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_reset(struct cmac *cmac)
cmac              120 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_interrupt_enable(struct cmac *cmac)
cmac              126 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_ENABLE, 0xffff);
cmac              127 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_XRF_INTERRUPT_ENABLE, 0xffff);
cmac              128 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_ENABLE, 0xffff);
cmac              129 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXOAM_INTERRUPT_ENABLE, 0xffff);
cmac              132 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_0, 0);
cmac              133 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_1, 0);
cmac              134 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_2, 0);
cmac              135 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_3, 0);
cmac              137 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_ENABLE, 0xffff);
cmac              138 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_PL4ODP_INTERRUPT_MASK, 0xffff);
cmac              139 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_XTEF_INTERRUPT_ENABLE, 0xffff);
cmac              140 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXOAM_INTERRUPT_ENABLE, 0xffff);
cmac              141 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_CONFIG_3, 0xffff);
cmac              142 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_MASK, 0xffff);
cmac              143 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_CONFIG_3, 0xffff);
cmac              144 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_PL4IDU_INTERRUPT_MASK, 0xffff);
cmac              145 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_ENABLE, 0xffff);
cmac              150 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_GLOBAL_INTERRUPT_ENABLE,
cmac              154 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pl_intr = readl(cmac->adapter->regs + A_PL_ENABLE);
cmac              156 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	writel(pl_intr, cmac->adapter->regs + A_PL_ENABLE);
cmac              160 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_interrupt_disable(struct cmac *cmac)
cmac              165 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_ENABLE, 0);
cmac              166 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_XRF_INTERRUPT_ENABLE, 0);
cmac              167 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_ENABLE, 0);
cmac              168 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXOAM_INTERRUPT_ENABLE, 0);
cmac              169 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_0, 0);
cmac              170 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_1, 0);
cmac              171 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_2, 0);
cmac              172 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_3, 0);
cmac              173 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_ENABLE, 0);
cmac              174 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_PL4ODP_INTERRUPT_MASK, 0);
cmac              175 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_XTEF_INTERRUPT_ENABLE, 0);
cmac              176 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXOAM_INTERRUPT_ENABLE, 0);
cmac              177 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_CONFIG_3, 0);
cmac              178 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_MASK, 0);
cmac              179 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_CONFIG_3, 0);
cmac              180 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_PL4IDU_INTERRUPT_MASK, 0);
cmac              181 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_ENABLE, 0);
cmac              184 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_GLOBAL_INTERRUPT_ENABLE, 0);
cmac              187 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	t1_tpi_read(cmac->adapter, A_ELMER0_INT_ENABLE, &elmer);
cmac              189 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	t1_tpi_write(cmac->adapter, A_ELMER0_INT_ENABLE, elmer);
cmac              199 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_interrupt_clear(struct cmac *cmac)
cmac              208 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_STATUS, &val32);
cmac              209 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_XRF_INTERRUPT_STATUS, &val32);
cmac              210 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_STATUS, &val32);
cmac              211 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_RXOAM_INTERRUPT_STATUS, &val32);
cmac              212 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_PL4ODP_INTERRUPT, &val32);
cmac              213 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_XTEF_INTERRUPT_STATUS, &val32);
cmac              214 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_INTERRUPT, &val32);
cmac              215 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_TXOAM_INTERRUPT_STATUS, &val32);
cmac              216 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_RXXG_INTERRUPT, &val32);
cmac              217 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_TXXG_INTERRUPT, &val32);
cmac              218 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_PL4IDU_INTERRUPT, &val32);
cmac              219 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_INDICATION,
cmac              221 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_STATUS, &val32);
cmac              222 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_CHANGE, &val32);
cmac              226 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_MASTER_INTERRUPT_STATUS, &val32);
cmac              230 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	t1_tpi_read(cmac->adapter, A_ELMER0_INT_CAUSE, &elmer);
cmac              232 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	t1_tpi_write(cmac->adapter, A_ELMER0_INT_CAUSE, elmer);
cmac              236 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pl_intr = readl(cmac->adapter->regs + A_PL_CAUSE);
cmac              238 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	writel(pl_intr, cmac->adapter->regs + A_PL_CAUSE);
cmac              244 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_interrupt_handler(struct cmac *cmac)
cmac              249 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_MASTER_INTERRUPT_STATUS,
cmac              251 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	if (netif_msg_intr(cmac->adapter))
cmac              252 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		dev_dbg(&cmac->adapter->pdev->dev, "PM3393 intr cause 0x%x\n",
cmac              256 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pm3393_interrupt_clear(cmac);
cmac              261 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_enable(struct cmac *cmac, int which)
cmac              264 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_CONFIG_1,
cmac              270 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		if (cmac->instance->fc & PAUSE_RX)
cmac              272 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		if (cmac->instance->fc & PAUSE_TX)
cmac              274 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_CONFIG_1, val);
cmac              277 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->instance->enabled |= which;
cmac              281 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_enable_port(struct cmac *cmac, int which)
cmac              284 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_MSTAT_CONTROL,
cmac              287 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	memset(&cmac->stats, 0, sizeof(struct cmac_statistics));
cmac              289 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pm3393_enable(cmac, which);
cmac              296 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	t1_link_changed(cmac->adapter, 0);
cmac              300 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_disable(struct cmac *cmac, int which)
cmac              303 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_CONFIG_1, RXXG_CONF1_VAL);
cmac              305 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_CONFIG_1, TXXG_CONF1_VAL);
cmac              313 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->instance->enabled &= ~which;
cmac              317 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_loopback_enable(struct cmac *cmac)
cmac              322 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_loopback_disable(struct cmac *cmac)
cmac              327 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_set_mtu(struct cmac *cmac, int mtu)
cmac              329 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	int enabled = cmac->instance->enabled;
cmac              335 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pm3393_disable(cmac, MAC_DIRECTION_RX | MAC_DIRECTION_TX);
cmac              337 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH, mtu);
cmac              338 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE, mtu);
cmac              341 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pm3393_enable(cmac, enabled);
cmac              345 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_set_rx_mode(struct cmac *cmac, struct t1_rx_mode *rm)
cmac              347 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	int enabled = cmac->instance->enabled & MAC_DIRECTION_RX;
cmac              352 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pm3393_disable(cmac, MAC_DIRECTION_RX);
cmac              354 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2, &rx_mode);
cmac              357 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2,
cmac              366 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, 0xffff);
cmac              367 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW, 0xffff);
cmac              368 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH, 0xffff);
cmac              369 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH, 0xffff);
cmac              382 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, mc_filter[0]);
cmac              383 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW, mc_filter[1]);
cmac              384 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH, mc_filter[2]);
cmac              385 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH, mc_filter[3]);
cmac              389 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2, (u16)rx_mode);
cmac              392 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pm3393_enable(cmac, MAC_DIRECTION_RX);
cmac              397 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_get_speed_duplex_fc(struct cmac *cmac, int *speed,
cmac              405 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		*fc = cmac->instance->fc;
cmac              409 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_set_speed_duplex_fc(struct cmac *cmac, int speed, int duplex,
cmac              419 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	if (fc != cmac->instance->fc) {
cmac              420 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		cmac->instance->fc = (u8) fc;
cmac              421 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		if (cmac->instance->enabled & MAC_DIRECTION_TX)
cmac              422 drivers/net/ethernet/chelsio/cxgb/pm3393.c 			pm3393_enable(cmac, MAC_DIRECTION_TX);
cmac              442 drivers/net/ethernet/chelsio/cxgb/pm3393.c static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac,
cmac              493 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_macaddress_get(struct cmac *cmac, u8 mac_addr[6])
cmac              495 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	memcpy(mac_addr, cmac->instance->mac_addr, ETH_ALEN);
cmac              499 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_macaddress_set(struct cmac *cmac, u8 ma[6])
cmac              501 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	u32 val, lo, mid, hi, enabled = cmac->instance->enabled;
cmac              522 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	memcpy(cmac->instance->mac_addr, ma, ETH_ALEN);
cmac              530 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pm3393_disable(cmac, MAC_DIRECTION_RX | MAC_DIRECTION_TX);
cmac              533 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_15_0, lo);
cmac              534 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_31_16, mid);
cmac              535 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_47_32, hi);
cmac              538 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_15_0, lo);
cmac              539 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_31_16, mid);
cmac              540 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_47_32, hi);
cmac              546 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmread(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0, &val);
cmac              548 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0, val);
cmac              550 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_LOW, lo);
cmac              551 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID, mid);
cmac              552 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_HIGH, hi);
cmac              555 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0, val);
cmac              558 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		pm3393_enable(cmac, enabled);
cmac              562 drivers/net/ethernet/chelsio/cxgb/pm3393.c static void pm3393_destroy(struct cmac *cmac)
cmac              564 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	kfree(cmac);
cmac              587 drivers/net/ethernet/chelsio/cxgb/pm3393.c static struct cmac *pm3393_mac_create(adapter_t *adapter, int index)
cmac              589 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	struct cmac *cmac;
cmac              591 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac = kzalloc(sizeof(*cmac) + sizeof(cmac_instance), GFP_KERNEL);
cmac              592 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	if (!cmac)
cmac              595 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->ops = &pm3393_ops;
cmac              596 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->instance = (cmac_instance *) (cmac + 1);
cmac              597 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->adapter = adapter;
cmac              598 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->instance->fc = PAUSE_TX | PAUSE_RX;
cmac              681 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	return cmac;
cmac              165 drivers/net/ethernet/chelsio/cxgb/subr.c 		struct cmac *mac = adapter->port[port_id].mac;
cmac              623 drivers/net/ethernet/chelsio/cxgb/subr.c int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
cmac              735 drivers/net/ethernet/chelsio/cxgb/subr.c 			struct cmac *mac = adapter->port[0].mac;
cmac             1013 drivers/net/ethernet/chelsio/cxgb/subr.c 		struct cmac *mac = adapter->port[i].mac;
cmac             1088 drivers/net/ethernet/chelsio/cxgb/subr.c 		struct cmac *mac;
cmac              361 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_intr_handler(struct cmac *mac)
cmac              366 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_intr_enable(struct cmac *mac)
cmac              371 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_intr_disable(struct cmac *mac)
cmac              376 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_intr_clear(struct cmac *mac)
cmac              382 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_set_address(struct cmac* mac, u8 addr[6])
cmac              405 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_get_address(struct cmac *mac, u8 addr[6])
cmac              423 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_reset(struct cmac *mac)
cmac              433 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm)
cmac              450 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_set_mtu(struct cmac *mac, int mtu)
cmac              459 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex,
cmac              528 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_enable(struct cmac *mac, int which)
cmac              545 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_disable(struct cmac *mac, int which)
cmac              571 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static void rmon_update(struct cmac *mac, unsigned int addr, u64 *stat)
cmac              586 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static void port_stats_update(struct cmac *mac)
cmac              639 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static const struct cmac_statistics *mac_update_statistics(struct cmac *mac,
cmac              660 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static void mac_destroy(struct cmac *mac)
cmac              682 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static struct cmac *vsc7326_mac_create(adapter_t *adapter, int index)
cmac              684 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	struct cmac *mac;
cmac               73 drivers/net/ethernet/chelsio/cxgb3/adapter.h 	struct cmac mac;
cmac              677 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
cmac              705 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_reset(struct cmac *mac);
cmac              706 drivers/net/ethernet/chelsio/cxgb3/common.h void t3b_pcs_reset(struct cmac *mac);
cmac              707 drivers/net/ethernet/chelsio/cxgb3/common.h void t3_mac_disable_exact_filters(struct cmac *mac);
cmac              708 drivers/net/ethernet/chelsio/cxgb3/common.h void t3_mac_enable_exact_filters(struct cmac *mac);
cmac              709 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_enable(struct cmac *mac, int which);
cmac              710 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_disable(struct cmac *mac, int which);
cmac              711 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu);
cmac              712 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev);
cmac              713 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]);
cmac              714 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_set_num_ucast(struct cmac *mac, int n);
cmac              715 drivers/net/ethernet/chelsio/cxgb3/common.h const struct mac_stats *t3_mac_update_stats(struct cmac *mac);
cmac              716 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc);
cmac              717 drivers/net/ethernet/chelsio/cxgb3/common.h int t3b2_mac_watchdog_task(struct cmac *mac);
cmac              208 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 		struct cmac *mac = &pi->mac;
cmac              256 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 	struct cmac *mac = &pi->mac;
cmac              347 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 	struct cmac *mac = &pi->mac;
cmac             2704 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 			struct cmac *mac = &p->mac;
cmac             2751 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 		struct cmac *mac =  &adap2pinfo(adapter, port)->mac;
cmac             1198 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c static void t3_gate_rx_traffic(struct cmac *mac, u32 *rx_cfg,
cmac             1220 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c static void t3_open_rx_traffic(struct cmac *mac, u32 rx_cfg,
cmac             1245 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c 	struct cmac *mac = &pi->mac;
cmac             1300 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c 	struct cmac *mac = &pi->mac;
cmac             1363 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
cmac             1846 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c 	struct cmac *mac = &adap2pinfo(adap, idx)->mac;
cmac             3539 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c static void mac_prep(struct cmac *mac, struct adapter *adapter, int index)
cmac               41 drivers/net/ethernet/chelsio/cxgb3/xgmac.c static inline int macidx(const struct cmac *mac)
cmac               46 drivers/net/ethernet/chelsio/cxgb3/xgmac.c static void xaui_serdes_reset(struct cmac *mac)
cmac               70 drivers/net/ethernet/chelsio/cxgb3/xgmac.c void t3b_pcs_reset(struct cmac *mac)
cmac               79 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_reset(struct cmac *mac)
cmac              150 drivers/net/ethernet/chelsio/cxgb3/xgmac.c static int t3b2_mac_reset(struct cmac *mac)
cmac              230 drivers/net/ethernet/chelsio/cxgb3/xgmac.c static void set_addr_filter(struct cmac *mac, int idx, const u8 * addr)
cmac              243 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6])
cmac              256 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_set_num_ucast(struct cmac *mac, int n)
cmac              264 drivers/net/ethernet/chelsio/cxgb3/xgmac.c void t3_mac_disable_exact_filters(struct cmac *mac)
cmac              275 drivers/net/ethernet/chelsio/cxgb3/xgmac.c void t3_mac_enable_exact_filters(struct cmac *mac)
cmac              300 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev)
cmac              345 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu)
cmac              428 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc)
cmac              467 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_enable(struct cmac *mac, int which)
cmac              506 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_disable(struct cmac *mac, int which)
cmac              532 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3b2_mac_watchdog_task(struct cmac *mac)
cmac              598 drivers/net/ethernet/chelsio/cxgb3/xgmac.c const struct mac_stats *t3_mac_update_stats(struct cmac *mac)