Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_lif.c39 static void ionic_link_status_check(struct ionic_lif *lif);
40 static void ionic_lif_handle_fw_down(struct ionic_lif *lif);
41 static void ionic_lif_handle_fw_up(struct ionic_lif *lif);
42 static void ionic_lif_set_netdev_info(struct ionic_lif *lif);
44 static void ionic_txrx_deinit(struct ionic_lif *lif);
45 static int ionic_txrx_init(struct ionic_lif *lif);
46 static int ionic_start_queues(struct ionic_lif *lif);
47 static void ionic_stop_queues(struct ionic_lif *lif);
48 static void ionic_lif_queue_identify(struct ionic_lif *lif);
50 static void ionic_xdp_rxqs_prog_update(struct ionic_lif *lif);
[all …]
H A Dionic_rx_filter.c13 void ionic_rx_filter_free(struct ionic_lif *lif, struct ionic_rx_filter *f) in ionic_rx_filter_free() argument
15 struct device *dev = lif->ionic->dev; in ionic_rx_filter_free()
22 void ionic_rx_filter_replay(struct ionic_lif *lif) in ionic_rx_filter_replay() argument
38 head = &lif->rx_filters.by_id[i]; in ionic_rx_filter_replay()
42 dev_dbg(&lif->netdev->dev, "replay filter command:\n"); in ionic_rx_filter_replay()
46 err = ionic_adminq_post_wait(lif, &ctx); in ionic_rx_filter_replay()
50 netdev_info(lif->netdev, "Replay failed - %d: vlan %d\n", in ionic_rx_filter_replay()
55 netdev_info(lif->netdev, "Replay failed - %d: mac %pM\n", in ionic_rx_filter_replay()
59 netdev_info(lif->netdev, "Replay failed - %d: vlan %d mac %pM\n", in ionic_rx_filter_replay()
65 spin_lock_bh(&lif->rx_filters.lock); in ionic_rx_filter_replay()
[all …]
H A Dionic_phc.c67 static int ionic_lif_hwstamp_set_ts_config(struct ionic_lif *lif, in ionic_lif_hwstamp_set_ts_config() argument
70 struct ionic *ionic = lif->ionic; in ionic_lif_hwstamp_set_ts_config()
79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config()
82 mutex_lock(&lif->phc->config_lock); in ionic_lif_hwstamp_set_ts_config()
94 memcpy(config, &lif->phc->ts_config, sizeof(*config)); 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()
96 lif->phc->ts_config_tx_mode = 0; in ionic_lif_hwstamp_set_ts_config()
97 lif->phc->ts_config_rx_filt = 0; in ionic_lif_hwstamp_set_ts_config()
107 if ((ionic->ident.lif.eth.hwstamp_tx_modes & mask) != mask) { in ionic_lif_hwstamp_set_ts_config()
116 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) != mask) { in ionic_lif_hwstamp_set_ts_config()
[all …]
H A Dionic_ethtool.c16 static void ionic_get_stats_strings(struct ionic_lif *lif, u8 *buf) in ionic_get_stats_strings() argument
21 ionic_stats_groups[i].get_strings(lif, &buf); in ionic_get_stats_strings()
27 struct ionic_lif *lif = netdev_priv(netdev); in ionic_get_stats() local
30 if (test_bit(IONIC_LIF_F_FW_RESET, lif->state)) in ionic_get_stats()
35 ionic_stats_groups[i].get_values(lif, &buf); in ionic_get_stats()
38 static int ionic_get_stats_count(struct ionic_lif *lif) in ionic_get_stats_count() argument
43 num_stats += ionic_stats_groups[i].get_count(lif); in ionic_get_stats_count()
50 struct ionic_lif *lif = netdev_priv(netdev); in ionic_get_sset_count() local
55 count = ionic_get_stats_count(lif); in ionic_get_sset_count()
64 struct ionic_lif *lif = netdev_priv(netdev); in ionic_get_strings() local
[all …]
H A Dionic_lif.h96 #define q_to_tx_stats(q) (&(q)->lif->txqstats[(q)->index])
97 #define q_to_rx_stats(q) (&(q)->lif->rxqstats[(q)->index])
263 struct ionic_lif *lif; member
277 static inline void ionic_init_queue_params(struct ionic_lif *lif, in ionic_init_queue_params() argument
280 qparam->nxqs = lif->nxqs; in ionic_init_queue_params()
281 qparam->ntxq_descs = lif->ntxq_descs; in ionic_init_queue_params()
282 qparam->nrxq_descs = lif->nrxq_descs; in ionic_init_queue_params()
283 qparam->rxq_features = lif->rxq_features; in ionic_init_queue_params()
284 qparam->xdp_prog = lif->xdp_prog; in ionic_init_queue_params()
285 qparam->intr_split = test_bit(IONIC_LIF_F_SPLIT_INTR, lif->state); in ionic_init_queue_params()
[all …]
H A Dionic_stats.c171 #define MAX_Q(lif) ((lif)->netdev->real_num_tx_queues) argument
173 static void ionic_add_lif_txq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_txq_stats() argument
176 struct ionic_tx_stats *txstats = &lif->txqstats[q_num]; in ionic_add_lif_txq_stats()
189 static void ionic_add_lif_rxq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_rxq_stats() argument
192 struct ionic_rx_stats *rxstats = &lif->rxqstats[q_num]; in ionic_add_lif_rxq_stats()
208 static void ionic_get_lif_stats(struct ionic_lif *lif, in ionic_get_lif_stats() argument
216 for (q_num = 0; q_num < MAX_Q(lif); q_num++) { in ionic_get_lif_stats()
217 ionic_add_lif_txq_stats(lif, q_num, stats); in ionic_get_lif_stats()
218 ionic_add_lif_rxq_stats(lif, q_num, stats); in ionic_get_lif_stats()
221 if (lif->hwstamp_txq) in ionic_get_lif_stats()
[all …]
H A Dionic_main.c191 static void ionic_adminq_flush(struct ionic_lif *lif) in ionic_adminq_flush() argument
198 spin_lock_irqsave(&lif->adminq_lock, irqflags); in ionic_adminq_flush()
199 if (!lif->adminqcq) { in ionic_adminq_flush()
200 spin_unlock_irqrestore(&lif->adminq_lock, irqflags); in ionic_adminq_flush()
204 q = &lif->adminqcq->q; in ionic_adminq_flush()
213 spin_unlock_irqrestore(&lif->adminq_lock, irqflags); in ionic_adminq_flush()
216 void ionic_adminq_netdev_err_print(struct ionic_lif *lif, u8 opcode, in ionic_adminq_netdev_err_print() argument
224 netdev_err(lif->netdev, "%s (%d) failed: %s (%d)\n", in ionic_adminq_netdev_err_print()
228 static int ionic_adminq_check_err(struct ionic_lif *lif, in ionic_adminq_check_err() argument
240 ionic_adminq_netdev_err_print(lif, ctx->cmd.cmd.opcode, in ionic_adminq_check_err()
[all …]
H 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()
33 !test_bit(IONIC_LIF_F_FW_RESET, lif->state)) in ionic_watchdog_cb()
34 ionic_link_status_check_request(lif, CAN_NOT_SLEEP); in ionic_watchdog_cb()
36 if (test_bit(IONIC_LIF_F_FILTER_SYNC_NEEDED, lif->state) && in ionic_watchdog_cb()
37 !test_bit(IONIC_LIF_F_FW_RESET, lif->state)) { in ionic_watchdog_cb()
40 netdev_err(lif->netdev, "rxmode change dropped\n"); in ionic_watchdog_cb()
45 netdev_dbg(lif->netdev, "deferred: rx_mode\n"); in ionic_watchdog_cb()
[all …]
H 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,
41 struct ionic_rx_filter *ionic_rx_filter_by_vlan(struct ionic_lif *lif, u16 vid);
42 struct ionic_rx_filter *ionic_rx_filter_by_addr(struct ionic_lif *lif, const u8 *addr);
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);
[all …]
H A 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
116 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()
209 (u64 *)&lif->info->status.eid); in ionic_debugfs_add_qcq()
211 (u16 *)&lif->info->status.link_status); in ionic_debugfs_add_qcq()
[all …]
H A Dionic_bus_pci.c189 if (ionic->lif && in ionic_sriov_configure()
190 test_bit(IONIC_LIF_F_FW_RESET, ionic->lif->state)) in ionic_sriov_configure()
351 err = ionic_lif_init(ionic->lif); in ionic_probe()
372 err = ionic_lif_register(ionic->lif); in ionic_probe()
388 ionic_lif_deinit(ionic->lif); in ionic_probe()
390 ionic_lif_free(ionic->lif); in ionic_probe()
391 ionic->lif = NULL; in ionic_probe()
411 if (ionic->lif) { in ionic_remove()
413 if (test_and_clear_bit(IONIC_LIF_F_FW_RESET, ionic->lif->state)) in ionic_remove()
414 set_bit(IONIC_LIF_F_FW_STOPPING, ionic->lif->state); in ionic_remove()
[all …]
H 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
H A Dionic.h53 struct ionic_lif *lif; member
77 int ionic_adminq_post(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
78 int ionic_adminq_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx,
80 int ionic_adminq_post_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
81 int ionic_adminq_post_wait_nomsg(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
82 void ionic_adminq_netdev_err_print(struct ionic_lif *lif, u8 opcode,
H A Dionic_txrx.c46 netdev = q->lif->netdev; in ionic_txq_poke_doorbell()
61 ionic_dbell_ring(q->lif->kern_dbpage, q->hw_type, in ionic_txq_poke_doorbell()
86 ionic_dbell_ring(q->lif->kern_dbpage, q->hw_type, in ionic_rxq_poke_doorbell()
396 struct ionic_lif *lif = netdev_priv(netdev); in ionic_xdp_xmit() local
404 if (unlikely(!test_bit(IONIC_LIF_F_UP, lif->state))) in ionic_xdp_xmit()
416 qi = cpu ? (cpu - 1) % lif->nxqs : cpu; in ionic_xdp_xmit()
418 txq = &lif->txqcqs[qi]->q; in ionic_xdp_xmit()
443 ionic_dbell_ring(lif->kern_dbpage, txq->hw_type, in ionic_xdp_xmit()
608 struct net_device *netdev = q->lif->netdev; in ionic_rx_clean()
642 use_copybreak = len <= q->lif->rx_copybreak; in ionic_rx_clean()
[all …]
H 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);
H A Dionic_dev.h223 struct ionic_lif *lif; member
290 struct ionic_lif *lif; member
364 int ionic_db_page_num(struct ionic_lif *lif, int pid);
366 int ionic_get_cmb(struct ionic_lif *lif, u32 *pgid, phys_addr_t *pgaddr, int order);
367 void ionic_put_cmb(struct ionic_lif *lif, u32 pgid, int order);
369 int ionic_cq_init(struct ionic_lif *lif, struct ionic_cq *cq,
383 int ionic_q_init(struct ionic_lif *lif, struct ionic_dev *idev,
H 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()
H A Dionic_devlink.c18 return ionic_firmware_update(ionic->lif, params->fw, extack); in ionic_dl_flash_update()
91 SET_NETDEV_DEVLINK_PORT(ionic->lif->netdev, &ionic->dl_port); in ionic_devlink_register()
H A Dionic_devlink.h9 int ionic_firmware_update(struct ionic_lif *lif, const struct firmware *fw,
/linux/drivers/media/platform/renesas/vsp1/
H A 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()
92 struct vsp1_lif *lif = to_lif(&entity->subdev); in lif_configure_stream() local
124 vsp1_lif_write(lif, dlb, VI6_LIF_CSBTH, in lif_configure_stream()
128 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()
[all …]
H 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()
325 __func__, pipe->lif->index, BRX_NAME(brx)); in vsp1_du_pipeline_setup_brx()
519 ret = v4l2_subdev_call(&pipe->lif->subdev, pad, set_fmt, NULL, in vsp1_du_pipeline_setup_output()
526 format.format.code, pipe->lif->index); in vsp1_du_pipeline_setup_output()
536 pipe->lif->index); in vsp1_du_pipeline_setup_output()
706 __func__, pipe->lif->index, in vsp1_du_setup_lif()
986 pipe->lif = &vsp1->lif[i]->entity; in vsp1_drm_init()
989 pipe->output->entity.sink = pipe->lif; in vsp1_drm_init()
[all …]
H A Dvsp1_pipe.c289 pipe->lif = NULL; in vsp1_pipeline_reset()
359 if (pipe->lif) { in vsp1_pipeline_stop()
408 if (!pipe->lif) in vsp1_pipeline_ready()
H A Dvsp1.h94 struct vsp1_lif *lif[VSP1_MAX_LIF]; member
H A Dvsp1_pipe.h122 struct vsp1_entity *lif; member
/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_resource.h57 u16 lif; /* loopback lif for mgmt frames */ member

12