Lines Matching refs:sz
205 int sz; in mptctl_reply() local
227 sz = min(ioc->reply_sz, 4*reply->u.reply.MsgLength); in mptctl_reply()
228 memcpy(ioc->ioctl_cmds.reply, reply, sz); in mptctl_reply()
251 sz = req->u.scsireq.SenseBufferLength; in mptctl_reply()
256 memcpy(ioc->ioctl_cmds.sense, sense_data, sz); in mptctl_reply()
1635 int sz = MPTCTL_EVENT_LOG_SIZE * sizeof(MPT_IOCTL_EVENTS); in mptctl_eventenable() local
1636 ioc->events = kzalloc(sz, GFP_KERNEL); in mptctl_eventenable()
1643 ioc->alloc_total += sz; in mptctl_eventenable()
1832 int sz, rc = 0; in mptctl_do_mpt_command() local
1864 sz = karg.dataSgeOffset * 4; in mptctl_do_mpt_command()
1866 sz += ioc->SGE_size; in mptctl_do_mpt_command()
1868 sz += ioc->SGE_size; in mptctl_do_mpt_command()
1870 if (sz > ioc->req_sz) { in mptctl_do_mpt_command()
1873 ioc->name, __FILE__, __LINE__, sz, ioc->req_sz); in mptctl_do_mpt_command()
2319 sz = min(karg.maxReplyBytes, in mptctl_do_mpt_command()
2322 sz = min(ioc->reply_sz, 4*ioc->ioctl_cmds.reply[2]); in mptctl_do_mpt_command()
2324 if (sz > 0) { in mptctl_do_mpt_command()
2326 ioc->ioctl_cmds.reply, sz)){ in mptctl_do_mpt_command()
2340 sz = min(karg.maxSenseBytes, MPT_SENSE_BUFFER_SIZE); in mptctl_do_mpt_command()
2341 if (sz > 0) { in mptctl_do_mpt_command()
2343 ioc->ioctl_cmds.sense, sz)) { in mptctl_do_mpt_command()