/linux/drivers/clk/ |
A D | clk-si514.c | 124 if (settings->m_int < 65 || in si514_set_muldiv() 125 (settings->m_int == 65 && settings->m_frac <= 139575831)) in si514_set_muldiv() 129 (settings->m_int == 67 && settings->m_frac <= 461581994)) in si514_set_muldiv() 133 (settings->m_int == 72 && settings->m_frac <= 503383578)) in si514_set_muldiv() 137 (settings->m_int == 75 && settings->m_frac <= 452724474)) in si514_set_muldiv() 146 reg[0] = settings->m_frac; in si514_set_muldiv() 149 reg[3] = settings->m_frac >> 24 | settings->m_int << 5; in si514_set_muldiv() 151 reg[5] = settings->hs_div; in si514_set_muldiv() 152 reg[6] = (settings->hs_div >> 8) | (settings->ls_div_bits << 4); in si514_set_muldiv() 208 u64 m = settings->m_frac | ((u64)settings->m_int << 29); in si514_calc_rate() [all …]
|
A D | clk-si544.c | 152 settings->delta_m >>= 8; in si544_get_muldiv() 175 reg[0] = settings->hs_div; in si544_set_muldiv() 176 reg[1] = settings->hs_div >> 8 | settings->ls_div_bits << 4; in si544_set_muldiv() 230 settings->ls_div_bits = 0; in si544_calc_muldiv() 233 settings->ls_div_bits = 0; in si544_calc_muldiv() 250 settings->hs_div = vco; in si544_calc_muldiv() 254 (settings->hs_div > HS_DIV_MAX_ODD || settings->ls_div_bits)) in si544_calc_muldiv() 255 ++settings->hs_div; in si544_calc_muldiv() 271 settings->delta_m = 0; in si544_calc_muldiv() 280 u32 d = settings->hs_div * BIT(settings->ls_div_bits); in si544_calc_center_rate() [all …]
|
/linux/drivers/staging/media/zoran/ |
A D | zoran_card.c | 666 __func__, settings->decimation, settings->hor_dcm, in zoran_check_jpg_settings() 667 settings->ver_dcm, settings->tmp_dcm); in zoran_check_jpg_settings() 669 settings->img_x, settings->img_y, in zoran_check_jpg_settings() 670 settings->img_width, settings->img_height); in zoran_check_jpg_settings() 720 settings->hor_dcm = clamp(settings->hor_dcm, 1, 2); in zoran_check_jpg_settings() 724 settings->ver_dcm = clamp(settings->ver_dcm, 1, 2); in zoran_check_jpg_settings() 728 settings->tmp_dcm = clamp(settings->tmp_dcm, 1, 2); in zoran_check_jpg_settings() 761 settings->img_width -= settings->img_width % (16 * settings->hor_dcm); in zoran_check_jpg_settings() 763 settings->img_width = 16 * settings->hor_dcm; in zoran_check_jpg_settings() 767 settings->img_height -= settings->img_height % (8 * settings->ver_dcm); in zoran_check_jpg_settings() [all …]
|
A D | zoran_driver.c | 146 __u8 div = settings->ver_dcm * settings->hor_dcm * settings->tmp_dcm; in zoran_v4l2_calc_bufsize() 361 settings.tmp_dcm = 1; in zoran_try_fmt_vid_out() 363 settings.tmp_dcm = 2; in zoran_try_fmt_vid_out() 366 settings.ver_dcm = 2; in zoran_try_fmt_vid_out() 368 settings.ver_dcm = 1; in zoran_try_fmt_vid_out() 384 settings.img_x = 0; in zoran_try_fmt_vid_out() 394 fmt->fmt.pix.width = settings.img_width / settings.hor_dcm; in zoran_try_fmt_vid_out() 396 (settings.tmp_dcm * settings.ver_dcm); in zoran_try_fmt_vid_out() 488 settings.img_x = 0; in zoran_s_fmt_vid_out() 508 fmt->fmt.pix.width = settings.img_width / settings.hor_dcm; in zoran_s_fmt_vid_out() [all …]
|
/linux/drivers/spi/ |
A D | spi-xcomm.c | 35 uint16_t settings; member 45 uint16_t settings; in spi_xcomm_sync_config() local 48 settings = spi_xcomm->settings; in spi_xcomm_sync_config() 52 put_unaligned_be16(settings, &buf[1]); in spi_xcomm_sync_config() 93 *settings |= SPI_XCOMM_SETTINGS_CPOL; in spi_xcomm_setup_transfer() 139 unsigned int settings = spi_xcomm->settings; in spi_xcomm_transfer_one() local 164 settings |= BIT(5); in spi_xcomm_transfer_one() 166 settings &= ~BIT(5); in spi_xcomm_transfer_one() 169 spi_xcomm->settings = settings; in spi_xcomm_transfer_one() 173 } else if (settings != spi_xcomm->settings || is_first) { in spi_xcomm_transfer_one() [all …]
|
/linux/drivers/iio/imu/st_lsm6dsx/ |
A D | st_lsm6dsx_shub.c | 410 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_get_odr_val() 434 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_set_odr() 467 settings = cur_sensor->ext_info.settings; in st_lsm6dsx_shub_config_channels() 489 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_set_enable() 677 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_sampling_freq_avail() 697 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_scale_avail() 793 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_init_device() 794 if (settings->bdu.addr) { in st_lsm6dsx_shub_init_device() 804 settings->temp_comp.addr, in st_lsm6dsx_shub_init_device() 812 settings->off_canc.addr, in st_lsm6dsx_shub_init_device() [all …]
|
A D | st_lsm6dsx_buffer.c | 156 dec_reg = &hw->settings->decimator[sensor->id]; in st_lsm6dsx_update_decimators() 176 ts_dec_reg = &hw->settings->ts_settings.decimator; in st_lsm6dsx_update_decimators() 204 batch_reg = &hw->settings->batch[sensor->id]; in st_lsm6dsx_set_fifo_odr() 267 fifo_th_mask = hw->settings->fifo_ops.fifo_th.mask; in st_lsm6dsx_update_watermark() 273 hw->settings->fifo_ops.fifo_th.addr, in st_lsm6dsx_update_watermark() 361 hw->settings->fifo_ops.fifo_diff.addr, in st_lsm6dsx_read_fifo() 575 hw->settings->fifo_ops.fifo_diff.addr, in st_lsm6dsx_read_tagged_fifo() 643 if (!hw->settings->fifo_ops.read_fifo) in st_lsm6dsx_flush_fifo() 648 hw->settings->fifo_ops.read_fifo(hw); in st_lsm6dsx_flush_fifo() 718 if (!hw->settings->fifo_ops.update_fifo) in st_lsm6dsx_buffer_preenable() [all …]
|
A D | st_lsm6dsx_core.c | 1833 ts_settings = &hw->settings->ts_settings; in st_lsm6dsx_init_hw_timer() 1900 reg = &hw->settings->reset; in st_lsm6dsx_reset_device() 1909 reg = &hw->settings->boot; in st_lsm6dsx_reset_device() 1930 reg = &hw->settings->bdu; in st_lsm6dsx_init_device() 1947 if (hw->settings->irq_config.lir.addr) { in st_lsm6dsx_init_device() 1948 reg = &hw->settings->irq_config.lir; in st_lsm6dsx_init_device() 1966 if (hw->settings->drdy_mask.addr) { in st_lsm6dsx_init_device() 1967 reg = &hw->settings->drdy_mask; in st_lsm6dsx_init_device() 2081 if (!hw->settings->fifo_ops.read_fifo) in st_lsm6dsx_handler_thread() 2132 reg = &hw->settings->irq_config.hla; in st_lsm6dsx_irq_setup() [all …]
|
/linux/sound/soc/codecs/ |
A D | tlv320aic32x4-clk.c | 87 settings->r = val & AIC32X4_PLL_R_MASK; 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() 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() 149 ((settings->j * 10000) + settings->d); in clk_aic32x4_pll_calc_rate() 160 if (settings->p > 8) in clk_aic32x4_pll_calc_muldiv() 176 if (settings->r > 4) in clk_aic32x4_pll_calc_muldiv() 178 do_div(multiplier, settings->r); in clk_aic32x4_pll_calc_muldiv() [all …]
|
/linux/drivers/cpufreq/ |
A D | sa1100-cpufreq.c | 118 while (settings->speed != 0) { in sa1100_update_dram_timings() 122 settings++; in sa1100_update_dram_timings() 125 if (settings->speed == 0) { in sa1100_update_dram_timings() 142 MDCAS2 = settings->mdcas2; in sa1100_update_dram_timings() 143 MDCAS1 = settings->mdcas1; in sa1100_update_dram_timings() 144 MDCAS0 = settings->mdcas0; in sa1100_update_dram_timings() 145 MDCNFG = settings->mdcnfg; in sa1100_update_dram_timings() 157 MDCAS0 = settings->mdcas0; in sa1100_update_dram_timings() 158 MDCAS1 = settings->mdcas1; in sa1100_update_dram_timings() 159 MDCAS2 = settings->mdcas2; in sa1100_update_dram_timings() [all …]
|
/linux/drivers/iio/light/ |
A D | tsl2772.c | 173 struct tsl2772_settings settings; member 691 ret = (chip->settings.als_cal_target * chip->settings.als_gain_trim) / in tsl2772_als_calibrate() 719 chip->settings.als_prox_config; in tsl2772_chip_on() 1301 chip->settings.als_gain = 0; in tsl2772_write_raw() 1304 chip->settings.als_gain = 1; in tsl2772_write_raw() 1307 chip->settings.als_gain = 2; in tsl2772_write_raw() 1310 chip->settings.als_gain = 3; in tsl2772_write_raw() 1318 chip->settings.prox_gain = 0; in tsl2772_write_raw() 1321 chip->settings.prox_gain = 1; in tsl2772_write_raw() 1324 chip->settings.prox_gain = 2; in tsl2772_write_raw() [all …]
|
/linux/drivers/hid/ |
A D | hid-roccat-kone.c | 103 settings->checksum = cpu_to_le16(checksum); in kone_set_settings_checksum() 161 struct kone_settings const *settings) in kone_set_settings() argument 166 settings, sizeof(struct kone_settings)); in kone_set_settings() 304 difference = memcmp(settings, &kone->settings, in kone_sysfs_write_settings() 307 if (settings->startup_profile < 1 || in kone_sysfs_write_settings() 308 settings->startup_profile > 5) { in kone_sysfs_write_settings() 317 old_profile = kone->settings.startup_profile; in kone_sysfs_write_settings() 318 memcpy(&kone->settings, settings, sizeof(struct kone_settings)); in kone_sysfs_write_settings() 525 if (kone->settings.tcu != state) { in kone_sysfs_set_tcu() 526 kone->settings.tcu = state; in kone_sysfs_set_tcu() [all …]
|
A D | hid-roccat-pyra.c | 79 struct pyra_settings const *settings) in pyra_set_settings() argument 82 PYRA_COMMAND_SETTINGS, settings, in pyra_set_settings() 249 struct pyra_settings const *settings; in pyra_sysfs_write_settings() local 254 settings = (struct pyra_settings const *)buf; in pyra_sysfs_write_settings() 260 retval = pyra_set_settings(usb_dev, settings); in pyra_sysfs_write_settings() 278 PYRA_SYSFS_R(settings, SETTINGS); 280 __BIN_ATTR(settings, (S_IWUSR | S_IRUGO), 299 struct pyra_settings settings; in pyra_sysfs_show_actual_profile() local 303 &settings, PYRA_SIZE_SETTINGS); in pyra_sysfs_show_actual_profile() 372 struct pyra_settings settings; in pyra_init_pyra_device_struct() local [all …]
|
/linux/drivers/staging/media/atomisp/pci/isp/kernels/sc/sc_1.0/ |
A D | ia_css_sc.host.c | 124 struct ia_css_shading_settings *settings) in sh_css_get_shading_settings() argument 126 if (!settings) in sh_css_get_shading_settings() 131 "ia_css_get_shading_settings() enter: settings=%p\n", settings); in sh_css_get_shading_settings() 133 *settings = params->shading_settings; in sh_css_get_shading_settings() 137 settings->enable_shading_table_conversion); in sh_css_get_shading_settings() 142 const struct ia_css_shading_settings *settings) in sh_css_set_shading_settings() argument 144 if (!settings) in sh_css_set_shading_settings() 150 settings->enable_shading_table_conversion); in sh_css_set_shading_settings() 152 params->shading_settings = *settings; in sh_css_set_shading_settings()
|
/linux/drivers/iio/imu/st_lsm9ds0/ |
A D | st_lsm9ds0_core.c | 75 const struct st_sensor_settings *settings; in st_lsm9ds0_probe_accel() local 79 settings = st_accel_get_settings(lsm9ds0->name); in st_lsm9ds0_probe_accel() 80 if (!settings) { in st_lsm9ds0_probe_accel() 92 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_accel() 103 const struct st_sensor_settings *settings; in st_lsm9ds0_probe_magn() local 107 settings = st_magn_get_settings(lsm9ds0->name); in st_lsm9ds0_probe_magn() 108 if (!settings) { in st_lsm9ds0_probe_magn() 120 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_magn()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | common.c | 399 struct brcmf_mp_device *settings; in brcmf_get_module_param() local 406 settings = kzalloc(sizeof(*settings), GFP_ATOMIC); in brcmf_get_module_param() 407 if (!settings) in brcmf_get_module_param() 413 settings->fcmode = brcmf_fcmode; in brcmf_get_module_param() 414 settings->roamoff = !!brcmf_roamoff; in brcmf_get_module_param() 415 settings->iapp = !!brcmf_iapp_enable; in brcmf_get_module_param() 433 settings->country_codes = in brcmf_get_module_param() 436 memcpy(&settings->bus.sdio, in brcmf_get_module_param() 438 sizeof(settings->bus.sdio)); in brcmf_get_module_param() 447 brcmf_of_probe(dev, bus_type, settings); in brcmf_get_module_param() [all …]
|
A D | of.c | 16 struct brcmf_mp_device *settings) in brcmf_of_get_country_codes() argument 56 settings->country_codes = cc; in brcmf_of_get_country_codes() 62 struct brcmf_mp_device *settings) in brcmf_of_probe() argument 64 struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; in brcmf_of_probe() 88 settings->board_type = board_type; in brcmf_of_probe() 96 err = brcmf_of_get_country_codes(dev, settings); in brcmf_of_probe()
|
/linux/drivers/net/phy/ |
A D | phy-core.c | 205 for (i = 0, p = settings; i < ARRAY_SIZE(settings); i++, p++) { in phy_lookup_setting() 239 test_bit(settings[i].bit, mask) && in phy_speeds() 241 speeds[count++] = settings[i].speed; in phy_speeds() 251 for (i = 0, p = settings; i < ARRAY_SIZE(settings); i++, p++) { in __set_linkmode_max_speed() 370 if (test_bit(settings[i].bit, common)) { in phy_resolve_aneg_linkmode() 371 phydev->speed = settings[i].speed; in phy_resolve_aneg_linkmode() 372 phydev->duplex = settings[i].duplex; in phy_resolve_aneg_linkmode() 403 if (test_bit(settings[i].bit, common)) { in phy_check_downshift() 404 speed = settings[i].speed; in phy_check_downshift() 421 int i = ARRAY_SIZE(settings); in phy_resolve_min_speed() [all …]
|
/linux/drivers/pinctrl/mvebu/ |
A D | pinctrl-mvebu.c | 115 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_val() 130 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_name() 141 if (grp->settings[n].flags & in mvebu_pinctrl_find_gpio_setting() 144 grp->settings[n].variant)) in mvebu_pinctrl_find_gpio_setting() 145 return &grp->settings[n]; in mvebu_pinctrl_find_gpio_setting() 227 if (curr == &grp->settings[n]) in mvebu_pinconf_group_dbg_show() 236 if (grp->settings[n].subname) in mvebu_pinconf_group_dbg_show() 238 if (grp->settings[n].flags & in mvebu_pinconf_group_dbg_show() 518 grp->settings[s].name); in mvebu_pinctrl_build_functions() 545 grp->settings[s].name); in mvebu_pinctrl_build_functions() [all …]
|
/linux/tools/testing/selftests/vm/ |
A D | khugepaged.c | 85 struct settings { struct 93 static struct settings default_settings = { argument 105 static struct settings saved_settings; 261 static void write_settings(struct settings *settings) in write_settings() argument 268 shmem_enabled_strings[settings->shmem_enabled]); in write_settings() 299 saved_settings = (struct settings) { in save_settings() 506 struct settings settings = default_settings; in alloc_at_fault() local 509 settings.thp_enabled = THP_ALWAYS; in alloc_at_fault() 510 write_settings(&settings); in alloc_at_fault() 580 struct settings settings = default_settings; in collapse_max_ptes_none() local [all …]
|
/linux/drivers/net/wan/ |
A D | hdlc_x25.c | 25 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()
|
A D | hdlc_fr.c | 132 fr_proto settings; member 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() 575 if (!state(hdlc)->settings.dce) in fr_set_link_state() 590 if (state(hdlc)->settings.dce) { in fr_timer() 615 if (state(hdlc)->settings.dce) { in fr_timer() 617 state(hdlc)->settings.t392 * HZ; in fr_timer() 627 state(hdlc)->settings.t391 * HZ; in fr_timer() 638 int lmi = state(hdlc)->settings.lmi; in fr_lmi_recv() [all …]
|
/linux/drivers/iio/magnetometer/ |
A D | st_magn_spi.c | 54 const struct st_sensor_settings *settings; in st_magn_spi_probe() local 61 settings = st_magn_get_settings(spi->modalias); in st_magn_spi_probe() 62 if (!settings) { in st_magn_spi_probe() 73 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
|
/linux/drivers/iio/common/st_sensors/ |
A D | st_sensors_spi.c | 61 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/pressure/ |
A D | st_pressure_spi.c | 60 const struct st_sensor_settings *settings; in st_press_spi_probe() local 67 settings = st_press_get_settings(spi->modalias); in st_press_spi_probe() 68 if (!settings) { in st_press_spi_probe() 79 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_spi_probe()
|