/Linux-v5.15/drivers/dma/ |
D | dma-axi-dmac.c | 205 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 …]
|
D | pl330.c | 377 struct pl330_dmac *dmac; member 432 struct pl330_dmac *dmac; member 560 return thrd->dmac->manager == thrd; in is_manager() 566 return (thrd->dmac->pcfg.mode & DMAC_MODE_NS) ? true : false; in _manager_ns() 867 void __iomem *regs = thrd->dmac->base; in _until_dmac_idle() 887 void __iomem *regs = thrd->dmac->base; in _execute_DBGINSN() 892 dev_err(thrd->dmac->ddma.dev, "DMAC halted!\n"); in _execute_DBGINSN() 912 void __iomem *regs = thrd->dmac->base; in _state() 970 void __iomem *regs = thrd->dmac->base; in _stop() 997 void __iomem *regs = thrd->dmac->base; in _trigger() [all …]
|
/Linux-v5.15/drivers/dma/sh/ |
D | usb-dmac.c | 151 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 …]
|
D | rz-dmac.c | 172 static void rz_dmac_writel(struct rz_dmac *dmac, unsigned int val, in rz_dmac_writel() argument 175 writel(val, dmac->base + offset); in rz_dmac_writel() 178 static void rz_dmac_ext_writel(struct rz_dmac *dmac, unsigned int val, in rz_dmac_ext_writel() argument 181 writel(val, dmac->ext_base + offset); in rz_dmac_ext_writel() 184 static u32 rz_dmac_ext_readl(struct rz_dmac *dmac, unsigned int offset) in rz_dmac_ext_readl() argument 186 return readl(dmac->ext_base + offset); in rz_dmac_ext_readl() 253 struct rz_dmac *dmac = to_rz_dmac(chan->device); in rz_dmac_enable_hw() local 259 dev_dbg(dmac->dev, "%s channel %d\n", __func__, channel->index); in rz_dmac_enable_hw() 284 struct rz_dmac *dmac = to_rz_dmac(chan->device); in rz_dmac_disable_hw() local 287 dev_dbg(dmac->dev, "%s channel %d\n", __func__, channel->index); in rz_dmac_disable_hw() [all …]
|
D | rcar-dmac.c | 214 #define for_each_rcar_dmac_chan(i, dmac, chan) \ argument 215 for (i = 0, chan = &(dmac)->channels[0]; i < (dmac)->n_channels; i++, chan++) \ 216 if (!((dmac)->channels_mask & BIT(i))) continue; else 312 static void rcar_dmac_write(struct rcar_dmac *dmac, u32 reg, u32 data) in rcar_dmac_write() argument 315 writew(data, dmac->dmac_base + reg); in rcar_dmac_write() 317 writel(data, dmac->dmac_base + reg); in rcar_dmac_write() 320 static u32 rcar_dmac_read(struct rcar_dmac *dmac, u32 reg) in rcar_dmac_read() argument 323 return readw(dmac->dmac_base + reg); in rcar_dmac_read() 325 return readl(dmac->dmac_base + reg); in rcar_dmac_read() 344 static void rcar_dmac_chan_clear(struct rcar_dmac *dmac, in rcar_dmac_chan_clear() argument [all …]
|
D | Makefile | 16 obj-$(CONFIG_RCAR_DMAC) += rcar-dmac.o 17 obj-$(CONFIG_RENESAS_USB_DMAC) += usb-dmac.o 18 obj-$(CONFIG_RZ_DMAC) += rz-dmac.o
|
/Linux-v5.15/tools/testing/selftests/drivers/net/mlxsw/ |
D | devlink_trap_l2_drops.sh | 119 local dmac=de:ad:be:ef:13:37 128 flower dst_mac $dmac action drop 130 $MZ $h1 "$opt" -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q & 179 local dmac=de:ad:be:ef:13:37 188 flower dst_mac $dmac action drop 190 $MZ $h1 -Q $vid -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q & 221 local dmac=de:ad:be:ef:13:37 231 flower dst_mac $dmac action drop 233 $MZ $h1 -Q $vid -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q & 290 local dmac=de:ad:be:ef:13:37 [all …]
|
/Linux-v5.15/sound/soc/sh/rcar/ |
D | dma.c | 266 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmaen_attach() local 294 dmac->dmaen_num++; in rsnd_dmaen_attach() 420 #define rsnd_dmapp_addr(dmac, dma, reg) \ argument 421 (dmac->ppbase + 0x20 + reg + \ 427 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_write() local 430 dev_dbg(dev, "w 0x%px : %08x\n", rsnd_dmapp_addr(dmac, dma, reg), data); in rsnd_dmapp_write() 432 iowrite32(data, rsnd_dmapp_addr(dmac, dma, reg)); in rsnd_dmapp_write() 439 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_read() local 441 return ioread32(rsnd_dmapp_addr(dmac, dma, reg)); in rsnd_dmapp_read() 448 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_bset() local [all …]
|
/Linux-v5.15/drivers/gpu/drm/nouveau/dispnv50/ |
D | disp.c | 120 nv50_dmac_destroy(struct nv50_dmac *dmac) in nv50_dmac_destroy() argument 122 nvif_object_dtor(&dmac->vram); in nv50_dmac_destroy() 123 nvif_object_dtor(&dmac->sync); in nv50_dmac_destroy() 125 nv50_chan_destroy(&dmac->base); in nv50_dmac_destroy() 127 nvif_mem_dtor(&dmac->_push.mem); in nv50_dmac_destroy() 133 struct nv50_dmac *dmac = container_of(push, typeof(*dmac), _push); in nv50_dmac_kick() local 135 dmac->cur = push->cur - (u32 *)dmac->_push.mem.object.map.ptr; in nv50_dmac_kick() 136 if (dmac->put != dmac->cur) { in nv50_dmac_kick() 140 if (dmac->push->mem.type & NVIF_MEM_VRAM) { in nv50_dmac_kick() 141 struct nvif_device *device = dmac->base.device; in nv50_dmac_kick() [all …]
|
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 159 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 …]
|
D | l2t.h | 88 u8 dmac[ETH_ALEN]; /* neighbour's MAC address */ member 119 u8 port, u8 *dmac); 122 u8 port, u8 *dmac);
|
/Linux-v5.15/drivers/infiniband/hw/mlx5/ |
D | ah.c | 79 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()
|
/Linux-v5.15/sound/soc/intel/catpt/ |
D | dsp.c | 107 struct dw_dma_chip *dmac; in catpt_dmac_probe() local 110 dmac = devm_kzalloc(cdev->dev, sizeof(*dmac), GFP_KERNEL); in catpt_dmac_probe() 111 if (!dmac) in catpt_dmac_probe() 114 dmac->regs = cdev->lpe_ba + cdev->spec->host_dma_offset[CATPT_DMA_DEVID]; in catpt_dmac_probe() 115 dmac->dev = cdev->dev; in catpt_dmac_probe() 116 dmac->irq = cdev->irq; in catpt_dmac_probe() 125 ret = dw_dma_probe(dmac); in catpt_dmac_probe() 129 cdev->dmac = dmac; in catpt_dmac_probe() 141 dw_dma_remove(cdev->dmac); in catpt_dmac_remove()
|
/Linux-v5.15/drivers/net/dsa/sja1105/ |
D | sja1105_flower.c | 203 u64 dmac = U64_MAX; in sja1105_flower_parse_key() local 248 dmac = ether_addr_to_u64(match.key->dst); in sja1105_flower_parse_key() 281 if (dmac == U64_MAX && vid == U16_MAX && pcp != U16_MAX) { in sja1105_flower_parse_key() 286 if (dmac != U64_MAX && vid != U16_MAX && pcp != U16_MAX) { in sja1105_flower_parse_key() 288 key->vl.dmac = dmac; in sja1105_flower_parse_key() 293 if (dmac != U64_MAX) { in sja1105_flower_parse_key() 295 key->vl.dmac = dmac; in sja1105_flower_parse_key()
|
/Linux-v5.15/arch/mips/boot/dts/ingenic/ |
D | jz4725b.dtsi | 210 dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>; 234 dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>; 252 dmas = <&dmac 31 0xffffffff>, <&dmac 30 0xffffffff>; 298 dmac: dma-controller@13020000 { label
|
D | jz4740.dtsi | 201 dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>; 225 dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>; 287 dmac: dma-controller@13020000 { label
|
/Linux-v5.15/include/net/ |
D | llc_sap.h | 29 unsigned char *dmac, unsigned char dsap); 31 unsigned char *dmac, unsigned char dsap);
|
/Linux-v5.15/arch/mips/include/asm/mach-rc32434/ |
D | dma_v.h | 29 if (__raw_readl(&ch->dmac) & DMA_CHAN_RUN_BIT) { in rc32434_halt_dma() 30 __raw_writel(0, &ch->dmac); in rc32434_halt_dma()
|
/Linux-v5.15/net/llc/ |
D | llc_output.c | 59 unsigned char *dmac, unsigned char dsap) in llc_build_and_send_ui_pkt() argument 65 rc = llc_mac_hdr_init(skb, skb->dev->dev_addr, dmac); in llc_build_and_send_ui_pkt()
|
/Linux-v5.15/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_misc.c | 285 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()
|
/Linux-v5.15/drivers/net/ethernet/mscc/ |
D | ocelot_mrp.c | 68 ether_addr_copy(filter->key.etype.dmac.value, mrp_test_dmac); in ocelot_mrp_redirect_add_vcap() 69 ether_addr_copy(filter->key.etype.dmac.mask, mrp_test_mask); in ocelot_mrp_redirect_add_vcap() 101 ether_addr_copy(filter->key.etype.dmac.value, mrp_test_dmac); in ocelot_mrp_copy_add_vcap() 102 ether_addr_copy(filter->key.etype.dmac.mask, mrp_mask); in ocelot_mrp_copy_add_vcap()
|
/Linux-v5.15/drivers/net/wan/ |
D | hd64570.c | 160 u16 dmac = transmit ? get_dmac_tx(port) : get_dmac_rx(port); in sca_init_port() local 183 sca_out(0, dmac + CPB, card); /* pointer base */ in sca_init_port() 184 sca_outw(desc_offset(port, 0, transmit), dmac + CDAL, card); in sca_init_port() 187 dmac + EDAL, card); in sca_init_port() 189 sca_outw(desc_offset(port, 0, transmit), dmac + EDAL, in sca_init_port() 198 sca_outw(HDLC_MAX_MRU, dmac + BFLL, card); in sca_init_port() 287 u16 dmac = get_dmac_rx(port); in sca_rx_intr() local 302 u32 cda = sca_inw(dmac + CDAL, card); in sca_rx_intr() 327 sca_outw(desc_off, dmac + EDAL, card); in sca_rx_intr() 339 u16 dmac = get_dmac_tx(port); in sca_tx_intr() local [all …]
|
/Linux-v5.15/arch/sh/drivers/dma/ |
D | dma-api.c | 128 int request_dma_bycap(const char **dmac, const char **caps, const char *dev_id) in request_dma_bycap() argument 135 BUG_ON(!dmac || !caps); in request_dma_bycap() 138 if (strcmp(*dmac, info->name) == 0) { in request_dma_bycap() 243 int register_chan_caps(const char *dmac, struct dma_chan_caps *caps) in register_chan_caps() argument 250 if (strcmp(dmac, info->name) == 0) { in register_chan_caps()
|
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.c | 105 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()
|
/Linux-v5.15/net/bridge/netfilter/ |
D | ebt_among.c | 136 const char *dmac, *smac; in ebt_among_mt() local 159 dmac = eth_hdr(skb)->h_dest; in ebt_among_mt() 164 if (!ebt_mac_wormhash_contains(wh_dst, dmac, dip)) in ebt_among_mt() 168 if (ebt_mac_wormhash_contains(wh_dst, dmac, dip)) in ebt_among_mt()
|