Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/pensando/ionic/
A Dionic_lif.c58 struct ionic_lif *lif = qcq->q.lif; in ionic_dim_work() local
257 struct ionic_lif *lif = q->lif; in ionic_qcq_enable() local
412 ionic_qcq_free(lif, lif->notifyqcq); in ionic_qcqs_free()
1292 (lif->max_vlans && lif->nvlans >= lif->max_vlans)) { in ionic_lif_rx_mode()
2656 ionic_qcq_free(lif, lif->txqcqs[i]); in ionic_reconfigure_queues()
2659 ionic_qcq_free(lif, lif->rxqcqs[i]); in ionic_reconfigure_queues()
2693 ionic->lif = lif; in ionic_lif_alloc()
2736 snprintf(lif->name, sizeof(lif->name), "lif%u", lif->index); in ionic_lif_alloc()
2786 dma_free_coherent(dev, lif->info_sz, lif->info, lif->info_pa); in ionic_lif_alloc()
2930 dma_free_coherent(dev, lif->info_sz, lif->info, lif->info_pa); in ionic_lif_free()
[all …]
A Dionic_rx_filter.c38 head = &lif->rx_filters.by_id[i]; in ionic_rx_filter_replay()
66 ionic_rx_filter_free(lif, f); in ionic_rx_filter_replay()
347 if (lif->max_vlans && lif->nvlans >= lif->max_vlans) in ionic_lif_filter_add()
354 if ((lif->nucast + lif->nmcast) >= nfilters) in ionic_lif_filter_add()
381 lif->max_vlans = lif->nvlans; in ionic_lif_filter_add()
403 lif->nvlans++; in ionic_lif_filter_add()
407 lif->nmcast++; in ionic_lif_filter_add()
409 lif->nucast++; in ionic_lif_filter_add()
478 lif->nvlans--; in ionic_lif_filter_del()
484 lif->nmcast--; in ionic_lif_filter_del()
[all …]
A Dionic_phc.c79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config()
95 memset(&lif->phc->ts_config, 0, sizeof(lif->phc->ts_config)); in ionic_lif_hwstamp_set_ts_config()
191 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set()
215 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_replay()
229 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_recreate_queues()
253 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_get()
472 if (!lif->phc) in ionic_lif_phc_ktime()
497 lif->phc->ptp = ptp_clock_register(&lif->phc->ptp_info, lif->ionic->dev); in ionic_lif_register_phc()
512 if (!lif->phc || !lif->phc->ptp) in ionic_lif_unregister_phc()
540 phc->lif = lif; in ionic_lif_alloc_phc()
[all …]
A Dionic_ethtool.c438 ident = &lif->ionic->ident; in ionic_set_coalesce()
592 ch->rx_count = lif->nxqs; in ionic_get_channels()
593 ch->tx_count = lif->nxqs; in ionic_get_channels()
658 lif->nxqs = qparam.nxqs; in ionic_set_channels()
664 lif->tx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_set_channels()
665 lif->tx_coalesce_hw = lif->rx_coalesce_hw; in ionic_set_channels()
687 info->data = lif->nxqs; in ionic_get_rxnfc()
702 return le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); in ionic_get_rxfh_indir_size()
717 tbl_sz = le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); in ionic_get_rxfh()
739 return ionic_lif_rss_config(lif, lif->rss_types, key, indir); in ionic_set_rxfh()
[all …]
A Dionic_stats.c160 #define MAX_Q(lif) ((lif)->netdev->real_num_tx_queues) argument
204 if (lif->hwstamp_txq) in ionic_get_lif_stats()
205 ionic_add_lif_txq_stats(lif, lif->hwstamp_txq->q.index, stats); in ionic_get_lif_stats()
207 if (lif->hwstamp_rxq) in ionic_get_lif_stats()
208 ionic_add_lif_rxq_stats(lif, lif->hwstamp_rxq->q.index, stats); in ionic_get_lif_stats()
220 u64 total = 0, tx_queues = MAX_Q(lif), rx_queues = MAX_Q(lif); in ionic_sw_stats_get_count()
222 if (lif->hwstamp_txq) in ionic_sw_stats_get_count()
271 ionic_sw_stats_get_tx_strings(lif, buf, lif->hwstamp_txq->q.index); in ionic_sw_stats_get_strings()
277 ionic_sw_stats_get_rx_strings(lif, buf, lif->hwstamp_rxq->q.index); in ionic_sw_stats_get_strings()
332 ionic_sw_stats_get_txq_values(lif, buf, lif->hwstamp_txq->q.index); in ionic_sw_stats_get_values()
[all …]
A Dionic_lif.h239 struct ionic_lif *lif; member
253 qparam->nxqs = lif->nxqs; in ionic_init_queue_params()
254 qparam->ntxq_descs = lif->ntxq_descs; in ionic_init_queue_params()
255 qparam->nrxq_descs = lif->nrxq_descs; in ionic_init_queue_params()
257 qparam->rxq_features = lif->rxq_features; in ionic_init_queue_params()
282 int ionic_lif_init(struct ionic_lif *lif);
283 void ionic_lif_free(struct ionic_lif *lif);
284 void ionic_lif_deinit(struct ionic_lif *lif);
289 int ionic_lif_register(struct ionic_lif *lif);
304 void ionic_lif_free_phc(struct ionic_lif *lif);
[all …]
A Dionic_rx_filter.h34 void ionic_rx_filter_free(struct ionic_lif *lif, struct ionic_rx_filter *f);
35 void ionic_rx_filter_replay(struct ionic_lif *lif);
36 int ionic_rx_filters_init(struct ionic_lif *lif);
37 void ionic_rx_filters_deinit(struct ionic_lif *lif);
38 int ionic_rx_filter_save(struct ionic_lif *lif, u32 flow_id, u16 rxq_index,
43 struct ionic_rx_filter *ionic_rx_filter_rxsteer(struct ionic_lif *lif);
44 void ionic_rx_filter_sync(struct ionic_lif *lif);
45 int ionic_lif_list_addr(struct ionic_lif *lif, const u8 *addr, bool mode);
46 int ionic_rx_filters_need_sync(struct ionic_lif *lif);
47 int ionic_lif_vlan_add(struct ionic_lif *lif, const u16 vid);
[all …]
A Dionic_debugfs.c121 struct device *dev = lif->ionic->dev; in ionic_debugfs_add_qcq()
209 (u64 *)&lif->info->status.eid); in ionic_debugfs_add_qcq()
231 struct ionic_lif *lif = seq->private; in lif_filters_show() local
238 spin_lock_bh(&lif->rx_filters.lock); in lif_filters_show()
240 head = &lif->rx_filters.by_id[i]; in lif_filters_show()
267 spin_unlock_bh(&lif->rx_filters.lock); in lif_filters_show()
277 lif_dentry = debugfs_create_dir(lif->name, lif->ionic->dentry); in ionic_debugfs_add_lif()
280 lif->dentry = lif_dentry; in ionic_debugfs_add_lif()
283 lif->netdev, &netdev_fops); in ionic_debugfs_add_lif()
285 lif, &lif_filters_fops); in ionic_debugfs_add_lif()
[all …]
A Dionic_main.c198 if (!lif->adminqcq) { in ionic_adminq_flush()
203 q = &lif->adminqcq->q; in ionic_adminq_flush()
239 ionic_adminq_flush(lif); in ionic_adminq_check_err()
274 if (!lif->adminqcq) { in ionic_adminq_post()
279 q = &lif->adminqcq->q; in ionic_adminq_post()
286 err = ionic_heartbeat_check(lif->ionic); in ionic_adminq_post()
308 struct net_device *netdev = lif->netdev; in ionic_adminq_wait()
348 return ionic_adminq_check_err(lif, ctx, in ionic_adminq_wait()
357 err = ionic_adminq_post(lif, ctx); in ionic_adminq_post_wait()
366 err = ionic_adminq_post(lif, ctx); in ionic_adminq_post_wait_nomsg()
[all …]
A Dionic_dev.c17 struct ionic_lif *lif = ionic->lif; in ionic_watchdog_cb() local
24 if (!lif) in ionic_watchdog_cb()
29 __func__, hb, netif_running(lif->netdev), in ionic_watchdog_cb()
30 test_bit(IONIC_LIF_F_UP, lif->state)); in ionic_watchdog_cb()
186 struct ionic_lif *lif = ionic->lif; in ionic_heartbeat_check() local
193 if (lif && !test_bit(IONIC_LIF_F_FW_RESET, lif->state)) in ionic_heartbeat_check()
197 if (lif && test_bit(IONIC_LIF_F_FW_RESET, lif->state)) in ionic_heartbeat_check()
525 return (lif->hw_index * lif->dbid_count) + pid; in ionic_db_page_num()
541 cq->lif = lif; in ionic_cq_init()
609 q->lif = lif; in ionic_q_init()
[all …]
A Dionic_txrx.c447 struct ionic_lif *lif; in ionic_dim_update() local
454 lif = qcq->q.lif; in ionic_dim_update()
467 pkts = lif->txqstats[qi].pkts + lif->rxqstats[qi].pkts; in ionic_dim_update()
468 bytes = lif->txqstats[qi].bytes + lif->rxqstats[qi].bytes; in ionic_dim_update()
483 struct ionic_lif *lif; in ionic_tx_napi() local
487 lif = cq->bound_q->lif; in ionic_tx_napi()
514 struct ionic_lif *lif; in ionic_rx_napi() local
519 lif = cq->bound_q->lif; in ionic_rx_napi()
552 struct ionic_lif *lif; in ionic_txrx_napi() local
559 lif = rxcq->bound_q->lif; in ionic_txrx_napi()
[all …]
A 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
A Dionic_bus_pci.c187 if (ionic->lif && in ionic_sriov_configure()
307 err = ionic_lif_init(ionic->lif); in ionic_probe()
337 ionic_lif_unregister(ionic->lif); in ionic_probe()
340 ionic_lif_deinit(ionic->lif); in ionic_probe()
342 ionic_lif_free(ionic->lif); in ionic_probe()
343 ionic->lif = NULL; in ionic_probe()
378 if (ionic->lif) { in ionic_remove()
380 ionic_lif_unregister(ionic->lif); in ionic_remove()
381 ionic_lif_deinit(ionic->lif); in ionic_remove()
382 ionic_lif_free(ionic->lif); in ionic_remove()
[all …]
A Dionic.h50 struct ionic_lif *lif; member
72 int ionic_adminq_post(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
73 int ionic_adminq_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx,
75 int ionic_adminq_post_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
76 int ionic_adminq_post_wait_nomsg(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
77 void ionic_adminq_netdev_err_print(struct ionic_lif *lif, u8 opcode,
A 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);
A Dionic_fw.c94 int ionic_firmware_update(struct ionic_lif *lif, const struct firmware *fw, 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()
A Dionic_dev.h214 struct ionic_lif *lif; member
261 struct ionic_lif *lif; member
331 int ionic_db_page_num(struct ionic_lif *lif, int pid);
333 int ionic_cq_init(struct ionic_lif *lif, struct ionic_cq *cq,
344 int ionic_q_init(struct ionic_lif *lif, struct ionic_dev *idev,
A Dionic_devlink.c18 return ionic_firmware_update(ionic->lif, params->fw, extack); in ionic_dl_flash_update()
93 devlink_port_type_eth_set(&ionic->dl_port, ionic->lif->netdev); in ionic_devlink_register()
A Dionic_devlink.h9 int ionic_firmware_update(struct ionic_lif *lif, const struct firmware *fw,
/linux/drivers/media/platform/vsp1/
A Dvsp1_lif.c97 format = vsp1_entity_get_pad_format(&lif->entity, lif->entity.config, in lif_configure_stream()
123 vsp1_lif_write(lif, dlb, VI6_LIF_CSBTH, in lif_configure_stream()
127 vsp1_lif_write(lif, dlb, VI6_LIF_CTRL, in lif_configure_stream()
140 vsp1_lif_write(lif, dlb, VI6_LIF_LBA, in lif_configure_stream()
155 struct vsp1_lif *lif; in vsp1_lif_create() local
158 lif = devm_kzalloc(vsp1->dev, sizeof(*lif), GFP_KERNEL); in vsp1_lif_create()
159 if (lif == NULL) in vsp1_lif_create()
162 lif->entity.ops = &lif_entity_ops; in vsp1_lif_create()
163 lif->entity.type = VSP1_ENTITY_LIF; in vsp1_lif_create()
164 lif->entity.index = index; in vsp1_lif_create()
[all …]
A 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()
521 format.format.code, pipe->lif->index); in vsp1_du_pipeline_setup_output()
531 pipe->lif->index); in vsp1_du_pipeline_setup_output()
696 __func__, pipe->lif->index, in vsp1_du_setup_lif()
963 pipe->lif = &vsp1->lif[i]->entity; in vsp1_drm_init()
966 pipe->output->entity.sink = pipe->lif; in vsp1_drm_init()
970 pipe->lif->pipe = pipe; in vsp1_drm_init()
[all …]
A 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()
A 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()
A Dvsp1_pipe.h133 struct vsp1_entity *lif; member
/linux/drivers/net/ethernet/cisco/enic/
A Dvnic_resource.h70 u16 lif; /* loopback lif for mgmt frames */ member

Completed in 53 milliseconds

12