Lines Matching refs:new_ch
1077 struct rio_channel *new_ch; in riocm_ch_accept() local
1131 new_ch = riocm_ch_alloc(RIOCM_CHNUM_AUTO); in riocm_ch_accept()
1133 if (IS_ERR(new_ch)) { in riocm_ch_accept()
1135 PTR_ERR(new_ch)); in riocm_ch_accept()
1144 new_ch->cmdev = ch->cmdev; in riocm_ch_accept()
1145 new_ch->loc_destid = ch->loc_destid; in riocm_ch_accept()
1146 new_ch->rem_destid = req->destid; in riocm_ch_accept()
1147 new_ch->rem_channel = req->chan; in riocm_ch_accept()
1156 list_for_each_entry(peer, &new_ch->cmdev->peers, node) { in riocm_ch_accept()
1157 if (peer->rdev->destid == new_ch->rem_destid) { in riocm_ch_accept()
1172 new_ch->rdev = peer->rdev; in riocm_ch_accept()
1173 new_ch->state = RIO_CM_CONNECTED; in riocm_ch_accept()
1174 spin_lock_init(&new_ch->lock); in riocm_ch_accept()
1177 riocm_send_ack(new_ch); in riocm_ch_accept()
1179 *new_ch_id = new_ch->id; in riocm_ch_accept()
1180 return new_ch; in riocm_ch_accept()
1184 idr_remove(&ch_idr, new_ch->id); in riocm_ch_accept()
1186 riocm_put_channel(new_ch); in riocm_ch_accept()