dtsec             553 drivers/net/ethernet/freescale/fman/fman_dtsec.c static int check_init_parameters(struct fman_mac *dtsec)
dtsec             555 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (dtsec->max_speed >= SPEED_10000) {
dtsec             559 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (dtsec->addr == 0) {
dtsec             563 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if ((dtsec->dtsec_drv_param)->rx_prepend >
dtsec             569 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (((dtsec->dtsec_drv_param)->non_back_to_back_ipg1 >
dtsec             571 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	    ((dtsec->dtsec_drv_param)->non_back_to_back_ipg2 >
dtsec             573 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	     ((dtsec->dtsec_drv_param)->back_to_back_ipg >
dtsec             579 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if ((dtsec->dtsec_drv_param)->halfdup_retransmit >
dtsec             585 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if ((dtsec->dtsec_drv_param)->halfdup_coll_window >
dtsec             594 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!dtsec->exception_cb) {
dtsec             598 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!dtsec->event_cb) {
dtsec             673 drivers/net/ethernet/freescale/fman/fman_dtsec.c static u16 dtsec_get_max_frame_length(struct fman_mac *dtsec)
dtsec             675 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec             677 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (is_init_done(dtsec->dtsec_drv_param))
dtsec             685 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct fman_mac *dtsec = (struct fman_mac *)handle;
dtsec             686 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec             698 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_BAB_RX);
dtsec             700 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_RX_CTL);
dtsec             702 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id,
dtsec             705 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_BAB_TX);
dtsec             707 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_TX_CTL);
dtsec             709 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_TX_ERR);
dtsec             711 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_LATE_COL);
dtsec             713 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_COL_RET_LMT);
dtsec             716 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		if (dtsec->fm_rev_info.major == 2) {
dtsec             737 drivers/net/ethernet/freescale/fman/fman_dtsec.c 					(dtsec_get_max_frame_length(dtsec) *
dtsec             740 drivers/net/ethernet/freescale/fman/fman_dtsec.c 					(dtsec) * 16 / 1000, 1) + 1));
dtsec             785 drivers/net/ethernet/freescale/fman/fman_dtsec.c 				fman_reset_mac(dtsec->fm, dtsec->mac_id);
dtsec             796 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_TX_FIFO_UNDRN);
dtsec             799 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_MAG_PCKT);
dtsec             801 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id,
dtsec             804 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_EX_1G_DATA_ERR);
dtsec             806 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		dtsec->exception_cb(dtsec->dev_id, FM_MAC_1G_RX_DATA_ERR);
dtsec             815 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct fman_mac *dtsec = (struct fman_mac *)handle;
dtsec             816 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec             819 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (dtsec->ptp_tsu_enabled) {
dtsec             826 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			dtsec->exception_cb(dtsec->dev_id,
dtsec             832 drivers/net/ethernet/freescale/fman/fman_dtsec.c static void free_init_resources(struct fman_mac *dtsec)
dtsec             834 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	fman_unregister_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id,
dtsec             836 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	fman_unregister_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id,
dtsec             840 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	free_hash_table(dtsec->multicast_addr_hash);
dtsec             841 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->multicast_addr_hash = NULL;
dtsec             844 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	free_hash_table(dtsec->unicast_addr_hash);
dtsec             845 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->unicast_addr_hash = NULL;
dtsec             848 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_cfg_max_frame_len(struct fman_mac *dtsec, u16 new_val)
dtsec             850 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (is_init_done(dtsec->dtsec_drv_param))
dtsec             853 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->dtsec_drv_param->maximum_frame = new_val;
dtsec             858 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_cfg_pad_and_crc(struct fman_mac *dtsec, bool new_val)
dtsec             860 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (is_init_done(dtsec->dtsec_drv_param))
dtsec             863 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->dtsec_drv_param->tx_pad_crc = new_val;
dtsec             868 drivers/net/ethernet/freescale/fman/fman_dtsec.c static void graceful_start(struct fman_mac *dtsec, enum comm_mode mode)
dtsec             870 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec             880 drivers/net/ethernet/freescale/fman/fman_dtsec.c static void graceful_stop(struct fman_mac *dtsec, enum comm_mode mode)
dtsec             882 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec             890 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		if (dtsec->fm_rev_info.major == 2) {
dtsec             901 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		if (dtsec->fm_rev_info.major == 2) {
dtsec             914 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_enable(struct fman_mac *dtsec, enum comm_mode mode)
dtsec             916 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec             919 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec             932 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_start(dtsec, mode);
dtsec             937 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_disable(struct fman_mac *dtsec, enum comm_mode mode)
dtsec             939 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec             942 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec             946 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_stop(dtsec, mode);
dtsec             959 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_set_tx_pause_frames(struct fman_mac *dtsec,
dtsec             963 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec             967 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec             975 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_stop(dtsec, mode);
dtsec             979 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		if (dtsec->fm_rev_info.major == 2 && pause_time <= 320) {
dtsec             997 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_start(dtsec, mode);
dtsec            1002 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_accept_rx_pause_frames(struct fman_mac *dtsec, bool en)
dtsec            1004 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1008 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1016 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_stop(dtsec, mode);
dtsec            1025 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_start(dtsec, mode);
dtsec            1030 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_modify_mac_address(struct fman_mac *dtsec, enet_addr_t *enet_addr)
dtsec            1032 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1035 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1043 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_stop(dtsec, mode);
dtsec            1048 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->addr = ENET_ADDR_TO_UINT64(*enet_addr);
dtsec            1049 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	set_mac_address(dtsec->regs, (u8 *)(*enet_addr));
dtsec            1051 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_start(dtsec, mode);
dtsec            1056 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_add_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr)
dtsec            1058 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1065 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1102 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	set_bucket(dtsec->regs, bucket, true);
dtsec            1114 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			      &dtsec->multicast_addr_hash->lsts[bucket]);
dtsec            1117 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			      &dtsec->unicast_addr_hash->lsts[bucket]);
dtsec            1122 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_set_allmulti(struct fman_mac *dtsec, bool enable)
dtsec            1125 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1127 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1141 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_set_tstamp(struct fman_mac *dtsec, bool enable)
dtsec            1143 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1146 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1166 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_del_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr)
dtsec            1168 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1176 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1206 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			      &dtsec->multicast_addr_hash->lsts[bucket]) {
dtsec            1214 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		if (list_empty(&dtsec->multicast_addr_hash->lsts[bucket]))
dtsec            1215 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			set_bucket(dtsec->regs, bucket, false);
dtsec            1219 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			      &dtsec->unicast_addr_hash->lsts[bucket]) {
dtsec            1227 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		if (list_empty(&dtsec->unicast_addr_hash->lsts[bucket]))
dtsec            1228 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			set_bucket(dtsec->regs, bucket, false);
dtsec            1237 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_set_promiscuous(struct fman_mac *dtsec, bool new_val)
dtsec            1239 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1242 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1266 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_adjust_link(struct fman_mac *dtsec, u16 speed)
dtsec            1268 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1272 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1280 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_stop(dtsec, mode);
dtsec            1301 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	graceful_start(dtsec, mode);
dtsec            1306 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_restart_autoneg(struct fman_mac *dtsec)
dtsec            1310 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1313 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	tmp_reg16 = phy_read(dtsec->tbiphy, MII_BMCR);
dtsec            1319 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	phy_write(dtsec->tbiphy, MII_BMCR, tmp_reg16);
dtsec            1324 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_get_version(struct fman_mac *dtsec, u32 *mac_version)
dtsec            1326 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1328 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1336 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_set_exception(struct fman_mac *dtsec,
dtsec            1339 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1342 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!is_init_done(dtsec->dtsec_drv_param))
dtsec            1349 drivers/net/ethernet/freescale/fman/fman_dtsec.c 				dtsec->exceptions |= bit_mask;
dtsec            1351 drivers/net/ethernet/freescale/fman/fman_dtsec.c 				dtsec->exceptions &= ~bit_mask;
dtsec            1363 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		if (!dtsec->ptp_tsu_enabled) {
dtsec            1370 drivers/net/ethernet/freescale/fman/fman_dtsec.c 				dtsec->en_tsu_err_exception = true;
dtsec            1375 drivers/net/ethernet/freescale/fman/fman_dtsec.c 				dtsec->en_tsu_err_exception = false;
dtsec            1390 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_init(struct fman_mac *dtsec)
dtsec            1392 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct dtsec_regs __iomem *regs = dtsec->regs;
dtsec            1398 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (is_init_done(dtsec->dtsec_drv_param))
dtsec            1402 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	    (fman_reset_mac(dtsec->fm, dtsec->mac_id) != 0)) {
dtsec            1407 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	err = check_init_parameters(dtsec);
dtsec            1411 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec_drv_param = dtsec->dtsec_drv_param;
dtsec            1413 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	MAKE_ENET_ADDR_FROM_UINT64(dtsec->addr, eth_addr);
dtsec            1415 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	err = init(dtsec->regs, dtsec_drv_param, dtsec->phy_if,
dtsec            1416 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		   dtsec->max_speed, (u8 *)eth_addr, dtsec->exceptions,
dtsec            1417 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		   dtsec->tbiphy->mdio.addr);
dtsec            1419 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		free_init_resources(dtsec);
dtsec            1424 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (dtsec->phy_if == PHY_INTERFACE_MODE_SGMII) {
dtsec            1429 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		phy_write(dtsec->tbiphy, MII_TBICON, tmp_reg16);
dtsec            1432 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		phy_write(dtsec->tbiphy, MII_TBICON, tmp_reg16);
dtsec            1436 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		phy_write(dtsec->tbiphy, MII_BMCR, tmp_reg16);
dtsec            1438 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		if (dtsec->basex_if)
dtsec            1442 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		phy_write(dtsec->tbiphy, MII_ADVERTISE, tmp_reg16);
dtsec            1447 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		phy_write(dtsec->tbiphy, MII_BMCR, tmp_reg16);
dtsec            1452 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	err = fman_set_mac_max_frame(dtsec->fm, dtsec->mac_id, max_frm_ln);
dtsec            1455 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		free_init_resources(dtsec);
dtsec            1459 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->multicast_addr_hash =
dtsec            1461 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!dtsec->multicast_addr_hash) {
dtsec            1462 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		free_init_resources(dtsec);
dtsec            1467 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->unicast_addr_hash = alloc_hash_table(DTSEC_HASH_TABLE_SIZE);
dtsec            1468 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!dtsec->unicast_addr_hash) {
dtsec            1469 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		free_init_resources(dtsec);
dtsec            1475 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	fman_register_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id,
dtsec            1476 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			   FMAN_INTR_TYPE_ERR, dtsec_isr, dtsec);
dtsec            1478 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	fman_register_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id,
dtsec            1479 drivers/net/ethernet/freescale/fman/fman_dtsec.c 			   FMAN_INTR_TYPE_NORMAL, dtsec_1588_isr, dtsec);
dtsec            1482 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->dtsec_drv_param = NULL;
dtsec            1487 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_free(struct fman_mac *dtsec)
dtsec            1489 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	free_init_resources(dtsec);
dtsec            1491 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	kfree(dtsec->dtsec_drv_param);
dtsec            1492 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->dtsec_drv_param = NULL;
dtsec            1493 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	kfree(dtsec);
dtsec            1500 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	struct fman_mac *dtsec;
dtsec            1507 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec = kzalloc(sizeof(*dtsec), GFP_KERNEL);
dtsec            1508 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!dtsec)
dtsec            1517 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->dtsec_drv_param = dtsec_drv_param;
dtsec            1521 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->regs = base_addr;
dtsec            1522 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->addr = ENET_ADDR_TO_UINT64(params->addr);
dtsec            1523 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->max_speed = params->max_speed;
dtsec            1524 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->phy_if = params->phy_if;
dtsec            1525 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->mac_id = params->mac_id;
dtsec            1526 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->exceptions = (DTSEC_IMASK_BREN	|
dtsec            1539 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->exception_cb = params->exception_cb;
dtsec            1540 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->event_cb = params->event_cb;
dtsec            1541 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->dev_id = params->dev_id;
dtsec            1542 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->ptp_tsu_enabled = dtsec->dtsec_drv_param->ptp_tsu_en;
dtsec            1543 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->en_tsu_err_exception = dtsec->dtsec_drv_param->ptp_exception_en;
dtsec            1545 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->fm = params->fm;
dtsec            1546 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->basex_if = params->basex_if;
dtsec            1553 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	dtsec->tbiphy = of_phy_find_device(params->internal_phy_node);
dtsec            1554 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	if (!dtsec->tbiphy) {
dtsec            1559 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	put_device(&dtsec->tbiphy->mdio.dev);
dtsec            1562 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	fman_get_revision(dtsec->fm, &dtsec->fm_rev_info);
dtsec            1564 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	return dtsec;
dtsec            1569 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	kfree(dtsec);
dtsec              39 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_set_promiscuous(struct fman_mac *dtsec, bool new_val);
dtsec              40 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_modify_mac_address(struct fman_mac *dtsec, enet_addr_t *enet_addr);
dtsec              41 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_adjust_link(struct fman_mac *dtsec,
dtsec              43 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_restart_autoneg(struct fman_mac *dtsec);
dtsec              44 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_cfg_max_frame_len(struct fman_mac *dtsec, u16 new_val);
dtsec              45 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_cfg_pad_and_crc(struct fman_mac *dtsec, bool new_val);
dtsec              46 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_enable(struct fman_mac *dtsec, enum comm_mode mode);
dtsec              47 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_disable(struct fman_mac *dtsec, enum comm_mode mode);
dtsec              48 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_init(struct fman_mac *dtsec);
dtsec              49 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_free(struct fman_mac *dtsec);
dtsec              50 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_accept_rx_pause_frames(struct fman_mac *dtsec, bool en);
dtsec              51 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_set_tx_pause_frames(struct fman_mac *dtsec, u8 priority,
dtsec              53 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_set_exception(struct fman_mac *dtsec,
dtsec              55 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_add_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr);
dtsec              56 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_del_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr);
dtsec              57 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_get_version(struct fman_mac *dtsec, u32 *mac_version);
dtsec              58 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_set_allmulti(struct fman_mac *dtsec, bool enable);
dtsec              59 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_set_tstamp(struct fman_mac *dtsec, bool enable);