Lines Matching defs:bytes
128 static MptSge_t *kbuf_alloc_2_sgl(int bytes, u32 dir, int sge_offset, int *frags,
157 // Define max sg LIST bytes ( == (#frags + #chains) * 8 bytes each)
158 // Works out to: 592d bytes! (9+1)*8 + 4*(15+1)*8
162 /* linux only seems to ever give 128kB MAX contiguous (GFP_USER) mem bytes */
735 * This structure contains: iocnum, firmware length (bytes),
847 * Need to kmalloc area(s) for holding firmware image bytes.
857 * Set the sge_offset to the start of the sgl (bytes).
996 * Inputs: bytes - number of bytes to be transferred
998 * sge_offset - offset (in bytes) from the start of the request
1008 kbuf_alloc_2_sgl(int bytes, u32 sgdir, int sge_offset, int *frags,
1017 int alloc_sz = min(bytes,MAX_KMALLOC_SZ); // avoid kernel warning msg!
1025 if (bytes < 0)
1064 while (bytes_allocd < bytes) {
1065 this_alloc = min(alloc_sz, bytes-bytes_allocd);
1095 if (bytes_allocd >= bytes)
1384 /* Get the port number and set the maximum number of bytes