Home
last modified time | relevance | path

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

/linux-6.14.4/drivers/net/ethernet/meta/fbnic/
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()
52 fbnic_rss_reinit(fbd, fbn); in __fbnic_open()
56 fbnic_time_stop(fbn); in __fbnic_open()
58 fbnic_fw_xmit_ownership_msg(fbn->fbd, false); in __fbnic_open()
60 fbnic_free_resources(fbn); in __fbnic_open()
[all …]
Dfbnic_ethtool.c46 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_drvinfo() local
47 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo()
55 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_regs_len() local
57 return fbnic_csr_regs_len(fbn->fbd) * sizeof(u32); in fbnic_get_regs_len()
63 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_get_regs() local
65 fbnic_csr_get_regs(fbn->fbd, data, &regs->version); in fbnic_get_regs()
94 static void fbnic_aggregate_vector_counters(struct fbnic_net *fbn, in fbnic_aggregate_vector_counters() argument
100 fbnic_aggregate_ring_tx_counters(fbn, &nv->qt[i].sub0); in fbnic_aggregate_vector_counters()
101 fbnic_aggregate_ring_tx_counters(fbn, &nv->qt[i].sub1); in fbnic_aggregate_vector_counters()
102 fbnic_aggregate_ring_tx_counters(fbn, &nv->qt[i].cmpl); in fbnic_aggregate_vector_counters()
[all …]
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 …]
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 …]
Dfbnic_pci.c115 static void fbnic_service_task_start(struct fbnic_net *fbn) in fbnic_service_task_start() argument
117 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_start()
120 phylink_resume(fbn->phylink); 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()
127 phylink_suspend(fbn->phylink, fbnic_bmc_present(fbd)); in fbnic_service_task_stop()
131 void fbnic_up(struct fbnic_net *fbn) in fbnic_up() argument
133 fbnic_enable(fbn); in fbnic_up()
135 fbnic_fill(fbn); in fbnic_up()
137 fbnic_rss_reinit_hw(fbn->fbd, fbn); in fbnic_up()
[all …]
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 …]
Dfbnic_txrx.h123 void fbnic_aggregate_ring_rx_counters(struct fbnic_net *fbn,
125 void fbnic_aggregate_ring_tx_counters(struct fbnic_net *fbn,
128 int fbnic_alloc_napi_vectors(struct fbnic_net *fbn);
129 void fbnic_free_napi_vectors(struct fbnic_net *fbn);
130 int fbnic_alloc_resources(struct fbnic_net *fbn);
131 void fbnic_free_resources(struct fbnic_net *fbn);
132 int fbnic_set_netif_queues(struct fbnic_net *fbn);
133 void fbnic_reset_netif_queues(struct fbnic_net *fbn);
135 void fbnic_napi_enable(struct fbnic_net *fbn);
136 void fbnic_napi_disable(struct fbnic_net *fbn);
[all …]
Dfbnic_netdev.h65 int __fbnic_open(struct fbnic_net *fbn);
66 void fbnic_up(struct fbnic_net *fbn);
67 void fbnic_down(struct fbnic_net *fbn);
68 void fbnic_down_noidle(struct fbnic_net *fbn);
74 void fbnic_reset_queues(struct fbnic_net *fbn,
80 void fbnic_time_init(struct fbnic_net *fbn);
81 int fbnic_time_start(struct fbnic_net *fbn);
82 void fbnic_time_stop(struct fbnic_net *fbn);
Dfbnic_rpc.c11 void fbnic_reset_indir_tbl(struct fbnic_net *fbn) in fbnic_reset_indir_tbl() argument
13 unsigned int num_rx = fbn->num_rx_queues; in fbnic_reset_indir_tbl()
16 if (netif_is_rxfh_configured(fbn->netdev)) in fbnic_reset_indir_tbl()
20 fbn->indir_tbl[0][i] = ethtool_rxfh_indir_default(i, num_rx); in fbnic_reset_indir_tbl()
39 void fbnic_rss_init_en_mask(struct fbnic_net *fbn) in fbnic_rss_init_en_mask() argument
41 fbn->rss_flow_hash[FBNIC_TCP4_HASH_OPT] = RX_HASH_OPT_L4; in fbnic_rss_init_en_mask()
42 fbn->rss_flow_hash[FBNIC_TCP6_HASH_OPT] = RX_HASH_OPT_L4; in fbnic_rss_init_en_mask()
44 fbn->rss_flow_hash[FBNIC_UDP4_HASH_OPT] = RX_HASH_OPT_L3; in fbnic_rss_init_en_mask()
45 fbn->rss_flow_hash[FBNIC_UDP6_HASH_OPT] = RX_HASH_OPT_L3; in fbnic_rss_init_en_mask()
46 fbn->rss_flow_hash[FBNIC_IPV4_HASH_OPT] = RX_HASH_OPT_L3; in fbnic_rss_init_en_mask()
[all …]
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()
196 struct fbnic_net *fbn = netdev_priv(fbd->netdev); in fbnic_napi_request_irq() local
204 &fbn->napi[i]); in fbnic_napi_request_irq()
216 struct fbnic_net *fbn = netdev_priv(fbd->netdev); in fbnic_napi_free_irq() local
222 fbnic_free_irq(fbd, nv->v_idx, &fbn->napi[i]); in fbnic_napi_free_irq()
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 …]
Dfbnic_rpc.h165 void fbnic_reset_indir_tbl(struct fbnic_net *fbn);
167 void fbnic_rss_init_en_mask(struct fbnic_net *fbn);
169 void fbnic_rss_reinit_hw(struct fbnic_dev *fbd, struct fbnic_net *fbn);
170 void fbnic_rss_reinit(struct fbnic_dev *fbd, struct fbnic_net *fbn);
/linux-6.14.4/drivers/s390/char/
Dsclp_sdias.h35 u32 fbn; member
Dsclp_sdias.c188 sccb->evbuf.fbn = start_blk; in sclp_sdias_copy()
/linux-6.14.4/drivers/hwmon/
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()