Home
last modified time | relevance | path

Searched refs:phys_addr (Results 1 – 25 of 64) sorted by relevance

123

/illumos-gate/usr/src/uts/sun4u/io/px/
H A Dpx_tools_4u.c260 uint64_t phys_addr = prg_p->phys_addr; in pxtool_access() local
266 if (!IS_P2ALIGNED(phys_addr, size)) { in pxtool_access()
276 size, (endian ? "BE" : "LE"), phys_addr); in pxtool_access()
278 if (pxtool_safe_phys_poke(px_p, endian, size, phys_addr, in pxtool_access()
283 size, (endian ? "BE" : "LE"), phys_addr); in pxtool_access()
293 size, (endian ? "BE" : "LE"), phys_addr); in pxtool_access()
295 if (pxtool_safe_phys_peek(px_p, endian, size, phys_addr, in pxtool_access()
300 size, (endian ? "BE" : "LE"), phys_addr); in pxtool_access()
389 base_addr = px_rp[prg.barnum].phys_addr; in pxtool_bus_reg_ops()
390 prg.phys_addr = base_addr + prg.offset; in pxtool_bus_reg_ops()
[all …]
/illumos-gate/usr/src/uts/common/io/ena/
H A Dena_dma.c178 ena_set_dma_addr(const ena_t *ena, const uint64_t phys_addr, in ena_set_dma_addr() argument
181 ENA_DMA_VERIFY_ADDR(ena, phys_addr); in ena_set_dma_addr()
182 hwaddrp->ea_low = (uint32_t)phys_addr; in ena_set_dma_addr()
183 hwaddrp->ea_high = (uint16_t)(phys_addr >> 32); in ena_set_dma_addr()
192 ena_set_dma_addr_values(const ena_t *ena, const uint64_t phys_addr, in ena_set_dma_addr_values() argument
195 ENA_DMA_VERIFY_ADDR(ena, phys_addr); in ena_set_dma_addr_values()
196 *dst_low = (uint32_t)phys_addr; in ena_set_dma_addr_values()
197 *dst_high = (uint16_t)(phys_addr >> 32); in ena_set_dma_addr_values()
H A Dena_admin.c448 ena_create_cq(ena_t *ena, uint16_t num_descs, uint64_t phys_addr, in ena_create_cq() argument
470 ena_set_dma_addr(ena, phys_addr, &cmd_cq->ecq_addr); in ena_create_cq()
529 ena_create_sq(ena_t *ena, uint16_t num_descs, uint64_t phys_addr, in ena_create_sq() argument
568 ena_set_dma_addr(ena, phys_addr, &cmd_sq->ecsq_base); in ena_create_sq()
H A Dena.h137 #define ENA_DMA_VERIFY_ADDR(ena, phys_addr) \ argument
138 VERIFY3U(ENA_DMA_BIT_MASK((ena)->ena_dma_width) & (phys_addr), \
139 ==, (phys_addr))
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_tools.c105 static int pcitool_access(pci_t *pci_p, uint64_t phys_addr, uint64_t max_addr,
556 pcitool_access(pci_t *pci_p, uint64_t phys_addr, uint64_t max_addr, in pcitool_access() argument
565 if (phys_addr > max_addr) { in pcitool_access()
568 phys_addr, max_addr); in pcitool_access()
574 } else if (!IS_P2ALIGNED(phys_addr, size)) { in pcitool_access()
585 size, (endian ? "BE" : "LE"), phys_addr); in pcitool_access()
587 if (pcitool_phys_poke(pci_p, endian, size, phys_addr, in pcitool_access()
592 size, (endian ? "BE" : "LE"), phys_addr); in pcitool_access()
602 size, (endian ? "BE" : "LE"), phys_addr); in pcitool_access()
604 if (pcitool_phys_peek(pci_p, endian, size, phys_addr, in pcitool_access()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_cfgacc_x86.c61 pci_cfgacc_map(paddr_t phys_addr) in pci_cfgacc_map() argument
64 phys_addr = pfn_to_pa(xen_assign_pfn(mmu_btop(phys_addr))) | in pci_cfgacc_map()
65 (phys_addr & MMU_PAGEOFFSET); in pci_cfgacc_map()
68 pfn_t pfn = mmu_btop(phys_addr); in pci_cfgacc_map()
84 paddr_t pa_base = P2ALIGN(phys_addr, MMU_PAGESIZE); in pci_cfgacc_map()
93 return (pci_cfgacc_virt_base + (phys_addr & MMU_PAGEOFFSET)); in pci_cfgacc_map()
/illumos-gate/usr/src/uts/common/io/ntxn/
H A Dunm_nic_ctx.c259 u64 phys_addr; in nx_fw_cmd_create_rx_ctx() local
311 prq_rds[i].host_phys_addr = HOST_TO_LE_64(rcv_desc->phys_addr); in nx_fw_cmd_create_rx_ctx()
330 phys_addr = hostrq_phys_addr; in nx_fw_cmd_create_rx_ctx()
334 (u32)(phys_addr >> 32), in nx_fw_cmd_create_rx_ctx()
335 (u32)(phys_addr & 0xffffffff), in nx_fw_cmd_create_rx_ctx()
405 u64 offset, phys_addr; in nx_fw_cmd_create_tx_ctx() local
439 prq->dummy_dma_addr = HOST_TO_LE_64(adapter->dummy_dma.phys_addr); in nx_fw_cmd_create_tx_ctx()
451 phys_addr = rq_phys_addr; in nx_fw_cmd_create_tx_ctx()
455 (u32)(phys_addr >> 32), in nx_fw_cmd_create_tx_ctx()
456 ((u32)phys_addr & 0xffffffff), in nx_fw_cmd_create_tx_ctx()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci_tools.c91 static uint64_t pcitool_map(uint64_t phys_addr, size_t size, size_t *num_pages);
667 prg->phys_addr = 0; in pcitool_cfg_access()
669 prg->phys_addr = mcfg_mem_base + prg->offset + in pcitool_cfg_access()
681 int port = (int)prg->phys_addr; in pcitool_io_access()
861 pcitool_map(uint64_t phys_addr, size_t size, size_t *num_pages) in pcitool_map() argument
864 uint64_t page_base = phys_addr & ~MMU_PAGEOFFSET; in pcitool_map()
865 uint64_t offset = phys_addr & MMU_PAGEOFFSET; in pcitool_map()
872 (void *)(uintptr_t)phys_addr); in pcitool_map()
999 prg.offset, prg.phys_addr); in pcitool_dev_reg_ops()
1080 prg.phys_addr = prg2.data + prg.offset; in pcitool_dev_reg_ops()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/px/
H A Dpx_tools_4v.c386 rval = hvio_poke(px_p->px_dev_hdl, prg_p->phys_addr, in pxtool_pciiomem_access()
395 "rval:%d, io_stat:%d\n", prg_p->phys_addr, bdf, in pxtool_pciiomem_access()
405 rval = hvio_peek(px_p->px_dev_hdl, prg_p->phys_addr, in pxtool_pciiomem_access()
412 "rval:%d, io_stat:%d\n", prg_p->phys_addr, in pxtool_pciiomem_access()
485 prg.data, prg.phys_addr); in pxtool_bus_reg_ops()
514 prg.phys_addr += prg.offset; in pxtool_bus_reg_ops()
524 rval = pxtool_phys_access(px_p, prg.phys_addr, &prg.data, in pxtool_bus_reg_ops()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l5/
H A Dlm_l5sp.c39 spe.data.phy_address.hi = iscsi->sp_req_data.phys_addr.as_u32.high; in lm_sc_post_update_request()
40 spe.data.phy_address.lo = iscsi->sp_req_data.phys_addr.as_u32.low; in lm_sc_post_update_request()
235 spe.data.phy_address.hi = iscsi->sp_req_data.phys_addr.as_u32.high; in lm_sc_init_sp_req_type()
236 spe.data.phy_address.lo = iscsi->sp_req_data.phys_addr.as_u32.low; in lm_sc_init_sp_req_type()
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_tools.c532 cfg_prg.phys_addr = pxtool_get_phys_addr(px_p, PCI_CONFIG_SPACE, in pxtool_get_bar()
537 off_in_space, cfg_prg.phys_addr, cfg_prg.barnum); in pxtool_get_bar()
583 cfg_prg.phys_addr += sizeof (uint32_t); in pxtool_get_bar()
693 prg.phys_addr = in pxtool_dev_reg_ops()
695 prg.phys_addr += prg.offset; in pxtool_dev_reg_ops()
699 "end:%s\n", off_in_space, prg.phys_addr, in pxtool_dev_reg_ops()
751 prg.phys_addr = pxtool_get_phys_addr(px_p, space, off_in_space); in pxtool_dev_reg_ops()
755 "phys_addr:0x%" PRIx64 "\n", bar, prg.offset, prg.phys_addr); in pxtool_dev_reg_ops()
/illumos-gate/usr/src/uts/common/io/mega_sas/
H A Dmegaraid_sas.c2123 dcmd->sgl.sge32[0].phys_addr = instance->internal_buf_dmac_add; in get_ctrl_info()
2531 dcmd->sgl.sge32[0].phys_addr = dcmd_dma_obj.dma_cookie[0].dmac_address; in get_seq_num()
3483 mfi_sgl->phys_addr = acmd->cmd_dmacookies[i].dmac_laddress; in build_cmd()
3556 ubuf = (void *)(ulong_t)kpthru->sgl.sge32[0].phys_addr; in issue_mfi_pthru()
3562 ubuf = (void *)(ulong_t)kpthru->sgl.sge32[0].phys_addr; in issue_mfi_pthru()
3567 ubuf = (void *)(ulong_t)kpthru->sgl.sge64[0].phys_addr; in issue_mfi_pthru()
3620 pthru->sgl.sge32[0].phys_addr = kphys_addr; in issue_mfi_pthru()
3680 ubuf = (void *)(ulong_t)kdcmd->sgl.sge32[0].phys_addr; in issue_mfi_dcmd()
3688 ubuf = (void *)(ulong_t)kdcmd->sgl.sge32[0].phys_addr; in issue_mfi_dcmd()
3693 ubuf = (void *)(ulong_t)dcmd->sgl.sge64[0].phys_addr; in issue_mfi_dcmd()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/fpc/
H A Dfpc-impl-4v.c60 uint64_t phys_addr; member
152 dev_hdl = (devhandle_t)((rp->phys_addr >> 32) & DEVHDLE_MASK); in fpc_platform_node_init()
/illumos-gate/usr/src/cmd/pcitool/
H A Dpcitool.c331 if (info_p->phys_addr != 0) { in print_probe_info_verbose()
333 info_p->phys_addr); in print_probe_info_verbose()
1120 if (local_prg.phys_addr == 0) { /* No phys addr ret */ in bytedump_get()
1124 print_addr = local_prg.phys_addr - in bytedump_get()
1125 (local_prg.phys_addr % DUMP_BUF_SIZE); in bytedump_get()
1299 if (prg_p->phys_addr == 0) in do_single_access()
1300 prg_p->phys_addr = input_args_p->offset; in do_single_access()
1304 prg_p->phys_addr, input_args_p->size, in do_single_access()
1359 prg.phys_addr = input_args_p->base_address; in do_device_or_nexus()
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_noe.c111 uint32_t phys_addr = 0; in cpqary3_send_NOE_command() local
154 sizeof (NoeBuffer), &phys_addr, phys_handle); in cpqary3_send_NOE_command()
193 cmdlist->SG[0].Addr = phys_addr; in cpqary3_send_NOE_command()
H A Dcpqary3_talk2ctlr.c290 uint32_t phys_addr = 0; in cpqary3_submit() local
328 phys_addr = cmd_phyaddr | 0 | 0x1; in cpqary3_submit()
330 (uint32_t *)cpqary3p->ipq, phys_addr); in cpqary3_submit()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_sp_req_mgr.c309 lm_address_t phys_addr in lm_sp_req_manager_set_sp_data() argument
328 sp_req_mgr->sp_data_phys_addr = phys_addr; in lm_sp_req_manager_set_sp_data()
H A Dlm_sp_req_mgr.h47 IN lm_address_t phys_addr
/illumos-gate/usr/src/uts/common/io/mr_sas/
H A Dmr_sas.c3313 ddi_put32(cmd->frame_dma_obj.acc_handle, &dcmd->sgl.sge32[0].phys_addr, in get_ctrl_info()
4028 ddi_put32(cmd->frame_dma_obj.acc_handle, &dcmd->sgl.sge32[0].phys_addr, in get_seq_num()
5295 ddi_put64(acc_handle, &mfi_sgl_ieee->phys_addr, in build_cmd()
5303 ddi_put64(acc_handle, &mfi_sgl->phys_addr, in build_cmd()
5381 ubuf = (void *)(ulong_t)kpthru->sgl.sge32[0].phys_addr; in issue_mfi_pthru()
5386 ubuf = (void *)(ulong_t)kpthru->sgl.sge32[0].phys_addr; in issue_mfi_pthru()
5390 ubuf = (void *)(ulong_t)kpthru->sgl.sge64[0].phys_addr; in issue_mfi_pthru()
5453 ddi_put32(acc_handle, &pthru->sgl.sge32[0].phys_addr, kphys_addr); in issue_mfi_pthru()
5552 ubuf = (void *)(ulong_t)kdcmd->sgl.sge32[0].phys_addr; in issue_mfi_dcmd()
5557 ubuf = (void *)(ulong_t)kdcmd->sgl.sge32[0].phys_addr; in issue_mfi_dcmd()
[all …]
/illumos-gate/usr/src/boot/i386/common/
H A Dedd.h50 uint64_t phys_addr; member
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dpci.c18 void *phys_to_virt(unsigned long phys_addr) in phys_to_virt() argument
20 return (void *)(phys_addr - virt_offset); in phys_to_virt()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/
H A Dlm_l4sp.c646 lm_address_t phys_addr; in _lm_tcp_init_cstorm_intmem() local
661 phys_addr = lm_bd_chain_phys_addr(&scq->bd_chain, 0); in _lm_tcp_init_cstorm_intmem()
664 …TOE_CQ_CONS_PTR_LO_OFFSET(LM_TOE_FW_RSS_ID(pdev,drv_toe_rss_id), port), phys_addr.as_u32.low, BAR_… in _lm_tcp_init_cstorm_intmem()
667 …TOE_CQ_CONS_PTR_HI_OFFSET(LM_TOE_FW_RSS_ID(pdev,drv_toe_rss_id), port), phys_addr.as_u32.high, BAR… in _lm_tcp_init_cstorm_intmem()
683 phys_addr = lm_bd_chain_phys_addr(&scq->bd_chain, 1); in _lm_tcp_init_cstorm_intmem()
686 …_PAGE_BASE_ADDR_LO_OFFSET(LM_TOE_FW_RSS_ID(pdev,drv_toe_rss_id), port), phys_addr.as_u32.low, BAR_… in _lm_tcp_init_cstorm_intmem()
689 …_PAGE_BASE_ADDR_HI_OFFSET(LM_TOE_FW_RSS_ID(pdev,drv_toe_rss_id), port), phys_addr.as_u32.high, BAR… in _lm_tcp_init_cstorm_intmem()
736 lm_address_t phys_addr; in _lm_tcp_init_ustorm_intmem() local
786 phys_addr = lm_bd_chain_phys_addr(&grq->bd_chain, 0); in _lm_tcp_init_ustorm_intmem()
787 LM_INC64(&phys_addr, sizeof(struct toe_rx_grq_bd) * USTORM_TOE_GRQ_CACHE_NUM_BDS); in _lm_tcp_init_ustorm_intmem()
[all …]
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/oce/
H A Doce_hw.h158 struct phys_addr { struct
980 struct phys_addr pages[8];
1078 struct phys_addr pages[4];
1170 struct phys_addr pages[8];
/illumos-gate/usr/src/uts/common/sys/
H A Dpci_tools.h236 uint64_t phys_addr; /* from kernel, 64-bit alignment */ member
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_fp.h145 u64 phys_addr; member

123