Lines Matching refs:ch_num
224 static struct rio_channel *riocm_ch_alloc(u16 ch_num);
1276 * @ch_num: channel ID (1 ... RIOCM_MAX_CHNUM, 0 = automatic)
1281 static struct rio_channel *riocm_ch_alloc(u16 ch_num)
1291 if (ch_num) {
1293 start = ch_num;
1294 end = ch_num + 1;
1330 * @ch_num: channel ID (1 ... RIOCM_MAX_CHNUM, 0 = automatic)
1332 * Allocates and initializes a new channel object. If the parameter ch_num > 0
1334 * specified ID for the new channel. If ch_num = 0, channel ID will be assigned
1344 static struct rio_channel *riocm_ch_create(u16 *ch_num)
1348 ch = riocm_ch_alloc(*ch_num);
1352 *ch_num, PTR_ERR(ch));
1354 *ch_num = ch->id;
1659 u16 ch_num;
1662 if (get_user(ch_num, p))
1666 ch_num, current->comm, task_pid_nr(current));
1667 ch = riocm_ch_create(&ch_num);
1673 ch_num, current->comm, task_pid_nr(current));
1674 return put_user(ch_num, p);
1685 u16 ch_num;
1688 if (get_user(ch_num, p))
1692 ch_num, current->comm, task_pid_nr(current));
1695 ch = idr_find(&ch_idr, ch_num);
1733 u16 ch_num;
1735 if (get_user(ch_num, p))
1738 return riocm_ch_listen(ch_num);
1756 param.ch_num, current->comm, task_pid_nr(current));
1761 ch = riocm_ch_accept(param.ch_num, ¶m.ch_num, accept_to);
1848 ret = riocm_ch_send(msg.ch_num, buf, msg.size);
1869 if (msg.ch_num == 0 || msg.size == 0)
1872 ch = riocm_get_channel(msg.ch_num);