Lines Matching +full:256 +full:k
10 #define IAVF_DEFAULT_IRQ_WORK 256
111 /* The size limit for a transmit buffer in a descriptor is (16K - 1).
113 * the nearest 4K which represents our maximum read request size.
124 * Due to hardware alignment restrictions (4K alignment), we need to
125 * assume that we can have no more than 12K of data per descriptor, even
126 * though each descriptor can take up to 16K - 1 bytes of aligned memory.
127 * Thus, we need to divide by 12K. But division is slow! Instead,
131 * To divide by 12K, we first divide by 4K, then divide by 3:
132 * To divide by 4K, shift right by 12 bits
133 * To divide by 3, multiply by 85, then divide by 256
134 * (Divide by 256 is done by shifting right by 8 bits)
135 * Finally, we add one to round up. Because 256 isn't an exact multiple of
136 * 3, we'll underestimate near each multiple of 12K. This is actually more
137 * accurate as we have 4K - 1 of wiggle room that we can fit into the last