Home
last modified time | relevance | path

Searched refs:fbn (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_netdev.c13 int __fbnic_open(struct fbnic_net *fbn) in __fbnic_open() argument
15 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_open()
18 err = fbnic_alloc_napi_vectors(fbn); in __fbnic_open()
22 err = fbnic_alloc_resources(fbn); in __fbnic_open()
26 err = netif_set_real_num_tx_queues(fbn->netdev, in __fbnic_open()
27 fbn->num_tx_queues); in __fbnic_open()
31 err = netif_set_real_num_rx_queues(fbn->netdev, in __fbnic_open()
32 fbn->num_rx_queues); in __fbnic_open()
45 err = fbnic_time_start(fbn); in __fbnic_open()
58 fbnic_rss_reinit(fbd, fbn); in __fbnic_open()
[all …]
H A Dfbnic_phylink.c21 struct fbnic_net *fbn = fbnic_pcs_to_net(pcs); in fbnic_phylink_pcs_get_state() local
22 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_get_state()
51 struct fbnic_net *fbn = fbnic_pcs_to_net(pcs); in fbnic_phylink_pcs_enable() local
52 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_enable()
60 struct fbnic_net *fbn = fbnic_pcs_to_net(pcs); in fbnic_phylink_pcs_disable() local
61 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_disable()
87 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_phylink_mac_select_pcs() local
89 return &fbn->phylink_pcs; in fbnic_phylink_mac_select_pcs()
103 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_phylink_mac_link_down() local
104 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_down()
[all …]
H A Dfbnic_txrx.c61 static __maybe_unused u64 fbnic_ts40_to_ns(struct fbnic_net *fbn, u64 ts40) in fbnic_ts40_to_ns() argument
70 s = u64_stats_fetch_begin(&fbn->time_seq); in fbnic_ts40_to_ns()
71 offset = READ_ONCE(fbn->time_offset); in fbnic_ts40_to_ns()
72 } while (u64_stats_fetch_retry(&fbn->time_seq, s)); in fbnic_ts40_to_ns()
74 high = READ_ONCE(fbn->time_high); in fbnic_ts40_to_ns()
160 struct fbnic_net *fbn; in fbnic_tx_tstamp() local
165 fbn = netdev_priv(skb->dev); in fbnic_tx_tstamp()
166 if (fbn->hwtstamp_config.tx_type == HWTSTAMP_TX_OFF) in fbnic_tx_tstamp()
353 struct fbnic_net *fbn = netdev_priv(dev); in fbnic_xmit_frame() local
356 return fbnic_xmit_frame_ring(skb, fbn->tx[q_map]); in fbnic_xmit_frame()
[all …]
H A Dfbnic_ethtool.c47 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_ts_info() local
49 tsinfo->phc_index = ptp_clock_index(fbn->fbd->ptp); in fbnic_get_ts_info()
75 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_drvinfo() local
76 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo()
113 struct fbnic_net *fbn = netdev_priv(dev); in fbnic_get_ethtool_stats() local
117 fbnic_get_hw_stats(fbn->fbd); in fbnic_get_ethtool_stats()
121 data[i] = *(u64 *)((u8 *)&fbn->fbd->hw_stats + stat->offset); in fbnic_get_ethtool_stats()
129 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_eth_mac_stats() local
131 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_eth_mac_stats()
170 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_ts_stats() local
[all …]
H A Dfbnic_txrx.h126 int fbnic_alloc_napi_vectors(struct fbnic_net *fbn);
127 void fbnic_free_napi_vectors(struct fbnic_net *fbn);
128 int fbnic_alloc_resources(struct fbnic_net *fbn);
129 void fbnic_free_resources(struct fbnic_net *fbn);
130 void fbnic_napi_enable(struct fbnic_net *fbn);
131 void fbnic_napi_disable(struct fbnic_net *fbn);
132 void fbnic_enable(struct fbnic_net *fbn);
133 void fbnic_disable(struct fbnic_net *fbn);
134 void fbnic_flush(struct fbnic_net *fbn);
135 void fbnic_fill(struct fbnic_net *fbn);
H A Dfbnic_netdev.h63 int __fbnic_open(struct fbnic_net *fbn);
64 void fbnic_up(struct fbnic_net *fbn);
65 void fbnic_down(struct fbnic_net *fbn);
71 void fbnic_reset_queues(struct fbnic_net *fbn,
77 void fbnic_time_init(struct fbnic_net *fbn);
78 int fbnic_time_start(struct fbnic_net *fbn);
79 void fbnic_time_stop(struct fbnic_net *fbn);
H A Dfbnic_mac.c452 struct fbnic_net *fbn = netdev_priv(fbd->netdev); in __fbnic_mac_cmd_config_asic() local
461 if ((fbn->fec & FBNIC_FEC_MODE_MASK) == FBNIC_FEC_OFF) in __fbnic_mac_cmd_config_asic()
469 struct fbnic_net *fbn = netdev_priv(fbd->netdev); in fbnic_mac_get_pcs_link_status() local
477 switch (fbn->link_mode & FBNIC_LINK_MODE_MASK) { in fbnic_mac_get_pcs_link_status()
485 switch (fbn->fec & FBNIC_FEC_MODE_MASK) { in fbnic_mac_get_pcs_link_status()
503 switch (fbn->fec & FBNIC_FEC_MODE_MASK) { in fbnic_mac_get_pcs_link_status()
551 struct fbnic_net *fbn = netdev_priv(fbd->netdev); in fbnic_pcs_get_fw_settings() local
552 u8 link_mode = fbn->link_mode; in fbnic_pcs_get_fw_settings()
553 u8 fec = fbn->fec; in fbnic_pcs_get_fw_settings()
556 if (fbn->fec & FBNIC_FEC_AUTO) { in fbnic_pcs_get_fw_settings()
[all …]
H A Dfbnic_irq.c88 struct fbnic_net *fbn; in fbnic_pcs_msix_intr() local
96 fbn = netdev_priv(fbd->netdev); in fbnic_pcs_msix_intr()
98 phylink_pcs_change(&fbn->phylink_pcs, false); in fbnic_pcs_msix_intr()
/linux/drivers/s390/char/
H A Dsclp_sdias.h35 u32 fbn; member
H A Dsclp_sdias.c188 sccb->evbuf.fbn = start_blk; in sclp_sdias_copy()
/linux/drivers/hwmon/
H A Dlm93.c881 static void lm93_read_block(struct i2c_client *client, u8 fbn, u8 *values) in lm93_read_block() argument
887 lm93_block_read_cmds[fbn].cmd, lm93_block_buffer); in lm93_read_block()
889 if (result == lm93_block_read_cmds[fbn].len) { in lm93_read_block()
894 lm93_block_read_cmds[fbn].cmd); in lm93_read_block()
899 if (result == lm93_block_read_cmds[fbn].len) { in lm93_read_block()
901 lm93_block_read_cmds[fbn].len); in lm93_read_block()