Lines Matching refs:bufsz
753 static long do_msg_fill(void __user *dest, struct msg_msg *msg, size_t bufsz) in do_msg_fill() argument
761 msgsz = (bufsz > msg->m_ts) ? msg->m_ts : bufsz; in do_msg_fill()
772 static inline struct msg_msg *prepare_copy(void __user *buf, size_t bufsz) in prepare_copy() argument
779 copy = load_msg(buf, bufsz); in prepare_copy()
781 copy->m_ts = bufsz; in prepare_copy()
791 static inline struct msg_msg *prepare_copy(void __user *buf, size_t bufsz) in prepare_copy() argument
825 long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, int msgflg, in do_msgrcv() argument
835 if (msqid < 0 || (long) bufsz < 0) in do_msgrcv()
841 copy = prepare_copy(buf, min_t(size_t, bufsz, ns->msg_ctlmax)); in do_msgrcv()
876 if ((bufsz < msg->m_ts) && !(msgflg & MSG_NOERROR)) { in do_msgrcv()
914 msr_d.r_maxsize = bufsz; in do_msgrcv()
1008 bufsz = msg_handler(buf, msg, bufsz); in do_msgrcv()
1011 return bufsz; in do_msgrcv()