Home
last modified time | relevance | path

Searched refs:rmem (Results 1 – 14 of 14) sorted by relevance

/drivers/of/
Dof_reserved_mem.c74 struct reserved_mem *rmem = &reserved_mem[reserved_mem_count]; in fdt_reserved_mem_save_node() local
81 rmem->fdt_node = node; in fdt_reserved_mem_save_node()
82 rmem->name = uname; in fdt_reserved_mem_save_node()
83 rmem->base = base; in fdt_reserved_mem_save_node()
84 rmem->size = size; in fdt_reserved_mem_save_node()
181 static int __init __reserved_mem_init_node(struct reserved_mem *rmem) in __reserved_mem_init_node() argument
190 if (!of_flat_dt_is_compatible(rmem->fdt_node, compat)) in __reserved_mem_init_node()
193 if (initfn(rmem) == 0) { in __reserved_mem_init_node()
195 rmem->name, compat); in __reserved_mem_init_node()
209 struct reserved_mem *rmem = &reserved_mem[i]; in fdt_init_reserved_mem() local
[all …]
/drivers/base/
Ddma-contiguous.c226 static int rmem_cma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_cma_device_init() argument
228 dev_set_cma_area(dev, rmem->priv); in rmem_cma_device_init()
232 static void rmem_cma_device_release(struct reserved_mem *rmem, in rmem_cma_device_release() argument
243 static int __init rmem_cma_setup(struct reserved_mem *rmem) in rmem_cma_setup() argument
247 unsigned long node = rmem->fdt_node; in rmem_cma_setup()
255 if ((rmem->base & mask) || (rmem->size & mask)) { in rmem_cma_setup()
260 err = cma_init_reserved_mem(rmem->base, rmem->size, 0, &cma); in rmem_cma_setup()
266 dma_contiguous_early_fixup(rmem->base, rmem->size); in rmem_cma_setup()
271 rmem->ops = &rmem_cma_ops; in rmem_cma_setup()
272 rmem->priv = cma; in rmem_cma_setup()
[all …]
Ddma-coherent.c279 static int rmem_dma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_dma_device_init() argument
281 struct dma_coherent_mem *mem = rmem->priv; in rmem_dma_device_init()
284 dma_init_coherent_memory(rmem->base, rmem->base, rmem->size, in rmem_dma_device_init()
288 &rmem->base, (unsigned long)rmem->size / SZ_1M); in rmem_dma_device_init()
291 rmem->priv = mem; in rmem_dma_device_init()
296 static void rmem_dma_device_release(struct reserved_mem *rmem, in rmem_dma_device_release() argument
307 static int __init rmem_dma_setup(struct reserved_mem *rmem) in rmem_dma_setup() argument
309 unsigned long node = rmem->fdt_node; in rmem_dma_setup()
321 rmem->ops = &rmem_dma_ops; in rmem_dma_setup()
323 &rmem->base, (unsigned long)rmem->size / SZ_1M); in rmem_dma_setup()
/drivers/hid/
Dhid-wiimote-core.c384 ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, __u8 *rmem, in wiimote_cmd_read() argument
392 wdata->state.cmd_read_buf = rmem; in wiimote_cmd_read()
435 static __u8 wiimote_cmd_read_ext(struct wiimote_data *wdata, __u8 *rmem) in wiimote_cmd_read_ext() argument
440 ret = wiimote_cmd_read(wdata, 0xa400fa, rmem, 6); in wiimote_cmd_read_ext()
444 hid_dbg(wdata->hdev, "extension ID: %6phC\n", rmem); in wiimote_cmd_read_ext()
446 if (rmem[0] == 0xff && rmem[1] == 0xff && rmem[2] == 0xff && in wiimote_cmd_read_ext()
447 rmem[3] == 0xff && rmem[4] == 0xff && rmem[5] == 0xff) in wiimote_cmd_read_ext()
450 if (rmem[4] == 0x00 && rmem[5] == 0x00) in wiimote_cmd_read_ext()
452 if (rmem[4] == 0x01 && rmem[5] == 0x01) in wiimote_cmd_read_ext()
454 if (rmem[4] == 0x04 && rmem[5] == 0x02) in wiimote_cmd_read_ext()
[all …]
Dhid-wiimote.h273 __u8 *rmem, __u8 size);
/drivers/staging/rtl8712/
Dxmit_linux.c57 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen) in _r8712_pktfile_read() argument
63 if (rmem) in _r8712_pktfile_read()
65 rmem, len); in _r8712_pktfile_read()
Dusb_ops.h38 u32 cnt, u8 *rmem);
Dxmit_osdep.h59 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
Dusb_ops_linux.c252 u32 r8712_usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem) in r8712_usb_read_port() argument
260 struct recv_buf *precvbuf = (struct recv_buf *)rmem; in r8712_usb_read_port()
/drivers/staging/rtl8188eu/os_dep/
Dxmit_linux.c49 uint _rtw_pktfile_read (struct pkt_file *pfile, u8 *rmem, uint rlen) in _rtw_pktfile_read() argument
57 if (rmem) in _rtw_pktfile_read()
58 skb_copy_bits(pfile->pkt, pfile->buf_len-pfile->pkt_len, rmem, len); in _rtw_pktfile_read()
Dusb_ops_linux.c454 u32 usb_read_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *rmem) in usb_read_port() argument
457 struct recv_buf *precvbuf = (struct recv_buf *)rmem; in usb_read_port()
/drivers/staging/rtl8188eu/include/
Dxmit_osdep.h54 uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
/drivers/net/wireless/
Dray_cs.h31 void __iomem *rmem; /* pointer to receive buffer window */ member
Dray_cs.c408 local->rmem = ioremap(link->resource[3]->start, in ray_config()
426 dev_dbg(&link->dev, "ray_config rmem=%p\n", local->rmem); in ray_config()
750 iounmap(local->rmem); in ray_release()
2066 pmsg = local->rmem + pkt_addr; in ray_rx()
2378 memcpy_fromio(dest, local->rmem + pkt_addr, length); in copy_from_rx_buff()
2381 memcpy_fromio(dest, local->rmem + pkt_addr, in copy_from_rx_buff()
2383 memcpy_fromio(dest + length - wrap_bytes, local->rmem, in copy_from_rx_buff()