Lines Matching refs:ib
323 struct lance_init_block *ib = lp->init_block_mem; in lance_init_ring_dvma() local
336 ib->phys_addr [0] = dev->dev_addr [1]; in lance_init_ring_dvma()
337 ib->phys_addr [1] = dev->dev_addr [0]; in lance_init_ring_dvma()
338 ib->phys_addr [2] = dev->dev_addr [3]; in lance_init_ring_dvma()
339 ib->phys_addr [3] = dev->dev_addr [2]; in lance_init_ring_dvma()
340 ib->phys_addr [4] = dev->dev_addr [5]; in lance_init_ring_dvma()
341 ib->phys_addr [5] = dev->dev_addr [4]; in lance_init_ring_dvma()
346 ib->btx_ring [i].tmd0 = leptr; in lance_init_ring_dvma()
347 ib->btx_ring [i].tmd1_hadr = leptr >> 16; in lance_init_ring_dvma()
348 ib->btx_ring [i].tmd1_bits = 0; in lance_init_ring_dvma()
349 ib->btx_ring [i].length = 0xf000; /* The ones required by tmd2 */ in lance_init_ring_dvma()
350 ib->btx_ring [i].misc = 0; in lance_init_ring_dvma()
357 ib->brx_ring [i].rmd0 = leptr; in lance_init_ring_dvma()
358 ib->brx_ring [i].rmd1_hadr = leptr >> 16; in lance_init_ring_dvma()
359 ib->brx_ring [i].rmd1_bits = LE_R1_OWN; in lance_init_ring_dvma()
360 ib->brx_ring [i].length = -RX_BUFF_SIZE | 0xf000; in lance_init_ring_dvma()
361 ib->brx_ring [i].mblength = 0; in lance_init_ring_dvma()
368 ib->rx_len = (LANCE_LOG_RX_BUFFERS << 13) | (leptr >> 16); in lance_init_ring_dvma()
369 ib->rx_ptr = leptr; in lance_init_ring_dvma()
373 ib->tx_len = (LANCE_LOG_TX_BUFFERS << 13) | (leptr >> 16); in lance_init_ring_dvma()
374 ib->tx_ptr = leptr; in lance_init_ring_dvma()
380 struct lance_init_block __iomem *ib = lp->init_block_iomem; in lance_init_ring_pio() local
392 sbus_writeb(dev->dev_addr[1], &ib->phys_addr[0]); in lance_init_ring_pio()
393 sbus_writeb(dev->dev_addr[0], &ib->phys_addr[1]); in lance_init_ring_pio()
394 sbus_writeb(dev->dev_addr[3], &ib->phys_addr[2]); in lance_init_ring_pio()
395 sbus_writeb(dev->dev_addr[2], &ib->phys_addr[3]); in lance_init_ring_pio()
396 sbus_writeb(dev->dev_addr[5], &ib->phys_addr[4]); in lance_init_ring_pio()
397 sbus_writeb(dev->dev_addr[4], &ib->phys_addr[5]); in lance_init_ring_pio()
402 sbus_writew(leptr, &ib->btx_ring [i].tmd0); in lance_init_ring_pio()
403 sbus_writeb(leptr >> 16,&ib->btx_ring [i].tmd1_hadr); in lance_init_ring_pio()
404 sbus_writeb(0, &ib->btx_ring [i].tmd1_bits); in lance_init_ring_pio()
407 sbus_writew(0xf000, &ib->btx_ring [i].length); in lance_init_ring_pio()
408 sbus_writew(0, &ib->btx_ring [i].misc); in lance_init_ring_pio()
415 sbus_writew(leptr, &ib->brx_ring [i].rmd0); in lance_init_ring_pio()
416 sbus_writeb(leptr >> 16,&ib->brx_ring [i].rmd1_hadr); in lance_init_ring_pio()
417 sbus_writeb(LE_R1_OWN, &ib->brx_ring [i].rmd1_bits); in lance_init_ring_pio()
419 &ib->brx_ring [i].length); in lance_init_ring_pio()
420 sbus_writew(0, &ib->brx_ring [i].mblength); in lance_init_ring_pio()
428 &ib->rx_len); in lance_init_ring_pio()
429 sbus_writew(leptr, &ib->rx_ptr); in lance_init_ring_pio()
434 &ib->tx_len); in lance_init_ring_pio()
435 sbus_writew(leptr, &ib->tx_ptr); in lance_init_ring_pio()
510 struct lance_init_block *ib = lp->init_block_mem; in lance_rx_dvma() local
516 for (rd = &ib->brx_ring [entry]; in lance_rx_dvma()
518 rd = &ib->brx_ring [entry]) { in lance_rx_dvma()
550 (unsigned char *)&(ib->rx_buf [entry][0]), in lance_rx_dvma()
569 struct lance_init_block *ib = lp->init_block_mem; in lance_tx_dvma() local
576 struct lance_tx_desc *td = &ib->btx_ring [i]; in lance_tx_dvma()
679 struct lance_init_block __iomem *ib = lp->init_block_iomem; in lance_rx_pio() local
686 for (rd = &ib->brx_ring [entry]; in lance_rx_pio()
688 rd = &ib->brx_ring [entry]) { in lance_rx_pio()
719 lance_piocopy_to_skb(skb, &(ib->rx_buf[entry][0]), len); in lance_rx_pio()
737 struct lance_init_block __iomem *ib = lp->init_block_iomem; in lance_tx_pio() local
744 struct lance_tx_desc __iomem *td = &ib->btx_ring [i]; in lance_tx_pio()
885 struct lance_init_block __iomem *ib = lp->init_block_iomem; in build_fake_packet() local
886 u16 __iomem *packet = (u16 __iomem *) &(ib->tx_buf[entry][0]); in build_fake_packet()
894 sbus_writew((-ETH_ZLEN) | 0xf000, &ib->btx_ring[entry].length); in build_fake_packet()
895 sbus_writew(0, &ib->btx_ring[entry].misc); in build_fake_packet()
896 sbus_writeb(LE_T1_POK|LE_T1_OWN, &ib->btx_ring[entry].tmd1_bits); in build_fake_packet()
898 struct lance_init_block *ib = lp->init_block_mem; in build_fake_packet() local
899 u16 *packet = (u16 *) &(ib->tx_buf[entry][0]); in build_fake_packet()
906 ib->btx_ring[entry].length = (-ETH_ZLEN) | 0xf000; in build_fake_packet()
907 ib->btx_ring[entry].misc = 0; in build_fake_packet()
908 ib->btx_ring[entry].tmd1_bits = (LE_T1_POK|LE_T1_OWN); in build_fake_packet()
940 struct lance_init_block __iomem *ib = lp->init_block_iomem; in lance_open() local
941 sbus_writew(0, &ib->mode); in lance_open()
942 sbus_writel(0, &ib->filter[0]); in lance_open()
943 sbus_writel(0, &ib->filter[1]); in lance_open()
945 struct lance_init_block *ib = lp->init_block_mem; in lance_open() local
946 ib->mode = 0; in lance_open()
947 ib->filter [0] = 0; in lance_open()
948 ib->filter [1] = 0; in lance_open()
1124 struct lance_init_block __iomem *ib = lp->init_block_iomem; in lance_start_xmit() local
1125 sbus_writew((-len) | 0xf000, &ib->btx_ring[entry].length); in lance_start_xmit()
1126 sbus_writew(0, &ib->btx_ring[entry].misc); in lance_start_xmit()
1127 lance_piocopy_from_skb(&ib->tx_buf[entry][0], skb->data, skblen); in lance_start_xmit()
1129 lance_piozero(&ib->tx_buf[entry][skblen], len - skblen); in lance_start_xmit()
1130 sbus_writeb(LE_T1_POK | LE_T1_OWN, &ib->btx_ring[entry].tmd1_bits); in lance_start_xmit()
1132 struct lance_init_block *ib = lp->init_block_mem; in lance_start_xmit() local
1133 ib->btx_ring [entry].length = (-len) | 0xf000; in lance_start_xmit()
1134 ib->btx_ring [entry].misc = 0; in lance_start_xmit()
1135 skb_copy_from_linear_data(skb, &ib->tx_buf [entry][0], skblen); in lance_start_xmit()
1137 memset((char *) &ib->tx_buf [entry][skblen], 0, len - skblen); in lance_start_xmit()
1138 ib->btx_ring [entry].tmd1_bits = (LE_T1_POK | LE_T1_OWN); in lance_start_xmit()
1177 struct lance_init_block __iomem *ib = lp->init_block_iomem; in lance_load_multicast() local
1178 sbus_writel(val, &ib->filter[0]); in lance_load_multicast()
1179 sbus_writel(val, &ib->filter[1]); in lance_load_multicast()
1181 struct lance_init_block *ib = lp->init_block_mem; in lance_load_multicast() local
1182 ib->filter [0] = val; in lance_load_multicast()
1183 ib->filter [1] = val; in lance_load_multicast()
1194 struct lance_init_block __iomem *ib = lp->init_block_iomem; in lance_load_multicast() local
1195 u16 __iomem *mcast_table = (u16 __iomem *) &ib->filter; in lance_load_multicast()
1200 struct lance_init_block *ib = lp->init_block_mem; in lance_load_multicast() local
1201 u16 *mcast_table = (u16 *) &ib->filter; in lance_load_multicast()