Home
last modified time | relevance | path

Searched refs:mal (Results 1 – 25 of 47) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/ibm/emac/
H A Dmal.c34 int mal_register_commac(struct mal_instance *mal, struct mal_commac *commac) in mal_register_commac() argument
38 spin_lock_irqsave(&mal->lock, flags); in mal_register_commac()
40 MAL_DBG(mal, "reg(%08x, %08x)" NL, in mal_register_commac()
44 if ((mal->tx_chan_mask & commac->tx_chan_mask) || in mal_register_commac()
45 (mal->rx_chan_mask & commac->rx_chan_mask)) { in mal_register_commac()
46 spin_unlock_irqrestore(&mal->lock, flags); in mal_register_commac()
48 mal->index); in mal_register_commac()
52 if (list_empty(&mal->list)) in mal_register_commac()
53 napi_enable(&mal->napi); in mal_register_commac()
54 mal->tx_chan_mask |= commac->tx_chan_mask; in mal_register_commac()
[all …]
H A Dmal.h213 static inline u32 get_mal_dcrn(struct mal_instance *mal, int reg) in get_mal_dcrn() argument
215 return dcr_read(mal->dcr_host, reg); in get_mal_dcrn()
218 static inline void set_mal_dcrn(struct mal_instance *mal, int reg, u32 val) in set_mal_dcrn() argument
220 dcr_write(mal->dcr_host, reg, val); in set_mal_dcrn()
259 int mal_register_commac(struct mal_instance *mal,
261 void mal_unregister_commac(struct mal_instance *mal,
263 int mal_set_rcbs(struct mal_instance *mal, int channel, unsigned long size);
268 int mal_tx_bd_offset(struct mal_instance *mal, int channel);
269 int mal_rx_bd_offset(struct mal_instance *mal, int channel);
271 void mal_enable_tx_channel(struct mal_instance *mal, int channel);
[all …]
H A Dcore.c302 mal_poll_disable(dev->mal, &dev->commac); in emac_netif_stop()
323 mal_poll_enable(dev->mal, &dev->commac); in emac_netif_start()
755 mal_disable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_full_tx_reset()
761 mal_enable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_full_tx_reset()
1043 mal_disable_rx_channel(dev->mal, dev->mal_rx_chan); in emac_resize_rx_ring()
1105 mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(new_mtu)); in emac_resize_rx_ring()
1110 mal_enable_rx_channel(dev->mal, dev->mal_rx_chan); in emac_resize_rx_ring()
1210 skb = napi_alloc_skb(&dev->mal->napi, dev->rx_skb_size); in emac_alloc_rx_skb_napi()
1283 mal_poll_add(dev->mal, &dev->commac); in emac_open()
1284 mal_enable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_open()
[all …]
H A DMakefile8 ibm_emac-y := mal.o core.o phy.o
/openbmc/qemu/hw/ppc/
H A Dppc4xx_devs.c54 Ppc4xxMalState *mal = PPC4xx_MAL(dev); in ppc4xx_mal_reset() local
56 mal->cfg = 0x0007C000; in ppc4xx_mal_reset()
57 mal->esr = 0x00000000; in ppc4xx_mal_reset()
58 mal->ier = 0x00000000; in ppc4xx_mal_reset()
59 mal->rxcasr = 0x00000000; in ppc4xx_mal_reset()
60 mal->rxdeir = 0x00000000; in ppc4xx_mal_reset()
61 mal->rxeobisr = 0x00000000; in ppc4xx_mal_reset()
62 mal->txcasr = 0x00000000; in ppc4xx_mal_reset()
63 mal->txdeir = 0x00000000; in ppc4xx_mal_reset()
64 mal->txeobisr = 0x00000000; in ppc4xx_mal_reset()
[all …]
/openbmc/linux/arch/powerpc/boot/dts/
H A Dtaishan.dts292 mal-device = <&MAL0>;
293 mal-tx-channel = <0>;
294 mal-rx-channel = <0>;
312 mal-device = <&MAL0>;
313 mal-tx-channel = <1>;
314 mal-rx-channel = <1>;
332 mal-device = <&MAL0>;
333 mal-tx-channel = <2>;
334 mal-rx-channel = <2>;
356 mal-device = <&MAL0>;
[all …]
H A Deiger.dts312 mal-device = <&MAL0>;
313 mal-tx-channel = <0>;
314 mal-rx-channel = <0>;
342 mal-device = <&MAL0>;
343 mal-tx-channel = <1>;
344 mal-rx-channel = <8>;
373 mal-device = <&MAL0>;
374 mal-tx-channel = <2>;
375 mal-rx-channel = <16>;
403 mal-device = <&MAL0>;
[all …]
H A Dklondike.dts157 mal-device = <&MAL0>;
158 mal-tx-channel = <0x0>;
159 mal-rx-channel = <0x0>;
187 mal-device = <&MAL0>;
188 mal-tx-channel = <1>;
189 mal-rx-channel = <8>;
H A Darches.dts264 mal-device = <&MAL0>;
265 mal-tx-channel = <0>;
266 mal-rx-channel = <0>;
293 mal-device = <&MAL0>;
294 mal-tx-channel = <1>;
295 mal-rx-channel = <8>;
323 mal-device = <&MAL0>;
324 mal-tx-channel = <2>;
325 mal-rx-channel = <16>;
H A Dglacier.dts349 mal-device = <&MAL0>;
350 mal-tx-channel = <0>;
351 mal-rx-channel = <0>;
379 mal-device = <&MAL0>;
380 mal-tx-channel = <1>;
381 mal-rx-channel = <8>;
410 mal-device = <&MAL0>;
411 mal-tx-channel = <2>;
412 mal-rx-channel = <16>;
440 mal-device = <&MAL0>;
[all …]
H A Dsam440ep.dts225 mal-device = <&MAL0>;
226 mal-tx-channel = <0 1>;
227 mal-rx-channel = <0>;
246 mal-device = <&MAL0>;
247 mal-tx-channel = <2 3>;
248 mal-rx-channel = <1>;
H A Dhotfoot.dts169 mal-device = <&MAL>;
170 mal-tx-channel = <0>;
171 mal-rx-channel = <0>;
190 mal-device = <&MAL>;
191 mal-tx-channel = <2>;
192 mal-rx-channel = <1>;
H A Debony.dts252 mal-device = <&MAL0>;
253 mal-tx-channel = <0 1>;
254 mal-rx-channel = <0>;
271 mal-device = <&MAL0>;
272 mal-tx-channel = <2 3>;
273 mal-rx-channel = <1>;
H A Dyosemite.dts258 mal-device = <&MAL0>;
259 mal-tx-channel = <0 1>;
260 mal-rx-channel = <0>;
278 mal-device = <&MAL0>;
279 mal-tx-channel = <2 3>;
280 mal-rx-channel = <1>;
H A Dbamboo.dts215 mal-device = <&MAL0>;
216 mal-tx-channel = <0 1>;
217 mal-rx-channel = <0>;
235 mal-device = <&MAL0>;
236 mal-tx-channel = <2 3>;
237 mal-rx-channel = <1>;
H A Dobs600.dts257 mal-device = <&MAL0>;
258 mal-tx-channel = <0>;
259 mal-rx-channel = <0>;
287 mal-device = <&MAL0>;
288 mal-tx-channel = <1>;
289 mal-rx-channel = <1>;
H A Drainier.dts270 mal-device = <&MAL0>;
271 mal-tx-channel = <0>;
272 mal-rx-channel = <0>;
299 mal-device = <&MAL0>;
300 mal-tx-channel = <1>;
301 mal-rx-channel = <1>;
H A Dsequoia.dts328 mal-device = <&MAL0>;
329 mal-tx-channel = <0>;
330 mal-rx-channel = <0>;
357 mal-device = <&MAL0>;
358 mal-tx-channel = <1>;
359 mal-rx-channel = <1>;
H A Dmakalu.dts223 mal-device = <&MAL0>;
224 mal-tx-channel = <0>;
225 mal-rx-channel = <0>;
253 mal-device = <&MAL0>;
254 mal-tx-channel = <1>;
255 mal-rx-channel = <1>;
H A Dkilauea.dts277 mal-device = <&MAL0>;
278 mal-tx-channel = <0>;
279 mal-rx-channel = <0>;
307 mal-device = <&MAL0>;
308 mal-tx-channel = <1>;
309 mal-rx-channel = <1>;
H A Dfsp2.dts526 mal-device = <&MAL0>;
527 mal-tx-channel = <0>;
528 mal-rx-channel = <0>;
552 mal-device = <&MAL1>;
553 mal-tx-channel = <0>;
554 mal-rx-channel = <0>;
H A Dacadia.dts138 mal-device = <&MAL0>;
139 mal-tx-channel = <0>;
140 mal-rx-channel = <0>;
H A Dcanyonlands.dts381 mal-device = <&MAL0>;
382 mal-tx-channel = <0>;
383 mal-rx-channel = <0>;
411 mal-device = <&MAL0>;
412 mal-tx-channel = <1>;
413 mal-rx-channel = <8>;
H A Dwarp.dts282 mal-device = <&MAL0>;
283 mal-tx-channel = <0 1>;
284 mal-rx-channel = <0>;
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dibm,emac.txt23 - mal-device : phandle of the associated McMAL node
24 - mal-tx-channel : 1 cell, index of the tx channel on McMAL associated
26 - mal-rx-channel : 1 cell, index of the rx channel on McMAL associated
41 - mal-burst-size : 1 cell, MAL burst size (used to calculate thresholds)
110 mal-device = <&MAL0>;
111 mal-tx-channel = <0 1>;
112 mal-rx-channel = <0>;
135 mal-device = <&MAL0>;
136 mal-tx-channel = <0>;
137 mal-rx-channel = <0>;

12