Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
efx_ptp_data Struct Reference

Data Fields

struct efx_channelchannel
 
struct sk_buff_head rxq
 
struct sk_buff_head txq
 
struct list_head evt_list
 
struct list_head evt_free_list
 
spinlock_t evt_lock
 
struct efx_ptp_event_rx rx_evts [MAX_RECEIVE_EVENTS]
 
struct workqueue_structworkwq
 
struct work_struct work
 
bool reset_required
 
u32 rxfilter_event
 
u32 rxfilter_general
 
bool rxfilter_installed
 
struct hwtstamp_config config
 
bool enabled
 
unsigned int mode
 
efx_qword_t evt_frags [MAX_EVENT_FRAGS]
 
int evt_frag_idx
 
int evt_code
 
struct efx_buffer start
 
struct pps_event_time host_time_pps
 
unsigned last_sync_ns
 
unsigned base_sync_ns
 
bool base_sync_valid
 
s64 current_adjfreq
 
struct ptp_clockphc_clock
 
struct ptp_clock_info phc_clock_info
 
struct work_struct pps_work
 
struct workqueue_structpps_workwq
 
bool nic_ts_enabled
 
u8 txbuf [ALIGN(MC_CMD_PTP_IN_TRANSMIT_LEN(MC_CMD_PTP_IN_TRANSMIT_PACKET_MAXNUM), 4)]
 
struct efx_ptp_timeset timeset [MC_CMD_PTP_OUT_SYNCHRONIZE_TIMESET_MAXNUM]
 

Detailed Description

struct efx_ptp_data - Precision Time Protocol (PTP) state : The PTP channel : Receive queue (awaiting timestamps) : Transmit queue : List of MC receive events awaiting packets : List of free events : Lock for manipulating evt_list and evt_free_list : Instantiated events (on evt_list and evt_free_list) : Work queue for processing pending PTP operations : Work task : A serious error has occurred and the PTP task needs to be reset (disable, enable). : Receive filter when operating : Receive filter when operating : Current timestamp configuration : PTP operation enabled : Mode in which PTP operating (PTP version) : Partly assembled PTP events : Current fragment number : Last event code : Address at which MC indicates ready for synchronisation : Host time at last PPS : Last number of nanoseconds between readings when synchronising : Number of nanoseconds for last synchronisation. : Whether base_sync_time is valid. : Current ppb adjustment. : Pointer to registered phc device : Registration structure for phc device : pps work task for handling pps events : pps work queue : Flag indicating if NIC generated TS events are handled : Buffer for use when transmitting (PTP) packets to MC (avoids allocations in main data path). : PTP debugfs directory : Number of packets received without syncrhonisation. : Number of successful synchronisations. : Number of synchronisations with no good times. : Number of synchronisations with bad durations. : Number of failed synchronisations. : Number of nanoseconds for last synchronisation. : Number of synchronisation timeouts : Number of synchronisations requiring short delay : Minimum time between event and synchronisation : Maximum time between event and synchronisation : Average time between event and synchronisation. Modified moving average. : Last time between event and synchronisation : Context value for MC statistics : Last set of synchronisation statistics.

Definition at line 263 of file ptp.c.

Field Documentation

unsigned base_sync_ns

Definition at line 286 of file ptp.c.

bool base_sync_valid

Definition at line 287 of file ptp.c.

Definition at line 264 of file ptp.c.

Definition at line 277 of file ptp.c.

s64 current_adjfreq

Definition at line 288 of file ptp.c.

bool enabled

Definition at line 278 of file ptp.c.

int evt_code

Definition at line 282 of file ptp.c.

int evt_frag_idx

Definition at line 281 of file ptp.c.

Definition at line 280 of file ptp.c.

struct list_head evt_free_list

Definition at line 268 of file ptp.c.

struct list_head evt_list

Definition at line 267 of file ptp.c.

spinlock_t evt_lock

Definition at line 269 of file ptp.c.

struct pps_event_time host_time_pps

Definition at line 284 of file ptp.c.

unsigned last_sync_ns

Definition at line 285 of file ptp.c.

unsigned int mode

Definition at line 279 of file ptp.c.

bool nic_ts_enabled

Definition at line 293 of file ptp.c.

struct ptp_clock* phc_clock

Definition at line 289 of file ptp.c.

struct ptp_clock_info phc_clock_info

Definition at line 290 of file ptp.c.

struct work_struct pps_work

Definition at line 291 of file ptp.c.

struct workqueue_struct* pps_workwq

Definition at line 292 of file ptp.c.

bool reset_required

Definition at line 273 of file ptp.c.

Definition at line 270 of file ptp.c.

u32 rxfilter_event

Definition at line 274 of file ptp.c.

u32 rxfilter_general

Definition at line 275 of file ptp.c.

bool rxfilter_installed

Definition at line 276 of file ptp.c.

Definition at line 265 of file ptp.c.

Definition at line 283 of file ptp.c.

Definition at line 296 of file ptp.c.

Definition at line 295 of file ptp.c.

Definition at line 266 of file ptp.c.

Definition at line 272 of file ptp.c.

Definition at line 271 of file ptp.c.


The documentation for this struct was generated from the following file: