Lines Matching refs:seg_reg
145 tcq_wr = readl(dev->seg_reg+TCQ_WR_PTR) & 0xffff; in ia_hack_tcq()
272 writew(0xFFFD, dev->seg_reg+MODE_REG_0); in clear_lockup()
283 writew(T_ONLINE, dev->seg_reg+MODE_REG_0); in clear_lockup()
284 writew(~(TRANSMIT_DONE|TCQ_NOT_EMPTY), dev->seg_reg+SEG_MASK_REG); in clear_lockup()
285 writew(TRANSMIT_DONE, dev->seg_reg+SEG_INTR_STATUS_REG); in clear_lockup()
569 writew((CBR_EN | UBR_EN | ABR_EN | (0x23 << 2)), dev->seg_reg+STPARMS); in ia_cbr_setup()
583 writew((UBR_EN | ABR_EN | (0x23 << 2)), iadev->seg_reg+STPARMS); in ia_cbrVc_close()
1029 tcq_wr_ptr = readw(iadev->seg_reg+TCQ_WR_PTR);
1035 tcq_st_ptr = readw(iadev->seg_reg+TCQ_ST_ADR);
1036 tcq_ed_ptr = readw(iadev->seg_reg+TCQ_ED_ADR);
1664 status = readl(iadev->seg_reg+SEG_INTR_STATUS_REG);
1671 writew(TRANSMIT_DONE, iadev->seg_reg+SEG_INTR_STATUS_REG);
1917 readw(iadev->seg_reg+SEG_MASK_REG));)
1934 writew(0xffff, iadev->seg_reg+SEG_MASK_REG);
1935 writew(0, iadev->seg_reg+MODE_REG_0);
1936 writew(RESET_SEG, iadev->seg_reg+SEG_COMMAND_REG);
1961 writew(TX_DESC_BASE, iadev->seg_reg+SEG_DESC_BASE);
2004 writew(i >> 16, iadev->seg_reg+SEG_QUEUE_BASE);
2007 writew(i, iadev->seg_reg+TCQ_ST_ADR);
2008 writew(i, iadev->seg_reg+TCQ_RD_PTR);
2009 writew(i+iadev->num_tx_desc*sizeof(u_short),iadev->seg_reg+TCQ_WR_PTR);
2012 iadev->seg_reg+TCQ_ED_ADR);
2014 tcq_st_adr = readw(iadev->seg_reg+TCQ_ST_ADR);
2024 writew(i, iadev->seg_reg+PRQ_ST_ADR);
2026 iadev->seg_reg+PRQ_ED_ADR);
2027 writew(i, iadev->seg_reg+PRQ_RD_PTR);
2028 writew(i, iadev->seg_reg+PRQ_WR_PTR);
2031 iadev->ffL.prq_st = readw(iadev->seg_reg+PRQ_ST_ADR) & 0xffff;
2032 iadev->ffL.prq_ed = readw(iadev->seg_reg+PRQ_ED_ADR) & 0xffff;
2033 iadev->ffL.prq_wr = readw(iadev->seg_reg+PRQ_WR_PTR) & 0xffff;
2035 iadev->ffL.tcq_st = readw(iadev->seg_reg+TCQ_ST_ADR) & 0xffff;
2036 iadev->ffL.tcq_ed = readw(iadev->seg_reg+TCQ_ED_ADR) & 0xffff;
2037 iadev->ffL.tcq_rd = readw(iadev->seg_reg+TCQ_RD_PTR) & 0xffff;
2041 prq_st_adr = readw(iadev->seg_reg+PRQ_ST_ADR);
2051 writew(0,iadev->seg_reg+CBR_PTR_BASE);
2055 writew(tmp16,iadev->seg_reg+CBR_PTR_BASE);
2059 readw(iadev->seg_reg+CBR_PTR_BASE));)
2061 writew(tmp16, iadev->seg_reg+CBR_TAB_BEG);
2063 readw(iadev->seg_reg+CBR_TAB_BEG));)
2064 writew(tmp16, iadev->seg_reg+CBR_TAB_END+1); // CBR_PTR;
2066 writew(tmp16, iadev->seg_reg+CBR_TAB_END);
2068 iadev->seg_reg, readw(iadev->seg_reg+CBR_PTR_BASE));)
2070 readw(iadev->seg_reg+CBR_TAB_BEG), readw(iadev->seg_reg+CBR_TAB_END),
2071 readw(iadev->seg_reg+CBR_TAB_END+1));)
2098 writew(vcsize_sel | ((i >> 8) & 0xfff8),iadev->seg_reg+VCT_BASE);
2100 writew((i >> 8) & 0xfffe, iadev->seg_reg+VCTE_BASE);
2102 writew((i & 0xffff) >> 11, iadev->seg_reg+UBR_SBPTR_BASE);
2104 writew((i >> 7) & 0xffff, iadev->seg_reg+UBRWQ_BASE);
2116 writew((i >> 11) & 0xffff, iadev->seg_reg+ABR_SBPTR_BASE);
2118 writew((i >> 7) & 0xffff, iadev->seg_reg+ABRWQ_BASE);
2148 writew(RATE25, iadev->seg_reg+MAXRATE);
2149 writew((UBR_EN | (0x23 << 2)), iadev->seg_reg+STPARMS);
2152 writew(cellrate_to_float(iadev->LineRate),iadev->seg_reg+MAXRATE);
2153 writew((UBR_EN | ABR_EN | (0x23 << 2)), iadev->seg_reg+STPARMS);
2156 writew(0, iadev->seg_reg+IDLEHEADHI);
2157 writew(0, iadev->seg_reg+IDLEHEADLO);
2160 writew(0xaa00, iadev->seg_reg+ABRUBR_ARB);
2169 writew(RM_TYPE_4_0, iadev->seg_reg+RM_TYPE);
2173 writew(MODE_REG_1_VAL, iadev->seg_reg+MODE_REG_1);
2176 writew(T_ONLINE, iadev->seg_reg+MODE_REG_0);
2179 readw(iadev->seg_reg+SEG_INTR_STATUS_REG);
2182 writew(~(TRANSMIT_DONE | TCQ_NOT_EMPTY), iadev->seg_reg+SEG_MASK_REG);
2183 writew(TRANSMIT_DONE, iadev->seg_reg+SEG_INTR_STATUS_REG);
2378 iadev->seg_reg = base + SEG_BASE;
2391 iadev->reg,iadev->seg_reg,iadev->reass_reg,
2422 iadev->tx_cell_cnt += readw(iadev->seg_reg + CELL_CTR_LO_AUTO)&0xffff;
2423 iadev->tx_cell_cnt += (readw(iadev->seg_reg+CELL_CTR_HIGH_AUTO)&0xffff)<<16;
2772 if(put_user((u16)(readl(iadev->seg_reg+i) & 0xffff), tmps)) return -EFAULT;
2800 ((u_int *)ffL)[i] = readl(iadev->seg_reg + i) & 0xffff;
2965 writew(iadev->ffL.tcq_rd, iadev->seg_reg+TCQ_RD_PTR);
3002 writew(TRANSMIT_DONE, iadev->seg_reg+SEG_INTR_STATUS_REG);