| /linux/net/xdp/ |
| H A D | xsk.c | 63 struct xdp_sock *xs; in xsk_set_tx_need_wakeup() 69 list_for_each_entry_rcu(xs, &pool->xsk_tx_list, tx_list) { in xsk_set_tx_need_wakeup() 70 xs->tx->ring->flags |= XDP_RING_NEED_WAKEUP; in xsk_set_tx_need_wakeup() 90 struct xdp_sock *xs; in xsk_clear_tx_need_wakeup() 96 list_for_each_entry_rcu(xs, &pool->xsk_tx_list, tx_list) { in xsk_clear_tx_need_wakeup() 97 xs->tx->ring->flags &= ~XDP_RING_NEED_WAKEUP; in xsk_clear_tx_need_wakeup() 191 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff_xsk *xskb, u32 len, in __xsk_rcv_zc() 198 err = xskq_prod_reserve_desc(xs->rx, addr, len, flags); in __xsk_rcv_zc() 200 xs->rx_queue_full++; in __xsk_rcv_zc() 208 static void __xsk_rcv_zc_safe(struct xdp_sock *xs, struc in __xsk_rcv_zc_safe() 62 struct xdp_sock *xs; xsk_set_tx_need_wakeup() local 89 struct xdp_sock *xs; xsk_clear_tx_need_wakeup() local 190 __xsk_rcv_zc(struct xdp_sock * xs,struct xdp_buff_xsk * xskb,u32 len,u32 flags) __xsk_rcv_zc() argument 207 __xsk_rcv_zc_safe(struct xdp_sock * xs,struct xdp_buff_xsk * xskb,u32 len,u32 flags) __xsk_rcv_zc_safe() argument 218 xsk_rcv_zc(struct xdp_sock * xs,struct xdp_buff * xdp,u32 len) xsk_rcv_zc() argument 295 __xsk_rcv(struct xdp_sock * xs,struct xdp_buff * xdp,u32 len) __xsk_rcv() argument 364 xsk_tx_writeable(struct xdp_sock * xs) xsk_tx_writeable() argument 372 __xsk_tx_release(struct xdp_sock * xs) __xsk_tx_release() argument 379 xsk_is_bound(struct xdp_sock * xs) xsk_is_bound() argument 389 xsk_dev_queue_valid(const struct xdp_sock * xs,const struct xdp_rxq_info * info) xsk_dev_queue_valid() argument 414 xsk_rcv_check(struct xdp_sock * xs,struct xdp_buff * xdp,u32 len) xsk_rcv_check() argument 429 xsk_flush(struct xdp_sock * xs) xsk_flush() argument 436 xsk_generic_rcv(struct xdp_sock * xs,struct xdp_buff * xdp) xsk_generic_rcv() argument 452 xsk_rcv(struct xdp_sock * xs,struct xdp_buff * xdp) xsk_rcv() argument 472 __xsk_map_redirect(struct xdp_sock * xs,struct xdp_buff * xdp) __xsk_map_redirect() argument 491 struct xdp_sock *xs, *tmp; __xsk_map_flush() local 507 struct xdp_sock *xs; xsk_tx_release() local 519 struct xdp_sock *xs; xsk_tx_peek_desc() local 578 struct xdp_sock *xs; xsk_tx_peek_release_desc_batch() local 621 xsk_wakeup(struct xdp_sock * xs,u8 flags) xsk_wakeup() argument 760 xsk_skb_init_misc(struct sk_buff * skb,struct xdp_sock * xs,u64 addr) xsk_skb_init_misc() argument 778 struct xdp_sock *xs = xdp_sk(skb->sk); xsk_consume_skb() local 842 xsk_build_skb_zerocopy(struct xdp_sock * xs,struct xdp_desc * desc) xsk_build_skb_zerocopy() argument 918 xsk_build_skb(struct xdp_sock * xs,struct xdp_desc * desc) xsk_build_skb() argument 1026 struct xdp_sock *xs = xdp_sk(sk); __xsk_generic_xmit() local 1137 xsk_check_common(struct xdp_sock * xs) xsk_check_common() argument 1151 struct xdp_sock *xs = xdp_sk(sk); __xsk_sendmsg() local 1193 struct xdp_sock *xs = xdp_sk(sk); __xsk_recvmsg() local 1231 struct xdp_sock *xs = xdp_sk(sk); xsk_poll() local 1277 xsk_unbind_dev(struct xdp_sock * xs) xsk_unbind_dev() argument 1291 xsk_get_map_list_entry(struct xdp_sock * xs,struct xdp_sock __rcu *** map_entry) xsk_get_map_list_entry() argument 1311 xsk_delete_from_maps(struct xdp_sock * xs) xsk_delete_from_maps() argument 1340 struct xdp_sock *xs = xdp_sk(sk); xsk_release() local 1392 xsk_validate_queues(struct xdp_sock * xs) xsk_validate_queues() argument 1401 struct xdp_sock *xs = xdp_sk(sk); xsk_bind() local 1595 struct xdp_sock *xs = xdp_sk(sk); xsk_setsockopt() local 1738 struct xdp_sock *xs = xdp_sk(sk); xsk_getsockopt() local 1870 struct xdp_sock *xs = xdp_sk(sock->sk); xsk_mmap() local 1914 struct xdp_sock *xs = xdp_sk(sk); xsk_notifier() local 1963 struct xdp_sock *xs = xdp_sk(sk); xsk_destruct() local 1975 struct xdp_sock *xs; xsk_create() local [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, struc argument 79 xsk_diag_put_stats(const struct xdp_sock * xs,struct sk_buff * nlskb) xsk_diag_put_stats() argument 97 struct xdp_sock *xs = xdp_sk(sk); xsk_diag_fill() local [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 …]
|
| /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 …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ipsec.c | 12 static void ixgbe_ipsec_del_sa(struct net_device *dev, struct xfrm_state *xs); 324 ixgbe_ipsec_del_sa(adapter->netdev, 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(adapter->netdev, 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 …]
|
| /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_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 | 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 | 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_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_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 | 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_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 | 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()
|
| H A D | sp_flong.c | 16 int xs; in ieee754sp_flong() local 27 xs = (x < 0); in ieee754sp_flong() 28 if (xs) { in ieee754sp_flong() 51 return ieee754sp_format(xs, xe, xm); in ieee754sp_flong()
|
| H A D | sp_div.c | 69 return ieee754sp_zero(xs ^ ys); in ieee754sp_div() 74 return ieee754sp_inf(xs ^ ys); in ieee754sp_div() 86 return ieee754sp_inf(xs ^ ys); in ieee754sp_div() 90 return ieee754sp_zero(xs == ys ? 0 : 1); in ieee754sp_div() 141 return ieee754sp_format(xs == ys ? 0 : 1, re, rm); in ieee754sp_div()
|
| H A D | dp_div.c | 69 return ieee754dp_zero(xs ^ ys); in ieee754dp_div() 74 return ieee754dp_inf(xs ^ ys); in ieee754dp_div() 86 return ieee754dp_inf(xs ^ ys); in ieee754dp_div() 90 return ieee754dp_zero(xs == ys ? 0 : 1); in ieee754dp_div() 142 return ieee754dp_format(xs == ys ? 0 : 1, re, rm); in ieee754dp_div()
|
| /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
|
| /linux/drivers/staging/fbtft/ |
| H A D | fb_upd161704.c | 113 static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) in set_addr_win() argument 119 write_reg(par, 0x0006, xs); in set_addr_win() 123 write_reg(par, 0x0006, WIDTH - 1 - xs); in set_addr_win() 128 write_reg(par, 0x0007, xs); in set_addr_win() 132 write_reg(par, 0x0007, HEIGHT - 1 - xs); in set_addr_win()
|