Lines Matching +full:0 +full:xffffe0ff
50 group 0 is used for all traffic
51 interrupt queue 0 is used for all interrupts
93 #define HPRINTK(fmt,args...) do { } while (0)
126 CLK_HIGH, /* 0 */
128 CLK_HIGH, /* 0 */
130 CLK_HIGH, /* 0 */
132 CLK_HIGH, /* 0 */
134 CLK_HIGH, /* 0 */
136 CLK_HIGH, /* 0 */
176 #define he_writel(dev, val, reg) do { writel(val, (dev)->membase + (reg)); wmb(); } while (0)
220 #define he_mkcid(dev, vpi, vci) (((vpi << (dev)->vcibits) | vci) & 0x1fff)
225 he_writel_tcm(dev, val, CONFIG_TSRA | (cid << 3) | 0)
227 he_readl_tcm(dev, CONFIG_TSRA | (cid << 3) | 0)
243 * NOTE While the transmit connection is active, bits 23 through 0
270 he_writel_tcm(dev, val, CONFIG_TSRB | (cid << 2) | 0)
283 he_writel_tcm(dev, val, CONFIG_TSRC | (cid << 1) | 0)
302 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 0)
304 he_readl_rcm(dev, 0x00000 | (cid << 3) | 0)
307 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 1)
310 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 2)
313 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 3)
316 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 4)
319 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 5)
322 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 6)
325 he_writel_rcm(dev, val, 0x00000 | (cid << 3) | 7)
356 int err = 0; in he_init_one()
362 if (dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32)) != 0) { in he_init_one()
398 return 0; in he_init_one()
431 unsigned exp = 0; in rate_to_atmf()
433 if (rate == 0) in rate_to_atmf()
434 return 0; in rate_to_atmf()
437 while (rate > 0x3ff) { in rate_to_atmf()
442 return (NONZERO | (exp << 9) | (rate & 0x1ff)); in rate_to_atmf()
452 lbufd_index = 0; in he_init_rx_lbfp0()
457 for (i = 0, lbuf_count = 0; i < he_dev->r0_numbuffs; ++i) { in he_init_rx_lbfp0()
465 lbuf_count = 0; in he_init_rx_lbfp0()
487 for (i = 0, lbuf_count = 0; i < he_dev->r1_numbuffs; ++i) { in he_init_rx_lbfp1()
495 lbuf_count = 0; in he_init_rx_lbfp1()
517 for (i = 0, lbuf_count = 0; i < he_dev->tx_numbuffs; ++i) { in he_init_tx_lbfp()
525 lbuf_count = 0; in he_init_tx_lbfp()
549 he_writel(he_dev, 0, TPDRQ_T); in he_init_tpdrq()
552 return 0; in he_init_tpdrq()
562 for (reg = 0; reg < 0x20; ++reg) in he_init_cs_block()
563 he_writel_mbox(he_dev, 0x0, CS_STTIM0 + reg); in he_init_cs_block()
571 for (reg = 0; reg < 0x10; ++reg) { in he_init_cs_block()
585 he_writel_mbox(he_dev, 0x000800fa, CS_ERTHR0); in he_init_cs_block()
586 he_writel_mbox(he_dev, 0x000c33cb, CS_ERTHR1); in he_init_cs_block()
587 he_writel_mbox(he_dev, 0x0010101b, CS_ERTHR2); in he_init_cs_block()
588 he_writel_mbox(he_dev, 0x00181dac, CS_ERTHR3); in he_init_cs_block()
589 he_writel_mbox(he_dev, 0x00280600, CS_ERTHR4); in he_init_cs_block()
592 he_writel_mbox(he_dev, 0x023de8b3, CS_ERCTL0); in he_init_cs_block()
593 he_writel_mbox(he_dev, 0x1801, CS_ERCTL1); in he_init_cs_block()
594 he_writel_mbox(he_dev, 0x68b3, CS_ERCTL2); in he_init_cs_block()
595 he_writel_mbox(he_dev, 0x1280, CS_ERSTAT0); in he_init_cs_block()
596 he_writel_mbox(he_dev, 0x68b3, CS_ERSTAT1); in he_init_cs_block()
597 he_writel_mbox(he_dev, 0x14585, CS_RTFWR); in he_init_cs_block()
599 he_writel_mbox(he_dev, 0x4680, CS_RTATR); in he_init_cs_block()
602 he_writel_mbox(he_dev, 0x00159ece, CS_TFBSET); in he_init_cs_block()
603 he_writel_mbox(he_dev, 0x68b3, CS_WCRMAX); in he_init_cs_block()
604 he_writel_mbox(he_dev, 0x5eb3, CS_WCRMIN); in he_init_cs_block()
605 he_writel_mbox(he_dev, 0xe8b3, CS_WCRINC); in he_init_cs_block()
606 he_writel_mbox(he_dev, 0xdeb3, CS_WCRDEC); in he_init_cs_block()
607 he_writel_mbox(he_dev, 0x68b3, CS_WCRCEIL); in he_init_cs_block()
610 he_writel_mbox(he_dev, 0x5, CS_OTPPER); in he_init_cs_block()
611 he_writel_mbox(he_dev, 0x14, CS_OTWPER); in he_init_cs_block()
614 he_writel_mbox(he_dev, 0x000400ea, CS_ERTHR0); in he_init_cs_block()
615 he_writel_mbox(he_dev, 0x00063388, CS_ERTHR1); in he_init_cs_block()
616 he_writel_mbox(he_dev, 0x00081018, CS_ERTHR2); in he_init_cs_block()
617 he_writel_mbox(he_dev, 0x000c1dac, CS_ERTHR3); in he_init_cs_block()
618 he_writel_mbox(he_dev, 0x0014051a, CS_ERTHR4); in he_init_cs_block()
621 he_writel_mbox(he_dev, 0x0235e4b1, CS_ERCTL0); in he_init_cs_block()
622 he_writel_mbox(he_dev, 0x4701, CS_ERCTL1); in he_init_cs_block()
623 he_writel_mbox(he_dev, 0x64b1, CS_ERCTL2); in he_init_cs_block()
624 he_writel_mbox(he_dev, 0x1280, CS_ERSTAT0); in he_init_cs_block()
625 he_writel_mbox(he_dev, 0x64b1, CS_ERSTAT1); in he_init_cs_block()
626 he_writel_mbox(he_dev, 0xf424, CS_RTFWR); in he_init_cs_block()
628 he_writel_mbox(he_dev, 0x4680, CS_RTATR); in he_init_cs_block()
631 he_writel_mbox(he_dev, 0x000563b7, CS_TFBSET); in he_init_cs_block()
632 he_writel_mbox(he_dev, 0x64b1, CS_WCRMAX); in he_init_cs_block()
633 he_writel_mbox(he_dev, 0x5ab1, CS_WCRMIN); in he_init_cs_block()
634 he_writel_mbox(he_dev, 0xe4b1, CS_WCRINC); in he_init_cs_block()
635 he_writel_mbox(he_dev, 0xdab1, CS_WCRDEC); in he_init_cs_block()
636 he_writel_mbox(he_dev, 0x64b1, CS_WCRCEIL); in he_init_cs_block()
639 he_writel_mbox(he_dev, 0x6, CS_OTPPER); in he_init_cs_block()
640 he_writel_mbox(he_dev, 0x1e, CS_OTWPER); in he_init_cs_block()
643 he_writel_mbox(he_dev, 0x8, CS_OTTLIM); in he_init_cs_block()
645 for (reg = 0; reg < 0x8; ++reg) in he_init_cs_block()
646 he_writel_mbox(he_dev, 0x0, CS_HGRRT0 + reg); in he_init_cs_block()
666 for (reg = 0x0; reg < 0xff; ++reg) in he_init_cs_block_rcm()
667 he_writel_rcm(he_dev, 0x0, CONFIG_RCMABR + reg); in he_init_cs_block_rcm()
671 for (reg = 0x100; reg < 0x1ff; ++reg) in he_init_cs_block_rcm()
672 he_writel_rcm(he_dev, 0x0, CONFIG_RCMABR + reg); in he_init_cs_block_rcm()
692 for (j = 0; j < 16; j++) { in he_init_cs_block_rcm()
693 (*rategrid)[0][j] = rate; in he_init_cs_block_rcm()
698 for (j = 0; j < 16; j++) in he_init_cs_block_rcm()
712 rate_atmf = 0; in he_init_cs_block_rcm()
713 while (rate_atmf < 0x400) { in he_init_cs_block_rcm()
714 man = (rate_atmf & 0x1f) << 4; in he_init_cs_block_rcm()
726 for (i = 255; i > 0; i--) in he_init_cs_block_rcm()
751 buf = 0; in he_init_cs_block_rcm()
757 #define RTGTBL_OFFSET 0x400 in he_init_cs_block_rcm()
759 if (rate_atmf & 0x1) in he_init_cs_block_rcm()
767 return 0; in he_init_cs_block_rcm()
776 he_writel(he_dev, 0x0, G0_RBPS_S + (group * 32)); in he_init_group()
777 he_writel(he_dev, 0x0, G0_RBPS_T + (group * 32)); in he_init_group()
778 he_writel(he_dev, 0x0, G0_RBPS_QI + (group * 32)); in he_init_group()
779 he_writel(he_dev, RBP_THRESH(0x1) | RBP_QSIZE(0x0), in he_init_group()
803 CONFIG_RBPL_BUFSIZE, 64, 0); in he_init_group()
819 for (i = 0; i < CONFIG_RBPL_SIZE; ++i) { in he_init_group()
858 he_writel(he_dev, 0, G0_RBRQ_H + (group * 16)); in he_init_group()
867 he_writel(he_dev, RBRQ_TIME(0) | RBRQ_COUNT(1), in he_init_group()
883 he_writel(he_dev, 0, G0_TBRQ_H + (group * 16)); in he_init_group()
887 return 0; in he_init_group()
926 *he_dev->irq_tailoffset = 0; in he_init_irq()
930 for (i = 0; i < CONFIG_IRQ_SIZE; ++i) in he_init_irq()
938 he_writel(he_dev, 0x0, IRQ0_DATA); in he_init_irq()
940 he_writel(he_dev, 0x0, IRQ1_BASE); in he_init_irq()
941 he_writel(he_dev, 0x0, IRQ1_HEAD); in he_init_irq()
942 he_writel(he_dev, 0x0, IRQ1_CNTL); in he_init_irq()
943 he_writel(he_dev, 0x0, IRQ1_DATA); in he_init_irq()
945 he_writel(he_dev, 0x0, IRQ2_BASE); in he_init_irq()
946 he_writel(he_dev, 0x0, IRQ2_HEAD); in he_init_irq()
947 he_writel(he_dev, 0x0, IRQ2_CNTL); in he_init_irq()
948 he_writel(he_dev, 0x0, IRQ2_DATA); in he_init_irq()
950 he_writel(he_dev, 0x0, IRQ3_BASE); in he_init_irq()
951 he_writel(he_dev, 0x0, IRQ3_HEAD); in he_init_irq()
952 he_writel(he_dev, 0x0, IRQ3_CNTL); in he_init_irq()
953 he_writel(he_dev, 0x0, IRQ3_DATA); in he_init_irq()
957 he_writel(he_dev, 0x0, GRP_10_MAP); in he_init_irq()
958 he_writel(he_dev, 0x0, GRP_32_MAP); in he_init_irq()
959 he_writel(he_dev, 0x0, GRP_54_MAP); in he_init_irq()
960 he_writel(he_dev, 0x0, GRP_76_MAP); in he_init_irq()
970 return 0; in he_init_irq()
990 membase = pci_resource_start(pci_dev, 0); in he_start()
991 HPRINTK("membase = 0x%lx irq = %d.\n", membase, pci_dev->irq); in he_start()
998 if (pci_read_config_dword(pci_dev, GEN_CNTL_0, &gen_cntl_0) != 0) { in he_start()
1003 if (pci_write_config_dword(pci_dev, GEN_CNTL_0, gen_cntl_0) != 0) { in he_start()
1008 if (pci_read_config_word(pci_dev, PCI_COMMAND, &command) != 0) { in he_start()
1014 if (pci_write_config_word(pci_dev, PCI_COMMAND, command) != 0) { in he_start()
1057 he_writel(he_dev, 0x0, RESET_CNTL); in he_start()
1058 he_writel(he_dev, 0xff, RESET_CNTL); in he_start()
1062 if ((status & BOARD_RST_STATUS) == 0) { in he_start()
1085 for (i = 0; i < PROD_ID_LEN; ++i) in he_start()
1090 for (i = 0; i < 6; ++i) in he_start()
1094 he_dev->media & 0x40 ? "SM" : "MM", dev->esi); in he_start()
1113 he_writel(he_dev, he_is622(he_dev) ? LB_64_ENB : 0x0, SDRAM_CTL); in he_start()
1116 lb_swap |= SWAP_RNUM_MAX(0xf); in he_start()
1120 if ((err = he_init_irq(he_dev)) != 0) in he_start()
1142 * 0 ____________1023 bytes 0 _______________________2047 bytes in he_start()
1191 he_dev->r0_startrow = 0; in he_start()
1225 SLICE_X(0x2) | ARB_RNUM_MAX(0xf) | TH_PRTY(0x3) | in he_start()
1226 RH_PRTY(0x3) | TL_PRTY(0x2) | RL_PRTY(0x1) | in he_start()
1227 (he_is622(he_dev) ? BUS_MULTI(0x28) : BUS_MULTI(0x46)) | in he_start()
1228 (he_is622(he_dev) ? NET_PREF(0x50) : NET_PREF(0x8c)), in he_start()
1232 (he_is622(he_dev) ? (REF_RATE(0x384) | WIDE_DATA) : REF_RATE(0x150)), in he_start()
1236 (he_is622(he_dev) ? RM_BANK_WAIT(1) : RM_BANK_WAIT(0)) | in he_start()
1245 (he_is622(he_dev) ? UT_RD_DELAY(8) : UT_RD_DELAY(0)) | in he_start()
1246 (he_is622(he_dev) ? RC_UT_MODE(0) : RC_UT_MODE(1)) | in he_start()
1250 he_writel(he_dev, DRF_THRESH(0x20) | in he_start()
1251 (he_is622(he_dev) ? TX_UT_MODE(0) : TX_UT_MODE(1)) | in he_start()
1255 he_writel(he_dev, 0x0, TXAAL5_PROTO); in he_start()
1263 for (i = 0; i < TCM_MEM_SIZE; ++i) in he_start()
1264 he_writel_tcm(he_dev, 0, i); in he_start()
1266 for (i = 0; i < RCM_MEM_SIZE; ++i) in he_start()
1267 he_writel_rcm(he_dev, 0, i); in he_start()
1273 * 0x0 ___________________ in he_start()
1279 * 0x8000|___________________| in he_start()
1282 * 0xc000|___________________| in he_start()
1285 * 0xe000|___________________| in he_start()
1287 * 0xf000|___________________| in he_start()
1289 * 0x10000|___________________| in he_start()
1295 * 0x1ffff|___________________| in he_start()
1310 * 0x0 ___________________ in he_start()
1316 * 0x8000|___________________| in he_start()
1322 * 0xd000|___________________| in he_start()
1325 * 0xe000|___________________| in he_start()
1331 * 0xffff|___________________| in he_start()
1334 he_writel(he_dev, 0x08000, RCMLBM_BA); in he_start()
1335 he_writel(he_dev, 0x0e000, RCMRSRB_BA); in he_start()
1336 he_writel(he_dev, 0x0d800, RCMABR_BA); in he_start()
1343 he_writel(he_dev, 0x0, RLBC_H); in he_start()
1344 he_writel(he_dev, 0x0, RLBC_T); in he_start()
1345 he_writel(he_dev, 0x0, RLBC_H2); in he_start()
1352 he_writel(he_dev, he_is622(he_dev) ? 0x104780 : 0x800, UBUFF_BA); in he_start()
1357 he_writel(he_dev, 0x000f, G0_INMQ_S); in he_start()
1358 he_writel(he_dev, 0x200f, G0_INMQ_L); in he_start()
1360 he_writel(he_dev, 0x001f, G1_INMQ_S); in he_start()
1361 he_writel(he_dev, 0x201f, G1_INMQ_L); in he_start()
1363 he_writel(he_dev, 0x002f, G2_INMQ_S); in he_start()
1364 he_writel(he_dev, 0x202f, G2_INMQ_L); in he_start()
1366 he_writel(he_dev, 0x003f, G3_INMQ_S); in he_start()
1367 he_writel(he_dev, 0x203f, G3_INMQ_L); in he_start()
1369 he_writel(he_dev, 0x004f, G4_INMQ_S); in he_start()
1370 he_writel(he_dev, 0x204f, G4_INMQ_L); in he_start()
1372 he_writel(he_dev, 0x005f, G5_INMQ_S); in he_start()
1373 he_writel(he_dev, 0x205f, G5_INMQ_L); in he_start()
1375 he_writel(he_dev, 0x006f, G6_INMQ_S); in he_start()
1376 he_writel(he_dev, 0x206f, G6_INMQ_L); in he_start()
1378 he_writel(he_dev, 0x007f, G7_INMQ_S); in he_start()
1379 he_writel(he_dev, 0x207f, G7_INMQ_L); in he_start()
1381 he_writel(he_dev, 0x0000, G0_INMQ_S); in he_start()
1382 he_writel(he_dev, 0x0008, G0_INMQ_L); in he_start()
1384 he_writel(he_dev, 0x0001, G1_INMQ_S); in he_start()
1385 he_writel(he_dev, 0x0009, G1_INMQ_L); in he_start()
1387 he_writel(he_dev, 0x0002, G2_INMQ_S); in he_start()
1388 he_writel(he_dev, 0x000a, G2_INMQ_L); in he_start()
1390 he_writel(he_dev, 0x0003, G3_INMQ_S); in he_start()
1391 he_writel(he_dev, 0x000b, G3_INMQ_L); in he_start()
1393 he_writel(he_dev, 0x0004, G4_INMQ_S); in he_start()
1394 he_writel(he_dev, 0x000c, G4_INMQ_L); in he_start()
1396 he_writel(he_dev, 0x0005, G5_INMQ_S); in he_start()
1397 he_writel(he_dev, 0x000d, G5_INMQ_L); in he_start()
1399 he_writel(he_dev, 0x0006, G6_INMQ_S); in he_start()
1400 he_writel(he_dev, 0x000e, G6_INMQ_L); in he_start()
1402 he_writel(he_dev, 0x0007, G7_INMQ_S); in he_start()
1403 he_writel(he_dev, 0x000f, G7_INMQ_L); in he_start()
1408 he_writel(he_dev, 0x0, MCC); in he_start()
1409 he_writel(he_dev, 0x0, OEC); in he_start()
1410 he_writel(he_dev, 0x0, DCC); in he_start()
1411 he_writel(he_dev, 0x0, CEC); in he_start()
1419 if (he_init_cs_block_rcm(he_dev) < 0) in he_start()
1427 sizeof(struct he_tpd), TPD_ALIGNMENT, 0); in he_start()
1435 if (he_init_group(he_dev, 0) != 0) in he_start()
1439 he_writel(he_dev, 0x0, G0_RBPS_S + (group * 32)); in he_start()
1440 he_writel(he_dev, 0x0, G0_RBPS_T + (group * 32)); in he_start()
1441 he_writel(he_dev, 0x0, G0_RBPS_QI + (group * 32)); in he_start()
1442 he_writel(he_dev, RBP_THRESH(0x1) | RBP_QSIZE(0x0), in he_start()
1445 he_writel(he_dev, 0x0, G0_RBPL_S + (group * 32)); in he_start()
1446 he_writel(he_dev, 0x0, G0_RBPL_T + (group * 32)); in he_start()
1447 he_writel(he_dev, RBP_THRESH(0x1) | RBP_QSIZE(0x0), in he_start()
1449 he_writel(he_dev, 0x0, G0_RBPL_BS + (group * 32)); in he_start()
1451 he_writel(he_dev, 0x0, G0_RBRQ_ST + (group * 16)); in he_start()
1452 he_writel(he_dev, 0x0, G0_RBRQ_H + (group * 16)); in he_start()
1453 he_writel(he_dev, RBRQ_THRESH(0x1) | RBRQ_SIZE(0x0), in he_start()
1455 he_writel(he_dev, 0x0, G0_RBRQ_I + (group * 16)); in he_start()
1457 he_writel(he_dev, 0x0, G0_TBRQ_B_T + (group * 16)); in he_start()
1458 he_writel(he_dev, 0x0, G0_TBRQ_H + (group * 16)); in he_start()
1459 he_writel(he_dev, TBRQ_THRESH(0x1), in he_start()
1461 he_writel(he_dev, 0x0, G0_TBRQ_S + (group * 16)); in he_start()
1504 for (i = 0; i < HE_NUM_CS_STPER; ++i) { in he_start()
1505 he_dev->cs_stper[i].inuse = 0; in he_start()
1508 he_dev->total_bw = 0; in he_start()
1516 he_dev->irq_peak = 0; in he_start()
1517 he_dev->rbrq_peak = 0; in he_start()
1518 he_dev->rbpl_peak = 0; in he_start()
1519 he_dev->tbrq_peak = 0; in he_start()
1523 return 0; in he_start()
1619 tpd->reserved = 0; in __alloc_tpd()
1620 tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0; in __alloc_tpd()
1621 tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0; in __alloc_tpd()
1622 tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0; in __alloc_tpd()
1653 int pdus_assembled = 0; in he_service_rbrq()
1654 int updated = 0; in he_service_rbrq()
1660 HPRINTK("%p rbrq%d 0x%x len=%d cid=0x%x %s%s%s%s%s%s\n", in he_service_rbrq()
1681 hprintk("vcc/he_vcc == NULL (cid 0x%x)\n", cid); in he_service_rbrq()
1692 hprintk("HBUF_ERR! (cid 0x%x)\n", cid); in he_service_rbrq()
1704 HPRINTK("wake_up rx_waitq (cid 0x%x)\n", cid); in he_service_rbrq()
1731 if (rx_skb_reserve > 0) in he_service_rbrq()
1751 if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { in he_service_rbrq()
1762 …hprintk("pdu_len (%d) > vcc->qos.rxtp.max_sdu (%d)! cid 0x%x\n", skb->len, vcc->qos.rxtp.max_sdu,… in he_service_rbrq()
1780 he_vcc->pdu_len = 0; in he_service_rbrq()
1808 int slot, updated = 0; in he_service_tbrq()
1816 HPRINTK("tbrq%d 0x%x%s%s\n", in he_service_tbrq()
1837 HPRINTK("wake_up(tx_waitq) cid 0x%x\n", in he_service_tbrq()
1845 for (slot = 0; slot < TPD_MAXIOV; ++slot) { in he_service_tbrq()
1888 int moved = 0; in he_service_rbpl()
1933 int updated = 0; in he_tasklet()
1935 HPRINTK("tasklet (0x%lx)\n", data); in he_tasklet()
1979 hprintk("abort 0x%x\n", he_readl(he_dev, ABORT_ADDR)); in he_tasklet()
1986 HPRINTK("isw not updated 0x%x\n", he_dev->irq_head->isw); in he_tasklet()
1988 he_service_rbrq(he_dev, 0); in he_tasklet()
1989 he_service_rbpl(he_dev, 0); in he_tasklet()
1990 he_service_tbrq(he_dev, 0); in he_tasklet()
1993 hprintk("bad isw 0x%x?\n", he_dev->irq_head->isw); in he_tasklet()
2019 int handled = 0; in he_irq_handler()
2057 HPRINTK("tpdrq %p cid 0x%x -> tpdrq_tail %p\n", in __enqueue_tpd()
2079 hprintk("tpdrq full (cid 0x%x)\n", cid); in __enqueue_tpd()
2086 for (slot = 0; slot < TPD_MAXIOV; ++slot) { in __enqueue_tpd()
2123 int err = 0; in he_open()
2129 return 0; in he_open()
2144 he_vcc->pdu_len = 0; in he_open()
2156 if (pcr_goal == 0) in he_open()
2158 if (pcr_goal < 0) /* means round down, technically */ in he_open()
2161 HPRINTK("open tx cid 0x%x pcr_goal %d\n", cid, pcr_goal); in he_open()
2181 if (TSR0_CONN_STATE(tsr0) != 0) { in he_open()
2182 hprintk("cid 0x%x not idle (tsr0 = 0x%x)\n", cid, tsr0); in he_open()
2191 tsr0 = TSR0_UBR | TSR0_GROUP(0) | tsr0_aal | in he_open()
2209 for (reg = 0; reg < HE_NUM_CS_STPER; ++reg) in he_open()
2210 if (he_dev->cs_stper[reg].inuse == 0 || in he_open()
2236 tsr0 = TSR0_CBR | TSR0_GROUP(0) | tsr0_aal | in he_open()
2249 he_writel_tsr1(he_dev, TSR1_MCR(rate_to_atmf(0)) | in he_open()
2254 he_writel_tsr3(he_dev, 0x0, cid); in he_open()
2255 he_writel_tsr5(he_dev, 0x0, cid); in he_open()
2256 he_writel_tsr6(he_dev, 0x0, cid); in he_open()
2257 he_writel_tsr7(he_dev, 0x0, cid); in he_open()
2258 he_writel_tsr8(he_dev, 0x0, cid); in he_open()
2259 he_writel_tsr10(he_dev, 0x0, cid); in he_open()
2260 he_writel_tsr11(he_dev, 0x0, cid); in he_open()
2261 he_writel_tsr12(he_dev, 0x0, cid); in he_open()
2262 he_writel_tsr13(he_dev, 0x0, cid); in he_open()
2263 he_writel_tsr14(he_dev, 0x0, cid); in he_open()
2271 HPRINTK("open rx cid 0x%x (rx_waitq %p)\n", cid, in he_open()
2292 hprintk("cid 0x%x not idle (rsr0 = 0x%x)\n", cid, rsr0); in he_open()
2297 rsr1 = RSR1_GROUP(0) | RSR1_RBPL_ONLY; in he_open()
2298 rsr4 = RSR4_GROUP(0) | RSR4_RBPL_ONLY; in he_open()
2300 (RSR0_EPD_ENABLE|RSR0_PPD_ENABLE) : 0; in he_open()
2303 if (vpi == 0 && vci >= ATM_NOT_RSV_VCI) in he_open()
2340 int retry = 0, sleep = 1, tx_inuse; in he_close()
2350 HPRINTK("close rx cid 0x%x\n", cid); in he_close()
2358 HPRINTK("close cid 0x%x RCC_BUSY\n", cid); in he_close()
2375 if (timeout == 0) in he_close()
2376 hprintk("close rx timeout cid 0x%x\n", cid); in he_close()
2378 HPRINTK("close rx cid 0x%x complete\n", cid); in he_close()
2386 HPRINTK("close tx cid 0x%x\n", cid); in he_close()
2407 hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse); in he_close()
2419 | TSR1_PCR(0), cid); in he_close()
2429 hprintk("close tx he_alloc_tpd failed cid 0x%x\n", cid); in he_close()
2449 if (timeout == 0) { in he_close()
2450 hprintk("close tx timeout cid 0x%x\n", cid); in he_close()
2455 HPRINTK("close tx cid 0x%x !TSR4_SESSION_ENDED (tsr4 = 0x%x)\n", cid, tsr4); in he_close()
2459 while (TSR0_CONN_STATE(tsr0 = he_readl_tsr0(he_dev, cid)) != 0) { in he_close()
2460 HPRINTK("close tx cid 0x%x TSR0_CONN_STATE != 0 (tsr0 = 0x%x)\n", cid, tsr0); in he_close()
2471 if (he_dev->cs_stper[reg].inuse == 0) in he_close()
2472 hprintk("cs_stper[%d].inuse = 0!\n", reg); in he_close()
2480 HPRINTK("close tx cid 0x%x complete\n", cid); in he_close()
2496 int i, slot = 0; in he_send()
2499 #define HE_TPD_BUFSIZE 0xffff in he_send()
2559 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in he_send()
2580 slot = 0; in he_send()
2584 frag, 0, skb_frag_size(frag), DMA_TO_DEVICE); in he_send()
2607 return 0; in he_send()
2616 int err = 0; in he_ioctl()
2654 if (err == 0) in he_ioctl()
2678 HPRINTK("phy_put(val 0x%x, addr 0x%lx)\n", val, addr); in he_phy_put()
2698 HPRINTK("phy_get(addr 0x%lx) =0x%x\n", addr, reg); in he_phy_get()
2713 static long mcc = 0, oec = 0, dcc = 0, cec = 0; in he_proc_read()
2722 he_dev->prod_id, he_dev->media & 0x40 ? "SM" : "MM"); in he_proc_read()
2760 if (inuse < 0) in he_proc_read()
2772 for (i = 0; i < HE_NUM_CS_STPER; ++i) in he_proc_read()
2782 return 0; in he_proc_read()
2789 u32 val = 0, tmp_read = 0; in read_prom_byte()
2790 int i, j = 0; in read_prom_byte()
2791 u8 byte_read = 0; in read_prom_byte()
2794 val &= 0xFFFFE0FF; in read_prom_byte()
2797 val |= 0x800; in read_prom_byte()
2801 for (i = 0; i < ARRAY_SIZE(readtab); i++) { in read_prom_byte()
2807 for (i = 7; i >= 0; i--) { in read_prom_byte()
2814 j = 0; in read_prom_byte()
2816 val &= 0xFFFFF7FF; /* Turn off write enable */ in read_prom_byte()
2820 for (i = 7; i >= 0; i--) { in read_prom_byte()
2839 module_param(disable64, bool, 0);
2841 module_param(nvpibits, short, 0);
2842 MODULE_PARM_DESC(nvpibits, "numbers of bits for vpi (default 0)");
2843 module_param(nvcibits, short, 0);
2845 module_param(rx_skb_reserve, short, 0);
2847 module_param(irq_coalesce, bool, 0);
2849 module_param(sdh, bool, 0);
2850 MODULE_PARM_DESC(sdh, "use SDH framing (default 0)");
2853 { PCI_VDEVICE(FORE, PCI_DEVICE_ID_FORE_HE), 0 },
2854 { 0, }