Home
last modified time | relevance | path

Searched refs:reg_info (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.15/drivers/net/dsa/qca/
H A Dqca8k-leds.c33 reg_info->reg = QCA8K_LED_CTRL3_REG; in qca8k_get_enable_led_reg()
98 struct qca8k_led_pattern_en reg_info; in qca8k_led_brightness_set() local
150 mask << reg_info.shift, in qca8k_led_brightness_set()
151 val << reg_info.shift); in qca8k_led_brightness_set()
177 val >>= reg_info.shift; in qca8k_led_brightness_get()
221 regmap_update_bits(priv->regmap, reg_info.reg, mask << reg_info.shift, in qca8k_cled_blink_set()
222 val << reg_info.shift); in qca8k_cled_blink_set()
248 return regmap_update_bits(priv->regmap, reg_info.reg, mask << reg_info.shift, in qca8k_cled_trigger_offload()
249 val << reg_info.shift); in qca8k_cled_trigger_offload()
265 val >>= reg_info.shift; in qca8k_cled_hw_control_status()
[all …]
/linux-6.15/tools/testing/selftests/kvm/arm64/
H A Dhypercalls.c186 val = vcpu_get_reg(vcpu, reg_info->reg); in test_fw_regs_before_vm_start()
187 TEST_ASSERT(val == reg_info->reset_val, in test_fw_regs_before_vm_start()
189 reg_info->reg, reg_info->reset_val, val); in test_fw_regs_before_vm_start()
191 if (reg_info->reset_val) in test_fw_regs_before_vm_start()
214 reg_info->reg, errno); in test_fw_regs_before_vm_start()
221 if (reg_info->max_feat_bit < 63) { in test_fw_regs_before_vm_start()
222 ret = __vcpu_set_reg(vcpu, reg_info->reg, BIT(reg_info->max_feat_bit + 1)); in test_fw_regs_before_vm_start()
225 errno, reg_info->reg); in test_fw_regs_before_vm_start()
246 reg_info->reg); in test_fw_regs_after_vm_start()
253 ret = __vcpu_set_reg(vcpu, reg_info->reg, FW_REG_ULIMIT_VAL(reg_info->max_feat_bit)); in test_fw_regs_after_vm_start()
[all …]
/linux-6.15/drivers/net/wireless/ath/ath11k/
H A Dreg.c646 num_rules = reg_info->num_5ghz_reg_rules + reg_info->num_2ghz_reg_rules; in ath11k_reg_build_regd()
648 if (reg_info->is_ext_reg_event) { in ath11k_reg_build_regd()
706 if (reg_info->num_2ghz_reg_rules && in ath11k_reg_build_regd()
710 reg_info->max_bw_2ghz); in ath11k_reg_build_regd()
716 reg_info->max_bw_5ghz); in ath11k_reg_build_regd()
760 if (reg_info->is_ext_reg_event) { in ath11k_reg_build_regd()
896 pdev_idx = reg_info->phy_id; in ath11k_reg_handle_chan_list()
916 ath11k_reg_reset_info(reg_info); in ath11k_reg_handle_chan_list()
929 (char *)reg_info->alpha2, 2)) in ath11k_reg_handle_chan_list()
1028 if (!reg_info) in ath11k_reg_reset_info()
[all …]
H A Dreg.h33 void ath11k_reg_reset_info(struct cur_regulatory_info *reg_info);
39 struct cur_regulatory_info *reg_info, bool intersect,
47 struct cur_regulatory_info *reg_info,
H A Dwmi.c5275 reg_info->alpha2, reg_info->dfs_region, in ath11k_pull_reg_chan_list_update_ev()
5276 reg_info->min_bw_2ghz, reg_info->max_bw_2ghz, in ath11k_pull_reg_chan_list_update_ev()
5277 reg_info->min_bw_5ghz, reg_info->max_bw_5ghz); in ath11k_pull_reg_chan_list_update_ev()
5563 reg_info->alpha2, reg_info->dfs_region, in ath11k_pull_reg_chan_list_ext_update_ev()
5564 reg_info->min_bw_2ghz, reg_info->max_bw_2ghz, in ath11k_pull_reg_chan_list_ext_update_ev()
5565 reg_info->min_bw_5ghz, reg_info->max_bw_5ghz, in ath11k_pull_reg_chan_list_ext_update_ev()
5627 reg_info->alpha2, reg_info->num_5ghz_reg_rules, in ath11k_pull_reg_chan_list_ext_update_ev()
7188 reg_info = kzalloc(sizeof(*reg_info), GFP_ATOMIC); in ath11k_reg_chan_list_event()
7189 if (!reg_info) in ath11k_reg_chan_list_event()
7208 kfree(reg_info); in ath11k_reg_chan_list_event()
[all …]
/linux-6.15/drivers/net/wireless/ath/ath12k/
H A Dreg.c626 num_rules = reg_info->num_5g_reg_rules + reg_info->num_2g_reg_rules; in ath12k_reg_build_regd()
632 if (reg_info->is_ext_reg_event) in ath12k_reg_build_regd()
656 reg_info->dfs_region, num_rules); in ath12k_reg_build_regd()
661 if (reg_info->num_2g_reg_rules && in ath12k_reg_build_regd()
662 (i < reg_info->num_2g_reg_rules)) { in ath12k_reg_build_regd()
665 reg_info->max_bw_2g); in ath12k_reg_build_regd()
667 } else if (reg_info->num_5g_reg_rules && in ath12k_reg_build_regd()
668 (j < reg_info->num_5g_reg_rules)) { in ath12k_reg_build_regd()
671 reg_info->max_bw_5g); in ath12k_reg_build_regd()
680 } else if (reg_info->is_ext_reg_event && in ath12k_reg_build_regd()
[all …]
H A Dwmi.c5094 __func__, reg_info->alpha2, reg_info->dfs_region, in ath12k_pull_reg_chan_list_ext_update_ev()
5095 reg_info->min_bw_2g, reg_info->max_bw_2g, in ath12k_pull_reg_chan_list_ext_update_ev()
5096 reg_info->min_bw_5g, reg_info->max_bw_5g, in ath12k_pull_reg_chan_list_ext_update_ev()
5097 reg_info->phybitmap); in ath12k_pull_reg_chan_list_ext_update_ev()
5153 reg_info->alpha2, reg_info->num_5g_reg_rules, in ath12k_pull_reg_chan_list_ext_update_ev()
5231 reg_info->client_type, reg_info->domain_code_6g_super_id); in ath12k_pull_reg_chan_list_ext_update_ev()
5961 reg_info = kzalloc(sizeof(*reg_info), GFP_ATOMIC); in ath12k_reg_chan_list_event()
5962 if (!reg_info) { in ath12k_reg_chan_list_event()
6002 reg_info->alpha2, 2)) in ath12k_reg_chan_list_event()
6060 if (reg_info) { in ath12k_reg_chan_list_event()
[all …]
H A Dreg.h99 struct ath12k_reg_info *reg_info,
/linux-6.15/kernel/bpf/
H A Dbpf_iter.c12 const struct bpf_iter_reg *reg_info; member
253 return link->tinfo->reg_info->seq_info; in __get_seq_info()
303 tinfo->reg_info = reg_info; in bpf_iter_reg_target()
320 if (reg_info == tinfo->reg_info) { in bpf_iter_unreg_target()
367 tinfo->reg_info->ctx_arg_info_size); in bpf_iter_prog_supported()
379 const struct bpf_iter_reg *reg_info; in bpf_iter_get_func_proto() local
381 reg_info = tinfo->reg_info; in bpf_iter_get_func_proto()
382 if (reg_info->get_func_proto) in bpf_iter_get_func_proto()
397 if (iter_link->tinfo->reg_info->detach_target) in bpf_iter_link_release()
445 iter_link->tinfo->reg_info->target); in bpf_iter_link_show_fdinfo()
[all …]
/linux-6.15/drivers/clk/mmp/
H A Dclk-mix.c26 unsigned int div_mask = (1 << mix->reg_info.width_div) - 1; in _get_maxdiv()
134 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in _set_rate()
289 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in mmp_clk_mix_get_parent()
307 width = mix->reg_info.width_mux; in mmp_clk_mix_get_parent()
308 shift = mix->reg_info.shift_mux; in mmp_clk_mix_get_parent()
319 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in mmp_clk_mix_recalc_rate()
337 width = mix->reg_info.width_div; in mmp_clk_mix_recalc_rate()
338 shift = mix->reg_info.shift_div; in mmp_clk_mix_recalc_rate()
461 memcpy(&mix->reg_info, &config->reg_info, sizeof(config->reg_info)); in mmp_clk_register_mix()
485 if (config->reg_info.bit_fc >= 32) in mmp_clk_register_mix()
[all …]
H A Dclk-pxa1908-apmu.c51 .reg_info = DEFINE_MIX_REG_INFO(3, 8, 2, 6, 11),
68 sdh_mix_config.reg_info.reg_clk_ctrl = pxa_unit->base + APMU_SDH0; in pxa1908_axi_periph_clk_init()
72 sdh_mix_config.reg_info.reg_clk_ctrl = pxa_unit->base + APMU_SDH1; in pxa1908_axi_periph_clk_init()
76 sdh_mix_config.reg_info.reg_clk_ctrl = pxa_unit->base + APMU_SDH2; in pxa1908_axi_periph_clk_init()
H A Dclk-of-mmp2.c302 .reg_info = DEFINE_MIX_REG_INFO(4, 10, 2, 8, 32),
328 .reg_info = DEFINE_MIX_REG_INFO(4, 17, 2, 6, 32),
331 .reg_info = DEFINE_MIX_REG_INFO(4, 16, 2, 6, 32),
400 sdh_mix_config.reg_info.reg_clk_ctrl = pxa_unit->apmu_base + APMU_SDH0; in mmp2_axi_periph_clk_init()
406 ccic0_mix_config.reg_info.reg_clk_ctrl = pxa_unit->apmu_base + APMU_CCIC0; in mmp2_axi_periph_clk_init()
413 ccic1_mix_config.reg_info.reg_clk_ctrl = pxa_unit->apmu_base + APMU_CCIC1; in mmp2_axi_periph_clk_init()
H A Dclk.h73 struct mmp_clk_mix_reg_info reg_info; member
84 struct mmp_clk_mix_reg_info reg_info; member
/linux-6.15/arch/arc/kernel/
H A Dunwind.c55 } reg_info[] = { variable
62 #define REG_INVALID(r) (reg_info[r].width == 0)
147 struct unwind_item regs[ARRAY_SIZE(reg_info)];
1071 || reg_info[retAddrReg].width != in arc_unwind()
1146 || state.cfa.reg >= ARRAY_SIZE(reg_info) in arc_unwind()
1205 || reg_info[i].width > in arc_unwind()
1206 reg_info[state.regs[i].value].width) in arc_unwind()
1208 switch (reg_info[state.regs[i].value].width) { in arc_unwind()
1242 if (reg_info[i].width != sizeof(UNW_SP(frame)) in arc_unwind()
1249 switch (reg_info[i].width) { in arc_unwind()
[all …]
/linux-6.15/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_symbol.h72 struct reg_info { struct
129 struct reg_info *rinfo;
H A Daicasm_gram.y1481 (struct reg_info *)malloc(sizeof(struct reg_info)); in initialize_symbol()
1487 sizeof(struct reg_info)); in initialize_symbol()
/linux-6.15/drivers/net/wwan/iosm/
H A Diosm_ipc_flash.c335 __le32 reg_info[2]; /* 0th position region address, 1st position size */ in ipc_flash_download_region() local
343 reg_info[0] = cpu_to_le32(nand_address); in ipc_flash_download_region()
346 reg_info[1] = cpu_to_le32(nand_address + rest_len - 2); in ipc_flash_download_region()
348 (u8 *)reg_info, IOSM_MDM_SEND_8, in ipc_flash_download_region()
360 (u8 *)reg_info, IOSM_MDM_SEND_4, mdm_rsp); in ipc_flash_download_region()
/linux-6.15/drivers/regulator/
H A Drc5t583-regulator.c38 struct rc5t583_regulator_info *reg_info = rdev_get_drvdata(rdev); in rc5t583_regulator_enable_time() local
42 return DIV_ROUND_UP(curr_uV, reg_info->enable_uv_per_us); in rc5t583_regulator_enable_time()
/linux-6.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_debugfs.c828 const struct hclge_dbg_reg_type_info *reg_info, in hclge_dbg_dump_reg_tqp() argument
831 const struct hclge_dbg_dfx_message *dfx_message = reg_info->dfx_msg; in hclge_dbg_dump_reg_tqp()
832 const struct hclge_dbg_reg_common_msg *reg_msg = &reg_info->reg_msg; in hclge_dbg_dump_reg_tqp()
858 dfx_message = reg_info->dfx_msg; in hclge_dbg_dump_reg_tqp()
882 const struct hclge_dbg_reg_type_info *reg_info, in hclge_dbg_dump_reg_common() argument
885 const struct hclge_dbg_reg_common_msg *reg_msg = &reg_info->reg_msg; in hclge_dbg_dump_reg_common()
1280 const struct hclge_dbg_reg_type_info *reg_info; in hclge_dbg_dump_reg_cmd() local
1285 reg_info = &hclge_dbg_reg_info[i]; in hclge_dbg_dump_reg_cmd()
1286 if (cmd == reg_info->cmd) { in hclge_dbg_dump_reg_cmd()
1288 return hclge_dbg_dump_reg_tqp(hdev, reg_info, in hclge_dbg_dump_reg_cmd()
[all …]
H A Dhclge_err.c1508 const struct hclge_mod_reg_info *reg_info, int size) in hclge_print_mod_reg_info() argument
1519 actual_len = strlen(reg_info[i].reg_name) + in hclge_print_mod_reg_info()
1521 HCLGE_MOD_REG_VALUE_LEN * reg_info[i].group_size; in hclge_print_mod_reg_info()
1524 reg_info[i].reg_name, actual_len); in hclge_print_mod_reg_info()
1529 reg_info[i].reg_name); in hclge_print_mod_reg_info()
1530 if (reg_info[i].has_suffix) in hclge_print_mod_reg_info()
1537 for (j = 0; j < reg_info[i].group_size; j++) { in hclge_print_mod_reg_info()
1538 offset = reg_info[i].reg_offset_group[j]; in hclge_print_mod_reg_info()
/linux-6.15/drivers/remoteproc/
H A Dqcom_q6v5_mss.c142 struct reg_info { struct
214 struct reg_info active_regs[1];
215 struct reg_info proxy_regs[1];
216 struct reg_info fallback_proxy_regs[2];
271 static int q6v5_regulator_init(struct device *dev, struct reg_info *regs, in q6v5_regulator_init()
294 struct reg_info *regs, int count) in q6v5_regulator_enable()
344 struct reg_info *regs, int count) in q6v5_regulator_disable()
/linux-6.15/drivers/bus/mhi/host/
H A Dinit.c481 } reg_info[] = { in mhi_init_mmio() local
589 for (i = 0; reg_info[i].offset; i++) in mhi_init_mmio()
590 mhi_write_reg(mhi_cntrl, base, reg_info[i].offset, in mhi_init_mmio()
591 reg_info[i].val); in mhi_init_mmio()
/linux-6.15/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_ethtool.c806 const struct reg_addr *reg_info) in bnx2x_is_reg_in_chip() argument
809 return IS_E1_REG(reg_info->chips); in bnx2x_is_reg_in_chip()
811 return IS_E1H_REG(reg_info->chips); in bnx2x_is_reg_in_chip()
813 return IS_E2_REG(reg_info->chips); in bnx2x_is_reg_in_chip()
815 return IS_E3A0_REG(reg_info->chips); in bnx2x_is_reg_in_chip()
817 return IS_E3B0_REG(reg_info->chips); in bnx2x_is_reg_in_chip()
/linux-6.15/sound/soc/samsung/
H A Di2s.c1281 const struct samsung_i2s_variant_regs *reg_info = priv->variant_regs; in i2s_register_clock_provider() local
1315 priv->addr + I2SMOD, reg_info->rclksrc_off, in i2s_register_clock_provider()
1331 priv->addr + I2SMOD, reg_info->cdclkcon_off, in i2s_register_clock_provider()
/linux-6.15/drivers/net/wireless/intel/iwlwifi/fw/
H A Ddbg.c1764 const struct iwl_fw_mon_reg *reg_info) in iwl_get_mon_reg() argument
1773 if (!reg_info || !reg_info->addr || !reg_info->mask) in iwl_get_mon_reg()
1776 val = iwl_read_prph_no_grab(fwrt->trans, reg_info->addr + offs); in iwl_get_mon_reg()
1778 return cpu_to_le32(mask_apply_and_normalize(val, reg_info->mask)); in iwl_get_mon_reg()

12