Home
last modified time | relevance | path

Searched refs:reg_field (Results 1 – 25 of 82) sorted by relevance

1234

/openbmc/linux/sound/soc/qcom/
H A Dlpass.h220 struct reg_field loopback;
221 struct reg_field spken;
222 struct reg_field spkmode;
223 struct reg_field spkmono;
224 struct reg_field micen;
225 struct reg_field micmode;
226 struct reg_field micmono;
227 struct reg_field wssrc;
228 struct reg_field bitwidth;
248 struct reg_field sstream_en;
[all …]
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_hdmi.h204 struct reg_field ddc_clk_reg;
211 struct reg_field field_ddc_en;
212 struct reg_field field_ddc_start;
213 struct reg_field field_ddc_reset;
214 struct reg_field field_ddc_addr_reg;
215 struct reg_field field_ddc_slave_addr;
216 struct reg_field field_ddc_int_mask;
217 struct reg_field field_ddc_int_status;
218 struct reg_field field_ddc_fifo_clear;
219 struct reg_field field_ddc_fifo_rx_thres;
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/
H A Ddm_services.h96 #define get_reg_field_value(reg_value, reg_name, reg_field)\ argument
99 reg_name ## __ ## reg_field ## _MASK,\
100 reg_name ## __ ## reg_field ## __SHIFT)
112 #define set_reg_field_value(reg_value, value, reg_name, reg_field)\ argument
116 reg_name ## __ ## reg_field ## _MASK,\
117 reg_name ## __ ## reg_field ## __SHIFT)
134 #define FD(reg_field) reg_field ## __SHIFT, \ argument
135 reg_field ## _MASK
165 #define get_reg_field_value_soc15(reg_value, block, reg_num, reg_name, reg_field)\ argument
168 block ## reg_num ## _ ## reg_name ## __ ## reg_field ## _MASK,\
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Diqs7211.c1523 struct iqs7211_reg_field_desc *reg_field; in iqs7211_init_device() local
1555 list_for_each_entry(reg_field, &iqs7211->reg_field_head, list) { in iqs7211_init_device()
1556 u16 new_val = reg_field->val; in iqs7211_init_device()
1558 if (reg_field->mask < U16_MAX) { in iqs7211_init_device()
1561 error = iqs7211_read_word(iqs7211, reg_field->addr, in iqs7211_init_device()
1566 new_val = old_val & ~reg_field->mask; in iqs7211_init_device()
1567 new_val |= reg_field->val; in iqs7211_init_device()
1573 error = iqs7211_write_word(iqs7211, reg_field->addr, new_val); in iqs7211_init_device()
1611 struct iqs7211_reg_field_desc *reg_field; in iqs7211_add_field() local
1616 list_for_each_entry(reg_field, &iqs7211->reg_field_head, list) { in iqs7211_add_field()
[all …]
/openbmc/linux/drivers/cpufreq/
H A Dsti-cpufreq.c108 static int sti_cpufreq_fetch_regmap_field(const struct reg_field *reg_fields, in sti_cpufreq_fetch_regmap_field()
112 struct reg_field reg_field = reg_fields[field]; in sti_cpufreq_fetch_regmap_field() local
117 reg_field.reg = hw_info_offset; in sti_cpufreq_fetch_regmap_field()
120 reg_field); in sti_cpufreq_fetch_regmap_field()
136 static const struct reg_field sti_stih407_dvfs_regfields[DVFS_MAX_REGFIELDS] = {
141 static const struct reg_field *sti_cpufreq_match(void) in sti_cpufreq_match()
155 const struct reg_field *reg_fields; in sti_cpufreq_set_opp_info()
/openbmc/linux/drivers/phy/ti/
H A Dphy-j721e-wiz.c87 static const struct reg_field por_en = REG_FIELD(WIZ_SERDES_CTRL, 31, 31);
88 static const struct reg_field phy_reset_n = REG_FIELD(WIZ_SERDES_RST, 31, 31);
89 static const struct reg_field phy_en_refclk = REG_FIELD(WIZ_SERDES_RST, 30, 30);
90 static const struct reg_field pll1_refclk_mux_sel =
92 static const struct reg_field pll1_refclk_mux_sel_2 =
94 static const struct reg_field pll0_refclk_mux_sel =
96 static const struct reg_field pll0_refclk_mux_sel_2 =
98 static const struct reg_field refclk_dig_sel_16g =
100 static const struct reg_field refclk_dig_sel_10g =
102 static const struct reg_field pma_cmn_refclk_int_mode =
[all …]
H A Dphy-gmii-sel.c52 const struct reg_field (*regfields)[PHY_GMII_SEL_LAST];
167 struct reg_field phy_gmii_sel_fields_am33xx[][PHY_GMII_SEL_LAST] = {
189 struct reg_field phy_gmii_sel_fields_dra7[][PHY_GMII_SEL_LAST] = {
212 struct reg_field phy_gmii_sel_fields_am654[][PHY_GMII_SEL_LAST] = {
331 const struct reg_field *fields; in phy_gmii_init_phy()
333 struct reg_field field; in phy_gmii_init_phy()
/openbmc/linux/drivers/net/phy/
H A Dnxp-c45-tja11xx.c318 const struct nxp_c45_reg_field *reg_field) in nxp_c45_read_reg_field() argument
323 if (reg_field->size == 0) { in nxp_c45_read_reg_field()
328 ret = phy_read_mmd(phydev, reg_field->devad, reg_field->reg); in nxp_c45_read_reg_field()
332 mask = reg_field->size == 1 ? BIT(reg_field->offset) : in nxp_c45_read_reg_field()
333 GENMASK(reg_field->offset + reg_field->size - 1, in nxp_c45_read_reg_field()
334 reg_field->offset); in nxp_c45_read_reg_field()
336 ret >>= reg_field->offset; in nxp_c45_read_reg_field()
342 const struct nxp_c45_reg_field *reg_field, in nxp_c45_write_reg_field() argument
348 if (reg_field->size == 0) { in nxp_c45_write_reg_field()
353 mask = reg_field->size == 1 ? BIT(reg_field->offset) : in nxp_c45_write_reg_field()
[all …]
/openbmc/qemu/hw/xen/
H A Dxen_pt_config_init.c261 uint32_t reg_field = 0; in xen_pt_status_reg_init() local
271 reg_field |= PCI_STATUS_CAP_LIST; in xen_pt_status_reg_init()
273 reg_field &= ~PCI_STATUS_CAP_LIST; in xen_pt_status_reg_init()
287 *data = reg_field; in xen_pt_status_reg_init()
415 uint32_t reg_field = 0; in xen_pt_bar_reg_init() local
427 reg_field = XEN_PT_INVALID_REG; in xen_pt_bar_reg_init()
430 *data = reg_field; in xen_pt_bar_reg_init()
898 uint32_t reg_field = 0; in xen_pt_linkctrl2_reg_init() local
902 reg_field = XEN_PT_INVALID_REG; in xen_pt_linkctrl2_reg_init()
913 reg_field |= PCI_EXP_LNKCAP_SLS & lnkcap; in xen_pt_linkctrl2_reg_init()
[all …]
/openbmc/linux/drivers/clk/mstar/
H A Dclk-msc313-mpll.c22 static const struct reg_field config1_loop_div_first = REG_FIELD(REG_CONFIG1, 8, 9);
23 static const struct reg_field config1_input_div_first = REG_FIELD(REG_CONFIG1, 4, 5);
24 static const struct reg_field config2_output_div_first = REG_FIELD(REG_CONFIG2, 12, 13);
25 static const struct reg_field config2_loop_div_second = REG_FIELD(REG_CONFIG2, 0, 7);
/openbmc/linux/drivers/reset/sti/
H A Dreset-syscfg.h24 struct reg_field reset;
25 struct reg_field ack;
/openbmc/linux/drivers/iio/light/
H A Dstk3310.c67 static const struct reg_field stk3310_reg_field_state =
69 static const struct reg_field stk3310_reg_field_als_gain =
71 static const struct reg_field stk3310_reg_field_ps_gain =
73 static const struct reg_field stk3310_reg_field_als_it =
75 static const struct reg_field stk3310_reg_field_ps_it =
77 static const struct reg_field stk3310_reg_field_int_ps =
79 static const struct reg_field stk3310_reg_field_flag_psint =
81 static const struct reg_field stk3310_reg_field_flag_nf =
H A Dapds9960.c346 static const struct reg_field apds9960_reg_field_int_als =
349 static const struct reg_field apds9960_reg_field_int_ges =
352 static const struct reg_field apds9960_reg_field_int_pxs =
355 static const struct reg_field apds9960_reg_field_enable_als =
358 static const struct reg_field apds9960_reg_field_enable_ges =
361 static const struct reg_field apds9960_reg_field_enable_pxs =
/openbmc/linux/drivers/gpu/drm/amd/display/dmub/src/
H A Ddmub_reg.h45 #define FD(reg_field) (REGS)->shift.reg_field, (REGS)->mask.reg_field argument
/openbmc/linux/sound/soc/meson/
H A Daxg-fifo.h12 struct reg_field;
74 struct reg_field field_threshold;
H A Dg12a-toacodec.c54 struct reg_field field_dat_sel;
55 struct reg_field field_lrclk_sel;
56 struct reg_field field_bclk_sel;
/openbmc/linux/drivers/power/supply/
H A Daxp20x_usb_power.c53 struct reg_field curr_lim_fld;
54 struct reg_field vbus_valid_bit;
55 struct reg_field vbus_mon_bit;
56 struct reg_field usb_bc_en_bit;
57 struct reg_field vbus_disable_bit;
517 struct reg_field fdesc, in axp20x_regmap_field_alloc_optional()
/openbmc/linux/drivers/phy/cadence/
H A Dphy-cadence-sierra.c243 static const struct reg_field macro_id_type =
245 static const struct reg_field phy_pll_cfg_1 =
247 static const struct reg_field pma_cmn_ready =
249 static const struct reg_field pllctrl_lock =
251 static const struct reg_field phy_iso_link_ctrl_1 =
253 static const struct reg_field cmn_plllc_clk1outdiv_preg =
255 static const struct reg_field cmn_plllc_clk1_en_preg =
270 struct reg_field pfdclk_sel_preg;
271 struct reg_field plllc1en_field;
272 struct reg_field termen_field;
[all …]
/openbmc/linux/drivers/usb/isp1760/
H A Disp1760-core.c183 static const struct reg_field isp1760_hc_reg_fields[] = {
258 static const struct reg_field isp1763_hc_reg_fields[] = {
371 static const struct reg_field isp1761_dc_reg_fields[] = {
426 static const struct reg_field isp1763_dc_reg_fields[] = {
485 const struct reg_field *hc_reg_fields; in isp1760_register()
487 const struct reg_field *dc_reg_fields; in isp1760_register()
/openbmc/linux/drivers/soc/qcom/
H A Dicc-bwmon.c173 const struct reg_field *regmap_fields;
176 const struct reg_field *global_regmap_fields;
194 static const struct reg_field msm8998_bwmon_reg_fields[] = {
241 static const struct reg_field msm8998_bwmon_global_reg_fields[] = {
307 static const struct reg_field sdm845_cpu_bwmon_reg_fields[] = {
376 static const struct reg_field sdm845_llcc_bwmon_reg_fields[] = {
/openbmc/linux/include/linux/
H A Dregmap.h1335 struct reg_field { struct
1358 struct reg_field reg_field); argument
1362 struct regmap *regmap, struct reg_field reg_field);
1367 const struct reg_field *reg_field,
1372 const struct reg_field *reg_field,
/openbmc/linux/drivers/base/regmap/
H A Dregmap.c1212 struct regmap *regmap, struct reg_field reg_field) in regmap_field_init() argument
1215 rm_field->reg = reg_field.reg; in regmap_field_init()
1216 rm_field->shift = reg_field.lsb; in regmap_field_init()
1217 rm_field->mask = GENMASK(reg_field.msb, reg_field.lsb); in regmap_field_init()
1221 rm_field->id_size = reg_field.id_size; in regmap_field_init()
1222 rm_field->id_offset = reg_field.id_offset; in regmap_field_init()
1237 struct regmap *regmap, struct reg_field reg_field) in devm_regmap_field_alloc() argument
1244 regmap_field_init(rm_field, regmap, reg_field); in devm_regmap_field_alloc()
1266 const struct reg_field *reg_field, in regmap_field_bulk_alloc() argument
1277 regmap_field_init(&rf[i], regmap, reg_field[i]); in regmap_field_bulk_alloc()
[all …]
/openbmc/linux/include/soc/mscc/
H A Dvsc7514_regs.h15 extern const struct reg_field vsc7514_regfields[REGFIELD_MAX];
/openbmc/linux/drivers/thermal/st/
H A Dst_thermal_memmap.c23 static const struct reg_field st_mmap_thermal_regfields[MAX_REGFIELDS] = {
61 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_mmap_alloc_regfields()
/openbmc/linux/sound/soc/jz4740/
H A Djz4740-i2s.c69 struct reg_field field_rx_fifo_thresh;
70 struct reg_field field_tx_fifo_thresh;
71 struct reg_field field_i2sdiv_capture;
72 struct reg_field field_i2sdiv_playback;

1234