/linux/drivers/regulator/ |
H A D | scmi-regulator.c | 55 struct scmi_regulator *sreg = rdev_get_drvdata(rdev); in scmi_reg_enable() local 57 return voltage_ops->config_set(sreg->ph, sreg->id, in scmi_reg_enable() 63 struct scmi_regulator *sreg = rdev_get_drvdata(rdev); in scmi_reg_disable() local 65 return voltage_ops->config_set(sreg->ph, sreg->id, in scmi_reg_disable() 73 struct scmi_regulator *sreg = rdev_get_drvdata(rdev); in scmi_reg_is_enabled() local 75 ret = voltage_ops->config_get(sreg->ph, sreg->id, &config); in scmi_reg_is_enabled() 77 dev_err(&sreg->sdev->dev, in scmi_reg_is_enabled() 79 ret, sreg->desc.name); in scmi_reg_is_enabled() 90 struct scmi_regulator *sreg = rdev_get_drvdata(rdev); in scmi_reg_get_voltage_sel() local 92 ret = voltage_ops->level_get(sreg->ph, sreg->id, &volt_uV); in scmi_reg_get_voltage_sel() [all …]
|
H A D | anatop-regulator.c | 162 struct anatop_regulator *sreg; in anatop_regulator_probe() local 175 sreg = devm_kzalloc(dev, sizeof(*sreg), GFP_KERNEL); in anatop_regulator_probe() 176 if (!sreg) in anatop_regulator_probe() 179 rdesc = &sreg->rdesc; in anatop_regulator_probe() 236 &sreg->delay_reg); in anatop_regulator_probe() 238 &sreg->delay_bit_width); in anatop_regulator_probe() 240 &sreg->delay_bit_shift); in anatop_regulator_probe() 253 config.driver_data = sreg; in anatop_regulator_probe() 258 if (control_reg && sreg->delay_bit_width) { in anatop_regulator_probe() 267 sreg->sel = (val & rdesc->vsel_mask) >> vol_bit_shift; in anatop_regulator_probe() [all …]
|
H A D | hi6421v600-regulator.c | 121 const struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_get_mode() local 124 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_get_mode() 127 if (reg_val & sreg->eco_mode_mask) in hi6421_spmi_regulator_get_mode() 136 const struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_set_mode() local 139 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_set_mode() 145 if (!sreg->eco_mode_mask) in hi6421_spmi_regulator_set_mode() 148 val = sreg->eco_mode_mask; in hi6421_spmi_regulator_set_mode() 155 sreg->eco_mode_mask, val); in hi6421_spmi_regulator_set_mode() 163 const struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_get_optimum_mode() local 165 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_get_optimum_mode() [all …]
|
H A D | hi655x-regulator.c | 108 sreg, cmask, vtable) { \ argument 125 .status_reg = HI655X_BUS_ADDR(sreg), \ 129 sreg, cmask, minv, nvolt, vstep) { \ argument 147 .status_reg = HI655X_BUS_ADDR(sreg), \
|
/linux/net/netfilter/ |
H A D | nft_cmp.c | 21 u8 sreg; member 33 d = memcmp(®s->data[priv->sreg], &priv->data, priv->len); in nft_cmp_eval() 86 err = nft_parse_register_load(ctx, tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp_init() 100 if (nft_dump_register(skb, NFTA_CMP_SREG, priv->sreg)) in nft_cmp_dump() 143 struct nft_offload_reg *reg = &ctx->regs[priv->sreg]; in __nft_cmp_offload() 225 err = nft_parse_register_load(ctx, tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp_fast_init() 249 .sreg = priv->sreg, in nft_cmp_fast_offload() 264 if (nft_dump_register(skb, NFTA_CMP_SREG, priv->sreg)) in nft_cmp_fast_dump() 326 err = nft_parse_register_load(ctx, tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp16_fast_init() 344 .sreg = priv->sreg, in nft_cmp16_fast_offload() [all …]
|
H A D | nft_bitwise.c | 19 u8 sreg; member 67 const u32 *src = ®s->data[priv->sreg]; in nft_bitwise_eval() 174 err = nft_parse_register_load(ctx, tb[NFTA_BITWISE_SREG], &priv->sreg, in nft_bitwise_init() 241 if (nft_dump_register(skb, NFTA_BITWISE_SREG, priv->sreg)) in nft_bitwise_dump() 276 priv->sreg != priv->dreg || priv->len != reg->len) in nft_bitwise_offload() 293 if (!track->regs[priv->sreg].selector) in nft_bitwise_reduce() 297 if (track->regs[priv->sreg].selector == track->regs[priv->dreg].selector && in nft_bitwise_reduce() 298 track->regs[priv->sreg].num_reg == 0 && in nft_bitwise_reduce() 301 priv->sreg == bitwise->sreg && in nft_bitwise_reduce() 312 if (track->regs[priv->sreg].bitwise || in nft_bitwise_reduce() [all …]
|
H A D | nft_range.c | 18 u8 sreg; member 29 d1 = memcmp(®s->data[priv->sreg], &priv->data_from, priv->len); in nft_range_eval() 30 d2 = memcmp(®s->data[priv->sreg], &priv->data_to, priv->len); in nft_range_eval() 86 err = nft_parse_register_load(ctx, tb[NFTA_RANGE_SREG], &priv->sreg, in nft_range_init() 119 if (nft_dump_register(skb, NFTA_RANGE_SREG, priv->sreg)) in nft_range_dump()
|
H A D | nft_byteorder.c | 19 u8 sreg; member 31 u32 *src = ®s->data[priv->sreg]; in nft_byteorder_eval() 142 err = nft_parse_register_load(ctx, tb[NFTA_BYTEORDER_SREG], &priv->sreg, in nft_byteorder_init() 157 if (nft_dump_register(skb, NFTA_BYTEORDER_SREG, priv->sreg)) in nft_byteorder_dump()
|
H A D | nft_objref.c | 101 u8 sreg; member 116 found = nft_set_do_lookup(net, set, ®s->data[priv->sreg], &ext); in nft_objref_map_eval() 146 err = nft_parse_register_load(ctx, tb[NFTA_OBJREF_SET_SREG], &priv->sreg, in nft_objref_map_init() 166 if (nft_dump_register(skb, NFTA_OBJREF_SET_SREG, priv->sreg) || in nft_objref_map_dump()
|
H A D | nft_hash.c | 17 u8 sreg; member 31 const void *data = ®s->data[priv->sreg]; in nft_jhash_eval() 95 err = nft_parse_register_load(ctx, tb[NFTA_HASH_SREG], &priv->sreg, len); in nft_jhash_init() 147 if (nft_dump_register(skb, NFTA_HASH_SREG, priv->sreg)) in nft_jhash_dump()
|
H A D | nft_lookup.c | 20 u8 sreg; member 68 found = nft_set_do_lookup(net, set, ®s->data[priv->sreg], &ext) ^ in nft_lookup_eval() 116 err = nft_parse_register_load(ctx, tb[NFTA_LOOKUP_SREG], &priv->sreg, in nft_lookup_init() 195 if (nft_dump_register(skb, NFTA_LOOKUP_SREG, priv->sreg)) in nft_lookup_dump()
|
H A D | nft_meta.c | 424 u32 *sreg = ®s->data[meta->sreg]; in nft_meta_set_eval() local 425 u32 value = *sreg; in nft_meta_set_eval() 436 value8 = nft_reg_load8(sreg); in nft_meta_set_eval() 444 value8 = nft_reg_load8(sreg); in nft_meta_set_eval() 658 err = nft_parse_register_load(ctx, tb[NFTA_META_SREG], &priv->sreg, len); in nft_meta_set_init() 692 if (nft_dump_register(skb, NFTA_META_SREG, priv->sreg)) in nft_meta_set_dump()
|
/linux/tools/perf/arch/x86/annotate/ |
H A D | instructions.c | 402 int sreg = src->reg1; in update_insn_state_x86() local 412 if (sreg == fbreg) { in update_insn_state_x86() 440 else if (has_reg_type(state, sreg) && state->regs[sreg].ok && in update_insn_state_x86() 441 state->regs[sreg].kind == TSR_KIND_TYPE && in update_insn_state_x86() 442 die_deref_ptr_type(&state->regs[sreg].type, in update_insn_state_x86() 449 insn_offset, src->offset, sreg, dst->reg1); in update_insn_state_x86() 453 else if (sreg == DWARF_REG_PC) { in update_insn_state_x86() 477 else if (has_reg_type(state, sreg) && in update_insn_state_x86() 478 state->regs[sreg].kind == TSR_KIND_PERCPU_BASE) { in update_insn_state_x86() 484 int reg2 = (sreg == src->reg1) ? src->reg2 : src->reg1; in update_insn_state_x86() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | kvm_asm.h | 14 #define PPC_STD(sreg, offset, areg) std sreg, (offset)(areg) 17 #define PPC_STD(sreg, offset, areg) stw sreg, (offset+4)(areg)
|
/linux/drivers/media/pci/cx88/ |
H A D | cx88.h | 597 #define cx_sread(sreg) (core->shadow[sreg]) argument 598 #define cx_swrite(sreg, reg, value) \ argument 599 (core->shadow[sreg] = value, \ 600 writel(core->shadow[sreg], core->lmmio + ((reg) >> 2))) 601 #define cx_sandor(sreg, reg, mask, value) \ argument 602 (core->shadow[sreg] = (core->shadow[sreg] & ~(mask)) | \ 604 writel(core->shadow[sreg], \
|
/linux/include/net/netfilter/ |
H A D | nf_tables_core.h | 35 u8 sreg; member 42 u8 sreg; member 50 u8 sreg; member 70 u8 sreg; member
|
H A D | nf_tables.h | 150 static inline u8 nft_reg_load8(const u32 *sreg) in nft_reg_load8() argument 152 return *(u8 *)sreg; in nft_reg_load8() 166 static inline u16 nft_reg_load16(const u32 *sreg) in nft_reg_load16() argument 168 return *(u16 *)sreg; in nft_reg_load16() 171 static inline __be16 nft_reg_load_be16(const u32 *sreg) in nft_reg_load_be16() argument 173 return (__force __be16)nft_reg_load16(sreg); in nft_reg_load_be16() 176 static inline __be32 nft_reg_load_be32(const u32 *sreg) in nft_reg_load_be32() argument 178 return *(__force __be32 *)sreg; in nft_reg_load_be32() 186 static inline u64 nft_reg_load64(const u32 *sreg) in nft_reg_load64() argument 188 return get_unaligned((u64 *)sreg); in nft_reg_load64() [all …]
|
/linux/net/bridge/netfilter/ |
H A D | nft_meta_bridge.c | 113 u32 *sreg = ®s->data[meta->sreg]; in nft_meta_bridge_set_eval() local 119 value8 = nft_reg_load8(sreg); in nft_meta_bridge_set_eval() 145 err = nft_parse_register_load(ctx, tb[NFTA_META_SREG], &priv->sreg, len); in nft_meta_bridge_set_init()
|
/linux/drivers/hwmon/ |
H A D | ds1621.c | 144 u8 conf, new_conf, sreg, resol; in ds1621_init_client() local 163 sreg = DS1621_COM_START; in ds1621_init_client() 172 sreg = DS1721_COM_START; in ds1621_init_client() 177 sreg = DS1621_COM_START; in ds1621_init_client() 182 i2c_smbus_write_byte(client, sreg); in ds1621_init_client()
|
/linux/drivers/clk/ |
H A D | clk-nomadik.c | 307 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_enable() local 311 while (!(readl(src_base + sreg) & sclk->clkbit)) in src_clk_enable() 320 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_disable() local 324 while (readl(src_base + sreg) & sclk->clkbit) in src_clk_disable() 331 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_is_enabled() local 332 u32 val = readl(src_base + sreg); in src_clk_is_enabled()
|
/linux/drivers/scsi/ |
H A D | esp_scsi.c | 122 p->sreg = esp->sreg; in esp_log_fill_regs() 194 p->val, p->sreg, p->seqreg, in esp_dump_cmd_log() 982 if (esp->sreg & ESP_STAT_SPAM) { in DEF_SCSI_QCMD() 990 "Gross error sreg[%02x]\n", esp->sreg); in DEF_SCSI_QCMD() 1005 esp->sreg &= ~ESP_STAT_INTR; in esp_check_spur_intr() 1009 if (!(esp->sreg & ESP_STAT_INTR)) { in esp_check_spur_intr() 1019 esp->sreg); in esp_check_spur_intr() 1070 esp->sreg = esp_read8(ESP_STATUS); in esp_reconnect_with_tag() 1074 i, esp->ireg, esp->sreg); in esp_reconnect_with_tag() 1082 if ((esp->sreg & ESP_STAT_PMASK) != ESP_MIP) { in esp_reconnect_with_tag() [all …]
|
H A D | zorro_esp.c | 263 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_blz1230_dma_cmd() 314 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_blz1230II_dma_cmd() 359 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_blz2060_dma_cmd() 405 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_cyber_dma_cmd() 456 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_cyberII_dma_cmd() 498 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_fastlane_dma_cmd()
|
/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | verifier.c | 529 const struct bpf_reg_state *sreg = cur_regs(env) + meta->insn.src_reg; in nfp_bpf_check_atomic() local 542 if (sreg->type != SCALAR_VALUE) { in nfp_bpf_check_atomic() 543 pr_vlog(env, "atomic add not of a scalar: %d\n", sreg->type); in nfp_bpf_check_atomic() 548 sreg->var_off.value > 0xffff || sreg->var_off.mask > 0xffff; in nfp_bpf_check_atomic() 550 (sreg->var_off.value & ~sreg->var_off.mask) <= 0xffff; in nfp_bpf_check_atomic() 559 const struct bpf_reg_state *sreg = in nfp_bpf_check_alu() local 564 meta->umin_src = min(meta->umin_src, sreg->umin_value); in nfp_bpf_check_alu() 565 meta->umax_src = max(meta->umax_src, sreg->umax_value); in nfp_bpf_check_alu()
|
/linux/arch/x86/net/ |
H A D | bpf_jit_comp32.c | 239 u8 sreg = sstk ? IA32_EAX : src; in emit_ia32_mov_r() local 246 EMIT3(0x89, add_2reg(0x40, IA32_EBP, sreg), STACK_VAR(dst)); in emit_ia32_mov_r() 249 EMIT2(0x89, add_2reg(0xC0, dst, sreg)); in emit_ia32_mov_r() 290 u8 sreg = sstk ? IA32_ECX : src; in emit_ia32_mul_r() local 304 EMIT2(0xF7, add_1reg(0xE0, sreg)); in emit_ia32_mul_r() 529 u8 sreg = sstk ? IA32_EAX : src; 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() [all …]
|
/linux/tools/arch/arm64/include/asm/ |
H A D | sysreg.h | 726 .macro mrs_s, rt, sreg 727 __emit_inst(0xd5200000|(\sreg)|(.L__gpr_num_\rt)) 730 .macro msr_s, sreg, rt 731 __emit_inst(0xd5000000|(\sreg)|(.L__gpr_num_\rt)) 744 __emit_inst(0xd5200000|(\\sreg)|(.L__gpr_num_\\rt)) \ 750 __emit_inst(0xd5000000|(\\sreg)|(.L__gpr_num_\\rt)) \
|