Home
last modified time | relevance | path

Searched refs:lif (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_lif.c31 static void ionic_lif_rx_mode(struct ionic_lif *lif, unsigned int rx_mode);
32 static int ionic_lif_addr_add(struct ionic_lif *lif, const u8 *addr);
33 static int ionic_lif_addr_del(struct ionic_lif *lif, const u8 *addr);
34 static void ionic_link_status_check(struct ionic_lif *lif);
35 static void ionic_lif_handle_fw_down(struct ionic_lif *lif);
36 static void ionic_lif_handle_fw_up(struct ionic_lif *lif);
37 static void ionic_lif_set_netdev_info(struct ionic_lif *lif);
39 static void ionic_txrx_deinit(struct ionic_lif *lif);
40 static int ionic_txrx_init(struct ionic_lif *lif);
41 static int ionic_start_queues(struct ionic_lif *lif);
[all …]
Dionic_ethtool.c21 static void ionic_get_stats_strings(struct ionic_lif *lif, u8 *buf) in ionic_get_stats_strings() argument
26 ionic_stats_groups[i].get_strings(lif, &buf); in ionic_get_stats_strings()
32 struct ionic_lif *lif; in ionic_get_stats() local
35 lif = netdev_priv(netdev); in ionic_get_stats()
39 ionic_stats_groups[i].get_values(lif, &buf); in ionic_get_stats()
42 static int ionic_get_stats_count(struct ionic_lif *lif) in ionic_get_stats_count() argument
47 num_stats += ionic_stats_groups[i].get_count(lif); in ionic_get_stats_count()
54 struct ionic_lif *lif = netdev_priv(netdev); in ionic_get_sset_count() local
59 count = ionic_get_stats_count(lif); in ionic_get_sset_count()
71 struct ionic_lif *lif = netdev_priv(netdev); in ionic_get_strings() local
[all …]
Dionic_rx_filter.c12 void ionic_rx_filter_free(struct ionic_lif *lif, struct ionic_rx_filter *f) in ionic_rx_filter_free() argument
14 struct device *dev = lif->ionic->dev; in ionic_rx_filter_free()
21 void ionic_rx_filter_replay(struct ionic_lif *lif) in ionic_rx_filter_replay() argument
37 head = &lif->rx_filters.by_id[i]; in ionic_rx_filter_replay()
41 dev_dbg(&lif->netdev->dev, "replay filter command:\n"); in ionic_rx_filter_replay()
45 err = ionic_adminq_post_wait(lif, &ctx); in ionic_rx_filter_replay()
49 netdev_info(lif->netdev, "Replay failed - %d: vlan %d\n", in ionic_rx_filter_replay()
54 netdev_info(lif->netdev, "Replay failed - %d: mac %pM\n", in ionic_rx_filter_replay()
58 netdev_info(lif->netdev, "Replay failed - %d: vlan %d mac %pM\n", in ionic_rx_filter_replay()
64 spin_lock_bh(&lif->rx_filters.lock); in ionic_rx_filter_replay()
[all …]
Dionic_stats.c177 #define MAX_Q(lif) ((lif)->netdev->real_num_tx_queues) argument
179 static void ionic_get_lif_stats(struct ionic_lif *lif, in ionic_get_lif_stats() argument
189 for (q_num = 0; q_num < MAX_Q(lif); q_num++) { in ionic_get_lif_stats()
190 txstats = &lif->txqstats[q_num]; in ionic_get_lif_stats()
198 rxstats = &lif->rxqstats[q_num]; in ionic_get_lif_stats()
206 ionic_get_stats64(lif->netdev, &ns); in ionic_get_lif_stats()
214 static u64 ionic_sw_stats_get_count(struct ionic_lif *lif) in ionic_sw_stats_get_count() argument
222 total += MAX_Q(lif) * IONIC_NUM_TX_STATS; in ionic_sw_stats_get_count()
225 total += MAX_Q(lif) * IONIC_NUM_RX_STATS; in ionic_sw_stats_get_count()
230 if (test_bit(IONIC_LIF_F_UP, lif->state) && in ionic_sw_stats_get_count()
[all …]
Dionic_debugfs.c50 seq_printf(seq, "max_ucast_filters: %d\n", ident->lif.eth.max_ucast_filters); in identity_show()
51 seq_printf(seq, "max_mcast_filters: %d\n", ident->lif.eth.max_mcast_filters); in identity_show()
70 (u32 *)&ionic->ident.lif.eth.config.queue_count[IONIC_QTYPE_TXQ]); in ionic_debugfs_add_sizes()
72 (u32 *)&ionic->ident.lif.eth.config.queue_count[IONIC_QTYPE_RXQ]); in ionic_debugfs_add_sizes()
113 void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq) in ionic_debugfs_add_qcq() argument
117 struct ionic_dev *idev = &lif->ionic->idev; in ionic_debugfs_add_qcq()
121 struct device *dev = lif->ionic->dev; in ionic_debugfs_add_qcq()
125 qcq_dentry = debugfs_create_dir(q->name, lif->dentry); in ionic_debugfs_add_qcq()
211 (u64 *)&lif->info->status.eid); in ionic_debugfs_add_qcq()
213 (u16 *)&lif->info->status.link_status); in ionic_debugfs_add_qcq()
[all …]
Dionic_lif.h81 #define q_to_tx_stats(q) (&(q)->lif->txqstats[(q)->index])
82 #define q_to_rx_stats(q) (&(q)->lif->rxqstats[(q)->index])
221 static inline void ionic_init_queue_params(struct ionic_lif *lif, in ionic_init_queue_params() argument
224 qparam->nxqs = lif->nxqs; in ionic_init_queue_params()
225 qparam->ntxq_descs = lif->ntxq_descs; in ionic_init_queue_params()
226 qparam->nrxq_descs = lif->nrxq_descs; in ionic_init_queue_params()
227 qparam->intr_split = test_bit(IONIC_LIF_F_SPLIT_INTR, lif->state); in ionic_init_queue_params()
246 typedef void (*ionic_reset_cb)(struct ionic_lif *lif, void *arg);
248 void ionic_link_status_check_request(struct ionic_lif *lif, bool can_sleep);
254 int ionic_lif_init(struct ionic_lif *lif);
[all …]
Dionic_txrx.c40 return netdev_get_tx_queue(q->lif->netdev, q->index); in q_to_ndq()
46 struct ionic_lif *lif = q->lif; in ionic_rx_skb_alloc() local
51 netdev = lif->netdev; in ionic_rx_skb_alloc()
52 stats = &q->lif->rxqstats[q->index]; in ionic_rx_skb_alloc()
74 struct device *dev = q->lif->ionic->dev; in ionic_rx_frags()
120 struct device *dev = q->lif->ionic->dev; in ionic_rx_copybreak()
144 skb->protocol = eth_type_trans(skb, q->lif->netdev); in ionic_rx_copybreak()
161 netdev = q->lif->netdev; in ionic_rx_clean()
171 if (le16_to_cpu(comp->len) <= q->lif->rx_copybreak) in ionic_rx_clean()
221 if (le16_to_cpu(comp->len) <= q->lif->rx_copybreak) in ionic_rx_clean()
[all …]
Dionic_rx_filter.h26 void ionic_rx_filter_free(struct ionic_lif *lif, struct ionic_rx_filter *f);
27 void ionic_rx_filter_replay(struct ionic_lif *lif);
28 int ionic_rx_filters_init(struct ionic_lif *lif);
29 void ionic_rx_filters_deinit(struct ionic_lif *lif);
30 int ionic_rx_filter_save(struct ionic_lif *lif, u32 flow_id, u16 rxq_index,
32 struct ionic_rx_filter *ionic_rx_filter_by_vlan(struct ionic_lif *lif, u16 vid);
33 struct ionic_rx_filter *ionic_rx_filter_by_addr(struct ionic_lif *lif, const u8 *addr);
Dionic_debugfs.h17 void ionic_debugfs_add_lif(struct ionic_lif *lif);
18 void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq);
19 void ionic_debugfs_del_lif(struct ionic_lif *lif);
28 static inline void ionic_debugfs_add_lif(struct ionic_lif *lif) { } in ionic_debugfs_add_lif() argument
29 static inline void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq) { } in ionic_debugfs_add_qcq() argument
30 static inline void ionic_debugfs_del_lif(struct ionic_lif *lif) { } in ionic_debugfs_del_lif() argument
Dionic_main.c188 static void ionic_adminq_flush(struct ionic_lif *lif) in ionic_adminq_flush() argument
190 struct ionic_queue *q = &lif->adminqcq->q; in ionic_adminq_flush()
193 spin_lock(&lif->adminq_lock); in ionic_adminq_flush()
202 spin_unlock(&lif->adminq_lock); in ionic_adminq_flush()
205 static int ionic_adminq_check_err(struct ionic_lif *lif, in ionic_adminq_check_err() argument
209 struct net_device *netdev = lif->netdev; in ionic_adminq_check_err()
225 ionic_adminq_flush(lif); in ionic_adminq_check_err()
243 dev = &q->lif->netdev->dev; in ionic_adminq_cb()
254 static int ionic_adminq_post(struct ionic_lif *lif, struct ionic_admin_ctx *ctx) in ionic_adminq_post() argument
260 if (!lif->adminqcq) in ionic_adminq_post()
[all …]
Dionic_dev.c22 if (!ionic->lif) in ionic_watchdog_cb()
28 ionic_link_status_check_request(ionic->lif, false); in ionic_watchdog_cb()
127 struct ionic_lif *lif = ionic->lif; in ionic_heartbeat_check() local
132 if (lif && !test_bit(IONIC_LIF_F_FW_RESET, lif->state)) in ionic_heartbeat_check()
136 if (lif && test_bit(IONIC_LIF_F_FW_RESET, lif->state)) in ionic_heartbeat_check()
151 ionic_lif_deferred_enqueue(&lif->deferred, work); in ionic_heartbeat_check()
445 .q_init.ver = qcq->q.lif->qtype_info[q->type].version, in ionic_dev_cmd_adminq_init()
459 int ionic_db_page_num(struct ionic_lif *lif, int pid) in ionic_db_page_num() argument
461 return (lif->hw_index * lif->dbid_count) + pid; in ionic_db_page_num()
464 int ionic_cq_init(struct ionic_lif *lif, struct ionic_cq *cq, in ionic_cq_init() argument
[all …]
Dionic_bus_pci.c303 err = ionic_lif_init(ionic->lif); in ionic_probe()
318 err = ionic_lif_register(ionic->lif); in ionic_probe()
333 ionic_lif_unregister(ionic->lif); in ionic_probe()
336 ionic_lif_deinit(ionic->lif); in ionic_probe()
338 ionic_lif_free(ionic->lif); in ionic_probe()
339 ionic->lif = NULL; in ionic_probe()
377 if (ionic->lif) { in ionic_remove()
379 ionic_lif_unregister(ionic->lif); in ionic_remove()
380 ionic_lif_deinit(ionic->lif); in ionic_remove()
381 ionic_lif_free(ionic->lif); in ionic_remove()
[all …]
Dionic_stats.h40 void (*get_strings)(struct ionic_lif *lif, u8 **buf);
41 void (*get_values)(struct ionic_lif *lif, u64 **buf);
42 u64 (*get_count)(struct ionic_lif *lif);
Dionic_fw.c94 int ionic_firmware_update(struct ionic_lif *lif, const char *fw_name, in ionic_firmware_update() argument
97 struct ionic_dev *idev = &lif->ionic->idev; in ionic_firmware_update()
98 struct net_device *netdev = lif->netdev; in ionic_firmware_update()
99 struct ionic *ionic = lif->ionic; in ionic_firmware_update()
Dionic_dev.h198 struct ionic_lif *lif; member
246 struct ionic_lif *lif; member
317 int ionic_db_page_num(struct ionic_lif *lif, int pid);
319 int ionic_cq_init(struct ionic_lif *lif, struct ionic_cq *cq,
330 int ionic_q_init(struct ionic_lif *lif, struct ionic_dev *idev,
Dionic.h45 struct ionic_lif *lif; member
67 int ionic_adminq_post_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
Dionic_devlink.c18 return ionic_firmware_update(ionic->lif, params->file_name, extack); in ionic_dl_flash_update()
100 devlink_port_type_eth_set(&ionic->dl_port, ionic->lif->netdev); in ionic_devlink_register()
Dionic_devlink.h9 int ionic_firmware_update(struct ionic_lif *lif, const char *fw_name,
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
Dvsp1_lif.c26 static inline void vsp1_lif_write(struct vsp1_lif *lif, in vsp1_lif_write() argument
29 vsp1_dl_body_write(dlb, reg + lif->entity.index * VI6_LIF_OFFSET, in vsp1_lif_write()
91 struct vsp1_lif *lif = to_lif(&entity->subdev); in lif_configure_stream() local
96 format = vsp1_entity_get_pad_format(&lif->entity, lif->entity.config, in lif_configure_stream()
122 vsp1_lif_write(lif, dlb, VI6_LIF_CSBTH, in lif_configure_stream()
126 vsp1_lif_write(lif, dlb, VI6_LIF_CTRL, in lif_configure_stream()
139 vsp1_lif_write(lif, dlb, VI6_LIF_LBA, in lif_configure_stream()
154 struct vsp1_lif *lif; in vsp1_lif_create() local
157 lif = devm_kzalloc(vsp1->dev, sizeof(*lif), GFP_KERNEL); in vsp1_lif_create()
158 if (lif == NULL) in vsp1_lif_create()
[all …]
Dvsp1_drm.c260 __func__, pipe->lif->index, in vsp1_du_pipeline_setup_brx()
293 __func__, pipe->lif->index, BRX_NAME(brx)); in vsp1_du_pipeline_setup_brx()
307 owner_pipe->pipe.lif->index); in vsp1_du_pipeline_setup_brx()
322 __func__, pipe->lif->index, BRX_NAME(brx)); in vsp1_du_pipeline_setup_brx()
510 ret = v4l2_subdev_call(&pipe->lif->subdev, pad, set_fmt, NULL, in vsp1_du_pipeline_setup_output()
517 format.format.code, pipe->lif->index); in vsp1_du_pipeline_setup_output()
527 pipe->lif->index); in vsp1_du_pipeline_setup_output()
692 __func__, pipe->lif->index, in vsp1_du_setup_lif()
959 pipe->lif = &vsp1->lif[i]->entity; in vsp1_drm_init()
962 pipe->output->entity.sink = pipe->lif; in vsp1_drm_init()
[all …]
Dvsp1_drv.c169 if (!vsp1->lif[i]) in vsp1_uapi_create_links()
174 &vsp1->lif[i]->entity.subdev.entity, in vsp1_uapi_create_links()
343 struct vsp1_lif *lif; in vsp1_create_entities() local
345 lif = vsp1_lif_create(vsp1, i); in vsp1_create_entities()
346 if (IS_ERR(lif)) { in vsp1_create_entities()
347 ret = PTR_ERR(lif); in vsp1_create_entities()
351 vsp1->lif[i] = lif; in vsp1_create_entities()
352 list_add_tail(&lif->entity.list_dev, &vsp1->entities); in vsp1_create_entities()
Dvsp1_pipe.c271 pipe->lif = NULL; in vsp1_pipeline_reset()
319 if (pipe->lif) { in vsp1_pipeline_stop()
368 if (!pipe->lif) in vsp1_pipeline_ready()
Dvsp1_pipe.h133 struct vsp1_entity *lif; member
Dvsp1.h90 struct vsp1_lif *lif[VSP1_MAX_LIF]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/
Dvnic_resource.h70 u16 lif; /* loopback lif for mgmt frames */ member

12