Lines Matching refs:epoll_params
508 struct epoll_params epoll_params; in ep_eventpoll_bp_ioctl() local
512 if (copy_from_user(&epoll_params, uarg, sizeof(epoll_params))) in ep_eventpoll_bp_ioctl()
516 if (epoll_params.__pad) in ep_eventpoll_bp_ioctl()
519 if (epoll_params.busy_poll_usecs > S32_MAX) in ep_eventpoll_bp_ioctl()
522 if (epoll_params.prefer_busy_poll > 1) in ep_eventpoll_bp_ioctl()
525 if (epoll_params.busy_poll_budget > NAPI_POLL_WEIGHT && in ep_eventpoll_bp_ioctl()
529 WRITE_ONCE(ep->busy_poll_usecs, epoll_params.busy_poll_usecs); in ep_eventpoll_bp_ioctl()
530 WRITE_ONCE(ep->busy_poll_budget, epoll_params.busy_poll_budget); in ep_eventpoll_bp_ioctl()
531 WRITE_ONCE(ep->prefer_busy_poll, epoll_params.prefer_busy_poll); in ep_eventpoll_bp_ioctl()
534 memset(&epoll_params, 0, sizeof(epoll_params)); in ep_eventpoll_bp_ioctl()
535 epoll_params.busy_poll_usecs = READ_ONCE(ep->busy_poll_usecs); in ep_eventpoll_bp_ioctl()
536 epoll_params.busy_poll_budget = READ_ONCE(ep->busy_poll_budget); in ep_eventpoll_bp_ioctl()
537 epoll_params.prefer_busy_poll = READ_ONCE(ep->prefer_busy_poll); in ep_eventpoll_bp_ioctl()
538 if (copy_to_user(uarg, &epoll_params, sizeof(epoll_params))) in ep_eventpoll_bp_ioctl()