ptp_data         1081 drivers/net/ethernet/sfc/net_driver.h 	struct efx_ptp_data *ptp_data;
ptp_data          398 drivers/net/ethernet/sfc/ptp.c 	if (!efx->ptp_data)
ptp_data          412 drivers/net/ethernet/sfc/ptp.c 	if (!efx->ptp_data)
ptp_data          419 drivers/net/ethernet/sfc/ptp.c 		stats[i] = *(unsigned int *)((char *)efx->ptp_data +
ptp_data          541 drivers/net/ethernet/sfc/ptp.c 	return efx->ptp_data ? efx->ptp_data->channel : NULL;
ptp_data          612 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data          633 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data          745 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.ptp_tx = MCDI_DWORD(outbuf,
ptp_data          747 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.ptp_rx = MCDI_DWORD(outbuf,
ptp_data          749 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.pps_out = MCDI_DWORD(outbuf,
ptp_data          751 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.pps_in = MCDI_DWORD(outbuf,
ptp_data          755 drivers/net/ethernet/sfc/ptp.c 			efx->ptp_data->ts_corrections.general_tx = MCDI_DWORD(
ptp_data          758 drivers/net/ethernet/sfc/ptp.c 			efx->ptp_data->ts_corrections.general_rx = MCDI_DWORD(
ptp_data          762 drivers/net/ethernet/sfc/ptp.c 			efx->ptp_data->ts_corrections.general_tx =
ptp_data          763 drivers/net/ethernet/sfc/ptp.c 				efx->ptp_data->ts_corrections.ptp_tx;
ptp_data          764 drivers/net/ethernet/sfc/ptp.c 			efx->ptp_data->ts_corrections.general_rx =
ptp_data          765 drivers/net/ethernet/sfc/ptp.c 				efx->ptp_data->ts_corrections.ptp_rx;
ptp_data          768 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.ptp_tx = 0;
ptp_data          769 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.ptp_rx = 0;
ptp_data          770 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.pps_out = 0;
ptp_data          771 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.pps_in = 0;
ptp_data          772 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.general_tx = 0;
ptp_data          773 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->ts_corrections.general_rx = 0;
ptp_data          793 drivers/net/ethernet/sfc/ptp.c 		       efx->ptp_data->channel ?
ptp_data          794 drivers/net/ethernet/sfc/ptp.c 		       efx->ptp_data->channel->channel : 0);
ptp_data          795 drivers/net/ethernet/sfc/ptp.c 	MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_MODE, efx->ptp_data->mode);
ptp_data          861 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data          932 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1027 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1090 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp_data = efx->ptp_data;
ptp_data         1094 drivers/net/ethernet/sfc/ptp.c 	tx_queue = &ptp_data->channel->tx_queue[type];
ptp_data         1106 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp_data = efx->ptp_data;
ptp_data         1112 drivers/net/ethernet/sfc/ptp.c 	MCDI_SET_DWORD(ptp_data->txbuf, PTP_IN_OP, MC_CMD_PTP_OP_TRANSMIT);
ptp_data         1113 drivers/net/ethernet/sfc/ptp.c 	MCDI_SET_DWORD(ptp_data->txbuf, PTP_IN_PERIPH_ID, 0);
ptp_data         1114 drivers/net/ethernet/sfc/ptp.c 	MCDI_SET_DWORD(ptp_data->txbuf, PTP_IN_TRANSMIT_LENGTH, skb->len);
ptp_data         1127 drivers/net/ethernet/sfc/ptp.c 				  MCDI_PTR(ptp_data->txbuf,
ptp_data         1131 drivers/net/ethernet/sfc/ptp.c 			  ptp_data->txbuf, MC_CMD_PTP_IN_TRANSMIT_LEN(skb->len),
ptp_data         1137 drivers/net/ethernet/sfc/ptp.c 	timestamps.hwtstamp = ptp_data->nic_to_kernel_time(
ptp_data         1140 drivers/net/ethernet/sfc/ptp.c 		ptp_data->ts_corrections.ptp_tx);
ptp_data         1154 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1182 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1230 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1264 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1277 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1326 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1351 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1364 drivers/net/ethernet/sfc/ptp.c 	efx_ptp_deliver_rx_queue(&efx->ptp_data->rxq);
ptp_data         1365 drivers/net/ethernet/sfc/ptp.c 	skb_queue_purge(&efx->ptp_data->txq);
ptp_data         1368 drivers/net/ethernet/sfc/ptp.c 	spin_lock_bh(&efx->ptp_data->evt_lock);
ptp_data         1369 drivers/net/ethernet/sfc/ptp.c 	list_for_each_safe(cursor, next, &efx->ptp_data->evt_list) {
ptp_data         1370 drivers/net/ethernet/sfc/ptp.c 		list_move(cursor, &efx->ptp_data->evt_free_list);
ptp_data         1372 drivers/net/ethernet/sfc/ptp.c 	spin_unlock_bh(&efx->ptp_data->evt_lock);
ptp_data         1379 drivers/net/ethernet/sfc/ptp.c 	if (efx->ptp_data && efx->ptp_data->enabled)
ptp_data         1401 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp_data =
ptp_data         1403 drivers/net/ethernet/sfc/ptp.c 	struct efx_nic *efx = ptp_data->efx;
ptp_data         1407 drivers/net/ethernet/sfc/ptp.c 	if (ptp_data->reset_required) {
ptp_data         1418 drivers/net/ethernet/sfc/ptp.c 	while ((skb = skb_dequeue(&ptp_data->txq)))
ptp_data         1419 drivers/net/ethernet/sfc/ptp.c 		ptp_data->xmit_skb(efx, skb);
ptp_data         1449 drivers/net/ethernet/sfc/ptp.c 	efx->ptp_data = ptp;
ptp_data         1450 drivers/net/ethernet/sfc/ptp.c 	if (!efx->ptp_data)
ptp_data         1518 drivers/net/ethernet/sfc/ptp.c 	ptp_clock_unregister(efx->ptp_data->phc_clock);
ptp_data         1521 drivers/net/ethernet/sfc/ptp.c 	destroy_workqueue(efx->ptp_data->workwq);
ptp_data         1527 drivers/net/ethernet/sfc/ptp.c 	kfree(efx->ptp_data);
ptp_data         1528 drivers/net/ethernet/sfc/ptp.c 	efx->ptp_data = NULL;
ptp_data         1560 drivers/net/ethernet/sfc/ptp.c 	if (!efx->ptp_data)
ptp_data         1565 drivers/net/ethernet/sfc/ptp.c 	cancel_work_sync(&efx->ptp_data->work);
ptp_data         1566 drivers/net/ethernet/sfc/ptp.c 	if (efx->ptp_data->pps_workwq)
ptp_data         1567 drivers/net/ethernet/sfc/ptp.c 		cancel_work_sync(&efx->ptp_data->pps_work);
ptp_data         1569 drivers/net/ethernet/sfc/ptp.c 	skb_queue_purge(&efx->ptp_data->rxq);
ptp_data         1570 drivers/net/ethernet/sfc/ptp.c 	skb_queue_purge(&efx->ptp_data->txq);
ptp_data         1572 drivers/net/ethernet/sfc/ptp.c 	if (efx->ptp_data->phc_clock) {
ptp_data         1573 drivers/net/ethernet/sfc/ptp.c 		destroy_workqueue(efx->ptp_data->pps_workwq);
ptp_data         1574 drivers/net/ethernet/sfc/ptp.c 		ptp_clock_unregister(efx->ptp_data->phc_clock);
ptp_data         1577 drivers/net/ethernet/sfc/ptp.c 	destroy_workqueue(efx->ptp_data->workwq);
ptp_data         1579 drivers/net/ethernet/sfc/ptp.c 	efx_nic_free_buffer(efx, &efx->ptp_data->start);
ptp_data         1580 drivers/net/ethernet/sfc/ptp.c 	kfree(efx->ptp_data);
ptp_data         1581 drivers/net/ethernet/sfc/ptp.c 	efx->ptp_data = NULL;
ptp_data         1600 drivers/net/ethernet/sfc/ptp.c 	return efx->ptp_data &&
ptp_data         1601 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->enabled &&
ptp_data         1620 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1706 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1720 drivers/net/ethernet/sfc/ptp.c 	return efx->ptp_data->mode;
ptp_data         1726 drivers/net/ethernet/sfc/ptp.c 	if ((enable_wanted != efx->ptp_data->enabled) ||
ptp_data         1727 drivers/net/ethernet/sfc/ptp.c 	    (enable_wanted && (efx->ptp_data->mode != new_mode))) {
ptp_data         1732 drivers/net/ethernet/sfc/ptp.c 			if (efx->ptp_data->enabled &&
ptp_data         1733 drivers/net/ethernet/sfc/ptp.c 			    (efx->ptp_data->mode != new_mode)) {
ptp_data         1734 drivers/net/ethernet/sfc/ptp.c 				efx->ptp_data->enabled = false;
ptp_data         1744 drivers/net/ethernet/sfc/ptp.c 			efx->ptp_data->mode = new_mode;
ptp_data         1760 drivers/net/ethernet/sfc/ptp.c 		efx->ptp_data->enabled = enable_wanted;
ptp_data         1781 drivers/net/ethernet/sfc/ptp.c 	efx->ptp_data->config = *init;
ptp_data         1787 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1809 drivers/net/ethernet/sfc/ptp.c 	if (primary && primary->ptp_data && primary->ptp_data->phc_clock)
ptp_data         1811 drivers/net/ethernet/sfc/ptp.c 			ptp_clock_index(primary->ptp_data->phc_clock);
ptp_data         1822 drivers/net/ethernet/sfc/ptp.c 	if (!efx->ptp_data)
ptp_data         1838 drivers/net/ethernet/sfc/ptp.c 	if (!efx->ptp_data)
ptp_data         1841 drivers/net/ethernet/sfc/ptp.c 	return copy_to_user(ifr->ifr_data, &efx->ptp_data->config,
ptp_data         1842 drivers/net/ethernet/sfc/ptp.c 			    sizeof(efx->ptp_data->config)) ? -EFAULT : 0;
ptp_data         1847 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1885 drivers/net/ethernet/sfc/ptp.c 		evt->hwtimestamp = efx->ptp_data->nic_to_kernel_time(
ptp_data         1919 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         1971 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         2008 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp = efx->ptp_data;
ptp_data         2063 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp_data = container_of(ptp,
ptp_data         2066 drivers/net/ethernet/sfc/ptp.c 	struct efx_nic *efx = ptp_data->efx;
ptp_data         2078 drivers/net/ethernet/sfc/ptp.c 			 (1 << (ptp_data->adjfreq_ppb_shift - 1))) >>
ptp_data         2079 drivers/net/ethernet/sfc/ptp.c 			ptp_data->adjfreq_ppb_shift;
ptp_data         2091 drivers/net/ethernet/sfc/ptp.c 	ptp_data->current_adjfreq = adjustment_ns;
ptp_data         2098 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp_data = container_of(ptp,
ptp_data         2101 drivers/net/ethernet/sfc/ptp.c 	struct efx_nic *efx = ptp_data->efx;
ptp_data         2104 drivers/net/ethernet/sfc/ptp.c 	efx->ptp_data->ns_to_nic_time(delta, &nic_major, &nic_minor);
ptp_data         2108 drivers/net/ethernet/sfc/ptp.c 	MCDI_SET_QWORD(inbuf, PTP_IN_ADJUST_FREQ, ptp_data->current_adjfreq);
ptp_data         2117 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp_data = container_of(ptp,
ptp_data         2120 drivers/net/ethernet/sfc/ptp.c 	struct efx_nic *efx = ptp_data->efx;
ptp_data         2134 drivers/net/ethernet/sfc/ptp.c 	kt = ptp_data->nic_to_kernel_time(
ptp_data         2169 drivers/net/ethernet/sfc/ptp.c 	struct efx_ptp_data *ptp_data = container_of(ptp,
ptp_data         2175 drivers/net/ethernet/sfc/ptp.c 	ptp_data->nic_ts_enabled = !!enable;