Lines Matching refs:error
159 int error = 0; in sctp_gen_sack() local
233 return error; in sctp_gen_sack()
235 error = -ENOMEM; in sctp_gen_sack()
236 return error; in sctp_gen_sack()
244 int error; in sctp_generate_t3_rtx_event() local
269 error = sctp_do_sm(net, SCTP_EVENT_T_TIMEOUT, in sctp_generate_t3_rtx_event()
275 if (error) in sctp_generate_t3_rtx_event()
276 sk->sk_err = -error; in sctp_generate_t3_rtx_event()
291 int error = 0; in sctp_generate_timeout_event() local
311 error = sctp_do_sm(net, SCTP_EVENT_T_TIMEOUT, in sctp_generate_timeout_event()
316 if (error) in sctp_generate_timeout_event()
317 sk->sk_err = -error; in sctp_generate_timeout_event()
367 int error = 0; in sctp_generate_heartbeat_event() local
389 error = sctp_do_sm(net, SCTP_EVENT_T_TIMEOUT, in sctp_generate_heartbeat_event()
394 if (error) in sctp_generate_heartbeat_event()
395 sk->sk_err = -error; in sctp_generate_heartbeat_event()
546 unsigned int error) in sctp_cmd_init_failed() argument
551 (__u16)error, 0, 0, NULL, in sctp_cmd_init_failed()
562 asoc->outqueue.error = error; in sctp_cmd_init_failed()
572 unsigned int error) in sctp_cmd_assoc_failed() argument
581 (__u16)error, 0, 0, chunk, in sctp_cmd_assoc_failed()
585 (__u16)error, 0, 0, NULL, in sctp_cmd_assoc_failed()
602 asoc->outqueue.error = error; in sctp_cmd_assoc_failed()
617 int error; in sctp_cmd_process_init() local
625 error = -ENOMEM; in sctp_cmd_process_init()
627 error = 0; in sctp_cmd_process_init()
629 return error; in sctp_cmd_process_init()
967 static void sctp_cmd_set_sk_err(struct sctp_association *asoc, int error) in sctp_cmd_set_sk_err() argument
972 sk->sk_err = error; in sctp_cmd_set_sk_err()
1035 int error = 0; in sctp_cmd_send_msg() local
1038 error = sctp_outq_tail(&asoc->outqueue, chunk); in sctp_cmd_send_msg()
1039 if (error) in sctp_cmd_send_msg()
1043 return error; in sctp_cmd_send_msg()
1087 pr_debug("%s[post-sfx]: error:%d, asoc:%p[%s]\n", __func__, error, \
1107 int error = 0; in sctp_do_sm() local
1125 error = sctp_side_effects(event_type, subtype, state, in sctp_do_sm()
1130 return error; in sctp_do_sm()
1145 int error; in sctp_side_effects() local
1153 if (0 != (error = sctp_cmd_interpreter(event_type, subtype, state, in sctp_side_effects()
1173 error = -ENOMEM; in sctp_side_effects()
1212 return error; in sctp_side_effects()
1230 int error = 0; in sctp_cmd_interpreter() local
1297 error = sctp_tsnmap_mark(&asoc->peer.tsn_map, in sctp_cmd_interpreter()
1323 error = sctp_gen_sack(asoc, force, commands); in sctp_cmd_interpreter()
1328 error = sctp_cmd_process_sack(commands, asoc, in sctp_cmd_interpreter()
1337 error = -ENOMEM; in sctp_cmd_interpreter()
1351 error = sctp_cmd_process_init(commands, asoc, chunk, in sctp_cmd_interpreter()
1361 error = -ENOMEM; in sctp_cmd_interpreter()
1410 error = -ENOMEM; in sctp_cmd_interpreter()
1441 error = sctp_outq_tail(&asoc->outqueue, cmd->obj.chunk); in sctp_cmd_interpreter()
1635 error = cmd->obj.error; in sctp_cmd_interpreter()
1695 error = sctp_outq_uncork(&asoc->outqueue); in sctp_cmd_interpreter()
1700 sctp_cmd_set_sk_err(asoc, cmd->obj.error); in sctp_cmd_interpreter()
1711 error = sctp_auth_asoc_init_active_key(asoc, in sctp_cmd_interpreter()
1722 error = sctp_cmd_send_msg(asoc, cmd->obj.msg); in sctp_cmd_interpreter()
1741 if (error) { in sctp_cmd_interpreter()
1758 error = sctp_outq_uncork(&asoc->outqueue); in sctp_cmd_interpreter()
1760 error = sctp_outq_uncork(&asoc->outqueue); in sctp_cmd_interpreter()
1761 return error; in sctp_cmd_interpreter()