/linux-6.1.9/net/netfilter/ |
D | nft_bitwise.c | 20 u8 dreg; member 68 u32 *dst = ®s->data[priv->dreg]; in nft_bitwise_eval() 180 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_bitwise_init() 242 if (nft_dump_register(skb, NFTA_BITWISE_DREG, priv->dreg)) in nft_bitwise_dump() 269 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_bitwise_offload() 275 priv->sreg != priv->dreg || priv->len != reg->len) in nft_bitwise_offload() 289 u8 dreg; in nft_bitwise_reduce() local 295 bitwise = nft_expr_priv(track->regs[priv->dreg].selector); in nft_bitwise_reduce() 296 if (track->regs[priv->sreg].selector == track->regs[priv->dreg].selector && in nft_bitwise_reduce() 298 track->regs[priv->dreg].bitwise && in nft_bitwise_reduce() [all …]
|
D | nft_immediate.c | 24 nft_data_copy(®s->data[priv->dreg], &priv->data, priv->dlen); in nft_immediate_eval() 68 &priv->dreg, &priv->data, desc.type, in nft_immediate_init() 73 if (priv->dreg == NFT_REG_VERDICT) { in nft_immediate_init() 102 return nft_data_hold(&priv->data, nft_dreg_to_type(priv->dreg)); in nft_immediate_activate() 114 return nft_data_release(&priv->data, nft_dreg_to_type(priv->dreg)); in nft_immediate_deactivate() 126 if (priv->dreg != NFT_REG_VERDICT) in nft_immediate_destroy() 154 if (nft_dump_register(skb, NFTA_IMMEDIATE_DREG, priv->dreg)) in nft_immediate_dump() 158 nft_dreg_to_type(priv->dreg), priv->dlen); in nft_immediate_dump() 173 if (priv->dreg != NFT_REG_VERDICT) in nft_immediate_validate() 224 if (priv->dreg == NFT_REG_VERDICT) in nft_immediate_offload() [all …]
|
D | nft_fib.c | 112 err = nft_parse_register_store(ctx, tb[NFTA_FIB_DREG], &priv->dreg, in nft_fib_init() 125 if (nft_dump_register(skb, NFTA_FIB_DREG, priv->dreg)) in nft_fib_dump() 141 u32 *dreg = reg; in nft_fib_store_result() local 147 *dreg = (priv->flags & NFTA_FIB_F_PRESENT) ? !!index : index; in nft_fib_store_result() 151 *dreg = !!dev; in nft_fib_store_result() 157 *dreg = 0; in nft_fib_store_result() 186 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_fib_reduce() 187 nft_reg_track_update(track, expr, priv->dreg, len); in nft_fib_reduce() 191 fib = nft_expr_priv(track->regs[priv->dreg].selector); in nft_fib_reduce() 194 nft_reg_track_update(track, expr, priv->dreg, len); in nft_fib_reduce() [all …]
|
D | nft_hash.c | 18 u8 dreg; member 37 regs->data[priv->dreg] = h + priv->offset; in nft_jhash_eval() 41 u8 dreg; member 56 regs->data[priv->dreg] = h + priv->offset; in nft_symhash_eval() 112 return nft_parse_register_store(ctx, tb[NFTA_HASH_DREG], &priv->dreg, in nft_jhash_init() 137 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_symhash_init() 148 if (nft_dump_register(skb, NFTA_HASH_DREG, priv->dreg)) in nft_jhash_dump() 173 nft_reg_track_cancel(track, priv->dreg, sizeof(u32)); in nft_jhash_reduce() 183 if (nft_dump_register(skb, NFTA_HASH_DREG, priv->dreg)) in nft_symhash_dump() 204 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_symhash_reduce() [all …]
|
D | nft_numgen.c | 18 u8 dreg; member 42 regs->data[priv->dreg] = nft_ng_inc_gen(priv); in nft_ng_inc_eval() 75 err = nft_parse_register_store(ctx, tb[NFTA_NG_DREG], &priv->dreg, in nft_ng_inc_init() 92 nft_reg_track_cancel(track, priv->dreg, NFT_REG32_SIZE); in nft_ng_inc_reduce() 97 static int nft_ng_dump(struct sk_buff *skb, enum nft_registers dreg, in nft_ng_dump() argument 100 if (nft_dump_register(skb, NFTA_NG_DREG, dreg)) in nft_ng_dump() 119 return nft_ng_dump(skb, priv->dreg, priv->modulus, NFT_NG_INCREMENTAL, in nft_ng_inc_dump() 132 u8 dreg; member 148 regs->data[priv->dreg] = nft_ng_random_gen(priv); in nft_ng_random_eval() 167 return nft_parse_register_store(ctx, tb[NFTA_NG_DREG], &priv->dreg, in nft_ng_random_init() [all …]
|
D | nft_osf.c | 9 u8 dreg; member 24 u32 *dest = ®s->data[priv->dreg]; in nft_osf_eval() 86 err = nft_parse_register_store(ctx, tb[NFTA_OSF_DREG], &priv->dreg, in nft_osf_init() 105 if (nft_dump_register(skb, NFTA_OSF_DREG, priv->dreg)) in nft_osf_dump() 141 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_osf_reduce() 142 nft_reg_track_update(track, expr, priv->dreg, NFT_OSF_MAXGENRELEN); in nft_osf_reduce() 146 osf = nft_expr_priv(track->regs[priv->dreg].selector); in nft_osf_reduce() 149 nft_reg_track_update(track, expr, priv->dreg, NFT_OSF_MAXGENRELEN); in nft_osf_reduce() 153 if (!track->regs[priv->dreg].bitwise) in nft_osf_reduce()
|
D | nft_socket.c | 15 u8 dreg; member 91 u32 *dest = ®s->data[priv->dreg]; in nft_socket_eval() 197 return nft_parse_register_store(ctx, tb[NFTA_SOCKET_DREG], &priv->dreg, in nft_socket_init() 208 if (nft_dump_register(skb, NFTA_SOCKET_DREG, priv->dreg)) in nft_socket_dump() 222 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_socket_reduce() 223 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_socket_reduce() 227 socket = nft_expr_priv(track->regs[priv->dreg].selector); in nft_socket_reduce() 229 priv->dreg != socket->dreg || in nft_socket_reduce() 231 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_socket_reduce() 235 if (!track->regs[priv->dreg].bitwise) in nft_socket_reduce()
|
D | nft_xfrm.c | 27 u8 dreg; member 91 return nft_parse_register_store(ctx, tb[NFTA_XFRM_DREG], &priv->dreg, in nft_xfrm_get_init() 122 u32 *dest = ®s->data[priv->dreg]; in nft_xfrm_state_get_key() 219 if (nft_dump_register(skb, NFTA_XFRM_DREG, priv->dreg)) in nft_xfrm_get_dump() 263 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_xfrm_reduce() 264 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_xfrm_reduce() 268 xfrm = nft_expr_priv(track->regs[priv->dreg].selector); in nft_xfrm_reduce() 270 priv->dreg != xfrm->dreg || in nft_xfrm_reduce() 273 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_xfrm_reduce() 277 if (!track->regs[priv->dreg].bitwise) in nft_xfrm_reduce()
|
D | nft_byteorder.c | 20 u8 dreg; member 32 u32 *dst = ®s->data[priv->dreg]; in nft_byteorder_eval() 147 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_byteorder_init() 157 if (nft_dump_register(skb, NFTA_BYTEORDER_DREG, priv->dreg)) in nft_byteorder_dump() 176 nft_reg_track_cancel(track, priv->dreg, priv->len); in nft_byteorder_reduce()
|
D | nft_exthdr.c | 24 u8 dreg; member 43 u32 *dest = ®s->data[priv->dreg]; in nft_exthdr_ipv6_eval() 139 u32 *dest = ®s->data[priv->dreg]; in nft_exthdr_ipv4_eval() 191 u32 *dest = ®s->data[priv->dreg]; in nft_exthdr_tcp_eval() 374 u32 *dest = ®s->data[priv->dreg]; in nft_exthdr_sctp_eval() 464 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_exthdr_init() 583 if (nft_dump_register(skb, NFTA_EXTHDR_DREG, priv->dreg)) in nft_exthdr_dump() 612 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_exthdr_reduce() 613 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_exthdr_reduce() 617 exthdr = nft_expr_priv(track->regs[priv->dreg].selector); in nft_exthdr_reduce() [all …]
|
D | nft_rt.c | 18 u8 dreg; member 59 u32 *dest = ®s->data[priv->dreg]; in nft_rt_get_eval() 144 return nft_parse_register_store(ctx, tb[NFTA_RT_DREG], &priv->dreg, in nft_rt_get_init() 155 if (nft_dump_register(skb, NFTA_RT_DREG, priv->dreg)) in nft_rt_get_dump()
|
D | nft_meta.c | 315 u32 *dest = ®s->data[priv->dreg]; in nft_meta_get_eval() 534 return nft_parse_register_store(ctx, tb[NFTA_META_DREG], &priv->dreg, in nft_meta_get_init() 678 if (nft_dump_register(skb, NFTA_META_DREG, priv->dreg)) in nft_meta_get_dump() 718 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_meta_get_offload() 752 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_meta_get_reduce() 753 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_meta_get_reduce() 757 meta = nft_expr_priv(track->regs[priv->dreg].selector); in nft_meta_get_reduce() 759 priv->dreg != meta->dreg) { in nft_meta_get_reduce() 760 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_meta_get_reduce() 764 if (!track->regs[priv->dreg].bitwise) in nft_meta_get_reduce()
|
D | nft_payload.c | 127 u32 *dest = ®s->data[priv->dreg]; in nft_payload_eval() 194 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_payload_init() 202 if (nft_dump_register(skb, NFTA_PAYLOAD_DREG, priv->dreg) || in nft_payload_dump() 219 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_payload_reduce() 220 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_payload_reduce() 224 payload = nft_expr_priv(track->regs[priv->dreg].selector); in nft_payload_reduce() 228 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_payload_reduce() 232 if (!track->regs[priv->dreg].bitwise) in nft_payload_reduce() 270 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_payload_offload_ll() 339 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_payload_offload_ip() [all …]
|
D | nft_tunnel.c | 18 u8 dreg; member 28 u32 *dest = ®s->data[priv->dreg]; in nft_tunnel_get_eval() 106 return nft_parse_register_store(ctx, tb[NFTA_TUNNEL_DREG], &priv->dreg, in nft_tunnel_get_init() 117 if (nft_dump_register(skb, NFTA_TUNNEL_DREG, priv->dreg)) in nft_tunnel_get_dump() 133 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_tunnel_get_reduce() 134 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_tunnel_get_reduce() 138 tunnel = nft_expr_priv(track->regs[priv->dreg].selector); in nft_tunnel_get_reduce() 140 priv->dreg != tunnel->dreg || in nft_tunnel_get_reduce() 142 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_tunnel_get_reduce() 146 if (!track->regs[priv->dreg].bitwise) in nft_tunnel_get_reduce()
|
D | nft_lookup.c | 21 u8 dreg; member 79 nft_data_copy(®s->data[priv->dreg], in nft_lookup_eval() 139 &priv->dreg, NULL, set->dtype, in nft_lookup_init() 191 if (nft_dump_register(skb, NFTA_LOOKUP_DREG, priv->dreg)) in nft_lookup_dump() 262 nft_reg_track_cancel(track, priv->dreg, priv->set->dlen); in nft_lookup_reduce()
|
D | nft_ct.c | 31 u8 dreg; member 65 u32 *dest = ®s->data[priv->dreg]; in nft_ct_get_eval() 505 err = nft_parse_register_store(ctx, tb[NFTA_CT_DREG], &priv->dreg, NULL, in nft_ct_get_init() 648 if (nft_dump_register(skb, NFTA_CT_DREG, priv->dreg)) in nft_ct_get_dump() 689 if (!nft_reg_track_cmp(track, expr, priv->dreg)) { in nft_ct_get_reduce() 690 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_ct_get_reduce() 694 ct = nft_expr_priv(track->regs[priv->dreg].selector); in nft_ct_get_reduce() 696 nft_reg_track_update(track, expr, priv->dreg, priv->len); in nft_ct_get_reduce() 700 if (!track->regs[priv->dreg].bitwise) in nft_ct_get_reduce()
|
/linux-6.1.9/drivers/pinctrl/renesas/ |
D | gpio.c | 25 u8 dreg; member 50 *reg = &chip->regs[gpio_pin->dreg]; in gpio_get_data_reg() 55 const struct pinmux_data_reg *dreg) in gpio_read_data_reg() argument 57 phys_addr_t address = dreg->reg; in gpio_read_data_reg() 60 return sh_pfc_read_raw_reg(mem, dreg->reg_width); in gpio_read_data_reg() 64 const struct pinmux_data_reg *dreg, u32 value) in gpio_write_data_reg() argument 66 phys_addr_t address = dreg->reg; in gpio_write_data_reg() 69 sh_pfc_write_raw_reg(mem, dreg->reg_width, value); in gpio_write_data_reg() 77 const struct pinmux_data_reg *dreg; in gpio_setup_data_reg() local 81 for (i = 0, dreg = pfc->info->data_regs; dreg->reg_width; ++i, ++dreg) { in gpio_setup_data_reg() [all …]
|
/linux-6.1.9/drivers/net/wireless/intersil/orinoco/ |
D | hermes.c | 427 int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; in hermes_bap_pread() local 438 hermes_read_words(hw, dreg, buf, len / 2); in hermes_bap_pread() 455 int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; in hermes_bap_pwrite() local 466 hermes_write_bytes(hw, dreg, buf, len); in hermes_bap_pwrite() 484 int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; in hermes_read_ltv() local 499 rlength = hermes_read_reg(hw, dreg); in hermes_read_ltv() 504 rtype = hermes_read_reg(hw, dreg); in hermes_read_ltv() 520 hermes_read_words(hw, dreg, buf, nwords); in hermes_read_ltv() 528 int dreg = bap ? HERMES_DATA1 : HERMES_DATA0; in hermes_write_ltv() local 539 hermes_write_reg(hw, dreg, length); in hermes_write_ltv() [all …]
|
/linux-6.1.9/drivers/regulator/ |
D | hi655x-regulator.c | 107 #define HI655X_LDO(_ID, vreg, vmask, ereg, dreg, \ argument 124 .disable_reg = HI655X_BUS_ADDR(dreg), \ 128 #define HI655X_LDO_LINEAR(_ID, vreg, vmask, ereg, dreg, \ argument 146 .disable_reg = HI655X_BUS_ADDR(dreg), \
|
/linux-6.1.9/include/net/netfilter/ |
D | nf_tables.h | 143 static inline void nft_reg_store8(u32 *dreg, u8 val) in nft_reg_store8() argument 145 *dreg = 0; in nft_reg_store8() 146 *(u8 *)dreg = val; in nft_reg_store8() 154 static inline void nft_reg_store16(u32 *dreg, u16 val) in nft_reg_store16() argument 156 *dreg = 0; in nft_reg_store16() 157 *(u16 *)dreg = val; in nft_reg_store16() 160 static inline void nft_reg_store_be16(u32 *dreg, __be16 val) in nft_reg_store_be16() argument 162 nft_reg_store16(dreg, (__force __u16)val); in nft_reg_store_be16() 180 static inline void nft_reg_store64(u32 *dreg, u64 val) in nft_reg_store64() argument 182 put_unaligned(val, (u64 *)dreg); in nft_reg_store64() [all …]
|
D | nf_tables_core.h | 34 u8 dreg; member 55 u8 dreg; member 66 u8 dreg; member
|
/linux-6.1.9/arch/x86/net/ |
D | bpf_jit_comp32.c | 487 u8 dreg = dstk ? IA32_EAX : dst; in emit_ia32_shift_r() local 511 EMIT2(0xD3, add_1reg(b2, dreg)); in emit_ia32_shift_r() 515 EMIT3(0x89, add_2reg(0x40, IA32_EBP, dreg), STACK_VAR(dst)); in emit_ia32_shift_r() 530 u8 dreg = dstk ? IA32_EDX : dst; in emit_ia32_alu_r() local 544 EMIT2(0x11, add_2reg(0xC0, dreg, sreg)); in emit_ia32_alu_r() 546 EMIT2(0x01, add_2reg(0xC0, dreg, sreg)); in emit_ia32_alu_r() 551 EMIT2(0x19, add_2reg(0xC0, dreg, sreg)); in emit_ia32_alu_r() 553 EMIT2(0x29, add_2reg(0xC0, dreg, sreg)); in emit_ia32_alu_r() 557 EMIT2(0x09, add_2reg(0xC0, dreg, sreg)); in emit_ia32_alu_r() 561 EMIT2(0x21, add_2reg(0xC0, dreg, sreg)); in emit_ia32_alu_r() [all …]
|
/linux-6.1.9/drivers/net/can/sja1000/ |
D | sja1000.c | 290 uint8_t dreg; in sja1000_start_xmit() local 307 dreg = SJA1000_EFF_BUF; in sja1000_start_xmit() 314 dreg = SJA1000_SFF_BUF; in sja1000_start_xmit() 321 priv->write_reg(priv, dreg++, cf->data[i]); in sja1000_start_xmit() 345 uint8_t dreg; in sja1000_rx() local 358 dreg = SJA1000_EFF_BUF; in sja1000_rx() 366 dreg = SJA1000_SFF_BUF; in sja1000_rx() 376 cf->data[i] = priv->read_reg(priv, dreg++); in sja1000_rx()
|
/linux-6.1.9/drivers/net/can/ |
D | sun4i_can.c | 428 u32 dreg, msg_flag_n; in sun4ican_start_xmit() local 446 dreg = SUN4I_REG_BUF5_ADDR; in sun4ican_start_xmit() 452 dreg = SUN4I_REG_BUF3_ADDR; in sun4ican_start_xmit() 458 writel(cf->data[i], priv->base + (dreg + i * 4)); in sun4ican_start_xmit() 479 u32 dreg; in sun4i_can_rx() local 491 dreg = SUN4I_REG_BUF5_ADDR; in sun4i_can_rx() 498 dreg = SUN4I_REG_BUF3_ADDR; in sun4i_can_rx() 508 cf->data[i] = readl(priv->base + dreg + i * 4); in sun4i_can_rx()
|
/linux-6.1.9/net/bridge/netfilter/ |
D | nft_meta_bridge.c | 27 u32 *dest = ®s->data[priv->dreg]; in nft_meta_bridge_get_eval() 91 return nft_parse_register_store(ctx, tb[NFTA_META_DREG], &priv->dreg, in nft_meta_bridge_get_init()
|