/linux/net/rxrpc/ |
H A D | peer_event.c | 32 struct sock_exterr_skb *serr = SKB_EXT_ERR(skb); in rxrpc_lookup_peer_local_rcu() local 48 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_local_rcu() 49 switch (serr->ee.ee_origin) { in rxrpc_lookup_peer_local_rcu() 52 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_local_rcu() 57 skb_network_header(skb) + serr->addr_offset + 12, in rxrpc_lookup_peer_local_rcu() 69 switch (serr->ee.ee_origin) { in rxrpc_lookup_peer_local_rcu() 71 srx->transport.sin6.sin6_port = serr->port; in rxrpc_lookup_peer_local_rcu() 73 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_local_rcu() 79 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_local_rcu() 81 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_local_rcu() [all …]
|
/linux/tools/testing/vsock/ |
H A D | msg_zerocopy_common.c | 29 struct sock_extended_err *serr; in vsock_recv_completion() local 60 serr = (void *)CMSG_DATA(cm); in vsock_recv_completion() 61 if (serr->ee_origin != SO_EE_ORIGIN_ZEROCOPY) { in vsock_recv_completion() 62 fprintf(stderr, "serr: wrong origin: %u\n", serr->ee_origin); in vsock_recv_completion() 66 if (serr->ee_errno) { in vsock_recv_completion() 67 fprintf(stderr, "serr: wrong error code: %u\n", serr->ee_errno); in vsock_recv_completion() 78 if (*zerocopied && (serr->ee_code & SO_EE_CODE_ZEROCOPY_COPIED)) { in vsock_recv_completion() 83 if (!*zerocopied && !(serr->ee_code & SO_EE_CODE_ZEROCOPY_COPIED)) { in vsock_recv_completion()
|
/linux/net/ipv6/ |
H A D | datagram.c | 310 struct sock_exterr_skb *serr; in ipv6_icmp_error() local 321 serr = SKB_EXT_ERR(skb); in ipv6_icmp_error() 322 serr->ee.ee_errno = err; in ipv6_icmp_error() 323 serr->ee.ee_origin = SO_EE_ORIGIN_ICMP6; in ipv6_icmp_error() 324 serr->ee.ee_type = icmph->icmp6_type; in ipv6_icmp_error() 325 serr->ee.ee_code = icmph->icmp6_code; in ipv6_icmp_error() 326 serr->ee.ee_pad = 0; in ipv6_icmp_error() 327 serr->ee.ee_info = info; in ipv6_icmp_error() 328 serr->ee.ee_data = 0; in ipv6_icmp_error() 329 serr->addr_offset = (u8 *)&(((struct ipv6hdr *)(icmph + 1))->daddr) - in ipv6_icmp_error() [all …]
|
/linux/drivers/misc/cxl/ |
H A D | irq.c | 423 void cxl_afu_decode_psl_serr(struct cxl_afu *afu, u64 serr) in cxl_afu_decode_psl_serr() argument 427 dev_crit(&afu->dev, "PSL_SERR_An: 0x%016llx\n", serr); in cxl_afu_decode_psl_serr() 428 if (serr & CXL_PSL_SERR_An_afuto) in cxl_afu_decode_psl_serr() 430 if (serr & CXL_PSL_SERR_An_afudis) in cxl_afu_decode_psl_serr() 433 if (serr & CXL_PSL_SERR_An_afuov) in cxl_afu_decode_psl_serr() 435 if (serr & CXL_PSL_SERR_An_badsrc) in cxl_afu_decode_psl_serr() 437 if (serr & CXL_PSL_SERR_An_badctx) in cxl_afu_decode_psl_serr() 439 if (serr & CXL_PSL_SERR_An_llcmdis) in cxl_afu_decode_psl_serr() 441 if (serr & CXL_PSL_SERR_An_llcmdto) in cxl_afu_decode_psl_serr() 443 if (serr & CXL_PSL_SERR_An_afupar) in cxl_afu_decode_psl_serr() [all …]
|
H A D | native.c | 97 u64 serr; in native_afu_reset() local 112 serr = cxl_p1n_read(afu, CXL_PSL_SERR_An); in native_afu_reset() 113 serr &= ~CXL_PSL_SERR_An_IRQ_MASKS; in native_afu_reset() 114 cxl_p1n_write(afu, CXL_PSL_SERR_An, serr); in native_afu_reset() 1101 u64 fir1, serr; in cxl_native_irq_dump_regs_psl9() local 1107 serr = cxl_p1n_read(ctx->afu, CXL_PSL_SERR_An); in cxl_native_irq_dump_regs_psl9() 1108 cxl_afu_decode_psl_serr(ctx->afu, serr); in cxl_native_irq_dump_regs_psl9() 1114 u64 fir1, fir2, fir_slice, serr, afu_debug; in cxl_native_irq_dump_regs_psl8() local 1124 serr = cxl_p1n_read(ctx->afu, CXL_PSL_SERR_An); in cxl_native_irq_dump_regs_psl8() 1125 cxl_afu_decode_psl_serr(ctx->afu, serr); in cxl_native_irq_dump_regs_psl8() [all …]
|
H A D | guest.c | 201 u64 serr, afu_error, dsisr; in guest_slice_irq_err() local 203 rc = cxl_h_get_fn_error_interrupt(afu->guest->handle, &serr); in guest_slice_irq_err() 210 cxl_afu_decode_psl_serr(afu, serr); in guest_slice_irq_err() 214 rc = cxl_h_ack_fn_error_interrupt(afu->guest->handle, serr); in guest_slice_irq_err()
|
H A D | cxl.h | 1112 void cxl_afu_decode_psl_serr(struct cxl_afu *afu, u64 serr);
|
/linux/net/ipv4/ |
H A D | ip_sockglue.c | 415 struct sock_exterr_skb *serr; in ip_icmp_error() local 421 serr = SKB_EXT_ERR(skb); in ip_icmp_error() 422 serr->ee.ee_errno = err; in ip_icmp_error() 423 serr->ee.ee_origin = SO_EE_ORIGIN_ICMP; in ip_icmp_error() 424 serr->ee.ee_type = icmp_hdr(skb)->type; in ip_icmp_error() 425 serr->ee.ee_code = icmp_hdr(skb)->code; in ip_icmp_error() 426 serr->ee.ee_pad = 0; in ip_icmp_error() 427 serr->ee.ee_info = info; in ip_icmp_error() 428 serr->ee.ee_data = 0; in ip_icmp_error() 429 serr->addr_offset = (u8 *)&(((struct iphdr *)(icmp_hdr(skb) + 1))->daddr) - in ip_icmp_error() [all …]
|
/linux/net/can/j1939/ |
H A D | socket.c | 988 struct sock_exterr_skb *serr; in __j1939_sk_errqueue() local 1031 serr = SKB_EXT_ERR(skb); in __j1939_sk_errqueue() 1032 memset(serr, 0, sizeof(*serr)); in __j1939_sk_errqueue() 1035 serr->ee.ee_errno = ENOMSG; in __j1939_sk_errqueue() 1036 serr->ee.ee_origin = SO_EE_ORIGIN_TIMESTAMPING; in __j1939_sk_errqueue() 1037 serr->ee.ee_info = SCM_TSTAMP_ACK; in __j1939_sk_errqueue() 1041 serr->ee.ee_errno = ENOMSG; in __j1939_sk_errqueue() 1042 serr->ee.ee_origin = SO_EE_ORIGIN_TIMESTAMPING; in __j1939_sk_errqueue() 1043 serr->ee.ee_info = SCM_TSTAMP_SCHED; in __j1939_sk_errqueue() 1047 serr->ee.ee_errno = session->err; in __j1939_sk_errqueue() [all …]
|
/linux/net/sched/ |
H A D | sch_etf.c | 137 struct sock_exterr_skb *serr; in report_sock_error() local 149 serr = SKB_EXT_ERR(clone); in report_sock_error() 150 serr->ee.ee_errno = err; in report_sock_error() 151 serr->ee.ee_origin = SO_EE_ORIGIN_TXTIME; in report_sock_error() 152 serr->ee.ee_type = 0; in report_sock_error() 153 serr->ee.ee_code = code; in report_sock_error() 154 serr->ee.ee_pad = 0; in report_sock_error() 155 serr->ee.ee_data = (txtime >> 32); /* high part of tstamp */ in report_sock_error() 156 serr->ee.ee_info = txtime; /* low part of tstamp */ in report_sock_error()
|
/linux/tools/testing/selftests/net/ |
H A D | txtimestamp.c | 311 struct sock_extended_err *serr = NULL; in __recv_errmsg_cmsg() local 328 serr = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg() 329 if (serr->ee_errno != ENOMSG || in __recv_errmsg_cmsg() 330 serr->ee_origin != SO_EE_ORIGIN_TIMESTAMPING) { in __recv_errmsg_cmsg() 332 serr->ee_errno, in __recv_errmsg_cmsg() 333 serr->ee_origin); in __recv_errmsg_cmsg() 334 serr = NULL; in __recv_errmsg_cmsg() 350 if (serr && tss) { in __recv_errmsg_cmsg() 351 print_timestamp(tss, serr->ee_info, serr->ee_data, in __recv_errmsg_cmsg() 353 serr = NULL; in __recv_errmsg_cmsg()
|
H A D | msg_zerocopy.c | 397 struct sock_extended_err *serr; in do_recv_completion() local 427 serr = (void *) CMSG_DATA(cm); in do_recv_completion() 429 if (serr->ee_origin != SO_EE_ORIGIN_ZEROCOPY) in do_recv_completion() 430 error(1, 0, "serr: wrong origin: %u", serr->ee_origin); in do_recv_completion() 431 if (serr->ee_errno != 0) in do_recv_completion() 432 error(1, 0, "serr: wrong error code: %u", serr->ee_errno); in do_recv_completion() 434 hi = serr->ee_data; in do_recv_completion() 435 lo = serr->ee_info; in do_recv_completion() 446 zerocopy = !(serr->ee_code & SO_EE_CODE_ZEROCOPY_COPIED); in do_recv_completion()
|
/linux/Documentation/networking/ |
H A D | msg_zerocopy.rst | 192 struct sock_extended_err *serr; 200 serr = (void *) CMSG_DATA(cm); 201 if (serr->ee_errno != 0 || 202 serr->ee_origin != SO_EE_ORIGIN_ZEROCOPY) 203 error(1, 0, "serr"); 205 printf("completed: %u..%u\n", serr->ee_info, serr->ee_data);
|
/linux/drivers/edac/ |
H A D | bluefield_edac.c | 99 u32 ecc_latch_select, dram_syndrom, serr, derr, syndrom; in bluefield_gather_report_ecc() local 120 serr = FIELD_GET(MLXBF_SYNDROM__SERR, dram_syndrom); in bluefield_gather_report_ecc() 124 if ((is_single_ecc && !serr) || (!is_single_ecc && !derr)) { in bluefield_gather_report_ecc()
|
/linux/drivers/net/arcnet/ |
H A D | arcnet.c | 433 struct sock_exterr_skb *serr; in arcnet_reply_work() local 454 serr = SKB_EXT_ERR(ackskb); in arcnet_reply_work() 455 memset(serr, 0, sizeof(*serr)); in arcnet_reply_work() 456 serr->ee.ee_errno = ENOMSG; in arcnet_reply_work() 457 serr->ee.ee_origin = SO_EE_ORIGIN_TXSTATUS; in arcnet_reply_work() 458 serr->ee.ee_data = skb_shinfo(skb)->tskey; in arcnet_reply_work() 459 serr->ee.ee_info = lp->reply_status; in arcnet_reply_work()
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-pci-defs.h | 1392 uint64_t serr:1; member 1416 uint64_t serr:1; 1463 uint64_t serr:1; member 1487 uint64_t serr:1; 1532 uint64_t serr:1; member 1556 uint64_t serr:1; 1609 uint64_t serr:1; member 1633 uint64_t serr:1; 1680 uint64_t serr:1; member 1704 uint64_t serr:1; [all …]
|
/linux/net/core/ |
H A D | skbuff.c | 1786 struct sock_exterr_skb *serr = SKB_EXT_ERR(skb); in skb_zerocopy_notify_extend() local 1790 old_lo = serr->ee.ee_info; in skb_zerocopy_notify_extend() 1791 old_hi = serr->ee.ee_data; in skb_zerocopy_notify_extend() 1800 serr->ee.ee_data += len; in skb_zerocopy_notify_extend() 1807 struct sock_exterr_skb *serr; in __msg_zerocopy_callback() local 1828 serr = SKB_EXT_ERR(skb); in __msg_zerocopy_callback() 1829 memset(serr, 0, sizeof(*serr)); in __msg_zerocopy_callback() 1830 serr->ee.ee_errno = 0; in __msg_zerocopy_callback() 1831 serr->ee.ee_origin = SO_EE_ORIGIN_ZEROCOPY; in __msg_zerocopy_callback() 1832 serr->ee.ee_data = hi; in __msg_zerocopy_callback() [all …]
|
H A D | sock.c | 3730 struct sock_exterr_skb *serr; in sock_recv_errqueue() local 3750 serr = SKB_EXT_ERR(skb); in sock_recv_errqueue() 3751 put_cmsg(msg, level, type, sizeof(serr->ee), &serr->ee); in sock_recv_errqueue()
|
/linux/drivers/s390/cio/ |
H A D | device_status.c | 154 cdev_sublog->serr = sublog->serr; in ccw_device_accumulate_esw()
|
/linux/arch/s390/include/asm/ |
H A D | cio.h | 141 __u32 serr : 1; member
|
/linux/tools/testing/selftests/tc-testing/ |
H A D | tdc.py | 222 (rawout, serr) = proc.communicate(timeout=NAMES['TIMEOUT']) 223 if proc.returncode != 0 and len(serr) > 0: 224 foutput = serr.decode("utf-8", errors="ignore")
|
/linux/tools/perf/ |
H A D | builtin-top.c | 814 char serr[256]; in perf_event__process_sample() local 816 dso__strerror_load(map__dso(al.map), serr, sizeof(serr)); in perf_event__process_sample() 818 symbol_conf.vmlinux_name, serr, msg); in perf_event__process_sample()
|
/linux/drivers/ata/ |
H A D | sata_mv.c | 2605 u32 edma_err_cause, eh_freeze_mask, serr = 0; in mv_err_intr() local 2619 sata_scr_read(&ap->link, SCR_ERROR, &serr); in mv_err_intr() 2620 sata_scr_write_flush(&ap->link, SCR_ERROR, serr); in mv_err_intr() 2693 ata_ehi_push_desc(ehi, "SError=%08x", serr); in mv_err_intr() 2704 ehi->serror |= serr; in mv_err_intr() 3666 void __iomem *serr, *shd_base = port_mmio + SHD_BLK; in mv_port_init() local 3684 serr = port_mmio + mv_scr_offset(SCR_ERROR); in mv_port_init() 3685 writelfl(readl(serr), serr); in mv_port_init()
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | ibm,emac.txt | 175 5 sources: tx_eob, rx_eob, serr, txde, rxde>.
|
/linux/drivers/infiniband/sw/rdmavt/ |
H A D | qp.c | 2972 goto serr; in rvt_ruc_loopback() 3095 goto serr; in rvt_ruc_loopback() 3155 goto serr; in rvt_ruc_loopback() 3187 serr: in rvt_ruc_loopback()
|