Lines Matching defs:chain

141 /* Rate limit chain-fail messages to 1 per minute */
428 * ((SGEs per frame - 1 for chain element) * Max Chain Depth)
429 * + 1 for no chain needed in last frame
1446 struct mpr_chain *chain;
1456 chain = &sc->chains[i++];
1457 chain->chain =(MPI2_SGE_IO_UNION *)(sc->chain_frames+o);
1458 chain->chain_busaddr = segs[s].ds_addr + bo;
1460 mpr_free_chain(sc, chain);
1498 mpr_dprint(sc, MPR_ERROR, "Cannot allocate chain memory\n");
1506 mpr_dprint(sc, MPR_ERROR, "Cannot allocate chain DMA tag\n");
1511 mpr_dprint(sc, MPR_ERROR, "Cannot allocate chain memory\n");
1516 mpr_dprint(sc, MPR_ERROR, "Cannot load chain memory\n");
1887 &sc->chain_free, 0, "number of free chain elements");
1891 &sc->chain_free_lowwater, 0,"lowest number of free chain elements");
1895 &sc->max_chains, 0,"maximum chain frames that will be allocated");
1908 &sc->chain_alloc_fail, "chain allocation failures");
2074 struct mpr_chain *chain, *chain1;
2111 TAILQ_FOREACH_SAFE(chain, &cm->cm_chain_list, chain_link,
2116 TAILQ_FOREACH_SAFE(chain, &cm->cm_chain_list, chain_link,
2118 sbuf_bcat(sb, chain->chain, 128);
3173 * Put a chain element in main message frame that points to the first
3174 * chain buffer.
3176 * NOTE: The ChainOffset field must be 0 when using a chain pointer to
3180 /* Set main message chain element pointer */
3184 * For NVMe the chain element needs to be the 2nd SGL entry in the main
3220 /* Fill in the chain element and make it an NVMe segment type. */
3244 * message is the chain element, and the rest of the PRP entries are
3343 /* Set chain element Length. */
3351 * Add a chain element as the next SGE for the specified command.
3363 struct mpr_chain *chain;
3368 * Fail if a command is requesting a chain for SIMPLE SGE's. For SAS3
3373 mpr_dprint(sc, MPR_ERROR, "A chain element cannot be added to "
3382 chain = mpr_alloc_chain(cm->cm_sc);
3383 if (chain == NULL)
3390 TAILQ_INSERT_TAIL(&cm->cm_chain_list, chain, chain_link);
3403 * the chain element. To know if more than one more frame is
3405 * the current frame (with this chain) and the next frame. If
3423 ieee_sgc->Address.Low = htole32(chain->chain_busaddr);
3424 ieee_sgc->Address.High = htole32(chain->chain_busaddr >> 32);
3425 cm->cm_sge = &((MPI25_SGE_IO_UNION *)chain->chain)->IeeeSimple;
3437 * chain, so don't consider any chain additions.
3522 * Add one IEEE scatter-gather element (chain or simple) to the IEEE scatter-
3535 * case 1: No room for chain or segment (error).
3536 * case 2: Two or more segments left but only room for chain.
3698 mpr_dprint(sc, MPR_INFO, "Out of chain frames, "