Home
last modified time | relevance | path

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

123456

/linux/drivers/dma/sh/
H A 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 …]
H A Drcar-dmac.c214 #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 …]
H A DMakefile16 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/tools/testing/selftests/net/forwarding/
H A Dtc_flower_l2_miss.sh73 local dmac=00:01:02:03:04:05
81 flower indev $swp1 l2_miss 1 dst_mac $dmac src_ip $sip \
85 flower indev $swp1 l2_miss 0 dst_mac $dmac src_ip $sip \
89 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q
98 bridge fdb replace $dmac dev $swp2 master static
100 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q
109 bridge fdb del $dmac dev $swp2 master static
111 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q
130 local dmac=$1; shift
146 $MZ $mode $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q
[all …]
H A Dno_forwarding.sh35 local dmac=$3
37 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
43 local dmac=$2
45 ip neigh add $H2_IPV4 lladdr $dmac dev $if_name
60 local dmac=$2
62 ip -6 neigh add $H2_IPV6 lladdr $dmac dev $if_name
94 local dmac=$(mac_get $h2)
102 send_non_ip $h1 $smac $dmac
105 send_uc_ipv4 $h1 $dmac
107 send_uc_ipv6 $h1 $dmac
[all …]
H A Dtc_flower_port_range.sh84 local dmac=$(mac_get $h2)
106 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
113 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
120 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
129 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
131 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
133 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
135 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
137 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
206 local dmac=$(mac_get $h2)
[all …]
H A Dbridge_mdb.sh1007 local dmac=$1; shift
1030 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
1037 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
1043 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
1050 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
1069 local dmac=01:02:03:04:05:06
1074 dst_mac $dmac action drop
1078 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac -q
1084 bridge mdb add dev br0 port $swp2 grp $dmac permanent vid 10
1085 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac
[all...]
/linux/tools/testing/selftests/net/
H A Dtest_bridge_backup_port.sh247 local dmac=00:11:22:33:44:55
255 run_cmd "tc -n $sw1 filter replace dev swp1 egress pref 1 handle 101 proto ip flower src_mac $smac dst_mac $dmac action pass"
258 run_cmd "tc -n $sw1 filter replace dev vx0 egress pref 1 handle 101 proto ip flower src_mac $smac dst_mac $dmac action pass"
260 run_cmd "bridge -n $sw1 fdb replace $dmac dev swp1 master static vlan 10"
265 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1"
275 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1"
292 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1"
302 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1"
312 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1"
325 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac
[all...]
H A Dtest_vxlan_nolocalbypass.sh121 local dmac=00:0a:0b:0c:0d:0e
123 run_cmd "bridge -n $ns1 fdb add $dmac dev vx0 self static dst 192.0.2.1 port 4790"
126 …ter add dev vx1 ingress pref 1 handle 101 proto all flower src_mac $smac dst_mac $dmac action pass"
134 run_cmd "ip netns exec $ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
144 run_cmd "ip netns exec $ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
154 run_cmd "ip netns exec $ns1 mausezahn vx0 -a $smac -b $dmac -c 1 -p 100 -q"
/linux/drivers/dma/
H A Darm-dma350.c529 struct d350 *dmac; in d350_probe() local
554 dmac = devm_kzalloc(dev, struct_size(dmac, channels, nchan), GFP_KERNEL); in d350_probe()
555 if (!dmac) in d350_probe()
558 dmac->nchan = nchan; in d350_probe()
561 dmac->nreq = FIELD_GET(DMA_CFG_NUM_TRIGGER_IN, reg); in d350_probe()
563 dev_dbg(dev, "DMA-350 r%dp%d with %d channels, %d requests\n", r, p, dmac->nchan, dmac->nreq); in d350_probe()
565 dmac->dma.dev = dev; in d350_probe()
567 dmac->dma.src_addr_widths |= BIT(i); in d350_probe()
568 dmac->dma.dst_addr_widths |= BIT(i); in d350_probe()
570 dmac->dma.directions = BIT(DMA_MEM_TO_MEM); in d350_probe()
[all …]
H A 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 …]
/linux/sound/soc/renesas/rcar/
H A Ddma.c225 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmaen_attach()
253 dmac->dmaen_num++; in rsnd_dmaen_attach()
367 #define rsnd_dmapp_addr(dmac, dma, reg) \ in rsnd_dmapp_write()
368 (dmac->ppbase + 0x20 + reg + \ in rsnd_dmapp_write()
374 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_write()
377 dev_dbg(dev, "w 0x%px : %08x\n", rsnd_dmapp_addr(dmac, dma, reg), data); in rsnd_dmapp_write()
379 iowrite32(data, rsnd_dmapp_addr(dmac, dma, reg)); in rsnd_dmapp_read()
386 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_read()
388 return ioread32(rsnd_dmapp_addr(dmac, dma, reg)); in rsnd_dmapp_bset()
395 struct rsnd_dma_ctrl *dmac in rsnd_dmapp_bset()
222 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); rsnd_dmaen_attach() local
364 rsnd_dmapp_addr(dmac,dma,reg) global() argument
371 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); rsnd_dmapp_write() local
383 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); rsnd_dmapp_read() local
392 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); rsnd_dmapp_bset() local
440 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); rsnd_dmapp_attach() local
460 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); rsnd_dmapp_debug_info() local
758 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); rsnd_dma_alloc() local
845 struct rsnd_dma_ctrl *dmac; rsnd_dma_probe() local
[all...]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_trap_l2_drops.sh120 local dmac=de:ad:be:ef:13:37
129 flower dst_mac $dmac action drop
131 $MZ $h1 "$opt" -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q &
180 local dmac=de:ad:be:ef:13:37
189 flower dst_mac $dmac action drop
191 $MZ $h1 -Q $vid -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q &
222 local dmac=de:ad:be:ef:13:37
232 flower dst_mac $dmac action drop
234 $MZ $h1 -Q $vid -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q &
291 local dmac=de:ad:be:ef:13:37
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
708 e->idx + d->l2t_start, ip, e->dmac, in l2t_seq_show()
/linux/sound/soc/intel/catpt/
H A Ddsp.c117 struct dw_dma_chip *dmac; in catpt_dmac_probe() local
120 dmac = devm_kzalloc(cdev->dev, sizeof(*dmac), GFP_KERNEL); in catpt_dmac_probe()
121 if (!dmac) in catpt_dmac_probe()
124 dmac->regs = catpt_dma_addr(cdev, CATPT_DMA_DEVID); in catpt_dmac_probe()
125 dmac->dev = cdev->dev; in catpt_dmac_probe()
126 dmac->irq = cdev->irq; in catpt_dmac_probe()
132 ret = dw_dma_probe(dmac); in catpt_dmac_probe()
136 cdev->dmac = dmac; in catpt_dmac_probe()
[all...]
/linux/arch/mips/boot/dts/ingenic/
H A Djz4725b.dtsi207 dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
231 dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
249 dmas = <&dmac 31 0xffffffff>, <&dmac 30 0xffffffff>;
295 dmac: dma-controller@13020000 { label
H A Djz4740.dtsi198 dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
222 dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
284 dmac: dma-controller@13020000 { label
/linux/arch/mips/include/asm/mach-rc32434/
H A Ddma_v.h29 if (__raw_readl(&ch->dmac) & DMA_CHAN_RUN_BIT) { in rc32434_halt_dma()
30 __raw_writel(0, &ch->dmac); in rc32434_halt_dma()
/linux/net/llc/
H A Dllc_output.c59 const 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/drivers/net/ethernet/mscc/
H A Docelot_mrp.c68 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()
87 ether_addr_copy(filter->key.etype.dmac.value, mrp_test_dmac); in ocelot_populate_mrp_trap_key()
88 ether_addr_copy(filter->key.etype.dmac.mask, mrp_mask); in ocelot_populate_mrp_trap_key()
/linux/arch/arm/boot/dts/renesas/
H A Dr7s72100.dtsi243 dmas = <&dmac 0x2d21>, <&dmac 0x2d22>;
260 dmas = <&dmac 0x2d25>, <&dmac 0x2d26>;
277 dmas = <&dmac 0x2d29>, <&dmac 0x2d2a>;
294 dmas = <&dmac 0x2d2d>, <&dmac 0x2d2e>;
311 dmas = <&dmac 0x2d31>, <&dmac 0x2d32>;
347 dmas = <&dmac 0x2cc9>, <&dmac 0x2cca>;
385 dmac: dma-controller@e8200000 { label
386 compatible = "renesas,r7s72100-dmac",
387 "renesas,rz-dmac";
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfib_lookup.c90 __u8 dmac[6]; member
110 .dmac = DMAC_INIT, },
118 .dmac = DMAC_INIT, },
129 .dmac = DMAC_INIT2, },
148 .dmac = DMAC_INIT2, },
253 .vlan_proto = ETH_P_8021Q, .vlan_id = VLAN_ID, .dmac = DMAC_INIT, },
310 .vlan_proto = ETH_P_8021Q, .vlan_id = VLAN_ID, .dmac = DMAC_INIT2, },
775 ret = memcmp(tests[i].dmac, fib_params->dmac, sizeof(tests[i].dmac)); in test_fib_lookup()
779 mac_str(expected, tests[i].dmac); in test_fib_lookup()
780 mac_str(actual, fib_params->dmac); in test_fib_lookup()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A 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()
255 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) || in reuse_entry()
396 if (!ether_addr_equal(e->dmac, neigh->ha)) in t3_l2t_update()
/linux/drivers/net/wan/
H A Dhd64570.c160 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/net/bridge/netfilter/
H A Debt_among.c136 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()

123456