Lines Matching defs:length
34 /* Max data object length is 2^18 dwords */
149 size_t length, remainder;
166 /* Length is 2 DW of header + length of payload in DW */
167 length = 2 + DIV_ROUND_UP(task->request_pl_sz, sizeof(__le32));
168 if (length > PCI_DOE_MAX_LENGTH)
170 if (length == PCI_DOE_MAX_LENGTH)
171 length = 0;
179 length));
214 size_t length, payload_length, remainder, received;
232 /* Read the second dword to get the length */
236 length = FIELD_GET(PCI_DOE_DATA_OBJECT_HEADER_2_LENGTH, val);
237 /* A value of 0x0 indicates max data object length */
238 if (!length)
239 length = PCI_DOE_MAX_LENGTH;
240 if (length < 2)
244 length -= 2;
253 if (length < payload_length) {
254 received = length * sizeof(__le32);
255 payload_length = length;
279 /* Flush excess length */
280 for (; i < length; i++) {
625 * The length may be smaller than @response_sz and the caller