• Home
  • Raw
  • Download

Lines Matching refs:ks

98 } ks_str, *ks;  variable
168 ks_wrreg16(dev, KS_IER, ks->rc_ier); in ks_enable_int()
196 ks->sharedbus = (reg_data & CCR_SHARED) == CCR_SHARED; in ks_read_config()
203 ks->bus_width = ENUM_BUS_8BIT; in ks_read_config()
204 ks->extra_byte = 1; in ks_read_config()
206 ks->bus_width = ENUM_BUS_16BIT; in ks_read_config()
207 ks->extra_byte = 2; in ks_read_config()
209 ks->bus_width = ENUM_BUS_32BIT; in ks_read_config()
210 ks->extra_byte = 4; in ks_read_config()
273 u32 r = ks->extra_byte & 0x1; in ks_read_qmu()
274 u32 w = ks->extra_byte - r; in ks_read_qmu()
278 ks_wrreg8(dev, KS_RXQCR, (ks->rc_rxqcr | RXQCR_SDA) & 0xff); in ks_read_qmu()
296 ks_wrreg8(dev, KS_RXQCR, (ks->rc_rxqcr & ~RXQCR_SDA) & 0xff); in ks_read_qmu()
301 struct type_frame_head *frame_hdr = ks->frame_head_info; in ks_rcv()
304 ks->frame_cnt = ks_rdreg16(dev, KS_RXFCTR) >> 8; in ks_rcv()
307 for (i = 0; i < ks->frame_cnt; i++) { in ks_rcv()
315 frame_hdr = ks->frame_head_info; in ks_rcv()
316 while (ks->frame_cnt--) { in ks_rcv()
327 ks_wrreg16(dev, KS_RXQCR, (ks->rc_rxqcr | RXQCR_RRXEF)); in ks_rcv()
382 ks->rc_rxqcr = RXQCR_CMD_CNTL; in ks_setup()
383 ks_wrreg16(dev, KS_RXQCR, ks->rc_rxqcr); in ks_setup()
407 ks->rc_ier = 0x00; in ks_setup_int()
413 ks->rc_ier = (IRQ_LCI | IRQ_TXI | IRQ_RXI); in ks_setup_int()
506 ks->frame_head_info = fr_h_i; in ks8851_mll_init()
517 ks->txh.txw[0] = 0; in ks_write_qmu()
518 ks->txh.txw[1] = cpu_to_le16(len); in ks_write_qmu()
522 ks_wrreg8(dev, KS_RXQCR, (ks->rc_rxqcr | RXQCR_SDA) & 0xff); in ks_write_qmu()
524 ks_outblk(dev, ks->txh.txw, 4); in ks_write_qmu()
528 ks_wrreg8(dev, KS_RXQCR, (ks->rc_rxqcr & ~RXQCR_SDA) & 0xff); in ks_write_qmu()
614 ks = &ks_str; in ks8851_mll_initialize()