Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_phylink.c31 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_phylink_get_pauseparam() local
33 phylink_ethtool_get_pauseparam(fbn->phylink, pause); in fbnic_phylink_get_pauseparam()
39 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_phylink_set_pauseparam() local
41 return phylink_ethtool_set_pauseparam(fbn->phylink, pause); in fbnic_phylink_set_pauseparam()
67 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_phylink_ethtool_ksettings_get() local
70 err = phylink_ethtool_ksettings_get(fbn->phylink, cmd); in fbnic_phylink_ethtool_ksettings_get()
75 cmd->lanes = (fbn->aui & FBNIC_AUI_MODE_R2) ? 2 : 1; in fbnic_phylink_ethtool_ksettings_get()
86 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_phylink_get_fecparam() local
88 if (fbn->fec & FBNIC_FEC_RS) { in fbnic_phylink_get_fecparam()
91 } else if (fbn->fec & FBNIC_FEC_BASER) { in fbnic_phylink_get_fecparam()
[all …]
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 = fbnic_set_netif_queues(fbn); in __fbnic_open()
39 err = fbnic_time_start(fbn); in __fbnic_open()
53 fbnic_rss_reinit(fbd, fbn); in __fbnic_open()
55 phylink_resume(fbn->phylink); in __fbnic_open()
59 fbnic_time_stop(fbn); in __fbnic_open()
61 fbnic_fw_xmit_ownership_msg(fbn->fbd, false); in __fbnic_open()
[all …]
H A Dfbnic_time.c73 static void fbnic_ptp_refresh_time(struct fbnic_dev *fbd, struct fbnic_net *fbn) in fbnic_ptp_refresh_time() argument
79 hi = fbnic_rd32(fbn->fbd, FBNIC_PTP_CTR_VAL_HI); in fbnic_ptp_refresh_time()
88 WRITE_ONCE(fbn->time_high, hi - 16); in fbnic_ptp_refresh_time()
97 struct fbnic_net *fbn; in fbnic_ptp_do_aux_work() local
99 fbn = netdev_priv(fbd->netdev); in fbnic_ptp_do_aux_work()
102 fbnic_ptp_refresh_time(fbd, fbn); in fbnic_ptp_do_aux_work()
131 struct fbnic_net *fbn; in fbnic_ptp_adjtime() local
134 fbn = netdev_priv(fbd->netdev); in fbnic_ptp_adjtime()
137 u64_stats_update_begin(&fbn->time_seq); in fbnic_ptp_adjtime()
138 WRITE_ONCE(fbn->time_offset, READ_ONCE(fbn->time_offset) + delta); in fbnic_ptp_adjtime()
[all …]
H A Dfbnic_txrx.c75 static __maybe_unused u64 fbnic_ts40_to_ns(struct fbnic_net *fbn, u64 ts40) in fbnic_ts40_to_ns() argument
84 s = u64_stats_fetch_begin(&fbn->time_seq); in fbnic_ts40_to_ns()
85 offset = READ_ONCE(fbn->time_offset); in fbnic_ts40_to_ns()
86 } while (u64_stats_fetch_retry(&fbn->time_seq, s)); in fbnic_ts40_to_ns()
88 high = READ_ONCE(fbn->time_high); in fbnic_ts40_to_ns()
179 struct fbnic_net *fbn; in fbnic_tx_tstamp() local
184 fbn = netdev_priv(skb->dev); in fbnic_tx_tstamp()
185 if (fbn->hwtstamp_config.tx_type == HWTSTAMP_TX_OFF) in fbnic_tx_tstamp()
457 struct fbnic_net *fbn = netdev_priv(dev); in fbnic_xmit_frame() local
460 return fbnic_xmit_frame_ring(skb, fbn->tx[q_map]); in fbnic_xmit_frame()
[all …]
H A Dfbnic_ethtool.c132 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_drvinfo() local
133 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo()
141 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_regs_len() local
143 return fbnic_csr_regs_len(fbn->fbd) * sizeof(u32); in fbnic_get_regs_len()
149 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_regs() local
151 fbnic_csr_get_regs(fbn->fbd, data, &regs->version); in fbnic_get_regs()
181 static void fbnic_aggregate_vector_counters(struct fbnic_net *fbn, in fbnic_aggregate_vector_counters() argument
187 fbnic_aggregate_ring_tx_counters(fbn, &nv->qt[i].sub0); in fbnic_aggregate_vector_counters()
188 fbnic_aggregate_ring_xdp_counters(fbn, &nv->qt[i].sub1); in fbnic_aggregate_vector_counters()
189 fbnic_aggregate_ring_tx_counters(fbn, &nv->qt[i].cmpl); in fbnic_aggregate_vector_counters()
[all …]
H A Dfbnic_txrx.h170 void fbnic_aggregate_ring_rx_counters(struct fbnic_net *fbn,
172 void fbnic_aggregate_ring_bdq_counters(struct fbnic_net *fbn,
174 void fbnic_aggregate_ring_tx_counters(struct fbnic_net *fbn,
176 void fbnic_aggregate_ring_xdp_counters(struct fbnic_net *fbn,
179 int fbnic_alloc_napi_vectors(struct fbnic_net *fbn);
180 void fbnic_free_napi_vectors(struct fbnic_net *fbn);
181 int fbnic_alloc_resources(struct fbnic_net *fbn);
182 void fbnic_free_resources(struct fbnic_net *fbn);
183 int fbnic_set_netif_queues(struct fbnic_net *fbn);
184 void fbnic_reset_netif_queues(struct fbnic_net *fbn);
[all …]
H A Dfbnic_pci.c116 static void fbnic_service_task_start(struct fbnic_net *fbn) in fbnic_service_task_start() argument
118 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_start()
123 static void fbnic_service_task_stop(struct fbnic_net *fbn) in fbnic_service_task_stop() argument
125 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_stop()
130 void fbnic_up(struct fbnic_net *fbn) in fbnic_up() argument
132 fbnic_enable(fbn); in fbnic_up()
134 fbnic_fill(fbn); in fbnic_up()
136 fbnic_rss_reinit_hw(fbn->fbd, fbn); in fbnic_up()
138 __fbnic_set_rx_mode(fbn->fbd); in fbnic_up()
141 fbnic_napi_enable(fbn); in fbnic_up()
[all …]
H A Dfbnic_netdev.h80 int __fbnic_open(struct fbnic_net *fbn);
81 void fbnic_up(struct fbnic_net *fbn);
82 void fbnic_down(struct fbnic_net *fbn);
83 void fbnic_down_noidle(struct fbnic_net *fbn);
89 void fbnic_reset_queues(struct fbnic_net *fbn,
96 void fbnic_time_init(struct fbnic_net *fbn);
97 int fbnic_time_start(struct fbnic_net *fbn);
98 void fbnic_time_stop(struct fbnic_net *fbn);
H A Dfbnic_irq.c124 struct fbnic_net *fbn; in fbnic_mac_msix_intr() local
132 fbn = netdev_priv(fbd->netdev); in fbnic_mac_msix_intr()
135 if (!fbd->mac->get_link(fbd, fbn->aui, fbn->fec)) in fbnic_mac_msix_intr()
136 phylink_pcs_change(fbn->pcs, false); in fbnic_mac_msix_intr()
254 struct fbnic_net *fbn = netdev_priv(fbd->netdev); in fbnic_napi_request_irq() local
262 &fbn->napi[i]); in fbnic_napi_request_irq()
274 struct fbnic_net *fbn = netdev_priv(fbd->netdev); in fbnic_napi_free_irq() local
280 fbnic_free_irq(fbd, nv->v_idx, &fbn->napi[i]); in fbnic_napi_free_irq()
H A Dfbnic_rpc.c13 void fbnic_reset_indir_tbl(struct fbnic_net *fbn) in fbnic_reset_indir_tbl() argument
15 unsigned int num_rx = fbn->num_rx_queues; in fbnic_reset_indir_tbl()
18 if (netif_is_rxfh_configured(fbn->netdev)) in fbnic_reset_indir_tbl()
22 fbn->indir_tbl[0][i] = ethtool_rxfh_indir_default(i, num_rx); in fbnic_reset_indir_tbl()
41 void fbnic_rss_init_en_mask(struct fbnic_net *fbn) in fbnic_rss_init_en_mask() argument
43 fbn->rss_flow_hash[FBNIC_TCP4_HASH_OPT] = RX_HASH_OPT_L4; in fbnic_rss_init_en_mask()
44 fbn->rss_flow_hash[FBNIC_TCP6_HASH_OPT] = RX_HASH_OPT_L4; in fbnic_rss_init_en_mask()
46 fbn->rss_flow_hash[FBNIC_UDP4_HASH_OPT] = RX_HASH_OPT_L3; in fbnic_rss_init_en_mask()
47 fbn->rss_flow_hash[FBNIC_UDP6_HASH_OPT] = RX_HASH_OPT_L3; in fbnic_rss_init_en_mask()
48 fbn->rss_flow_hash[FBNIC_IPV4_HASH_OPT] = RX_HASH_OPT_L3; in fbnic_rss_init_en_mask()
[all …]
H A Dfbnic_rpc.h189 void fbnic_reset_indir_tbl(struct fbnic_net *fbn);
191 void fbnic_rss_init_en_mask(struct fbnic_net *fbn);
193 void fbnic_rss_reinit_hw(struct fbnic_dev *fbd, struct fbnic_net *fbn);
194 void fbnic_rss_reinit(struct fbnic_dev *fbd, struct fbnic_net *fbn);
195 u16 fbnic_flow_hash_2_rss_en_mask(struct fbnic_net *fbn, int flow_type);
H A Dfbnic_mdio.c18 struct fbnic_net *fbn; in fbnic_mdio_read_pmd() local
26 fbn = netdev_priv(fbd->netdev); in fbnic_mdio_read_pmd()
27 if (fbn->aui < FBNIC_AUI_UNKNOWN) in fbnic_mdio_read_pmd()
28 aui = fbn->aui; in fbnic_mdio_read_pmd()
H A Dfbnic_mac.c454 struct fbnic_net *fbn = netdev_priv(fbd->netdev); in __fbnic_mac_cmd_config_asic() local
463 if (fbn->fec == FBNIC_FEC_OFF) in __fbnic_mac_cmd_config_asic()
/linux/drivers/s390/char/
H A Dsclp_sdias.h35 u32 fbn; member
H A Dsclp_sdias.c187 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()