Home
last modified time | relevance | path

Searched refs:cpts (Results 1 – 8 of 8) sorted by relevance

/drivers/net/ethernet/ti/
Dcpts.c49 static int cpts_fifo_pop(struct cpts *cpts, u32 *high, u32 *low) in cpts_fifo_pop() argument
51 u32 r = cpts_read32(cpts, intstat_raw); in cpts_fifo_pop()
54 *high = cpts_read32(cpts, event_high); in cpts_fifo_pop()
55 *low = cpts_read32(cpts, event_low); in cpts_fifo_pop()
56 cpts_write32(cpts, EVENT_POP, event_pop); in cpts_fifo_pop()
65 static int cpts_fifo_read(struct cpts *cpts, int match) in cpts_fifo_read() argument
72 if (cpts_fifo_pop(cpts, &hi, &lo)) in cpts_fifo_read()
74 if (list_empty(&cpts->pool)) { in cpts_fifo_read()
78 event = list_first_entry(&cpts->pool, struct cpts_event, list); in cpts_fifo_read()
88 list_add_tail(&event->list, &cpts->events); in cpts_fifo_read()
[all …]
Dcpts.h110 struct cpts { struct
131 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); argument
132 void cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb);
134 static inline void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb) in cpts_rx_timestamp() argument
137 static inline void cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb) in cpts_tx_timestamp() argument
142 int cpts_register(struct device *dev, struct cpts *cpts, u32 mult, u32 shift);
143 void cpts_unregister(struct cpts *cpts);
Dcpsw.c402 struct cpts *cpts; member
696 cpts_tx_timestamp(priv->cpts, skb); in cpsw_tx_handler()
743 cpts_rx_timestamp(priv->cpts, skb); in cpsw_rx_handler()
1356 if (cpts_register(&priv->pdev->dev, priv->cpts, in cpsw_ndo_open()
1399 cpts_unregister(priv->cpts); in cpsw_ndo_stop()
1426 priv->cpts->tx_enable) in cpsw_ndo_start_xmit()
1457 if (!priv->cpts->tx_enable && !priv->cpts->rx_enable) { in cpsw_hwtstamp_v1()
1465 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v1()
1468 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v1()
1490 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v2()
[all …]
DMakefile16 ti_cpsw-y := cpsw.o cpts.o
/drivers/staging/lustre/lustre/ptlrpc/
Dptlrpcd.c679 __u32 *cpts = NULL; in ptlrpcd_init() local
710 rc = cfs_expr_list_values(el, ncpts, &cpts); in ptlrpcd_init()
728 if (cpts[i] == cpt) in ptlrpcd_init()
735 cfs_expr_list_values_free(cpts, rc); in ptlrpcd_init()
818 if (!cpts) in ptlrpcd_init()
821 cpt = cpts[i]; in ptlrpcd_init()
Dservice.c547 __u32 *cpts = NULL; in ptlrpc_register_service() local
578 rc = cfs_expr_list_values(el, ncpts, &cpts); in ptlrpc_register_service()
583 kfree(cpts); in ptlrpc_register_service()
593 kfree(cpts); in ptlrpc_register_service()
598 service->srv_cpts = cpts; in ptlrpc_register_service()
635 cpt = cpts != NULL ? cpts[i] : i; in ptlrpc_register_service()
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c1970 static int kiblnd_net_init_pools(kib_net_t *net, __u32 *cpts, int ncpts) in kiblnd_net_init_pools() argument
2015 cpt = (cpts == NULL) ? i : cpts[i]; in kiblnd_net_init_pools()
2050 cpt = (cpts == NULL) ? i : cpts[i]; in kiblnd_net_init_pools()
2689 static int kiblnd_dev_start_threads(kib_dev_t *dev, int newdev, __u32 *cpts, in kiblnd_dev_start_threads() argument
2699 cpt = (cpts == NULL) ? i : cpts[i]; in kiblnd_dev_start_threads()
/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd.c2727 ksocknal_net_start_threads(ksock_net_t *net, __u32 *cpts, int ncpts) in ksocknal_net_start_threads() argument
2737 int cpt = (cpts == NULL) ? i : cpts[i]; in ksocknal_net_start_threads()