Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/net/ethernet/ibm/emac/
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 …]
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 …]
Dcore.c293 mal_poll_disable(dev->mal, &dev->commac); in emac_netif_stop()
314 mal_poll_enable(dev->mal, &dev->commac); in emac_netif_start()
746 mal_disable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_full_tx_reset()
752 mal_enable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_full_tx_reset()
1032 mal_disable_rx_channel(dev->mal, dev->mal_rx_chan); in emac_resize_rx_ring()
1094 mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(new_mtu)); in emac_resize_rx_ring()
1099 mal_enable_rx_channel(dev->mal, dev->mal_rx_chan); in emac_resize_rx_ring()
1199 skb = napi_alloc_skb(&dev->mal->napi, dev->rx_skb_size); in emac_alloc_rx_skb_napi()
1264 mal_poll_add(dev->mal, &dev->commac); in emac_open()
1265 mal_enable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_open()
[all …]
DMakefile8 ibm_emac-y := mal.o core.o phy.o
Ddebug.h33 # define MAL_DBG(d,f,x...) EMAC_DBG(d, mal, f, ##x)
Dcore.h169 struct mal_instance *mal; member
/linux-6.12.1/arch/powerpc/boot/dts/
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 …]
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 …]
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>;
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 …]
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>;
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>;
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>;
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>;
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>;
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>;
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>;
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>;
Dwarp.dts282 mal-device = <&MAL0>;
283 mal-tx-channel = <0 1>;
284 mal-rx-channel = <0>;
Dbluestone.dts310 mal-device = <&MAL0>;
311 mal-tx-channel = <0>;
312 mal-rx-channel = <0>;
Dredwood.dts222 mal-device = <&MAL0>;
223 mal-tx-channel = <0>;
224 mal-rx-channel = <0>;
Dakebono.dts193 mal-device = <&MAL0>;
194 mal-tx-channel = <0>;
195 mal-rx-channel = <0>;
Dicon.dts265 mal-device = <&MAL0>;
266 mal-tx-channel = <0>;
267 mal-rx-channel = <0>;
Dkatmai.dts262 mal-device = <&MAL0>;
263 mal-tx-channel = <0>;
264 mal-rx-channel = <0>;
/linux-6.12.1/Documentation/devicetree/bindings/net/
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