Home
last modified time | relevance | path

Searched refs:mem_addr (Results 1 – 25 of 57) sorted by relevance

123

/linux/drivers/tty/serial/cpm_uart/
A Dcpm_uart_cpm1.c66 u8 *mem_addr; in cpm_uart_allocbuf() local
85 mem_addr = (u8 *) cpm_dpram_addr(cpm_dpalloc(memsz, 8)); in cpm_uart_allocbuf()
86 dma_addr = (u32)cpm_dpram_phys(mem_addr); in cpm_uart_allocbuf()
88 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf()
91 if (mem_addr == NULL) { in cpm_uart_allocbuf()
99 pinfo->mem_addr = mem_addr; /* virtual address*/ in cpm_uart_allocbuf()
103 pinfo->rx_buf = mem_addr; in cpm_uart_allocbuf()
118 pinfo->tx_fifosize), pinfo->mem_addr, in cpm_uart_freebuf()
A Dcpm_uart_cpm2.c101 u8 *mem_addr; in cpm_uart_allocbuf() local
119 mem_addr = kzalloc(memsz, GFP_NOWAIT); in cpm_uart_allocbuf()
120 dma_addr = virt_to_bus(mem_addr); in cpm_uart_allocbuf()
123 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf()
126 if (mem_addr == NULL) { in cpm_uart_allocbuf()
134 pinfo->mem_addr = mem_addr; in cpm_uart_allocbuf()
138 pinfo->rx_buf = mem_addr; in cpm_uart_allocbuf()
153 pinfo->tx_fifosize), (void __force *)pinfo->mem_addr, in cpm_uart_freebuf()
A Dcpm_uart.h78 void *mem_addr; member
115 u32 mem = (u32)pinfo->mem_addr; in cpu2cpm_addr()
135 return pinfo->mem_addr + offset; in cpm2cpu_addr()
A Dcpm_uart_core.c731 u8 *mem_addr; in cpm_uart_initbd() local
740 mem_addr = pinfo->mem_addr; in cpm_uart_initbd()
743 out_be32(&bdp->cbd_bufaddr, cpu2cpm_addr(mem_addr, pinfo)); in cpm_uart_initbd()
745 mem_addr += pinfo->rx_fifosize; in cpm_uart_initbd()
748 out_be32(&bdp->cbd_bufaddr, cpu2cpm_addr(mem_addr, pinfo)); in cpm_uart_initbd()
755 mem_addr = pinfo->mem_addr + L1_CACHE_ALIGN(pinfo->rx_nrfifos * pinfo->rx_fifosize); in cpm_uart_initbd()
758 out_be32(&bdp->cbd_bufaddr, cpu2cpm_addr(mem_addr, pinfo)); in cpm_uart_initbd()
760 mem_addr += pinfo->tx_fifosize; in cpm_uart_initbd()
763 out_be32(&bdp->cbd_bufaddr, cpu2cpm_addr(mem_addr, pinfo)); in cpm_uart_initbd()
/linux/drivers/misc/sgi-gru/
A Dgru_instructions.h383 static inline void gru_vload(void *cb, unsigned long mem_addr, in gru_vload() argument
389 ins->baddr0 = (long)mem_addr; in gru_vload()
396 static inline void gru_vstore(void *cb, unsigned long mem_addr, in gru_vstore() argument
402 ins->baddr0 = (long)mem_addr; in gru_vstore()
415 ins->baddr0 = (long)mem_addr; in gru_ivload()
428 ins->baddr0 = (long)mem_addr; in gru_ivstore()
435 static inline void gru_vset(void *cb, unsigned long mem_addr, in gru_vset() argument
441 ins->baddr0 = (long)mem_addr; in gru_vset()
449 static inline void gru_ivset(void *cb, unsigned long mem_addr, in gru_ivset() argument
455 ins->baddr0 = (long)mem_addr; in gru_ivset()
[all …]
/linux/drivers/mtd/nand/onenand/
A Donenand_samsung.c139 #define CMD_MAP_01(dev, mem_addr) (dev->cmd_map(MAP_01, (mem_addr))) argument
140 #define CMD_MAP_10(dev, mem_addr) (dev->cmd_map(MAP_10, (mem_addr))) argument
382 unsigned int mem_addr, cmd_map_01, cmd_map_10; in s3c_onenand_command() local
390 mem_addr = onenand->mem_addr(fba, fpa, fsa); in s3c_onenand_command()
391 cmd_map_01 = CMD_MAP_01(onenand, mem_addr); in s3c_onenand_command()
392 cmd_map_10 = CMD_MAP_10(onenand, mem_addr); in s3c_onenand_command()
736 unsigned int mem_addr = onenand->mem_addr(block, 0, 0); in s3c_onenand_check_lock_status() local
737 s3c_read_cmd(CMD_MAP_01(onenand, mem_addr)); in s3c_onenand_check_lock_status()
755 end_mem_addr = onenand->mem_addr(end, 0, 0); in s3c_onenand_do_lock_cmd()
808 onenand->mem_addr = s3c6400_mem_addr; in s3c_onenand_setup()
[all …]
/linux/drivers/gpu/drm/via/
A Dvia_dmablit.c53 uint32_t mem_addr; member
84 dma_unmap_page(&pdev->dev, desc_ptr->mem_addr, desc_ptr->size, vsg->direction); in via_unmap_blit_from_device()
105 unsigned char *mem_addr = xfer->mem_addr; in via_map_blit_for_device() local
107 unsigned char *first_addr = (unsigned char *)VIA_PGDN(mem_addr); in via_map_blit_for_device()
124 cur_mem = mem_addr; in via_map_blit_for_device()
132 desc_ptr->mem_addr = in via_map_blit_for_device()
156 mem_addr += xfer->mem_stride; in via_map_blit_for_device()
235 unsigned long first_pfn = VIA_PFN(xfer->mem_addr); in via_lock_all_dma_pages()
242 ret = pin_user_pages_fast((unsigned long)xfer->mem_addr, in via_lock_all_dma_pages()
641 if ((((unsigned long)xfer->mem_addr & 3) != ((unsigned long)xfer->fb_addr & 3)) || in via_build_sg_info()
[all …]
/linux/drivers/misc/
A Dpch_phub.c283 void __iomem *mem_addr = chip->pch_phub_extrom_base_address + in pch_phub_read_serial_rom() local
286 *data = ioread8(mem_addr); in pch_phub_read_serial_rom()
298 void __iomem *mem_addr = chip->pch_phub_extrom_base_address + in pch_phub_write_serial_rom() local
310 word_data = ioread32(mem_addr); in pch_phub_write_serial_rom()
311 iowrite32((word_data & mask) | (u32)data << pos, mem_addr); in pch_phub_write_serial_rom()
337 unsigned int mem_addr; in pch_phub_read_serial_rom_val() local
339 mem_addr = chip->pch_mac_start_address + in pch_phub_read_serial_rom_val()
342 pch_phub_read_serial_rom(chip, mem_addr, data); in pch_phub_read_serial_rom_val()
355 unsigned int mem_addr; in pch_phub_write_serial_rom_val() local
357 mem_addr = chip->pch_mac_start_address + in pch_phub_write_serial_rom_val()
[all …]
/linux/drivers/staging/rtl8712/
A Drtl8712_xmit.c375 pxmitframe->mem_addr = pxmitbuf->pbuf; in r8712_dump_aggr_xframe()
690 u8 *mem_addr; in dump_xframe() local
700 mem_addr = pxmitframe->buf_addr; in dump_xframe()
711 update_txdesc(pxmitframe, (uint *)mem_addr, sz); in dump_xframe()
713 pxmitframe->mem_addr = mem_addr; in dump_xframe()
723 mem_addr += w_sz; in dump_xframe()
724 mem_addr = (u8 *)RND4(((addr_t)(mem_addr))); in dump_xframe()
/linux/drivers/staging/r8188eu/hal/
A Drtl8188eu_xmit.c311 u8 *mem_addr; in rtw_dump_xframe() local
323 mem_addr = pxmitframe->buf_addr; in rtw_dump_xframe()
337 pull = update_txdesc(pxmitframe, mem_addr, sz, false); in rtw_dump_xframe()
340 mem_addr += PACKET_OFFSET_SZ; /* pull txdesc head */ in rtw_dump_xframe()
341 pxmitframe->buf_addr = mem_addr; in rtw_dump_xframe()
352 mem_addr += w_sz; in rtw_dump_xframe()
354 mem_addr = (u8 *)RND4(((size_t)(mem_addr))); in rtw_dump_xframe()
/linux/drivers/i2c/busses/
A Di2c-dln2.c78 __le32 mem_addr; in dln2_i2c_write() member
89 tx->mem_addr = 0; in dln2_i2c_write()
109 __le32 mem_addr; in dln2_i2c_read() member
123 tx.mem_addr = 0; in dln2_i2c_read()
/linux/include/linux/firmware/cirrus/
A Dcs_dsp.h231 int cs_dsp_read_raw_data_block(struct cs_dsp *dsp, int mem_type, unsigned int mem_addr,
233 int cs_dsp_read_data_word(struct cs_dsp *dsp, int mem_type, unsigned int mem_addr, u32 *data);
234 int cs_dsp_write_data_word(struct cs_dsp *dsp, int mem_type, unsigned int mem_addr, u32 data);
/linux/drivers/media/platform/mtk-vcodec/
A Dmtk_vcodec_fw.c48 void *mtk_vcodec_fw_map_dm_addr(struct mtk_vcodec_fw *fw, u32 mem_addr) in mtk_vcodec_fw_map_dm_addr() argument
50 return fw->ops->map_dm_addr(fw, mem_addr); in mtk_vcodec_fw_map_dm_addr()
A Dmtk_vcodec_fw.h36 void *mtk_vcodec_fw_map_dm_addr(struct mtk_vcodec_fw *fw, u32 mem_addr);
/linux/drivers/dma/sh/
A Dusb-dmac.c35 dma_addr_t mem_addr; member
203 dst_addr = sg->mem_addr; in usb_dmac_chan_start_sg()
205 src_addr = sg->mem_addr; in usb_dmac_chan_start_sg()
438 desc->sg[i].mem_addr = sg_dma_address(sg); in usb_dmac_prep_slave_sg()
472 u32 mem_addr = sg->mem_addr & 0xffffffff; in usb_dmac_get_current_residue() local
480 residue -= usb_dmac_chan_read(chan, USB_DMADAR) - mem_addr; in usb_dmac_get_current_residue()
482 residue -= usb_dmac_chan_read(chan, USB_DMASAR) - mem_addr; in usb_dmac_get_current_residue()
A Drcar-dmac.c965 dma_addr_t mem_addr = sg_dma_address(sg); in rcar_dmac_chan_prep_sg() local
973 high_mem_addr = mem_addr >> 32; in rcar_dmac_chan_prep_sg()
977 (mem_addr >> 32 != high_mem_addr)) in rcar_dmac_chan_prep_sg()
992 if (mem_addr >> 32 != (mem_addr + size - 1) >> 32) { in rcar_dmac_chan_prep_sg()
993 size = ALIGN(mem_addr, 1ULL << 32) - mem_addr; in rcar_dmac_chan_prep_sg()
1006 chunk->dst_addr = mem_addr; in rcar_dmac_chan_prep_sg()
1008 chunk->src_addr = mem_addr; in rcar_dmac_chan_prep_sg()
1019 mem_addr += size; in rcar_dmac_chan_prep_sg()
/linux/drivers/dma/qcom/
A Dqcom_adm.c235 u32 mem_addr = sg_dma_address(sg); in adm_process_fc_descriptors() local
236 u32 *incr_addr = &mem_addr; in adm_process_fc_descriptors()
243 dst = &mem_addr; in adm_process_fc_descriptors()
247 src = &mem_addr; in adm_process_fc_descriptors()
301 u32 mem_addr = sg_dma_address(sg); in adm_process_non_fc_descriptors() local
302 u32 *incr_addr = &mem_addr; in adm_process_non_fc_descriptors()
307 dst = &mem_addr; in adm_process_non_fc_descriptors()
309 src = &mem_addr; in adm_process_non_fc_descriptors()
/linux/arch/parisc/kernel/
A Dfirmware.c1375 unsigned long view_type, void *mem_addr) in pdc_pat_cell_module() argument
1386 memcpy(mem_addr, &result, *actcnt); in pdc_pat_cell_module()
1494 int pdc_pat_pd_get_addr_map(unsigned long *actual_len, void *mem_addr, in pdc_pat_pd_get_addr_map() argument
1504 memcpy(mem_addr, pdc_result2, *actual_len); in pdc_pat_pd_get_addr_map()
1544 int pdc_pat_io_pci_cfg_read(unsigned long pci_addr, int pci_size, u32 *mem_addr) in pdc_pat_io_pci_cfg_read() argument
1553 case 1: *(u8 *) mem_addr = (u8) pdc_result[0]; break; in pdc_pat_io_pci_cfg_read()
1554 case 2: *(u16 *)mem_addr = (u16) pdc_result[0]; break; in pdc_pat_io_pci_cfg_read()
1555 case 4: *(u32 *)mem_addr = (u32) pdc_result[0]; break; in pdc_pat_io_pci_cfg_read()
/linux/arch/parisc/include/asm/
A Dpdcpat.h366 unsigned long mod, unsigned long view_type, void *mem_addr);
371 extern int pdc_pat_pd_get_addr_map(unsigned long *actual_len, void *mem_addr,
/linux/drivers/dma/
A Dpch_dma.c66 u32 mem_addr; member
330 pd_chan->chan.chan_id, desc->regs.mem_addr); in pdc_dostart()
338 channel_writel(pd_chan, MEM_ADDR, desc->regs.mem_addr); in pdc_dostart()
602 desc->regs.mem_addr = sg_dma_address(sg); in pd_prep_slave_sg()
753 pd->ch_regs[i].mem_addr = channel_readl(pd_chan, MEM_ADDR); in pch_dma_save_regs()
776 channel_writel(pd_chan, MEM_ADDR, pd->ch_regs[i].mem_addr); in pch_dma_restore_regs()
/linux/drivers/misc/mei/
A Dhw-txe.h38 void __iomem * const *mem_addr; member
A Dhw-txe.c66 return mei_txe_reg_read(hw->mem_addr[SEC_BAR], offset); in mei_txe_sec_reg_read_silent()
98 mei_txe_reg_write(hw->mem_addr[SEC_BAR], offset, value); in mei_txe_sec_reg_write_silent()
127 return mei_txe_reg_read(hw->mem_addr[BRIDGE_BAR], offset); in mei_txe_br_reg_read()
140 mei_txe_reg_write(hw->mem_addr[BRIDGE_BAR], offset, value); in mei_txe_br_reg_write()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
A Dops.c856 static void iwl_mvm_frob_mem(void *ctx, u32 mem_addr, void *mem, size_t buflen) in iwl_mvm_frob_mem() argument
888 if (end <= mem_addr || start >= mem_addr + buflen) in iwl_mvm_frob_mem()
891 if (start < mem_addr) in iwl_mvm_frob_mem()
892 start = mem_addr; in iwl_mvm_frob_mem()
894 if (end > mem_addr + buflen) in iwl_mvm_frob_mem()
895 end = mem_addr + buflen; in iwl_mvm_frob_mem()
897 memset((u8 *)mem + start - mem_addr, 0xAA, end - start); in iwl_mvm_frob_mem()
/linux/include/linux/remoteproc/
A Dmtk_scp.h64 void *scp_mapping_dm_addr(struct mtk_scp *scp, u32 mem_addr);
/linux/drivers/hid/intel-ish-hid/ipc/
A Dhw-ish.h65 void __iomem *mem_addr; member

Completed in 65 milliseconds

123