Lines Matching refs:rs

2266 		if (is->reset->rs[id]) {
2278 struct ippp_ccp_reset_state *rs;
2280 if (is->reset->rs[id]) {
2282 rs = is->reset->rs[id];
2284 if (rs->ta)
2285 del_timer(&rs->timer);
2286 is->reset->rs[id] = NULL;
2287 kfree(rs);
2297 struct ippp_ccp_reset_state *rs =
2300 if (!rs) {
2304 if (rs->ta && rs->state == CCPResetSentReq) {
2306 if (!rs->expra) {
2310 rs->ta = 0;
2311 isdn_ppp_ccp_reset_free_state(rs->is, rs->id);
2315 rs->id);
2317 isdn_ppp_ccp_xmit_reset(rs->is, PPP_CCP, CCP_RESETREQ, rs->id,
2318 rs->data, rs->dlen);
2320 rs->timer.expires = jiffies + HZ * 5;
2321 add_timer(&rs->timer);
2324 rs->state);
2332 struct ippp_ccp_reset_state *rs;
2333 if (is->reset->rs[id]) {
2338 rs = kzalloc(sizeof(struct ippp_ccp_reset_state), GFP_KERNEL);
2339 if (!rs)
2341 rs->state = CCPResetIdle;
2342 rs->is = is;
2343 rs->id = id;
2344 init_timer(&rs->timer);
2345 rs->timer.data = (unsigned long)rs;
2346 rs->timer.function = isdn_ppp_ccp_timer_callback;
2347 is->reset->rs[id] = rs;
2349 return rs;
2358 struct ippp_ccp_reset_state *rs;
2369 if (is->reset->rs[rp->id]) {
2373 rs = is->reset->rs[rp->id];
2374 if (rs->state == CCPResetSentReq && rs->ta) {
2381 " id %d\n", rs->state, rp->id);
2387 rs = isdn_ppp_ccp_reset_alloc_state(is, rp->id);
2388 if (!rs) {
2393 rs->state = CCPResetSentReq;
2394 rs->expra = rp->expra;
2396 rs->dlen = rp->dlen;
2397 memcpy(rs->data, rp->data, rp->dlen);
2401 CCP_RESETREQ, rs->id,
2402 rs->data, rs->dlen);
2404 rs->timer.expires = jiffies + 5 * HZ;
2405 add_timer(&rs->timer);
2406 rs->ta = 1;
2416 if (is->reset->rs[is->reset->lastid]) {
2420 rs = is->reset->rs[is->reset->lastid];
2421 if (rs->state == CCPResetSentReq && rs->ta) {
2428 " id %d\n", rs->state, rp->id);
2433 rs = isdn_ppp_ccp_reset_alloc_state(is,
2435 if (!rs) {
2440 rs->state = CCPResetSentReq;
2443 rs->expra = 1;
2444 rs->dlen = 0;
2447 rs->id, NULL, 0);
2449 rs->timer.expires = jiffies + 5 * HZ;
2450 add_timer(&rs->timer);
2451 rs->ta = 1;
2461 struct ippp_ccp_reset_state *rs = is->reset->rs[id];
2463 if (rs) {
2464 if (rs->ta && rs->state == CCPResetSentReq) {
2466 if (!rs->expra)
2473 if (rs->ta) {
2474 rs->ta = 0;
2475 del_timer(&rs->timer);