/linux-6.3-rc2/drivers/net/ethernet/pensando/ionic/ |
A D | ionic_lif.c | 63 struct ionic_lif *lif = qcq->q.lif; in ionic_dim_work() local 269 struct ionic_lif *lif = q->lif; in ionic_qcq_enable() local 443 ionic_qcq_free(lif, lif->notifyqcq); in ionic_qcqs_free() 1391 (lif->max_vlans && lif->nvlans >= lif->max_vlans)) { in ionic_lif_rx_mode() 3082 if (lif->txqcqs && lif->txqcqs[i]) { in ionic_reconfigure_queues() 3087 if (lif->rxqcqs && lif->rxqcqs[i]) { in ionic_reconfigure_queues() 3124 ionic->lif = lif; in ionic_lif_alloc() 3167 snprintf(lif->name, sizeof(lif->name), "lif%u", lif->index); in ionic_lif_alloc() 3217 dma_free_coherent(dev, lif->info_sz, lif->info, lif->info_pa); in ionic_lif_alloc() 3367 dma_free_coherent(dev, lif->info_sz, lif->info, lif->info_pa); in ionic_lif_free() [all …]
|
A D | ionic_rx_filter.c | 38 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() 382 lif->max_vlans = lif->nvlans; in ionic_lif_filter_add() 417 lif->nvlans++; in ionic_lif_filter_add() 421 lif->nmcast++; in ionic_lif_filter_add() 423 lif->nucast++; in ionic_lif_filter_add() 492 lif->nvlans--; in ionic_lif_filter_del() 498 lif->nmcast--; in ionic_lif_filter_del() [all …]
|
A D | ionic_ethtool.c | 528 netdev_info(lif->netdev, in ionic_validate_cmb_config() 539 netdev_info(lif->netdev, in ionic_validate_cmb_config() 550 netdev_info(lif->netdev, in ionic_validate_cmb_config() 765 lif->nxqs = qparam.nxqs; in ionic_set_channels() 771 lif->tx_coalesce_usecs = lif->rx_coalesce_usecs; in ionic_set_channels() 772 lif->tx_coalesce_hw = lif->rx_coalesce_hw; in ionic_set_channels() 794 info->data = lif->nxqs; in ionic_get_rxnfc() 809 return le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); in ionic_get_rxfh_indir_size() 824 tbl_sz = le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); in ionic_get_rxfh() 846 return ionic_lif_rss_config(lif, lif->rss_types, key, indir); in ionic_set_rxfh() [all …]
|
A D | ionic_phc.c | 79 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 D | ionic_lif.h | 249 struct ionic_lif *lif; member 265 qparam->nxqs = lif->nxqs; in ionic_init_queue_params() 266 qparam->ntxq_descs = lif->ntxq_descs; in ionic_init_queue_params() 267 qparam->nrxq_descs = lif->nrxq_descs; in ionic_init_queue_params() 268 qparam->rxq_features = lif->rxq_features; in ionic_init_queue_params() 277 lif->nxqs = qparam->nxqs; in ionic_set_queue_params() 278 lif->ntxq_descs = qparam->ntxq_descs; in ionic_set_queue_params() 279 lif->nrxq_descs = qparam->nrxq_descs; in ionic_set_queue_params() 280 lif->rxq_features = qparam->rxq_features; in ionic_set_queue_params() 320 int ionic_lif_init(struct ionic_lif *lif); [all …]
|
A D | ionic_stats.c | 159 #define MAX_Q(lif) ((lif)->netdev->real_num_tx_queues) argument 203 if (lif->hwstamp_txq) in ionic_get_lif_stats() 204 ionic_add_lif_txq_stats(lif, lif->hwstamp_txq->q.index, stats); in ionic_get_lif_stats() 206 if (lif->hwstamp_rxq) in ionic_get_lif_stats() 207 ionic_add_lif_rxq_stats(lif, lif->hwstamp_rxq->q.index, stats); in ionic_get_lif_stats() 219 u64 total = 0, tx_queues = MAX_Q(lif), rx_queues = MAX_Q(lif); in ionic_sw_stats_get_count() 221 if (lif->hwstamp_txq) in ionic_sw_stats_get_count() 270 ionic_sw_stats_get_tx_strings(lif, buf, lif->hwstamp_txq->q.index); in ionic_sw_stats_get_strings() 276 ionic_sw_stats_get_rx_strings(lif, buf, lif->hwstamp_rxq->q.index); in ionic_sw_stats_get_strings() 331 ionic_sw_stats_get_txq_values(lif, buf, lif->hwstamp_txq->q.index); in ionic_sw_stats_get_values() [all …]
|
A D | ionic_rx_filter.h | 34 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 D | ionic_debugfs.c | 121 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 D | ionic_main.c | 220 if (!lif->adminqcq) { in ionic_adminq_flush() 225 q = &lif->adminqcq->q; in ionic_adminq_flush() 265 ionic_adminq_flush(lif); in ionic_adminq_check_err() 294 struct ionic_lif *lif = q->lif; in ionic_adminq_poke_doorbell() local 329 if (!lif->adminqcq) { in ionic_adminq_post() 334 q = &lif->adminqcq->q; in ionic_adminq_post() 391 ionic_heartbeat_check(lif->ionic); in ionic_adminq_wait() 408 return ionic_adminq_check_err(lif, ctx, in ionic_adminq_wait() 417 err = ionic_adminq_post(lif, ctx); in ionic_adminq_post_wait() 426 err = ionic_adminq_post(lif, ctx); in ionic_adminq_post_wait_nomsg() [all …]
|
A D | ionic_dev.c | 17 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() 182 struct ionic_lif *lif = ionic->lif; in ionic_heartbeat_check() local 235 idev->last_fw_hb, lif->state[0]); in ionic_heartbeat_check() 599 return (lif->hw_index * lif->dbid_count) + pid; in ionic_db_page_num() 642 cq->lif = lif; in ionic_cq_init() 710 q->lif = lif; in ionic_q_init() [all …]
|
A D | ionic_txrx.c | 31 netdev = q->lif->netdev; in ionic_txq_poke_doorbell() 532 struct ionic_lif *lif; in ionic_dim_update() local 539 lif = qcq->q.lif; in ionic_dim_update() 552 pkts = lif->txqstats[qi].pkts + lif->rxqstats[qi].pkts; in ionic_dim_update() 553 bytes = lif->txqstats[qi].bytes + lif->rxqstats[qi].bytes; in ionic_dim_update() 568 struct ionic_lif *lif; in ionic_tx_napi() local 572 lif = cq->bound_q->lif; in ionic_tx_napi() 602 struct ionic_lif *lif; in ionic_rx_napi() local 606 lif = cq->bound_q->lif; in ionic_rx_napi() 647 lif = rxcq->bound_q->lif; in ionic_txrx_napi() [all …]
|
A D | ionic_debugfs.h | 17 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 D | ionic.h | 50 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 D | ionic_bus_pci.c | 188 if (ionic->lif && in ionic_sriov_configure() 308 err = ionic_lif_init(ionic->lif); in ionic_probe() 329 err = ionic_lif_register(ionic->lif); in ionic_probe() 344 ionic_lif_deinit(ionic->lif); in ionic_probe() 346 ionic_lif_free(ionic->lif); in ionic_probe() 347 ionic->lif = NULL; in ionic_probe() 383 if (ionic->lif) { in ionic_remove() 384 ionic_lif_unregister(ionic->lif); in ionic_remove() 386 ionic_lif_deinit(ionic->lif); in ionic_remove() 387 ionic_lif_free(ionic->lif); in ionic_remove() [all …]
|
A D | ionic_stats.h | 40 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 D | ionic_dev.h | 228 struct ionic_lif *lif; member 279 struct ionic_lif *lif; member 354 int ionic_db_page_num(struct ionic_lif *lif, int pid); 356 int ionic_get_cmb(struct ionic_lif *lif, u32 *pgid, phys_addr_t *pgaddr, int order); 357 void ionic_put_cmb(struct ionic_lif *lif, u32 pgid, int order); 359 int ionic_cq_init(struct ionic_lif *lif, struct ionic_cq *cq, 370 int ionic_q_init(struct ionic_lif *lif, struct ionic_dev *idev,
|
A D | ionic_fw.c | 94 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 D | ionic_devlink.c | 18 return ionic_firmware_update(ionic->lif, params->fw, extack); in ionic_dl_flash_update() 89 SET_NETDEV_DEVLINK_PORT(ionic->lif->netdev, &ionic->dl_port); in ionic_devlink_register()
|
A D | ionic_devlink.h | 9 int ionic_firmware_update(struct ionic_lif *lif, const struct firmware *fw,
|
/linux-6.3-rc2/drivers/media/platform/renesas/vsp1/ |
A D | vsp1_lif.c | 97 format = vsp1_entity_get_pad_format(&lif->entity, lif->entity.config, in lif_configure_stream() 125 vsp1_lif_write(lif, dlb, VI6_LIF_CSBTH, in lif_configure_stream() 129 vsp1_lif_write(lif, dlb, VI6_LIF_CTRL, in lif_configure_stream() 141 vsp1_lif_write(lif, dlb, VI6_LIF_LBA, in lif_configure_stream() 156 struct vsp1_lif *lif; in vsp1_lif_create() local 159 lif = devm_kzalloc(vsp1->dev, sizeof(*lif), GFP_KERNEL); in vsp1_lif_create() 160 if (lif == NULL) in vsp1_lif_create() 163 lif->entity.ops = &lif_entity_ops; in vsp1_lif_create() 164 lif->entity.type = VSP1_ENTITY_LIF; in vsp1_lif_create() 165 lif->entity.index = index; in vsp1_lif_create() [all …]
|
A D | vsp1_drm.c | 260 __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() 965 pipe->lif = &vsp1->lif[i]->entity; in vsp1_drm_init() 968 pipe->output->entity.sink = pipe->lif; in vsp1_drm_init() 972 pipe->lif->pipe = pipe; in vsp1_drm_init() [all …]
|
A D | vsp1_drv.c | 170 if (!vsp1->lif[i]) in vsp1_uapi_create_links() 175 &vsp1->lif[i]->entity.subdev.entity, in vsp1_uapi_create_links() 342 struct vsp1_lif *lif; in vsp1_create_entities() local 344 lif = vsp1_lif_create(vsp1, i); in vsp1_create_entities() 345 if (IS_ERR(lif)) { in vsp1_create_entities() 346 ret = PTR_ERR(lif); in vsp1_create_entities() 350 vsp1->lif[i] = lif; in vsp1_create_entities() 351 list_add_tail(&lif->entity.list_dev, &vsp1->entities); in vsp1_create_entities()
|
A D | vsp1_pipe.c | 289 pipe->lif = NULL; in vsp1_pipeline_reset() 337 if (pipe->lif) { in vsp1_pipeline_stop() 386 if (!pipe->lif) in vsp1_pipeline_ready()
|
A D | vsp1_pipe.h | 133 struct vsp1_entity *lif; member
|
/linux-6.3-rc2/drivers/net/ethernet/cisco/enic/ |
A D | vnic_resource.h | 57 u16 lif; /* loopback lif for mgmt frames */ member
|