/openbmc/linux/net/xdp/ |
H A D | xsk.c | 51 struct xdp_sock *xs; in xsk_set_tx_need_wakeup() local 57 list_for_each_entry_rcu(xs, &pool->xsk_tx_list, tx_list) { in xsk_set_tx_need_wakeup() 58 xs->tx->ring->flags |= XDP_RING_NEED_WAKEUP; in xsk_set_tx_need_wakeup() 78 struct xdp_sock *xs; in xsk_clear_tx_need_wakeup() local 84 list_for_each_entry_rcu(xs, &pool->xsk_tx_list, tx_list) { in xsk_clear_tx_need_wakeup() 85 xs->tx->ring->flags &= ~XDP_RING_NEED_WAKEUP; in xsk_clear_tx_need_wakeup() 139 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff_xsk *xskb, u32 len, in __xsk_rcv_zc() argument 146 err = xskq_prod_reserve_desc(xs->rx, addr, len, flags); in __xsk_rcv_zc() 148 xs->rx_queue_full++; in __xsk_rcv_zc() 156 static int xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in xsk_rcv_zc() argument [all …]
|
H A D | xsk_diag.c | 17 static int xsk_diag_put_info(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_info() argument 21 di.ifindex = xs->dev ? xs->dev->ifindex : 0; in xsk_diag_put_info() 22 di.queue_id = xs->queue_id; in xsk_diag_put_info() 35 static int xsk_diag_put_rings_cfg(const struct xdp_sock *xs, in xsk_diag_put_rings_cfg() argument 40 if (xs->rx) in xsk_diag_put_rings_cfg() 41 err = xsk_diag_put_ring(xs->rx, XDP_DIAG_RX_RING, nlskb); in xsk_diag_put_rings_cfg() 42 if (!err && xs->tx) in xsk_diag_put_rings_cfg() 43 err = xsk_diag_put_ring(xs->tx, XDP_DIAG_TX_RING, nlskb); in xsk_diag_put_rings_cfg() 47 static int xsk_diag_put_umem(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_umem() argument 49 struct xsk_buff_pool *pool = xs->pool; in xsk_diag_put_umem() [all …]
|
H A D | xskmap.c | 42 static void xsk_map_sock_add(struct xdp_sock *xs, struct xsk_map_node *node) in xsk_map_sock_add() argument 44 spin_lock_bh(&xs->map_list_lock); in xsk_map_sock_add() 45 list_add_tail(&node->node, &xs->map_list); in xsk_map_sock_add() 46 spin_unlock_bh(&xs->map_list_lock); in xsk_map_sock_add() 49 static void xsk_map_sock_delete(struct xdp_sock *xs, in xsk_map_sock_delete() argument 54 spin_lock_bh(&xs->map_list_lock); in xsk_map_sock_delete() 55 list_for_each_entry_safe(n, tmp, &xs->map_list, node) { in xsk_map_sock_delete() 61 spin_unlock_bh(&xs->map_list_lock); in xsk_map_sock_delete() 166 struct xdp_sock *xs, *old_xs; in xsk_map_update_elem() local 186 xs = (struct xdp_sock *)sock->sk; in xsk_map_update_elem() [all …]
|
/openbmc/linux/drivers/xen/xenfs/ |
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ipsec.c | 19 struct xfrm_state *xs) in ixgbevf_ipsec_set_pf_sa() argument 28 sam->dir = xs->xso.dir; in ixgbevf_ipsec_set_pf_sa() 29 sam->spi = xs->id.spi; in ixgbevf_ipsec_set_pf_sa() 30 sam->proto = xs->id.proto; in ixgbevf_ipsec_set_pf_sa() 31 sam->family = xs->props.family; in ixgbevf_ipsec_set_pf_sa() 33 if (xs->props.family == AF_INET6) in ixgbevf_ipsec_set_pf_sa() 34 memcpy(sam->addr, &xs->id.daddr.a6, sizeof(xs->id.daddr.a6)); in ixgbevf_ipsec_set_pf_sa() 36 memcpy(sam->addr, &xs->id.daddr.a4, sizeof(xs->id.daddr.a4)); in ixgbevf_ipsec_set_pf_sa() 37 memcpy(sam->key, xs->aead->alg_key, sizeof(sam->key)); in ixgbevf_ipsec_set_pf_sa() 117 ret = ixgbevf_ipsec_set_pf_sa(adapter, r->xs); in ixgbevf_ipsec_restore() [all …]
|
/openbmc/linux/drivers/net/netdevsim/ |
H A D | ipsec.c | 42 if (sap->xs->props.family == AF_INET6) in nsim_dbg_netdev_ops_read() 52 i, be32_to_cpu(sap->xs->id.spi), in nsim_dbg_netdev_ops_read() 53 sap->xs->id.proto, sap->salt, sap->crypt); in nsim_dbg_netdev_ops_read() 88 static int nsim_ipsec_parse_proto_keys(struct xfrm_state *xs, in nsim_ipsec_parse_proto_keys() argument 92 struct net_device *dev = xs->xso.real_dev; in nsim_ipsec_parse_proto_keys() 97 if (!xs->aead) { in nsim_ipsec_parse_proto_keys() 102 if (xs->aead->alg_icv_len != NSIM_IPSEC_AUTH_BITS) { in nsim_ipsec_parse_proto_keys() 108 key_data = &xs->aead->alg_key[0]; in nsim_ipsec_parse_proto_keys() 109 key_len = xs->aead->alg_key_len; in nsim_ipsec_parse_proto_keys() 110 alg_name = xs->aead->alg_name; in nsim_ipsec_parse_proto_keys() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ipsec.c | 12 static void ixgbe_ipsec_del_sa(struct xfrm_state *xs); 324 ixgbe_ipsec_del_sa(r->xs); in ixgbe_ipsec_restore() 326 ixgbe_ipsec_set_rx_sa(hw, i, r->xs->id.spi, in ixgbe_ipsec_restore() 333 ixgbe_ipsec_del_sa(t->xs); in ixgbe_ipsec_restore() 404 if (spi == rsa->xs->id.spi && in ixgbe_ipsec_find_rx_state() 405 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbe_ipsec_find_rx_state() 406 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbe_ipsec_find_rx_state() 407 sizeof(rsa->xs->id.daddr.a6)))) && in ixgbe_ipsec_find_rx_state() 408 proto == rsa->xs->id.proto) { in ixgbe_ipsec_find_rx_state() 409 ret = rsa->xs; in ixgbe_ipsec_find_rx_state() [all …]
|
/openbmc/linux/arch/mips/math-emu/ |
H A D | sp_fdp.c | 13 static inline union ieee754sp ieee754sp_nan_fdp(int xs, u64 xm) in ieee754sp_nan_fdp() argument 15 return buildsp(xs, SP_EMAX + 1 + SP_EBIAS, in ieee754sp_nan_fdp() 39 y = ieee754sp_nan_fdp(xs, xm); in ieee754sp_fdp() 48 return ieee754sp_inf(xs); in ieee754sp_fdp() 51 return ieee754sp_zero(xs); in ieee754sp_fdp() 57 if ((ieee754_csr.rm == FPU_CSR_RU && !xs) || in ieee754sp_fdp() 58 (ieee754_csr.rm == FPU_CSR_RD && xs)) in ieee754sp_fdp() 59 return ieee754sp_mind(xs); in ieee754sp_fdp() 60 return ieee754sp_zero(xs); in ieee754sp_fdp() 72 return ieee754sp_format(xs, xe, rm); in ieee754sp_fdp()
|
H A D | dp_fsp.c | 13 static inline union ieee754dp ieee754dp_nan_fsp(int xs, u64 xm) in ieee754dp_nan_fsp() argument 15 return builddp(xs, DP_EMAX + 1 + DP_EBIAS, in ieee754dp_nan_fsp() 31 return ieee754dp_nanxcpt(ieee754dp_nan_fsp(xs, xm)); in ieee754dp_fsp() 34 return ieee754dp_nan_fsp(xs, xm); in ieee754dp_fsp() 37 return ieee754dp_inf(xs); in ieee754dp_fsp() 40 return ieee754dp_zero(xs); in ieee754dp_fsp() 61 return builddp(xs, xe + DP_EBIAS, in ieee754dp_fsp()
|
H A D | sp_tlong.c | 34 return ieee754di_overflow(xs); in ieee754sp_tlong() 45 if (xe == 63 && xs && xm == SP_HIDDEN_BIT) in ieee754sp_tlong() 50 return ieee754di_overflow(xs); in ieee754sp_tlong() 76 if ((round || sticky) && !xs) in ieee754sp_tlong() 80 if ((round || sticky) && xs) in ieee754sp_tlong() 87 return ieee754di_overflow(xs); in ieee754sp_tlong() 92 if (xs) in ieee754sp_tlong()
|
H A D | dp_tint.c | 34 return ieee754si_overflow(xs); in ieee754dp_tint() 47 return ieee754si_overflow(xs); in ieee754dp_tint() 75 if ((round || sticky) && !xs) in ieee754dp_tint() 79 if ((round || sticky) && xs) in ieee754dp_tint() 84 if ((xm >> 31) != 0 && (xs == 0 || xm != 0x80000000)) { in ieee754dp_tint() 87 return ieee754si_overflow(xs); in ieee754dp_tint() 92 if (xs) in ieee754dp_tint()
|
H A D | sp_tint.c | 34 return ieee754si_overflow(xs); in ieee754sp_tint() 45 if (xe == 31 && xs && xm == SP_HIDDEN_BIT) in ieee754sp_tint() 50 return ieee754si_overflow(xs); in ieee754sp_tint() 80 if ((round || sticky) && !xs) in ieee754sp_tint() 84 if ((round || sticky) && xs) in ieee754sp_tint() 91 return ieee754si_overflow(xs); in ieee754sp_tint() 96 if (xs) in ieee754sp_tint()
|
H A D | dp_tlong.c | 34 return ieee754di_overflow(xs); in ieee754dp_tlong() 45 if (xe == 63 && xs && xm == DP_HIDDEN_BIT) in ieee754dp_tlong() 50 return ieee754di_overflow(xs); in ieee754dp_tlong() 80 if ((round || sticky) && !xs) in ieee754dp_tlong() 84 if ((round || sticky) && xs) in ieee754dp_tlong() 91 return ieee754di_overflow(xs); in ieee754dp_tlong() 96 if (xs) in ieee754dp_tlong()
|
H A D | sp_fmax.c | 81 return xs ? y : x; in ieee754sp_fmax() 92 return ieee754sp_zero(xs & ys); in ieee754sp_fmax() 111 if (xs > ys) in ieee754sp_fmax() 113 else if (xs < ys) in ieee754sp_fmax() 117 if (xs == 0) { in ieee754sp_fmax() 132 if (xs == 0) { in ieee754sp_fmax() 203 return ieee754sp_inf(xs & ys); in ieee754sp_fmaxa() 220 return ieee754sp_zero(xs & ys); in ieee754sp_fmaxa() 249 else if (xs == 0) in ieee754sp_fmaxa()
|
H A D | dp_fmax.c | 81 return xs ? y : x; in ieee754dp_fmax() 92 return ieee754dp_zero(xs & ys); in ieee754dp_fmax() 111 if (xs > ys) in ieee754dp_fmax() 113 else if (xs < ys) in ieee754dp_fmax() 117 if (xs == 0) { in ieee754dp_fmax() 132 if (xs == 0) { in ieee754dp_fmax() 203 return ieee754dp_inf(xs & ys); in ieee754dp_fmaxa() 220 return ieee754dp_zero(xs & ys); in ieee754dp_fmaxa() 249 else if (xs == 0) in ieee754dp_fmaxa()
|
H A D | sp_fmin.c | 81 return xs ? x : y; in ieee754sp_fmin() 92 return ieee754sp_zero(xs | ys); in ieee754sp_fmin() 111 if (xs > ys) in ieee754sp_fmin() 113 else if (xs < ys) in ieee754sp_fmin() 117 if (xs == 0) { in ieee754sp_fmin() 132 if (xs == 0) { in ieee754sp_fmin() 203 return ieee754sp_inf(xs | ys); in ieee754sp_fmina() 220 return ieee754sp_zero(xs | ys); in ieee754sp_fmina() 249 else if (xs == 1) in ieee754sp_fmina()
|
H A D | dp_fmin.c | 81 return xs ? x : y; in ieee754dp_fmin() 92 return ieee754dp_zero(xs | ys); in ieee754dp_fmin() 111 if (xs > ys) in ieee754dp_fmin() 113 else if (xs < ys) in ieee754dp_fmin() 117 if (xs == 0) { in ieee754dp_fmin() 132 if (xs == 0) { in ieee754dp_fmin() 203 return ieee754dp_inf(xs | ys); in ieee754dp_fmina() 220 return ieee754dp_zero(xs | ys); in ieee754dp_fmina() 249 else if (xs == 1) in ieee754dp_fmina()
|
H A D | dp_2008class.c | 41 return 0x04 << (xs ? 0 : 4); in ieee754dp_2008class() 43 return 0x08 << (xs ? 0 : 4); in ieee754dp_2008class() 45 return 0x10 << (xs ? 0 : 4); in ieee754dp_2008class() 47 return 0x20 << (xs ? 0 : 4); in ieee754dp_2008class()
|
H A D | sp_2008class.c | 41 return 0x04 << (xs ? 0 : 4); in ieee754sp_2008class() 43 return 0x08 << (xs ? 0 : 4); in ieee754sp_2008class() 45 return 0x10 << (xs ? 0 : 4); in ieee754sp_2008class() 47 return 0x20 << (xs ? 0 : 4); in ieee754sp_2008class()
|
H A D | dp_fint.c | 16 int xs; in ieee754dp_fint() local 27 xs = (x < 0); in ieee754dp_fint() 28 if (xs) { in ieee754dp_fint() 43 return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT); in ieee754dp_fint()
|
H A D | sp_fint.c | 16 int xs; in ieee754sp_fint() local 27 xs = (x < 0); in ieee754sp_fint() 28 if (xs) { in ieee754sp_fint() 52 return ieee754sp_format(xs, xe, xm); in ieee754sp_fint()
|
H A D | dp_flong.c | 16 int xs; in ieee754dp_flong() local 27 xs = (x < 0); in ieee754dp_flong() 28 if (xs) { in ieee754dp_flong() 52 return ieee754dp_format(xs, xe, xm); in ieee754dp_flong()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-xlp.c | 269 static int xlp_spi_xfer_block(struct xlp_spi_priv *xs, in xlp_spi_xfer_block() argument 276 xs->tx_buf = tx_buf; in xlp_spi_xfer_block() 277 xs->rx_buf = rx_buf; in xlp_spi_xfer_block() 278 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 279 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 280 xs->txerrors = xs->rxerrors = 0; in xlp_spi_xfer_block() 283 if (xs->tx_len) in xlp_spi_xfer_block() 284 xlp_spi_fill_txfifo(xs); in xlp_spi_xfer_block() 286 xlp_spi_send_cmd(xs, xfer_len, cmd_cont); in xlp_spi_xfer_block() 293 if (xs->tx_len) in xlp_spi_xfer_block() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/include/ |
H A D | reg.h | 109 #define VSX_XX1(xs, ra, rb) (((xs) & 0x1f) << 21 | ((ra) << 16) | \ argument 110 ((rb) << 11) | (((xs) >> 5))) 111 #define STXVD2X(xs, ra, rb) .long (0x7c000798 | VSX_XX1((xs), (ra), (rb))) argument 112 #define LXVD2X(xs, ra, rb) .long (0x7c000698 | VSX_XX1((xs), (ra), (rb))) argument
|
/openbmc/openbmc/meta-openembedded/meta-perl/recipes-perl/libxml/libxml-libxml-perl/ |
H A D | fix-CATALOG-conditional-compile.patch | 10 LibXML.xs | 2 ++ 13 diff --git a/LibXML.xs b/LibXML.xs 15 --- a/LibXML.xs 16 +++ b/LibXML.xs
|