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.h221 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;
249 struct reg_field dma_sel;
251 struct reg_field layout;
259 struct reg_field mute;
[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;
222 struct reg_field field_ddc_cmd;
223 struct reg_field field_ddc_sda_en;
[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
168 block ## reg_num ## _ ## reg_name ## __ ## reg_field ## _MASK,\
169 block ## reg_num ## _ ## reg_name ## __ ## reg_field ## __SHIFT)
[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/input/touchscreen/
H A Diqs7211.c1556 u16 new_val = reg_field->val; in iqs7211_init_device()
1567 new_val |= reg_field->val; in iqs7211_init_device()
1625 reg_field = devm_kzalloc(&client->dev, sizeof(*reg_field), GFP_KERNEL); in iqs7211_add_field()
1626 if (!reg_field) in iqs7211_add_field()
1631 reg_field->val = new_field.val; in iqs7211_add_field()
1684 reg_field.addr = reg_addr; in iqs7211_parse_props()
1725 reg_field.mask = U8_MAX; in iqs7211_parse_event()
1970 reg_field.val = 0; in iqs7211_parse_alp()
2009 reg_field.val = 0; in iqs7211_parse_alp()
2058 reg_field.mask = 0; in iqs7211_parse_reg_grp()
[all …]
/openbmc/linux/drivers/phy/ti/
H A Dphy-j721e-wiz.c90 static const struct reg_field pll1_refclk_mux_sel =
94 static const struct reg_field pll0_refclk_mux_sel =
98 static const struct reg_field refclk_dig_sel_16g =
100 static const struct reg_field refclk_dig_sel_10g =
106 static const struct reg_field pma_cmn_refclk_mode =
202 static const struct reg_field typec_ln10_swap =
205 static const struct reg_field typec_ln23_swap =
341 const struct reg_field *pll0_refclk_mux_sel;
342 const struct reg_field *pll1_refclk_mux_sel;
343 const struct reg_field *refclk_dig_sel;
[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.c323 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()
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()
354 GENMASK(reg_field->offset + reg_field->size - 1, in nxp_c45_write_reg_field()
355 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
287 *data = reg_field; in xen_pt_status_reg_init()
415 uint32_t reg_field = 0; in xen_pt_bar_reg_init() local
430 *data = reg_field; in xen_pt_bar_reg_init()
916 *data = reg_field; in xen_pt_linkctrl2_reg_init()
1077 uint16_t reg_field; in xen_pt_msgctrl_reg_init() local
1470 uint16_t reg_field; in xen_pt_msixctrl_reg_init() local
1828 uint8_t reg_field; in xen_pt_ptr_reg_init() local
1836 while (reg_field) { in xen_pt_ptr_reg_init()
1861 reg_field + PCI_CAP_LIST_NEXT, &reg_field); in xen_pt_ptr_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 =
/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/include/soc/mscc/
H A Dvsc7514_regs.h15 extern const struct reg_field vsc7514_regfields[REGFIELD_MAX];
/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/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()
H A Dst_thermal.h71 const struct reg_field *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.c1200 struct regmap *regmap, struct reg_field reg_field) in regmap_field_init() argument
1203 rm_field->reg = reg_field.reg; in regmap_field_init()
1204 rm_field->shift = reg_field.lsb; in regmap_field_init()
1205 rm_field->mask = GENMASK(reg_field.msb, reg_field.lsb); in regmap_field_init()
1209 rm_field->id_size = reg_field.id_size; in regmap_field_init()
1210 rm_field->id_offset = reg_field.id_offset; in regmap_field_init()
1225 struct regmap *regmap, struct reg_field reg_field) in devm_regmap_field_alloc() argument
1232 regmap_field_init(rm_field, regmap, reg_field); in devm_regmap_field_alloc()
1254 const struct reg_field *reg_field, in regmap_field_bulk_alloc() argument
1290 const struct reg_field *reg_field, in devm_regmap_field_bulk_alloc() argument
[all …]
/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