Lines Matching refs:hdr
349 u8 flags = sp->hdr.flags; in rxrpc_validate_data()
416 rxrpc_serial_t serial = sp->hdr.serial, ack_serial = serial; in rxrpc_input_data()
417 rxrpc_seq_t seq0 = sp->hdr.seq, hard_ack; in rxrpc_input_data()
425 sp->hdr.serial, seq0, sp->hdr.flags, sp->nr_subpackets); in rxrpc_input_data()
468 rxrpc_serial_t serial = sp->hdr.serial + j; in rxrpc_input_data()
735 sp->hdr.serial, in rxrpc_input_ackinfo()
744 trace_rxrpc_rx_rwind_change(call, sp->hdr.serial, rwind, wake); in rxrpc_input_ackinfo()
873 ack_serial = sp->hdr.serial; in rxrpc_input_ack()
909 } else if (sp->hdr.flags & RXRPC_REQUEST_ACK) { in rxrpc_input_ack()
1010 _proto("Rx ACKALL %%%u", sp->hdr.serial); in rxrpc_input_ackall()
1036 trace_rxrpc_rx_abort(call, sp->hdr.serial, abort_code); in rxrpc_input_abort()
1038 _proto("Rx ABORT %%%u { %x }", sp->hdr.serial, abort_code); in rxrpc_input_abort()
1065 switch (sp->hdr.type) { in rxrpc_input_call_packet()
1075 _proto("Rx BUSY %%%u", sp->hdr.serial); in rxrpc_input_call_packet()
1184 trace_rxrpc_rx_eproto(NULL, sp->hdr.serial, in rxrpc_extract_header()
1190 sp->hdr.epoch = ntohl(whdr.epoch); in rxrpc_extract_header()
1191 sp->hdr.cid = ntohl(whdr.cid); in rxrpc_extract_header()
1192 sp->hdr.callNumber = ntohl(whdr.callNumber); in rxrpc_extract_header()
1193 sp->hdr.seq = ntohl(whdr.seq); in rxrpc_extract_header()
1194 sp->hdr.serial = ntohl(whdr.serial); in rxrpc_extract_header()
1195 sp->hdr.flags = whdr.flags; in rxrpc_extract_header()
1196 sp->hdr.type = whdr.type; in rxrpc_extract_header()
1197 sp->hdr.userStatus = whdr.userStatus; in rxrpc_extract_header()
1198 sp->hdr.securityIndex = whdr.securityIndex; in rxrpc_extract_header()
1199 sp->hdr._rsvd = ntohs(whdr._rsvd); in rxrpc_extract_header()
1200 sp->hdr.serviceId = ntohs(whdr.serviceId); in rxrpc_extract_header()
1260 switch (sp->hdr.type) { in rxrpc_input_packet()
1273 if (sp->hdr.callNumber == 0) in rxrpc_input_packet()
1280 if (sp->hdr.callNumber == 0 || in rxrpc_input_packet()
1281 sp->hdr.seq == 0) in rxrpc_input_packet()
1289 if (sp->hdr.securityIndex != 0) { in rxrpc_input_packet()
1321 _proto("Rx Bad Packet Type %u", sp->hdr.type); in rxrpc_input_packet()
1325 if (sp->hdr.serviceId == 0) in rxrpc_input_packet()
1334 if (!rx || (sp->hdr.serviceId != rx->srx.srx_service && in rxrpc_input_packet()
1335 sp->hdr.serviceId != rx->second_service)) { in rxrpc_input_packet()
1336 if (sp->hdr.type == RXRPC_PACKET_TYPE_DATA && in rxrpc_input_packet()
1337 sp->hdr.seq == 1) in rxrpc_input_packet()
1345 if (sp->hdr.securityIndex != conn->security_ix) in rxrpc_input_packet()
1348 if (sp->hdr.serviceId != conn->service_id) { in rxrpc_input_packet()
1354 sp->hdr.serviceId); in rxrpc_input_packet()
1357 old_id != sp->hdr.serviceId) in rxrpc_input_packet()
1361 if (sp->hdr.callNumber == 0) { in rxrpc_input_packet()
1368 if ((int)sp->hdr.serial - (int)conn->hi_serial > 0) in rxrpc_input_packet()
1369 conn->hi_serial = sp->hdr.serial; in rxrpc_input_packet()
1372 channel = sp->hdr.cid & RXRPC_CHANNELMASK; in rxrpc_input_packet()
1376 if (sp->hdr.callNumber < chan->last_call) in rxrpc_input_packet()
1379 if (sp->hdr.callNumber == chan->last_call) { in rxrpc_input_packet()
1381 sp->hdr.type == RXRPC_PACKET_TYPE_ABORT) in rxrpc_input_packet()
1394 if (sp->hdr.type == RXRPC_PACKET_TYPE_DATA) in rxrpc_input_packet()
1396 sp->hdr.seq, in rxrpc_input_packet()
1397 sp->hdr.serial, in rxrpc_input_packet()
1398 sp->hdr.flags, 0); in rxrpc_input_packet()
1405 if (sp->hdr.callNumber > chan->call_id) { in rxrpc_input_packet()
1414 if (sp->hdr.serviceId != call->service_id) in rxrpc_input_packet()
1415 call->service_id = sp->hdr.serviceId; in rxrpc_input_packet()
1416 if ((int)sp->hdr.serial - (int)call->rx_serial > 0) in rxrpc_input_packet()
1417 call->rx_serial = sp->hdr.serial; in rxrpc_input_packet()
1425 sp->hdr.type != RXRPC_PACKET_TYPE_DATA) in rxrpc_input_packet()
1427 if (sp->hdr.seq != 1) in rxrpc_input_packet()
1447 trace_rxrpc_abort(0, "SEC", sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq, in rxrpc_input_packet()
1453 trace_rxrpc_abort(0, "INV", sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq, in rxrpc_input_packet()
1459 trace_rxrpc_abort(0, "UPG", sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq, in rxrpc_input_packet()
1464 trace_rxrpc_abort(0, "BAD", sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq, in rxrpc_input_packet()