/Linux-v4.19/net/xdp/ |
D | xsk.c | 38 bool xsk_is_setup_for_bpf_map(struct xdp_sock *xs) in xsk_is_setup_for_bpf_map() argument 40 return READ_ONCE(xs->rx) && READ_ONCE(xs->umem) && in xsk_is_setup_for_bpf_map() 41 READ_ONCE(xs->umem->fq); in xsk_is_setup_for_bpf_map() 56 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv() argument 62 if (!xskq_peek_addr(xs->umem->fq, &addr) || in __xsk_rcv() 63 len > xs->umem->chunk_size_nohr) { in __xsk_rcv() 64 xs->rx_dropped++; in __xsk_rcv() 68 addr += xs->umem->headroom; in __xsk_rcv() 70 buffer = xdp_umem_get_data(xs->umem, addr); in __xsk_rcv() 72 err = xskq_produce_batch_desc(xs->rx, addr, len); in __xsk_rcv() [all …]
|
/Linux-v4.19/drivers/xen/xenfs/ |
D | xensyms.c | 23 static int xensyms_next_sym(struct xensyms *xs) in xensyms_next_sym() argument 26 struct xenpf_symdata *symdata = &xs->op.u.symdata; in xensyms_next_sym() 29 memset(xs->name, 0, xs->namelen); in xensyms_next_sym() 30 symdata->namelen = xs->namelen; in xensyms_next_sym() 34 ret = HYPERVISOR_platform_op(&xs->op); in xensyms_next_sym() 42 if (unlikely(symdata->namelen > xs->namelen)) { in xensyms_next_sym() 43 kfree(xs->name); in xensyms_next_sym() 45 xs->namelen = symdata->namelen; in xensyms_next_sym() 46 xs->name = kzalloc(xs->namelen, GFP_KERNEL); in xensyms_next_sym() 47 if (!xs->name) in xensyms_next_sym() [all …]
|
/Linux-v4.19/drivers/net/netdevsim/ |
D | ipsec.c | 48 i, be32_to_cpu(sap->xs->id.spi), in nsim_dbg_netdev_ops_read() 49 sap->xs->id.proto, sap->salt, sap->crypt); in nsim_dbg_netdev_ops_read() 84 static int nsim_ipsec_parse_proto_keys(struct xfrm_state *xs, in nsim_ipsec_parse_proto_keys() argument 88 struct net_device *dev = xs->xso.dev; in nsim_ipsec_parse_proto_keys() 93 if (!xs->aead) { in nsim_ipsec_parse_proto_keys() 98 if (xs->aead->alg_icv_len != NSIM_IPSEC_AUTH_BITS) { in nsim_ipsec_parse_proto_keys() 104 key_data = &xs->aead->alg_key[0]; in nsim_ipsec_parse_proto_keys() 105 key_len = xs->aead->alg_key_len; in nsim_ipsec_parse_proto_keys() 106 alg_name = xs->aead->alg_name; in nsim_ipsec_parse_proto_keys() 128 static int nsim_ipsec_add_sa(struct xfrm_state *xs) in nsim_ipsec_add_sa() argument [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 322 ixgbe_ipsec_set_rx_sa(hw, i, rsa->xs->id.spi, in ixgbe_ipsec_restore() 385 if (spi == rsa->xs->id.spi && in ixgbe_ipsec_find_rx_state() 386 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbe_ipsec_find_rx_state() 387 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbe_ipsec_find_rx_state() 388 sizeof(rsa->xs->id.daddr.a6)))) && in ixgbe_ipsec_find_rx_state() 389 proto == rsa->xs->id.proto) { in ixgbe_ipsec_find_rx_state() 390 ret = rsa->xs; in ixgbe_ipsec_find_rx_state() 408 static int ixgbe_ipsec_parse_proto_keys(struct xfrm_state *xs, in ixgbe_ipsec_parse_proto_keys() argument 411 struct net_device *dev = xs->xso.dev; in ixgbe_ipsec_parse_proto_keys() 417 if (!xs->aead) { in ixgbe_ipsec_parse_proto_keys() [all …]
|
/Linux-v4.19/kernel/bpf/ |
D | xskmap.c | 82 struct xdp_sock *xs; in xsk_map_free() local 84 xs = m->xsk_map[i]; in xsk_map_free() 85 if (!xs) in xsk_map_free() 88 sock_put((struct sock *)xs); in xsk_map_free() 116 struct xdp_sock *xs; in __xsk_map_lookup_elem() local 121 xs = READ_ONCE(m->xsk_map[key]); in __xsk_map_lookup_elem() 122 return xs; in __xsk_map_lookup_elem() 126 struct xdp_sock *xs) in __xsk_map_redirect() argument 132 err = xsk_rcv(xs, xdp); in __xsk_map_redirect() 136 if (!xs->flush_node.prev) in __xsk_map_redirect() [all …]
|
/Linux-v4.19/arch/mips/math-emu/ |
D | sp_fdp.c | 25 static inline union ieee754sp ieee754sp_nan_fdp(int xs, u64 xm) in ieee754sp_nan_fdp() argument 27 return buildsp(xs, SP_EMAX + 1 + SP_EBIAS, in ieee754sp_nan_fdp() 52 y = ieee754sp_nan_fdp(xs, xm); in ieee754sp_fdp() 61 return ieee754sp_inf(xs); in ieee754sp_fdp() 64 return ieee754sp_zero(xs); in ieee754sp_fdp() 70 if ((ieee754_csr.rm == FPU_CSR_RU && !xs) || in ieee754sp_fdp() 71 (ieee754_csr.rm == FPU_CSR_RD && xs)) in ieee754sp_fdp() 72 return ieee754sp_mind(xs); in ieee754sp_fdp() 73 return ieee754sp_zero(xs); in ieee754sp_fdp() 85 return ieee754sp_format(xs, xe, rm); in ieee754sp_fdp()
|
D | dp_fsp.c | 25 static inline union ieee754dp ieee754dp_nan_fsp(int xs, u64 xm) in ieee754dp_nan_fsp() argument 27 return builddp(xs, DP_EMAX + 1 + DP_EBIAS, in ieee754dp_nan_fsp() 43 return ieee754dp_nanxcpt(ieee754dp_nan_fsp(xs, xm)); in ieee754dp_fsp() 46 return ieee754dp_nan_fsp(xs, xm); in ieee754dp_fsp() 49 return ieee754dp_inf(xs); in ieee754dp_fsp() 52 return ieee754dp_zero(xs); in ieee754dp_fsp() 73 return builddp(xs, xe + DP_EBIAS, in ieee754dp_fsp()
|
D | sp_tlong.c | 46 return ieee754di_overflow(xs); in ieee754sp_tlong() 57 if (xe == 63 && xs && xm == SP_HIDDEN_BIT) in ieee754sp_tlong() 62 return ieee754di_overflow(xs); in ieee754sp_tlong() 88 if ((round || sticky) && !xs) in ieee754sp_tlong() 92 if ((round || sticky) && xs) in ieee754sp_tlong() 99 return ieee754di_overflow(xs); in ieee754sp_tlong() 104 if (xs) in ieee754sp_tlong()
|
D | dp_tint.c | 46 return ieee754si_overflow(xs); in ieee754dp_tint() 59 return ieee754si_overflow(xs); in ieee754dp_tint() 87 if ((round || sticky) && !xs) in ieee754dp_tint() 91 if ((round || sticky) && xs) in ieee754dp_tint() 96 if ((xm >> 31) != 0 && (xs == 0 || xm != 0x80000000)) { in ieee754dp_tint() 99 return ieee754si_overflow(xs); in ieee754dp_tint() 104 if (xs) in ieee754dp_tint()
|
D | dp_tlong.c | 46 return ieee754di_overflow(xs); in ieee754dp_tlong() 57 if (xe == 63 && xs && xm == DP_HIDDEN_BIT) in ieee754dp_tlong() 62 return ieee754di_overflow(xs); in ieee754dp_tlong() 92 if ((round || sticky) && !xs) in ieee754dp_tlong() 96 if ((round || sticky) && xs) in ieee754dp_tlong() 103 return ieee754di_overflow(xs); in ieee754dp_tlong() 108 if (xs) in ieee754dp_tlong()
|
D | sp_tint.c | 46 return ieee754si_overflow(xs); in ieee754sp_tint() 57 if (xe == 31 && xs && xm == SP_HIDDEN_BIT) in ieee754sp_tint() 62 return ieee754si_overflow(xs); in ieee754sp_tint() 92 if ((round || sticky) && !xs) in ieee754sp_tint() 96 if ((round || sticky) && xs) in ieee754sp_tint() 103 return ieee754si_overflow(xs); in ieee754sp_tint() 108 if (xs) in ieee754sp_tint()
|
D | dp_2008class.c | 44 return 0x04 << (xs ? 0 : 4); in ieee754dp_2008class() 46 return 0x08 << (xs ? 0 : 4); in ieee754dp_2008class() 48 return 0x10 << (xs ? 0 : 4); in ieee754dp_2008class() 50 return 0x20 << (xs ? 0 : 4); in ieee754dp_2008class()
|
D | sp_2008class.c | 44 return 0x04 << (xs ? 0 : 4); in ieee754sp_2008class() 46 return 0x08 << (xs ? 0 : 4); in ieee754sp_2008class() 48 return 0x10 << (xs ? 0 : 4); in ieee754sp_2008class() 50 return 0x20 << (xs ? 0 : 4); in ieee754sp_2008class()
|
D | dp_fmin.c | 84 return xs ? x : y; in ieee754dp_fmin() 95 return ieee754dp_zero(xs | ys); in ieee754dp_fmin() 115 if (xs > ys) in ieee754dp_fmin() 117 else if (xs < ys) in ieee754dp_fmin() 121 if (xs == 0) { in ieee754dp_fmin() 136 if (xs == 0) { in ieee754dp_fmin() 207 return ieee754dp_inf(xs | ys); in ieee754dp_fmina() 224 return ieee754dp_zero(xs | ys); in ieee754dp_fmina() 254 else if (xs == 1) in ieee754dp_fmina()
|
D | sp_fmax.c | 84 return xs ? y : x; in ieee754sp_fmax() 95 return ieee754sp_zero(xs & ys); in ieee754sp_fmax() 115 if (xs > ys) in ieee754sp_fmax() 117 else if (xs < ys) in ieee754sp_fmax() 121 if (xs == 0) { in ieee754sp_fmax() 136 if (xs == 0) { in ieee754sp_fmax() 207 return ieee754sp_inf(xs & ys); in ieee754sp_fmaxa() 224 return ieee754sp_zero(xs & ys); in ieee754sp_fmaxa() 254 else if (xs == 0) in ieee754sp_fmaxa()
|
D | sp_fmin.c | 84 return xs ? x : y; in ieee754sp_fmin() 95 return ieee754sp_zero(xs | ys); in ieee754sp_fmin() 115 if (xs > ys) in ieee754sp_fmin() 117 else if (xs < ys) in ieee754sp_fmin() 121 if (xs == 0) { in ieee754sp_fmin() 136 if (xs == 0) { in ieee754sp_fmin() 207 return ieee754sp_inf(xs | ys); in ieee754sp_fmina() 224 return ieee754sp_zero(xs | ys); in ieee754sp_fmina() 254 else if (xs == 1) in ieee754sp_fmina()
|
D | dp_fmax.c | 84 return xs ? y : x; in ieee754dp_fmax() 95 return ieee754dp_zero(xs & ys); in ieee754dp_fmax() 115 if (xs > ys) in ieee754dp_fmax() 117 else if (xs < ys) in ieee754dp_fmax() 121 if (xs == 0) { in ieee754dp_fmax() 136 if (xs == 0) { in ieee754dp_fmax() 207 return ieee754dp_inf(xs & ys); in ieee754dp_fmaxa() 224 return ieee754dp_zero(xs & ys); in ieee754dp_fmaxa() 254 else if (xs == 0) in ieee754dp_fmaxa()
|
D | dp_fint.c | 28 int xs; in ieee754dp_fint() local 39 xs = (x < 0); in ieee754dp_fint() 40 if (xs) { in ieee754dp_fint() 55 return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT); in ieee754dp_fint()
|
D | sp_fint.c | 28 int xs; in ieee754sp_fint() local 39 xs = (x < 0); in ieee754sp_fint() 40 if (xs) { in ieee754sp_fint() 64 return ieee754sp_format(xs, xe, xm); in ieee754sp_fint()
|
D | dp_flong.c | 28 int xs; in ieee754dp_flong() local 39 xs = (x < 0); in ieee754dp_flong() 40 if (xs) { in ieee754dp_flong() 64 return ieee754dp_format(xs, xe, xm); in ieee754dp_flong()
|
D | sp_flong.c | 28 int xs; in ieee754sp_flong() local 39 xs = (x < 0); in ieee754sp_flong() 40 if (xs) { in ieee754sp_flong() 63 return ieee754sp_format(xs, xe, xm); in ieee754sp_flong()
|
/Linux-v4.19/drivers/spi/ |
D | spi-xlp.c | 278 static int xlp_spi_xfer_block(struct xlp_spi_priv *xs, in xlp_spi_xfer_block() argument 285 xs->tx_buf = tx_buf; in xlp_spi_xfer_block() 286 xs->rx_buf = rx_buf; in xlp_spi_xfer_block() 287 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 288 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 289 xs->txerrors = xs->rxerrors = 0; in xlp_spi_xfer_block() 292 if (xs->tx_len) in xlp_spi_xfer_block() 293 xlp_spi_fill_txfifo(xs); in xlp_spi_xfer_block() 295 xlp_spi_send_cmd(xs, xfer_len, cmd_cont); in xlp_spi_xfer_block() 302 if (xs->tx_len) in xlp_spi_xfer_block() [all …]
|
/Linux-v4.19/include/net/ |
D | xdp_sock.h | 72 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); 73 int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); 74 void xsk_flush(struct xdp_sock *xs); 75 bool xsk_is_setup_for_bpf_map(struct xdp_sock *xs); 83 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() argument 88 static inline int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv() argument 93 static inline void xsk_flush(struct xdp_sock *xs) in xsk_flush() argument 97 static inline bool xsk_is_setup_for_bpf_map(struct xdp_sock *xs) in xsk_is_setup_for_bpf_map() argument
|
/Linux-v4.19/tools/testing/selftests/powerpc/include/ |
D | reg.h | 80 #define VSX_XX1(xs, ra, rb) (((xs) & 0x1f) << 21 | ((ra) << 16) | \ argument 81 ((rb) << 11) | (((xs) >> 5))) 82 #define STXVD2X(xs, ra, rb) .long (0x7c000798 | VSX_XX1((xs), (ra), (rb))) argument 83 #define LXVD2X(xs, ra, rb) .long (0x7c000698 | VSX_XX1((xs), (ra), (rb))) argument
|
/Linux-v4.19/drivers/staging/fbtft/ |
D | fb_ili9163.c | 115 static void set_addr_win(struct fbtft_par *par, int xs, int ys, in set_addr_win() argument 121 xs >> 8, xs & 0xff, xe >> 8, xe & 0xff); in set_addr_win() 128 (xs + __OFFSET) >> 8, (xs + __OFFSET) & 0xff, in set_addr_win() 136 xs >> 8, xs & 0xff, xe >> 8, xe & 0xff); in set_addr_win()
|