Lines Matching refs:sched_poll
916 static long do_poll(struct sched_poll *sched_poll)
925 if ( sched_poll->nr_ports > 128 )
928 if ( !guest_handle_okay(sched_poll->ports, sched_poll->nr_ports) )
957 for ( i = 0; i < sched_poll->nr_ports; i++ )
960 if ( __copy_from_guest_offset(&port, sched_poll->ports, i, 1) )
972 if ( sched_poll->nr_ports == 1 )
975 if ( sched_poll->timeout != 0 )
976 set_timer(&v->poll_timer, sched_poll->timeout);
1183 struct sched_poll sched_poll;
1186 if ( copy_from_guest(&sched_poll, arg, 1) )
1189 ret = do_poll(&sched_poll);