Home
last modified time | relevance | path

Searched refs:hwbase (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmbox.c25 void *hw_mbase = mdev->hwbase; in __otx2_mbox_reset()
54 mbox->hwbase = NULL; in otx2_mbox_destroy()
224 int otx2_mbox_init(struct otx2_mbox *mbox, void *hwbase, struct pci_dev *pdev, in otx2_mbox_init() argument
234 mbox->hwbase = hwbase; in otx2_mbox_init()
238 mdev->mbase = mbox->hwbase + (devid * MBOX_SIZE); in otx2_mbox_init()
239 mdev->hwbase = mdev->mbase; in otx2_mbox_init()
252 int otx2_mbox_regions_init(struct otx2_mbox *mbox, void **hwbase, in otx2_mbox_regions_init() argument
263 mbox->hwbase = hwbase[0]; in otx2_mbox_regions_init()
270 mdev->mbase = hwbase[devid]; in otx2_mbox_regions_init()
271 mdev->hwbase = hwbase[devid]; in otx2_mbox_regions_init()
[all …]
H A Dmbox.h70 void *hwbase; member
80 void *hwbase; /* Mbox region advertised by HW */ member
116 int otx2_mbox_init(struct otx2_mbox *mbox, void __force *hwbase,
120 int otx2_mbox_regions_init(struct otx2_mbox *mbox, void __force **hwbase,
H A Drvu.c2725 if (mdev->hwbase) in rvu_mbox_destroy()
2726 iounmap((void __iomem *)mdev->hwbase); in rvu_mbox_destroy()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_vf.c316 if (mbox->mbox.hwbase && !test_bit(CN10K_MBOX, &vf->hw.cap_flag)) in otx2vf_vfaf_mbox_destroy()
317 iounmap((void __iomem *)mbox->mbox.hwbase); in otx2vf_vfaf_mbox_destroy()
326 void __iomem *hwbase; in otx2vf_vfaf_mbox_init()
339 hwbase = vf->reg_base + RVU_VF_MBOX_REGION + ((u64)BLKADDR_MBOX << in otx2vf_vfaf_mbox_init()
345 hwbase = vf->reg_base + RVU_VF_MBOX_REGION; in otx2vf_vfaf_mbox_init()
351 hwbase = ioremap_wc(pci_resource_start(vf->pdev, in otx2vf_vfaf_mbox_init()
355 if (!hwbase) { in otx2vf_vfaf_mbox_init()
362 err = otx2_mbox_init(&mbox->mbox, hwbase, vf->pdev, vf->reg_base, in otx2vf_vfaf_mbox_init()
367 err = otx2_mbox_init(&mbox->mbox_up, hwbase, vf->pdev, vf->reg_base, in otx2vf_vfaf_mbox_init()
382 if (hwbase in otx2vf_vfaf_mbox_init()
327 void __iomem *hwbase; otx2vf_vfaf_mbox_init() local
[all...]
H A Dotx2_pf.c373 mbox_hdr = src_mbox->hwbase + in otx2_forward_vf_mbox_msgs()
416 mbox_hdr = src_mbox->hwbase + src_mbox->rx_start; in otx2_forward_vf_mbox_msgs()
597 void __iomem *hwbase; in otx2_pfvf_mbox_init()
620 hwbase = (void __iomem *)cn20k_pfvf_mbox_alloc(pf, numvfs); in otx2_pfvf_mbox_init()
631 hwbase = ioremap_wc(base, MBOX_SIZE * pf->total_vfs); in otx2_pfvf_mbox_init()
632 if (!hwbase) { in otx2_pfvf_mbox_init()
639 err = otx2_mbox_init(&mbox->mbox, hwbase, pf->pdev, pf->reg_base, in otx2_pfvf_mbox_init()
644 err = otx2_mbox_init(&mbox->mbox_up, hwbase, pf->pdev, pf->reg_base, in otx2_pfvf_mbox_init()
659 if (hwbase && !(is_cn20k(pf->pdev))) in otx2_pfvf_mbox_init()
660 iounmap(hwbase); in otx2_pfvf_mbox_init()
598 void __iomem *hwbase; otx2_pfvf_mbox_init() local
1199 void __iomem *hwbase; otx2_pfaf_mbox_init() local
[all...]
H A Dotx2_common.h754 void *hw_mbase = mbox->hwbase + (devid * MBOX_SIZE); in otx2_sync_mbox_bbuf()
/linux/drivers/gpio/
H A Dgpio-mt7621.c103 int hwbase = bank->chip.gc.offset; in mt7621_gpio_irq_bank_handler() local
114 generic_handle_domain_irq(domain, hwbase + offset); in mt7621_gpio_irq_bank_handler()