Home
last modified time | relevance | path

Searched refs:settings (Results 1 – 25 of 545) sorted by relevance

12345678910>>...22

/linux/drivers/clk/
H A Dclk-si514.c97 struct clk_si514_muldiv *settings) in si514_get_muldiv() argument
107 settings->m_frac = reg[0] | reg[1] << 8 | reg[2] << 16 | in si514_get_muldiv()
109 settings->m_int = (reg[4] & 0x3f) << 3 | reg[3] >> 5; in si514_get_muldiv()
110 settings->ls_div_bits = (reg[6] >> 4) & 0x07; in si514_get_muldiv()
111 settings->hs_div = (reg[6] & 0x03) << 8 | reg[5]; in si514_get_muldiv()
116 struct clk_si514_muldiv *settings) in si514_set_muldiv() argument
124 if (settings->m_int < 65 || in si514_set_muldiv()
125 (settings->m_int == 65 && settings->m_frac <= 139575831)) in si514_set_muldiv()
128 else if (settings->m_int < 67 || in si514_set_muldiv()
129 (settings->m_int == 67 && settings->m_frac <= 461581994)) in si514_set_muldiv()
[all …]
H A Dclk-si544.c120 struct clk_si544_muldiv *settings) in si544_get_muldiv() argument
129 settings->ls_div_bits = (reg[1] >> 4) & 0x07; in si544_get_muldiv()
130 settings->hs_div = (reg[1] & 0x07) << 8 | reg[0]; in si544_get_muldiv()
136 settings->fb_div_int = reg[4] | (reg[5] & 0x07) << 8; in si544_get_muldiv()
137 settings->fb_div_frac = reg[0] | reg[1] << 8 | reg[2] << 16 | in si544_get_muldiv()
145 settings->delta_m = reg[0] << 8 | reg[1] << 16 | reg[2] << 24; in si544_get_muldiv()
146 settings->delta_m >>= 8; in si544_get_muldiv()
164 struct clk_si544_muldiv *settings) in si544_set_muldiv() argument
169 reg[0] = settings->hs_div; in si544_set_muldiv()
170 reg[1] = settings->hs_div >> 8 | settings->ls_div_bits << 4; in si544_set_muldiv()
[all …]
/linux/drivers/media/pci/zoran/
H A Dzoran_card.c721 struct zoran_jpg_settings *settings, int try) in zoran_check_jpg_settings() argument
726 __func__, settings->decimation, settings->hor_dcm, in zoran_check_jpg_settings()
727 settings->ver_dcm, settings->tmp_dcm); in zoran_check_jpg_settings()
729 settings->img_x, settings->img_y, in zoran_check_jpg_settings()
730 settings->img_width, settings->img_height); in zoran_check_jpg_settings()
732 switch (settings->decimation) { in zoran_check_jpg_settings()
735 settings->hor_dcm = 1; in zoran_check_jpg_settings()
736 settings->ver_dcm = 1; in zoran_check_jpg_settings()
737 settings->tmp_dcm = 1; in zoran_check_jpg_settings()
738 settings->field_per_buff = 2; in zoran_check_jpg_settings()
[all …]
/linux/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx_shub.c180 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read_output()
257 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_master_enable()
292 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read()
294 aux_sens = &hw->settings->shub_settings.aux_sens; in st_lsm6dsx_shub_read()
343 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_write()
405 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_get_odr_val() local
408 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_get_odr_val()
409 for (i = 0; i < settings->odr_table.odr_len; i++) { in st_lsm6dsx_shub_get_odr_val()
410 if (settings->odr_table.odr_avl[i].milli_hz == odr) in st_lsm6dsx_shub_get_odr_val()
414 if (i == settings->odr_table.odr_len) in st_lsm6dsx_shub_get_odr_val()
[all …]
H A Dst_lsm6dsx_buffer.c179 dec_reg = &hw->settings->decimator[sensor->id]; in st_lsm6dsx_update_decimators()
199 ts_dec_reg = &hw->settings->ts_settings.decimator; in st_lsm6dsx_update_decimators()
227 batch_reg = &hw->settings->batch[sensor->id]; in st_lsm6dsx_set_fifo_odr()
282 fifo_watermark = fifo_watermark * hw->settings->fifo_ops.th_wl; in st_lsm6dsx_update_watermark()
285 err = regmap_read(hw->regmap, hw->settings->fifo_ops.fifo_th.addr + 1, in st_lsm6dsx_update_watermark()
290 fifo_th_mask = hw->settings->fifo_ops.fifo_th.mask; in st_lsm6dsx_update_watermark()
296 hw->settings->fifo_ops.fifo_th.addr, in st_lsm6dsx_update_watermark()
378 u16 fifo_diff_mask = hw->settings->fifo_ops.fifo_diff.mask; in st_lsm6dsx_read_fifo()
384 hw->settings->fifo_ops.fifo_diff.addr, in st_lsm6dsx_read_fifo()
612 hw->settings->fifo_ops.fifo_diff.addr, in st_lsm6dsx_read_tagged_fifo()
[all …]
H A Dst_lsm6dsx_core.c1560 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_set_page()
1601 hw->settings = &st_lsm6dsx_sensor_settings[i]; in st_lsm6dsx_check_whoami()
1613 fs_table = &sensor->hw->settings->fs_table[sensor->id]; in st_lsm6dsx_set_full_scale()
1639 odr_table = &sensor->hw->settings->odr_table[sensor->id]; in st_lsm6dsx_check_odr()
1720 reg = &hw->settings->odr_table[ref_sensor->id].reg; in st_lsm6dsx_set_odr()
1874 if (!hw->settings->irq_config.irq1_func.addr) in st_lsm6dsx_event_setup()
1877 reg = &hw->settings->event_settings.enable_reg; in st_lsm6dsx_event_setup()
1931 reg = &hw->settings->event_settings.wakeup_reg; in st_lsm6dsx_write_event()
2013 val = clamp_val(val, 1, hw->settings->fifo_ops.max_size); in st_lsm6dsx_set_watermark()
2038 odr_table = &sensor->hw->settings->odr_table[sensor->id]; in st_lsm6dsx_sysfs_sampling_frequency_avail()
[all …]
/linux/drivers/spi/
H A Dspi-xcomm.c39 u16 settings; member
85 u16 settings; in spi_xcomm_sync_config() local
88 settings = spi_xcomm->settings; in spi_xcomm_sync_config()
89 settings |= len << SPI_XCOMM_SETTINGS_LEN_OFFSET; in spi_xcomm_sync_config()
92 put_unaligned_be16(settings, &buf[1]); in spi_xcomm_sync_config()
114 unsigned int *settings) in spi_xcomm_setup_transfer() argument
124 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_64; in spi_xcomm_setup_transfer()
126 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_16; in spi_xcomm_setup_transfer()
128 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_4; in spi_xcomm_setup_transfer()
134 *settings |= SPI_XCOMM_SETTINGS_CPOL; in spi_xcomm_setup_transfer()
[all …]
/linux/sound/soc/codecs/
H A Dtlv320aic32x4-clk.c78 struct clk_aic32x4_pll_muldiv *settings) in clk_aic32x4_pll_get_muldiv() argument
87 settings->r = val & AIC32X4_PLL_R_MASK; in clk_aic32x4_pll_get_muldiv()
88 settings->p = (val & AIC32X4_PLL_P_MASK) >> AIC32X4_PLL_P_SHIFT; in clk_aic32x4_pll_get_muldiv()
93 settings->j = val; in clk_aic32x4_pll_get_muldiv()
98 settings->d = val << 8; in clk_aic32x4_pll_get_muldiv()
103 settings->d |= val; in clk_aic32x4_pll_get_muldiv()
109 struct clk_aic32x4_pll_muldiv *settings) in clk_aic32x4_pll_set_muldiv() argument
115 AIC32X4_PLL_R_MASK, settings->r); in clk_aic32x4_pll_set_muldiv()
121 settings->p << AIC32X4_PLL_P_SHIFT); in clk_aic32x4_pll_set_muldiv()
125 ret = regmap_write(pll->regmap, AIC32X4_PLLJ, settings->j); in clk_aic32x4_pll_set_muldiv()
[all …]
/linux/tools/testing/selftests/mm/
H A Dthp_settings.c201 void thp_read_settings(struct thp_settings *settings) in thp_read_settings() argument
208 *settings = (struct thp_settings) { in thp_read_settings()
215 settings->khugepaged = (struct khugepaged_settings) { in thp_read_settings()
227 settings->read_ahead_kb = read_num(dev_queue_read_ahead_path); in thp_read_settings()
231 settings->hugepages[i].enabled = THP_NEVER; in thp_read_settings()
236 settings->hugepages[i].enabled = in thp_read_settings()
242 settings->shmem_hugepages[i].enabled = SHMEM_NEVER; in thp_read_settings()
247 settings->shmem_hugepages[i].enabled = in thp_read_settings()
252 void thp_write_settings(struct thp_settings *settings) in thp_write_settings() argument
254 struct khugepaged_settings *khugepaged = &settings->khugepaged; in thp_write_settings()
[all …]
/linux/drivers/hid/
H A Dhid-roccat-kone.c92 static void kone_set_settings_checksum(struct kone_settings *settings) in kone_set_settings_checksum() argument
95 unsigned char *address = (unsigned char *)settings; in kone_set_settings_checksum()
100 settings->checksum = cpu_to_le16(checksum); in kone_set_settings_checksum()
158 struct kone_settings const *settings) in kone_set_settings() argument
163 settings, sizeof(struct kone_settings)); in kone_set_settings()
276 memcpy(buf, ((char const *)&kone->settings) + off, count); in kone_sysfs_read_settings()
294 struct kone_settings *settings = (struct kone_settings *)buf; in kone_sysfs_write_settings() local
301 difference = memcmp(settings, &kone->settings, in kone_sysfs_write_settings()
304 if (settings->startup_profile < 1 || in kone_sysfs_write_settings()
305 settings->startup_profile > 5) { in kone_sysfs_write_settings()
[all …]
H A Dhid-roccat-pyra.c76 struct pyra_settings const *settings) in pyra_set_settings() argument
79 PYRA_COMMAND_SETTINGS, settings, in pyra_set_settings()
246 struct pyra_settings const *settings; in pyra_sysfs_write_settings() local
251 settings = (struct pyra_settings const *)buf; in pyra_sysfs_write_settings()
252 if (settings->startup_profile >= ARRAY_SIZE(pyra->profile_settings)) in pyra_sysfs_write_settings()
257 retval = pyra_set_settings(usb_dev, settings); in pyra_sysfs_write_settings()
263 profile_activated(pyra, settings->startup_profile); in pyra_sysfs_write_settings()
266 roccat_report.value = settings->startup_profile + 1; in pyra_sysfs_write_settings()
275 PYRA_SYSFS_R(settings, SETTINGS);
277 __BIN_ATTR(settings, (S_IWUSR | S_IRUGO),
[all …]
/linux/drivers/iio/imu/st_lsm9ds0/
H A Dst_lsm9ds0_core.c23 const struct st_sensor_settings *settings; in st_lsm9ds0_probe_accel() local
27 settings = st_accel_get_settings(lsm9ds0->name); in st_lsm9ds0_probe_accel()
28 if (!settings) in st_lsm9ds0_probe_accel()
39 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_accel()
48 const struct st_sensor_settings *settings; in st_lsm9ds0_probe_magn() local
52 settings = st_magn_get_settings(lsm9ds0->name); in st_lsm9ds0_probe_magn()
53 if (!settings) in st_lsm9ds0_probe_magn()
64 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_magn()
/linux/drivers/gpu/drm/amd/display/dc/link/hwss/
H A Dlink_hwss_hpo_fixed_vs_pe_retimer_dp.c39 (hw_lane_settings[0].FFE_PRESET.settings.no_deemphasis != 0 ? 0x0F : 0xFF) in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
40 & (hw_lane_settings[0].FFE_PRESET.settings.no_preshoot != 0 ? 0xF1 : 0xFF), in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
41 (hw_lane_settings[1].FFE_PRESET.settings.no_deemphasis != 0 ? 0x0F : 0xFF) in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
42 & (hw_lane_settings[1].FFE_PRESET.settings.no_preshoot != 0 ? 0xF1 : 0xFF), in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
43 (hw_lane_settings[2].FFE_PRESET.settings.no_deemphasis != 0 ? 0x0F : 0xFF) in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
44 & (hw_lane_settings[2].FFE_PRESET.settings.no_preshoot != 0 ? 0xF1 : 0xFF), in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
45 (hw_lane_settings[3].FFE_PRESET.settings.no_deemphasis != 0 ? 0x0F : 0xFF) in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
46 & (hw_lane_settings[3].FFE_PRESET.settings.no_preshoot != 0 ? 0xF1 : 0xFF)}; in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
49 vendor_ffe_preset_table[hw_lane_settings[0].FFE_PRESET.settings.level] & ffe_mask[0], in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
50 vendor_ffe_preset_table[hw_lane_settings[1].FFE_PRESET.settings.level] & ffe_mask[1], in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe()
[all …]
/linux/drivers/pinctrl/mvebu/
H A Dpinctrl-mvebu.c40 struct mvebu_mpp_ctrl_setting *settings; member
115 if (config == grp->settings[n].val) { in mvebu_pinctrl_find_setting_by_val()
117 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_val()
118 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_val()
132 if (strcmp(name, grp->settings[n].name) == 0) { in mvebu_pinctrl_find_setting_by_name()
134 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_name()
135 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_name()
148 if (grp->settings[n].flags & in mvebu_pinctrl_find_gpio_setting()
151 grp->settings[n].variant)) in mvebu_pinctrl_find_gpio_setting()
152 return &grp->settings[n]; in mvebu_pinctrl_find_gpio_setting()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcommon.h76 void brcmf_dmi_probe(struct brcmf_mp_device *settings, u32 chip, u32 chiprev);
79 brcmf_dmi_probe(struct brcmf_mp_device *settings, u32 chip, u32 chiprev) {} in brcmf_dmi_probe() argument
84 struct brcmf_mp_device *settings);
88 struct brcmf_mp_device *settings) {} in brcmf_acpi_probe() argument
/linux/drivers/net/wan/
H A Dhdlc_x25.c25 x25_hdlc_proto settings; member
202 if (state(hdlc)->settings.dce) in x25_open()
205 if (state(hdlc)->settings.modulo == 128) in x25_open()
208 params.window = state(hdlc)->settings.window; in x25_open()
209 params.t1 = state(hdlc)->settings.t1; in x25_open()
210 params.t2 = state(hdlc)->settings.t2; in x25_open()
211 params.n2 = state(hdlc)->settings.n2; in x25_open()
294 if (copy_to_user(x25_s, &state(hdlc)->settings, size)) in x25_ioctl()
345 memcpy(&state(hdlc)->settings, &new_settings, size); in x25_ioctl()
H A Dhdlc_fr.c132 fr_proto settings; member
333 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_open()
349 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_close()
352 if (state(hdlc)->settings.dce) { in pvc_close()
461 int lmi = state(hdlc)->settings.lmi; in fr_lmi_send()
462 int dce = state(hdlc)->settings.dce; in fr_lmi_send()
561 if (state(hdlc)->settings.lmi == LMI_NONE) { in fr_set_link_state()
575 if (!state(hdlc)->settings.dce) in fr_set_link_state()
590 if (state(hdlc)->settings.dce) { in fr_timer()
593 state(hdlc)->settings.t392 * HZ); in fr_timer()
[all …]
/linux/drivers/iio/magnetometer/
H A Dst_magn_spi.c58 const struct st_sensor_settings *settings; in st_magn_spi_probe() local
65 settings = st_magn_get_settings(spi->modalias); in st_magn_spi_probe()
66 if (!settings) { in st_magn_spi_probe()
77 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
H A Dst_magn_i2c.c63 const struct st_sensor_settings *settings; in st_magn_i2c_probe() local
70 settings = st_magn_get_settings(client->name); in st_magn_i2c_probe()
71 if (!settings) { in st_magn_i2c_probe()
82 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
/linux/drivers/iio/common/st_sensors/
H A Dst_sensors_spi.c61 struct st_sensor_settings *settings) in st_sensors_configure_spi_3_wire() argument
63 if (settings->sim.addr) { in st_sensors_configure_spi_3_wire()
65 settings->sim.addr, in st_sensors_configure_spi_3_wire()
66 settings->sim.value in st_sensors_configure_spi_3_wire()
/linux/drivers/iio/gyro/
H A Dst_gyro_i2c.c63 const struct st_sensor_settings *settings; in st_gyro_i2c_probe() local
70 settings = st_gyro_get_settings(client->name); in st_gyro_i2c_probe()
71 if (!settings) { in st_gyro_i2c_probe()
82 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_i2c_probe()
H A Dst_gyro_spi.c68 const struct st_sensor_settings *settings; in st_gyro_spi_probe() local
75 settings = st_gyro_get_settings(spi->modalias); in st_gyro_spi_probe()
76 if (!settings) { in st_gyro_spi_probe()
87 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_spi_probe()
/linux/drivers/iio/pressure/
H A Dst_pressure_spi.c64 const struct st_sensor_settings *settings; in st_press_spi_probe() local
71 settings = st_press_get_settings(spi->modalias); in st_press_spi_probe()
72 if (!settings) { in st_press_spi_probe()
83 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_spi_probe()
H A Dst_pressure_i2c.c78 const struct st_sensor_settings *settings; in st_press_i2c_probe() local
85 settings = st_press_get_settings(client->name); in st_press_i2c_probe()
86 if (!settings) { in st_press_i2c_probe()
97 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_i2c_probe()
/linux/Documentation/sphinx/
H A Dkernel_include.py62 env = self.state.document.settings.env
87 if not self.state.document.settings.file_insertion_enabled:
101 'encoding', self.state.document.settings.input_encoding)
102 e_handler=self.state.document.settings.input_encoding_error_handler
104 'tab-width', self.state.document.settings.tab_width)
106 self.state.document.settings.record_dependencies.add(path)

12345678910>>...22