Home
last modified time | relevance | path

Searched refs:dmac (Results 1 – 25 of 74) sorted by relevance

123

/drivers/dma/
Ddma-axi-dmac.c205 struct axi_dmac *dmac = chan_to_axi_dmac(chan); in axi_dmac_start_transfer() local
212 val = axi_dmac_read(dmac, AXI_DMAC_REG_START_TRANSFER); in axi_dmac_start_transfer()
245 sg->id = axi_dmac_read(dmac, AXI_DMAC_REG_TRANSFER_ID); in axi_dmac_start_transfer()
248 axi_dmac_write(dmac, AXI_DMAC_REG_DEST_ADDRESS, sg->dest_addr); in axi_dmac_start_transfer()
249 axi_dmac_write(dmac, AXI_DMAC_REG_DEST_STRIDE, sg->dest_stride); in axi_dmac_start_transfer()
253 axi_dmac_write(dmac, AXI_DMAC_REG_SRC_ADDRESS, sg->src_addr); in axi_dmac_start_transfer()
254 axi_dmac_write(dmac, AXI_DMAC_REG_SRC_STRIDE, sg->src_stride); in axi_dmac_start_transfer()
269 axi_dmac_write(dmac, AXI_DMAC_REG_X_LENGTH, sg->x_len - 1); in axi_dmac_start_transfer()
270 axi_dmac_write(dmac, AXI_DMAC_REG_Y_LENGTH, sg->y_len - 1); in axi_dmac_start_transfer()
271 axi_dmac_write(dmac, AXI_DMAC_REG_FLAGS, flags); in axi_dmac_start_transfer()
[all …]
Dpl330.c377 struct pl330_dmac *dmac; member
438 struct pl330_dmac *dmac; member
566 return thrd->dmac->manager == thrd; in is_manager()
572 return (thrd->dmac->pcfg.mode & DMAC_MODE_NS) ? true : false; in _manager_ns()
873 void __iomem *regs = thrd->dmac->base; in _until_dmac_idle()
893 void __iomem *regs = thrd->dmac->base; in _execute_DBGINSN()
898 dev_err(thrd->dmac->ddma.dev, "DMAC halted!\n"); in _execute_DBGINSN()
918 void __iomem *regs = thrd->dmac->base; in _state()
976 void __iomem *regs = thrd->dmac->base; in _stop()
1003 void __iomem *regs = thrd->dmac->base; in _trigger()
[all …]
DMakefile21 obj-$(CONFIG_AXI_DMAC) += dma-axi-dmac.o
29 obj-$(CONFIG_DW_AXI_DMAC) += dw-axi-dmac/
/drivers/dma/sh/
Dusb-dmac.c151 static void usb_dmac_write(struct usb_dmac *dmac, u32 reg, u32 data) in usb_dmac_write() argument
153 writel(data, dmac->iomem + reg); in usb_dmac_write()
156 static u32 usb_dmac_read(struct usb_dmac *dmac, u32 reg) in usb_dmac_read() argument
158 return readl(dmac->iomem + reg); in usb_dmac_read()
244 static int usb_dmac_init(struct usb_dmac *dmac) in usb_dmac_init() argument
249 usb_dmac_write(dmac, USB_DMAOR, USB_DMAOR_DME); in usb_dmac_init()
251 dmaor = usb_dmac_read(dmac, USB_DMAOR); in usb_dmac_init()
253 dev_warn(dmac->dev, "DMAOR initialization failed.\n"); in usb_dmac_init()
346 struct usb_dmac *dmac = to_usb_dmac(chan->device); in usb_dmac_soft_reset() local
350 for (i = 0; i < dmac->n_channels; ++i) { in usb_dmac_soft_reset()
[all …]
Drcar-dmac.c303 static void rcar_dmac_write(struct rcar_dmac *dmac, u32 reg, u32 data) in rcar_dmac_write() argument
306 writew(data, dmac->iomem + reg); in rcar_dmac_write()
308 writel(data, dmac->iomem + reg); in rcar_dmac_write()
311 static u32 rcar_dmac_read(struct rcar_dmac *dmac, u32 reg) in rcar_dmac_read() argument
314 return readw(dmac->iomem + reg); in rcar_dmac_read()
316 return readl(dmac->iomem + reg); in rcar_dmac_read()
445 static int rcar_dmac_init(struct rcar_dmac *dmac) in rcar_dmac_init() argument
450 rcar_dmac_write(dmac, RCAR_DMACHCLR, dmac->channels_mask); in rcar_dmac_init()
451 rcar_dmac_write(dmac, RCAR_DMAOR, in rcar_dmac_init()
454 dmaor = rcar_dmac_read(dmac, RCAR_DMAOR); in rcar_dmac_init()
[all …]
DMakefile16 obj-$(CONFIG_RCAR_DMAC) += rcar-dmac.o
17 obj-$(CONFIG_RENESAS_USB_DMAC) += usb-dmac.o
/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c118 nv50_dmac_destroy(struct nv50_dmac *dmac) in nv50_dmac_destroy() argument
120 nvif_object_dtor(&dmac->vram); in nv50_dmac_destroy()
121 nvif_object_dtor(&dmac->sync); in nv50_dmac_destroy()
123 nv50_chan_destroy(&dmac->base); in nv50_dmac_destroy()
125 nvif_mem_dtor(&dmac->_push.mem); in nv50_dmac_destroy()
131 struct nv50_dmac *dmac = container_of(push, typeof(*dmac), _push); in nv50_dmac_kick() local
133 dmac->cur = push->cur - (u32 *)dmac->_push.mem.object.map.ptr; in nv50_dmac_kick()
134 if (dmac->put != dmac->cur) { in nv50_dmac_kick()
138 if (dmac->push->mem.type & NVIF_MEM_VRAM) { in nv50_dmac_kick()
139 struct nvif_device *device = dmac->base.device; in nv50_dmac_kick()
[all …]
Dwndw.h106 nvif_chan_wait(struct nv50_dmac *dmac, u32 size) in nvif_chan_wait() argument
108 struct nv50_wndw *wndw = container_of(dmac, typeof(*wndw), wimm); in nvif_chan_wait()
/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c159 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in write_l2e()
160 memcpy(req->dst_mac, e->dmac, sizeof(req->dst_mac)); in write_l2e()
299 u8 port, u8 *dmac) in find_or_alloc_l2e() argument
310 if (ether_addr_equal(e->dmac, dmac) && in find_or_alloc_l2e()
405 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) || in reuse_entry()
455 memcpy(e->dmac, physdev->dev_addr, sizeof(e->dmac)); in cxgb4_l2t_get()
547 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac))) in t4_l2t_update()
592 ether_addr_copy(e->dmac, eth_addr); in t4_l2t_alloc_switching()
622 u8 port, u8 *dmac) in cxgb4_l2t_alloc_switching() argument
626 return t4_l2t_alloc_switching(adap, vlan, port, dmac); in cxgb4_l2t_alloc_switching()
[all …]
Dl2t.h88 u8 dmac[ETH_ALEN]; /* neighbour's MAC address */ member
119 u8 port, u8 *dmac);
122 u8 port, u8 *dmac);
/drivers/infiniband/hw/mlx5/
Dah.c79 memcpy(ah->av.rmac, ah_attr->roce.dmac, in create_ib_ah()
80 sizeof(ah_attr->roce.dmac)); in create_ib_ah()
110 offsetofend(struct mlx5_ib_create_ah_resp, dmac); in mlx5_ib_create_ah()
117 memcpy(resp.dmac, ah_attr->roce.dmac, ETH_ALEN); in mlx5_ib_create_ah()
/drivers/net/dsa/sja1105/
Dsja1105_flower.c202 u64 dmac = U64_MAX; in sja1105_flower_parse_key() local
247 dmac = ether_addr_to_u64(match.key->dst); in sja1105_flower_parse_key()
280 if (dmac == U64_MAX && vid == U16_MAX && pcp != U16_MAX) { in sja1105_flower_parse_key()
285 if (dmac != U64_MAX && vid != U16_MAX && pcp != U16_MAX) { in sja1105_flower_parse_key()
287 key->vl.dmac = dmac; in sja1105_flower_parse_key()
292 if (dmac != U64_MAX) { in sja1105_flower_parse_key()
294 key->vl.dmac = dmac; in sja1105_flower_parse_key()
/drivers/net/wan/
Dhd64570.c161 u16 dmac = transmit ? get_dmac_tx(port) : get_dmac_rx(port); in sca_init_port() local
184 sca_out(0, dmac + CPB, card); /* pointer base */ in sca_init_port()
185 sca_outw(desc_offset(port, 0, transmit), dmac + CDAL, card); in sca_init_port()
188 dmac + EDAL, card); in sca_init_port()
190 sca_outw(desc_offset(port, 0, transmit), dmac + EDAL, in sca_init_port()
199 sca_outw(HDLC_MAX_MRU, dmac + BFLL, card); in sca_init_port()
290 u16 dmac = get_dmac_rx(port); in sca_rx_intr() local
305 u32 cda = sca_inw(dmac + CDAL, card); in sca_rx_intr()
329 sca_outw(desc_off, dmac + EDAL, card); in sca_rx_intr()
342 u16 dmac = get_dmac_tx(port); in sca_tx_intr() local
[all …]
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_misc.c285 memcpy(dst->roce.dmac, &src->dmac, ETH_ALEN); in pvrdma_ah_attr_to_rdma()
298 memcpy(&dst->dmac, src->roce.dmac, sizeof(dst->dmac)); in rdma_ah_attr_to_pvrdma()
/drivers/net/ethernet/chelsio/cxgb3/
Dl2t.c105 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in setup_l2e_send_pending()
106 memcpy(req->dst_mac, e->dmac, sizeof(req->dst_mac)); in setup_l2e_send_pending()
292 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) || in reuse_entry()
433 if (!ether_addr_equal(e->dmac, neigh->ha)) in t3_l2t_update()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.c228 unsigned char dmac[ETH_ALEN]) in mlxsw_sp_span_dmac()
243 memcpy(dmac, neigh->ha, ETH_ALEN); in mlxsw_sp_span_dmac()
261 unsigned char *dmac, in mlxsw_sp_span_entry_bridge_8021q() argument
275 edev = br_fdb_find_port(br_dev, dmac, vid); in mlxsw_sp_span_entry_bridge_8021q()
290 unsigned char *dmac) in mlxsw_sp_span_entry_bridge_8021d() argument
292 return br_fdb_find_port(br_dev, dmac, 0); in mlxsw_sp_span_entry_bridge_8021d()
297 unsigned char dmac[ETH_ALEN], in mlxsw_sp_span_entry_bridge()
307 dev = mlxsw_sp_span_entry_bridge_8021q(br_dev, dmac, p_vid); in mlxsw_sp_span_entry_bridge()
309 dev = mlxsw_sp_span_entry_bridge_8021d(br_dev, dmac); in mlxsw_sp_span_entry_bridge()
361 unsigned char dmac[ETH_ALEN]; in mlxsw_sp_span_entry_tunnel_parms_common() local
[all …]
Dspectrum_span.h19 unsigned char dmac[ETH_ALEN]; member
/drivers/net/ethernet/mscc/
Docelot_vcap.h104 struct ocelot_vcap_u48 dmac; member
111 struct ocelot_vcap_u48 dmac; member
119 struct ocelot_vcap_u48 dmac; member
/drivers/mtd/nand/raw/
Dsunxi_nand.c248 struct dma_chan *dmac; member
366 dmad = dmaengine_prep_slave_sg(nfc->dmac, sg, 1, tdir, DMA_CTRL_ACK); in sunxi_nfc_dma_op_prepare()
932 dma_async_issue_pending(nfc->dmac); in sunxi_nfc_hw_ecc_read_chunks_dma()
939 dmaengine_terminate_all(nfc->dmac); in sunxi_nfc_hw_ecc_read_chunks_dma()
1307 dma_async_issue_pending(nfc->dmac); in sunxi_nfc_hw_ecc_write_page_dma()
1315 dmaengine_terminate_all(nfc->dmac); in sunxi_nfc_hw_ecc_write_page_dma()
1698 if (nfc->dmac) { in sunxi_nand_hw_ecc_ctrl_init()
2135 nfc->dmac = dma_request_chan(dev, "rxtx"); in sunxi_nfc_probe()
2136 if (IS_ERR(nfc->dmac)) { in sunxi_nfc_probe()
2137 ret = PTR_ERR(nfc->dmac); in sunxi_nfc_probe()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_av.c14 memcpy(av->dmac, attr->roce.dmac, ETH_ALEN); in rxe_init_av()
/drivers/infiniband/hw/qedr/
Dqedr.h535 u8 *dmac; in qedr_get_dmac() local
544 dmac = rdma_ah_retrieve_dmac(ah_attr); in qedr_get_dmac()
545 if (!dmac) in qedr_get_dmac()
547 ether_addr_copy(mac_addr, dmac); in qedr_get_dmac()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c401 ether_addr_copy(flow->l2_key.dmac, match.key->dst); in bnxt_tc_parse_flow()
402 ether_addr_copy(flow->l2_mask.dmac, match.mask->dst); in bnxt_tc_parse_flow()
681 memcpy(req.dmac, flow->l2_key.dmac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
748 memcpy(&req.l2_rewrite_dmac, &req.dmac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
756 memcpy(&req.l2_rewrite_dmac, &req.dmac, ETH_ALEN); in bnxt_hwrm_cfa_flow_alloc()
813 ether_addr_copy(req.dst_macaddr, l2_info->dmac); in hwrm_cfa_decap_filter_alloc()
889 ether_addr_copy(encap->dst_mac_addr, l2_info->dmac); in hwrm_cfa_encap_record_alloc()
1050 if (bits_set(&flow->l2_key.dmac, sizeof(flow->l2_key.dmac)) && in bnxt_tc_can_offload()
1051 !is_exactmatch(&flow->l2_mask.dmac, sizeof(flow->l2_mask.dmac))) { in bnxt_tc_can_offload()
1278 neigh_ha_snapshot(l2_info->dmac, nbr, dst_dev); in bnxt_tc_resolve_tunnel_hdrs()
[all …]
/drivers/dma/dw-axi-dmac/
DMakefile2 obj-$(CONFIG_DW_AXI_DMAC) += dw-axi-dmac-platform.o
/drivers/mtd/nand/raw/atmel/
Dnand-controller.c223 struct dma_chan *dmac; member
390 tx = dmaengine_prep_dma_memcpy(nc->dmac, dst_dma, src_dma, len, in atmel_nand_dma_transfer()
406 dma_async_issue_pending(nc->dmac); in atmel_nand_dma_transfer()
483 if (nc->dmac && virt_addr_valid(buf) && in atmel_nand_data_in()
507 if (nc->dmac && virt_addr_valid(buf) && in atmel_nand_data_out()
726 if (nc->base.dmac) in atmel_nfc_copy_to_sram()
749 if (nc->base.dmac) in atmel_nfc_copy_from_sram()
1567 if (nc->dmac) in atmel_nand_init()
1900 if (nc->dmac) in atmel_nand_controller_cleanup()
1901 dma_release_channel(nc->dmac); in atmel_nand_controller_cleanup()
[all …]
/drivers/net/ethernet/cavium/thunder/
Dthunder_bgx.c39 u64 dmac; member
274 lmac->dmacs[i].dmac = 0; in bgx_lmac_remove_filters()
280 static int bgx_lmac_save_filter(struct lmac *lmac, u64 dmac, u8 vf_id) in bgx_lmac_save_filter() argument
295 if (lmac->dmacs[i].dmac == dmac) { in bgx_lmac_save_filter()
305 lmac->dmacs[lmac->dmacs_cfg].dmac = dmac; in bgx_lmac_save_filter()
382 lmac->dmacs[i].dmac, i); in bgx_set_xcast_mode()

123