Lines Matching defs:req_sz
914 req_idx = req_offset / ioc->req_sz;
964 req_idx = req_offset / ioc->req_sz;
999 req_idx = req_offset / ioc->req_sz;
1818 ioc->req_sz = MPT_DEFAULT_FRAME_SIZE; /* avoid div by zero! */
3076 int req_sz;
3097 req_sz = sizeof(get_facts);
3098 memset(&get_facts, 0, req_sz);
3104 "Sending get IocFacts request req_sz=%d reply_sz=%d\n",
3105 ioc->name, req_sz, reply_sz));
3110 r = mpt_handshake_req_reply_wait(ioc, req_sz, (u32*)&get_facts,
3120 * to make sure we don't zero IOC's req_sz!
3210 ioc->req_sz = min(MPT_DEFAULT_FRAME_SIZE, facts->RequestFrameSize * 4);
3217 dinitprintk(ioc, printk(MYIOC_s_DEBUG_FMT "req_sz =%3d, req_depth =%4d\n",
3218 ioc->name, ioc->req_sz, ioc->req_depth));
3250 int req_sz;
3268 req_sz = sizeof(get_pfacts);
3269 memset(&get_pfacts, 0, req_sz);
3281 ii = mpt_handshake_req_reply_wait(ioc, req_sz, (u32*)&get_pfacts,
3457 int req_sz;
3464 req_sz = sizeof(PortEnable_t);
3465 memset(&port_enable, 0, req_sz);
3479 rc = mpt_handshake_req_reply_wait(ioc, req_sz,
3483 rc = mpt_handshake_req_reply_wait(ioc, req_sz,
3591 prequest = (sleepFlag == NO_SLEEP) ? kzalloc(ioc->req_sz, GFP_ATOMIC) :
3592 kzalloc(ioc->req_sz, GFP_KERNEL);
4357 scale = ioc->req_sz / ioc->SGE_size;
4359 num_sge = scale + (ioc->req_sz - 60) / ioc->SGE_size;
4361 num_sge = 1 + scale + (ioc->req_sz - 64) / ioc->SGE_size;
4365 (ioc->req_sz - 60) / ioc->SGE_size;
4368 scale + (ioc->req_sz - 64) / ioc->SGE_size;
4477 sz = (ioc->req_sz * ioc->req_depth);
4479 ioc->name, ioc->req_sz, ioc->req_depth));
4484 sz = num_chain * ioc->req_sz; /* chain buffer pool size */
4486 ioc->name, ioc->req_sz, num_chain));
4527 alloc_dma += ioc->req_sz;
4528 mem += ioc->req_sz;
4548 mem += ioc->req_sz;
4564 mem += ioc->req_sz;
6738 sz = (ioc->req_sz * ioc->req_depth) + 128;
6741 ioc->req_sz, ioc->req_depth, ioc->req_sz*ioc->req_depth, sz);