Lines Matching refs:ch_num

224 static struct rio_channel *riocm_ch_alloc(u16 ch_num);
1281 static struct rio_channel *riocm_ch_alloc(u16 ch_num) in riocm_ch_alloc() argument
1291 if (ch_num) { in riocm_ch_alloc()
1293 start = ch_num; in riocm_ch_alloc()
1294 end = ch_num + 1; in riocm_ch_alloc()
1344 static struct rio_channel *riocm_ch_create(u16 *ch_num) in riocm_ch_create() argument
1348 ch = riocm_ch_alloc(*ch_num); in riocm_ch_create()
1352 *ch_num, PTR_ERR(ch)); in riocm_ch_create()
1354 *ch_num = ch->id; in riocm_ch_create()
1659 u16 ch_num; in cm_chan_create() local
1662 if (get_user(ch_num, p)) in cm_chan_create()
1666 ch_num, current->comm, task_pid_nr(current)); in cm_chan_create()
1667 ch = riocm_ch_create(&ch_num); in cm_chan_create()
1673 ch_num, current->comm, task_pid_nr(current)); in cm_chan_create()
1674 return put_user(ch_num, p); in cm_chan_create()
1685 u16 ch_num; in cm_chan_close() local
1688 if (get_user(ch_num, p)) in cm_chan_close()
1692 ch_num, current->comm, task_pid_nr(current)); in cm_chan_close()
1695 ch = idr_find(&ch_idr, ch_num); in cm_chan_close()
1733 u16 ch_num; in cm_chan_listen() local
1735 if (get_user(ch_num, p)) in cm_chan_listen()
1738 return riocm_ch_listen(ch_num); in cm_chan_listen()
1756 param.ch_num, current->comm, task_pid_nr(current)); in cm_chan_accept()
1761 ch = riocm_ch_accept(param.ch_num, &param.ch_num, accept_to); in cm_chan_accept()
1848 ret = riocm_ch_send(msg.ch_num, buf, msg.size); in cm_chan_msg_send()
1869 if (msg.ch_num == 0 || msg.size == 0) in cm_chan_msg_rcv()
1872 ch = riocm_get_channel(msg.ch_num); in cm_chan_msg_rcv()