Lines Matching defs:port

125 MODULE_PARM_DESC(singleport, "Use only IB port 1; more per-port buffer space");
193 #define INT_MASK_P(fldname, port) SYM_MASK(IntMask, fldname##IntMask##_##port)
195 #define INT_MASK_PM(fldname, port) SYM_MASK(IntMask, fldname##Mask##_##port)
229 /* full speed IB port 1 only */
267 #define kr_rcvctrl KREG_IDX(RcvCtrl) /* Common, but chip also has per-port */
295 * per-port kernel registers. Access only with qib_read_kreg_port()
424 /* these are the (few) counters that are not port-specific */
438 /* 1 VL15 buffer per hardware IB port, no register for this, so define */
444 * These are all allocated to either 0 or 1 for single port
449 /* values for vl and port fields in PBC, 7322-specific */
551 u64 int_enable_mask; /* for per port interrupts in single port mode */
665 char epmsgbuf[192]; /* for port error interrupt msg buffer */
666 char sdmamsgbuf[192]; /* for per-port sdma error messages */
673 int port; /* 0 if not port-specific, else port # */
867 * not many sanity checks for the port-specific kernel register routines,
965 /* Interrupt bits that are "per port" */
983 * Error bits that are "per port".
1033 * Per chip (rather than per-port) errors. Most either do
1048 /* SDMA chip errors (not per port)
1051 * E_AUTO mechanism. This is true of most of the per-port fatal errors
1052 * as well, but since this is port-independent, by definition, it's
1071 /* Error Bits that Packet-related (Receive, per-port) */
1081 * Error bits that are Send-related (per port)
1128 * All of these are "per port", so renamed:
1202 #define HWE_AUTO_P(fldname, port) { .mask = SYM_MASK(HwErrMask, \
1203 fldname##Mask##_##port), .msg = #fldname , .sz = sizeof(#fldname) }
1294 * Below generates "auto-message" for interrupts not specific to any port or
1299 /* Below generates "auto-message" for interrupts specific to a port */
1597 ppd->port);
1603 qib_dev_porterr(dd, ppd->port,
1648 * handle per-device errors (not per-port errors)
1845 ppd->dd->unit, ppd->port, ibclt);
1854 * will likely get it's own MSIx interrupt (one for each port,
1872 ppd->port);
1887 qib_dev_porterr(dd, ppd->port,
2004 qib_dev_porterr(dd, ppd->port, "%s error\n", msg);
2075 /* We need to purge per-port errs and reset mask, too */
2326 * 1) port is disabled at the time early_init is called.
2371 * @ppd: physical port on the qlogic_ib device
2480 guid = be64_to_cpu(dd->base_guid) + ppd->port - 1;
2488 /* Enable port */
2594 * @ppd: physical port on the qlogic_ib device
2643 extctl = dd->cspec->extctrl & (ppd->port == 1 ?
2646 extctl |= ppd->port == 1 ? ExtLED_IB1_GRN : ExtLED_IB2_GRN;
2656 extctl |= ppd->port == 1 ? ExtLED_IB1_YEL : ExtLED_IB2_YEL;
2721 unsigned pidx = ppd->port - 1;
2974 * only works for single port if IB1 != pidx1
3106 /* handle "errors" of various kinds first, device ahead of port */
3448 if (irq_table[i].port) {
3449 /* skip if for a non-configured port */
3450 if (irq_table[i].port > dd->num_pports)
3452 arg = dd->pport + irq_table[i].port - 1;
3613 "IB%u: Forced to single port mode by module parameter\n",
3848 * specify 2KB or 4KB and/or make it per port instead of per device
4300 /* val is the port number of the switch we are connected to. */
4330 ppd->dd->unit, ppd->port);
4338 ppd->dd->unit, ppd->port);
4601 * SEND_ENB and SEND_DIS operate on the per-port ones.
4725 * qib_portcntr_7322 - read a per-port chip counter
4807 /* were counters in older chips, now per-port kernel regs */
4837 * Device counter names (not port-specific), one line per stat,
4902 * same as cntr7322names and cntr7322indices, but for port-specific counters.
5056 static u32 qib_read_7322portcntrs(struct qib_devdata *dd, loff_t pos, u32 port,
5068 struct qib_pportdata *ppd = &dd->pport[port];
5120 * If port isn't enabled or not operational ports, or
5122 * skip this port this time.
5522 /* returns the IBTA port state, rather than the IBC link training state */
5808 /* port registers are defined as relative to base of chip */
5824 * the port-specific parts of SendCtrl
6039 * unit,port match, we use that (and set it immediately, for the
6041 * String format is "default# unit#,port#=# ... u,p=#", separators must
6050 u32 pidx, unit, port, deflt, h1;
6075 port = simple_strtoul(str, &nxt, 0);
6105 if (ppd->port != port || !ppd->link_speed_supported)
6215 /* per IB port errors. */
6224 * Write the initialization per-port registers that need to be done at
6235 /* no buffer credits for this port */
6277 * of other init procedures called from qib_init.c). Also write per-port
6287 /* Set Multicast QPs received by port 2 to map to context one. */
6357 * dual cards init to dual port recovery, single port cards to
6358 * the one port. Dual port cards may later adjust to 1 port,
6359 * and then back to dual port if both ports are connected
6469 /* single port mode (7340, or configured) */
6472 /* Make sure port is disabled. */
6488 /* Make sure port is disabled. */
6568 dd->unit, ppd->port);
6747 qib_dev_porterr(ppd->dd, ppd->port,
6751 qib_dev_porterr(ppd->dd, ppd->port,
6755 qib_dev_porterr(ppd->dd, ppd->port,
6761 qib_dev_porterr(ppd->dd, ppd->port,
6773 qib_dev_porterr(ppd->dd, ppd->port,
6780 qib_dev_porterr(ppd->dd, ppd->port,
6785 qib_dev_porterr(ppd->dd, ppd->port,
6789 qib_dev_porterr(ppd->dd, ppd->port,
6793 qib_dev_porterr(ppd->dd, ppd->port,
6797 qib_dev_porterr(ppd->dd, ppd->port,
6801 qib_dev_porterr(ppd->dd, ppd->port,
6805 qib_dev_porterr(ppd->dd, ppd->port,
6809 qib_dev_porterr(ppd->dd, ppd->port,
6813 qib_dev_porterr(ppd->dd, ppd->port,
6890 ((dd->num_pports == 1 || ppd->port == 2) ? n :
6966 * port's send rate differs from the static rate set for the QP.
6990 * Enable the per-port VL15 send buffers for use.
7273 * Determine number of vectors we want; depends on port count
7281 irq_table[i].port <= dd->num_pports) ||
7327 * There are 3 * TXDDS_TABLE_SZ entries in all per port, with the first
7339 * Set one entry in the TxDDS table for spec'd port
7354 * only for registers in the lower "port specific" pages.
7612 * for this specific port, so use it, rather than our normal mechanism.
7673 ppd->dd->unit, ppd->port, idx);
7827 ppd->dd->unit, ppd->port);
7831 ppd->dd->unit, ppd->port);
8342 /* these are common for all IB port use cases. */
8423 * Do setup to properly handle IB link recovery; if port is zero, we
8425 * to cover a single port card, or the port has reached INIT and we may
8440 portsel = ppd->port == 1 ? portsel_port1 : portsel_port2;