Lines Matching +full:carry +full:- +full:less

1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright(c) 2015-2017 Intel Corporation.
21 /* PIO release codes - in bits, as there could more than one that apply */
28 #define PRC_SC_DISABLE 0x20 /* clean-up after a context disable */
45 union mix carry; /* pending unwritten bytes */ member
47 u8 carry_bytes; /* number of valid bytes in carry */
55 /* per-NUMA send context */
57 /* read-only after init */
76 unsigned long alloc_free; /* copy of free (less cache thrash) */
132 * Since the mapping now allows for non-uniform send contexts per vl, the
148 * dd->pio_map
150 * | +--------------------+
152 * pio_vl_map |--------------------|
153 * +--------------------------+ | ksc[0] -> sc 1 |
154 * | list (RCU) | |--------------------|
155 * |--------------------------| ->| ksc[1] -> sc 2 |
156 * | mask | --/ |--------------------|
157 * |--------------------------| -/ | * |
158 * | actual_vls (max 8) | -/ |--------------------|
159 * |--------------------------| --/ | ksc[n-1] -> sc n |
160 * | vls (max 8) | -/ +--------------------+
161 * |--------------------------| --/
162 * | map[0] |-/
163 * |--------------------------| +--------------------+
164 * | map[1] |--- | mask |
165 * |--------------------------| \---- |--------------------|
166 * | * | \-- | ksc[0] -> sc 1+n |
167 * | * | \---- |--------------------|
168 * | * | \->| ksc[1] -> sc 2+n |
169 * |--------------------------| |--------------------|
170 * | map[vls - 1] |- | * |
171 * +--------------------------+ \- |--------------------|
172 * \- | ksc[m-1] -> sc m+n |
173 * \ +--------------------+
174 * \-
176 * \- +----------------------+
177 * \- | mask |
178 * \ |----------------------|
179 * \- | ksc[0] -> sc 1+m+n |
180 * \- |----------------------|
181 * >| ksc[1] -> sc 2+m+n |
182 * |----------------------|
184 * |----------------------|
185 * | ksc[o-1] -> sc o+m+n |
186 * +----------------------+
194 * struct pio_map_elem - mapping for a vl
195 * @mask - selector mask
196 * @ksc - array of kernel send contexts for this vl
208 * struct pio_vl_map - mapping for a vl
209 * @list - rcu head for free callback
210 * @mask - vl mask to "mod" the vl to produce an index to map array
211 * @actual_vls - number of vls
212 * @vls - numbers of vls rounded to next power of 2
213 * @map - array of pio_map_elem entries