Home
last modified time | relevance | path

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

12

/linux-3.4.99/drivers/net/ethernet/ibm/emac/
Dmal.c36 int __devinit mal_register_commac(struct mal_instance *mal, in mal_register_commac() argument
41 spin_lock_irqsave(&mal->lock, flags); in mal_register_commac()
43 MAL_DBG(mal, "reg(%08x, %08x)" NL, in mal_register_commac()
47 if ((mal->tx_chan_mask & commac->tx_chan_mask) || in mal_register_commac()
48 (mal->rx_chan_mask & commac->rx_chan_mask)) { in mal_register_commac()
49 spin_unlock_irqrestore(&mal->lock, flags); in mal_register_commac()
51 mal->index); in mal_register_commac()
55 if (list_empty(&mal->list)) in mal_register_commac()
56 napi_enable(&mal->napi); in mal_register_commac()
57 mal->tx_chan_mask |= commac->tx_chan_mask; in mal_register_commac()
[all …]
Dmal.h222 static inline u32 get_mal_dcrn(struct mal_instance *mal, int reg) in get_mal_dcrn() argument
224 return dcr_read(mal->dcr_host, reg); in get_mal_dcrn()
227 static inline void set_mal_dcrn(struct mal_instance *mal, int reg, u32 val) in set_mal_dcrn() argument
229 dcr_write(mal->dcr_host, reg, val); in set_mal_dcrn()
268 int mal_register_commac(struct mal_instance *mal,
270 void mal_unregister_commac(struct mal_instance *mal,
272 int mal_set_rcbs(struct mal_instance *mal, int channel, unsigned long size);
277 int mal_tx_bd_offset(struct mal_instance *mal, int channel);
278 int mal_rx_bd_offset(struct mal_instance *mal, int channel);
280 void mal_enable_tx_channel(struct mal_instance *mal, int channel);
[all …]
Ddebug.c124 static void emac_mal_dump(struct mal_instance *mal) in emac_mal_dump() argument
132 mal->ofdev->dev.of_node->full_name, in emac_mal_dump()
133 get_mal_dcrn(mal, MAL_CFG), get_mal_dcrn(mal, MAL_ESR), in emac_mal_dump()
134 get_mal_dcrn(mal, MAL_IER), in emac_mal_dump()
135 get_mal_dcrn(mal, MAL_TXCASR), get_mal_dcrn(mal, MAL_TXCARR), in emac_mal_dump()
136 get_mal_dcrn(mal, MAL_TXEOBISR), get_mal_dcrn(mal, MAL_TXDEIR), in emac_mal_dump()
137 get_mal_dcrn(mal, MAL_RXCASR), get_mal_dcrn(mal, MAL_RXCARR), in emac_mal_dump()
138 get_mal_dcrn(mal, MAL_RXEOBISR), get_mal_dcrn(mal, MAL_RXDEIR) in emac_mal_dump()
142 for (i = 0; i < mal->num_tx_chans; ++i) { in emac_mal_dump()
145 printk("CTP%d = 0x%08x ", i, get_mal_dcrn(mal, MAL_TXCTPR(i))); in emac_mal_dump()
[all …]
Ddebug.h34 extern void mal_dbg_register(struct mal_instance *mal);
35 extern void mal_dbg_unregister(struct mal_instance *mal);
61 # define MAL_DBG(d,f,x...) EMAC_DBG(d, mal, f, ##x)
Dcore.c310 mal_poll_disable(dev->mal, &dev->commac); in emac_netif_stop()
331 mal_poll_enable(dev->mal, &dev->commac); in emac_netif_start()
719 mal_disable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_full_tx_reset()
725 mal_enable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_full_tx_reset()
978 mal_disable_rx_channel(dev->mal, dev->mal_rx_chan); in emac_resize_rx_ring()
1038 mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(new_mtu)); in emac_resize_rx_ring()
1043 mal_enable_rx_channel(dev->mal, dev->mal_rx_chan); in emac_resize_rx_ring()
1200 mal_poll_add(dev->mal, &dev->commac); in emac_open()
1201 mal_enable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_open()
1202 mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(ndev->mtu)); in emac_open()
[all …]
DMakefile7 ibm_emac-y := mal.o core.o phy.o
/linux-3.4.99/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.dts278 mal-device = <&MAL0>;
279 mal-tx-channel = <0>;
280 mal-rx-channel = <0>;
307 mal-device = <&MAL0>;
308 mal-tx-channel = <1>;
309 mal-rx-channel = <8>;
337 mal-device = <&MAL0>;
338 mal-tx-channel = <2>;
339 mal-rx-channel = <16>;
Dklondike.dts172 mal-device = <&MAL0>;
173 mal-tx-channel = <0x0>;
174 mal-rx-channel = <0x0>;
202 mal-device = <&MAL0>;
203 mal-tx-channel = <1>;
204 mal-rx-channel = <8>;
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>;
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>;
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 …]
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>;
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>;
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>;
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>;
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>;
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>;
Dacadia.dts138 mal-device = <&MAL0>;
139 mal-tx-channel = <0>;
140 mal-rx-channel = <0>;
Dep405.dts139 mal-device = <&MAL>;
140 mal-tx-channel = <0>;
141 mal-rx-channel = <0>;
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>;
Dwalnut.dts138 mal-device = <&MAL>;
139 mal-tx-channel = <0>;
140 mal-rx-channel = <0>;
/linux-3.4.99/Documentation/devicetree/bindings/powerpc/4xx/
Demac.txt24 - mal-device : phandle of the associated McMAL node
25 - mal-tx-channel : 1 cell, index of the tx channel on McMAL associated
27 - mal-rx-channel : 1 cell, index of the rx channel on McMAL associated
42 - mal-burst-size : 1 cell, MAL burst size (used to calculate thresholds)
94 mal-device = <&MAL0>;
95 mal-tx-channel = <0 1>;
96 mal-rx-channel = <0>;

12