qbase 238 drivers/crypto/ccp/ccp-dev-v5.c mP = (u32 *) &cmd_q->qbase[cmd_q->qidx]; qbase 819 drivers/crypto/ccp/ccp-dev-v5.c cmd_q->qbase = dmam_alloc_coherent(dev, cmd_q->qsize, qbase 822 drivers/crypto/ccp/ccp-dev-v5.c if (!cmd_q->qbase) { qbase 270 drivers/crypto/ccp/ccp-dev.h struct ccp5_desc *qbase; qbase 1368 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c struct sge_qbase_reg_field *qbase, qbase 1374 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c buff = qbase->pf_data_value[func]; qbase 1376 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c buff = qbase->vf_data_value[func]; qbase 1383 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c t4_write_reg(padap, qbase->reg_addr, func); qbase 1385 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c *buff = t4_read_reg(padap, qbase->reg_data[i]); qbase 132 drivers/net/ethernet/chelsio/cxgb4/srq.c e->qbase = SRQT_QBASE_G(be32_to_cpu(rpl->qlen_qbase)); qbase 50 drivers/net/ethernet/chelsio/cxgb4/srq.h u32 qbase; qbase 91 drivers/scsi/pcmcia/qlogic_stub.c struct pcmcia_device *link, int qbase, int qlirq) qbase 98 drivers/scsi/pcmcia/qlogic_stub.c qltyp = qlogicfas408_get_chip_type(qbase, INT_TYPE); qbase 103 drivers/scsi/pcmcia/qlogic_stub.c qlogicfas408_setup(qbase, qinitid, INT_TYPE); qbase 109 drivers/scsi/pcmcia/qlogic_stub.c shost->io_port = qbase; qbase 117 drivers/scsi/pcmcia/qlogic_stub.c priv->qbase = qbase; qbase 127 drivers/scsi/pcmcia/qlogic_stub.c qltyp, qbase, qlirq, QL_TURBO_PDMA); qbase 51 drivers/scsi/qlogicfas.c int qbase, qbase 68 drivers/scsi/qlogicfas.c if (!qbase || qlirq == -1) qbase 71 drivers/scsi/qlogicfas.c if (!request_region(qbase, 0x10, qlogicfas_name)) { qbase 73 drivers/scsi/qlogicfas.c qbase); qbase 77 drivers/scsi/qlogicfas.c if (!qlogicfas408_detect(qbase, INT_TYPE)) { qbase 80 drivers/scsi/qlogicfas.c qbase); qbase 85 drivers/scsi/qlogicfas.c " IRQ %d\n", qlogicfas_name, qbase, qlirq); qbase 87 drivers/scsi/qlogicfas.c qltyp = qlogicfas408_get_chip_type(qbase, INT_TYPE); qbase 92 drivers/scsi/qlogicfas.c qlogicfas408_setup(qbase, qinitid, INT_TYPE); qbase 98 drivers/scsi/qlogicfas.c hreg->io_port = qbase; qbase 103 drivers/scsi/qlogicfas.c priv->qbase = qbase; qbase 111 drivers/scsi/qlogicfas.c qltyp, qbase, qlirq, QL_TURBO_PDMA); qbase 131 drivers/scsi/qlogicfas.c release_region(qbase, 0x10); qbase 81 drivers/scsi/qlogicfas408.c int qbase = priv->qbase; qbase 84 drivers/scsi/qlogicfas408.c x = inb(qbase + 0xd); qbase 86 drivers/scsi/qlogicfas408.c outb(3, qbase + 3); /* reset SCSI */ qbase 87 drivers/scsi/qlogicfas408.c outb(2, qbase + 3); /* reset chip */ qbase 99 drivers/scsi/qlogicfas408.c int qbase = priv->qbase; qbase 105 drivers/scsi/qlogicfas408.c if (reqlen >= 128 && (inb(qbase + 8) & 2)) { /* full */ qbase 106 drivers/scsi/qlogicfas408.c insl(qbase + 4, request, 32); qbase 111 drivers/scsi/qlogicfas408.c if ((j = inb(qbase + 8)) & 4) qbase 113 drivers/scsi/qlogicfas408.c insl(qbase + 4, request, 21); qbase 117 drivers/scsi/qlogicfas408.c if (reqlen >= 44 && (inb(qbase + 8) & 8)) { /* 1/3 */ qbase 118 drivers/scsi/qlogicfas408.c insl(qbase + 4, request, 11); qbase 130 drivers/scsi/qlogicfas408.c while (reqlen && !((j = inb(qbase + 8)) & 0x10)) qbase 132 drivers/scsi/qlogicfas408.c *request++ = inb(qbase + 4); qbase 136 drivers/scsi/qlogicfas408.c j = inb(qbase + 8); qbase 142 drivers/scsi/qlogicfas408.c if (reqlen >= 128 && inb(qbase + 8) & 0x10) { /* empty */ qbase 143 drivers/scsi/qlogicfas408.c outsl(qbase + 4, request, 32); qbase 148 drivers/scsi/qlogicfas408.c if (!((j = inb(qbase + 8)) & 8)) { qbase 149 drivers/scsi/qlogicfas408.c outsl(qbase + 4, request, 21); qbase 153 drivers/scsi/qlogicfas408.c if (reqlen >= 40 && !(inb(qbase + 8) & 4)) { /* 2/3 */ qbase 154 drivers/scsi/qlogicfas408.c outsl(qbase + 4, request, 10); qbase 164 drivers/scsi/qlogicfas408.c while (reqlen && !((j = inb(qbase + 8)) & 2)) qbase 166 drivers/scsi/qlogicfas408.c outb(*request++, qbase + 4); qbase 170 drivers/scsi/qlogicfas408.c j = inb(qbase + 8); qbase 174 drivers/scsi/qlogicfas408.c return inb(qbase + 8) & 0xc0; qbase 184 drivers/scsi/qlogicfas408.c int qbase = priv->qbase; qbase 190 drivers/scsi/qlogicfas408.c !((k = inb(qbase + 4)) & 0xe0)) { qbase 215 drivers/scsi/qlogicfas408.c int qbase = priv->qbase; qbase 224 drivers/scsi/qlogicfas408.c inb(qbase + 5); /* clear interrupts */ qbase 225 drivers/scsi/qlogicfas408.c if (inb(qbase + 5)) /* if still interrupting */ qbase 226 drivers/scsi/qlogicfas408.c outb(2, qbase + 3); /* reset chip */ qbase 227 drivers/scsi/qlogicfas408.c else if (inb(qbase + 7) & 0x1f) qbase 228 drivers/scsi/qlogicfas408.c outb(1, qbase + 3); /* clear fifo */ qbase 229 drivers/scsi/qlogicfas408.c while (inb(qbase + 5)); /* clear ints */ qbase 231 drivers/scsi/qlogicfas408.c outb(1, qbase + 8); /* set for PIO pseudo DMA */ qbase 232 drivers/scsi/qlogicfas408.c outb(0, qbase + 0xb); /* disable ints */ qbase 233 drivers/scsi/qlogicfas408.c inb(qbase + 8); /* clear int bits */ qbase 235 drivers/scsi/qlogicfas408.c outb(0x40, qbase + 0xb); /* enable features */ qbase 238 drivers/scsi/qlogicfas408.c outb(qlcfgc, qbase + 0xc); qbase 240 drivers/scsi/qlogicfas408.c outb(0x40 | qlcfg8 | priv->qinitid, qbase + 8); qbase 241 drivers/scsi/qlogicfas408.c outb(qlcfg7, qbase + 7); qbase 242 drivers/scsi/qlogicfas408.c outb(qlcfg6, qbase + 6); qbase 243 drivers/scsi/qlogicfas408.c outb(qlcfg5, qbase + 5); /* select timer */ qbase 244 drivers/scsi/qlogicfas408.c outb(qlcfg9 & 7, qbase + 9); /* prescaler */ qbase 246 drivers/scsi/qlogicfas408.c outb(scmd_id(cmd), qbase + 4); qbase 249 drivers/scsi/qlogicfas408.c outb(cmd->cmnd[i], qbase + 2); qbase 252 drivers/scsi/qlogicfas408.c outb(0x41, qbase + 3); /* select and send command */ qbase 270 drivers/scsi/qlogicfas408.c int qbase = priv->qbase; qbase 274 drivers/scsi/qlogicfas408.c j = inb(qbase + 6); qbase 275 drivers/scsi/qlogicfas408.c i = inb(qbase + 5); qbase 279 drivers/scsi/qlogicfas408.c i |= inb(qbase + 5); /* the 0x10 bit can be set after the 0x08 */ qbase 294 drivers/scsi/qlogicfas408.c j, i, inb(qbase + 7) & 0x1f); qbase 299 drivers/scsi/qlogicfas408.c if (inb(qbase + 7) & 0x1f) /* if some bytes in fifo */ qbase 300 drivers/scsi/qlogicfas408.c outb(1, qbase + 3); /* clear fifo */ qbase 304 drivers/scsi/qlogicfas408.c if (reqlen && !((phase = inb(qbase + 4)) & 6)) { /* data phase */ qbase 307 drivers/scsi/qlogicfas408.c outb(reqlen, qbase); /* low-mid xfer cnt */ qbase 308 drivers/scsi/qlogicfas408.c outb(reqlen >> 8, qbase + 1); /* low-mid xfer cnt */ qbase 309 drivers/scsi/qlogicfas408.c outb(reqlen >> 16, qbase + 0xe); /* high xfer cnt */ qbase 310 drivers/scsi/qlogicfas408.c outb(0x90, qbase + 3); /* command do xfer */ qbase 332 drivers/scsi/qlogicfas408.c k = inb(qbase + 5); /* should be 0x10, bus service */ qbase 342 drivers/scsi/qlogicfas408.c !(inb(qbase + 4) & 6)) qbase 351 drivers/scsi/qlogicfas408.c while (inb(qbase + 5)) qbase 357 drivers/scsi/qlogicfas408.c outb(0x11, qbase + 3); /* get status and message */ qbase 360 drivers/scsi/qlogicfas408.c i = inb(qbase + 5); /* get chip irq stat */ qbase 361 drivers/scsi/qlogicfas408.c j = inb(qbase + 7) & 0x1f; /* and bytes rec'd */ qbase 362 drivers/scsi/qlogicfas408.c status = inb(qbase + 2); qbase 363 drivers/scsi/qlogicfas408.c message = inb(qbase + 2); qbase 373 drivers/scsi/qlogicfas408.c outb(0x12, qbase + 3); /* done, disconnect */ qbase 382 drivers/scsi/qlogicfas408.c i = inb(qbase + 5); /* should be bus service */ qbase 386 drivers/scsi/qlogicfas408.c i |= inb(qbase + 5); qbase 405 drivers/scsi/qlogicfas408.c int qbase = priv->qbase; qbase 408 drivers/scsi/qlogicfas408.c if (!(inb(qbase + 4) & 0x80)) /* false alarm? */ qbase 414 drivers/scsi/qlogicfas408.c while (i-- && inb(qbase + 5)); /* maybe also ql_zap() */ qbase 533 drivers/scsi/qlogicfas408.c int qlogicfas408_get_chip_type(int qbase, int int_type) qbase 536 drivers/scsi/qlogicfas408.c return inb(qbase + 0xe) & 0xf8; qbase 543 drivers/scsi/qlogicfas408.c void qlogicfas408_setup(int qbase, int id, int int_type) qbase 545 drivers/scsi/qlogicfas408.c outb(1, qbase + 8); /* set for PIO pseudo DMA */ qbase 547 drivers/scsi/qlogicfas408.c outb(0x40 | qlcfg8 | id, qbase + 8); /* (ini) bus id, disable scsi rst */ qbase 548 drivers/scsi/qlogicfas408.c outb(qlcfg5, qbase + 5); /* select timer */ qbase 549 drivers/scsi/qlogicfas408.c outb(qlcfg9, qbase + 9); /* prescaler */ qbase 552 drivers/scsi/qlogicfas408.c outb(3, qbase + 3); qbase 556 drivers/scsi/qlogicfas408.c while (inb(qbase + 0xf) & 4) qbase 567 drivers/scsi/qlogicfas408.c int qlogicfas408_detect(int qbase, int int_type) qbase 570 drivers/scsi/qlogicfas408.c return (((inb(qbase + 0xe) ^ inb(qbase + 0xe)) == 7) && qbase 571 drivers/scsi/qlogicfas408.c ((inb(qbase + 0xe) ^ inb(qbase + 0xe)) == 7)); qbase 580 drivers/scsi/qlogicfas408.c int qbase = priv->qbase; qbase 584 drivers/scsi/qlogicfas408.c outb(0, qbase + 0xb); /* disable ints */ qbase 79 drivers/scsi/qlogicfas408.h int qbase; /* Port */ qbase 91 drivers/scsi/qlogicfas408.h #define REG0 ( outb( inb( qbase + 0xd ) & 0x7f , qbase + 0xd ), outb( 4 , qbase + 0xd )) qbase 92 drivers/scsi/qlogicfas408.h #define REG1 ( outb( inb( qbase + 0xd ) | 0x80 , qbase + 0xd ), outb( 0xb4 | int_type, qbase + 0xd )) qbase 114 drivers/scsi/qlogicfas408.h int qlogicfas408_get_chip_type(int qbase, int int_type); qbase 115 drivers/scsi/qlogicfas408.h void qlogicfas408_setup(int qbase, int id, int int_type); qbase 116 drivers/scsi/qlogicfas408.h int qlogicfas408_detect(int qbase, int int_type);