/linux-6.1.9/drivers/clk/ |
D | clk-si514.c | 97 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 …]
|
D | clk-si544.c | 126 struct clk_si544_muldiv *settings) in si544_get_muldiv() argument 135 settings->ls_div_bits = (reg[1] >> 4) & 0x07; in si544_get_muldiv() 136 settings->hs_div = (reg[1] & 0x07) << 8 | reg[0]; in si544_get_muldiv() 142 settings->fb_div_int = reg[4] | (reg[5] & 0x07) << 8; in si544_get_muldiv() 143 settings->fb_div_frac = reg[0] | reg[1] << 8 | reg[2] << 16 | in si544_get_muldiv() 151 settings->delta_m = reg[0] << 8 | reg[1] << 16 | reg[2] << 24; in si544_get_muldiv() 152 settings->delta_m >>= 8; in si544_get_muldiv() 170 struct clk_si544_muldiv *settings) in si544_set_muldiv() argument 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() [all …]
|
/linux-6.1.9/drivers/spi/ |
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() 49 settings |= len << SPI_XCOMM_SETTINGS_LEN_OFFSET; in spi_xcomm_sync_config() 52 put_unaligned_be16(settings, &buf[1]); in spi_xcomm_sync_config() 73 struct spi_device *spi, struct spi_transfer *t, unsigned int *settings) in spi_xcomm_setup_transfer() argument 83 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_64; in spi_xcomm_setup_transfer() 85 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_16; in spi_xcomm_setup_transfer() 87 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_4; in spi_xcomm_setup_transfer() 93 *settings |= SPI_XCOMM_SETTINGS_CPOL; in spi_xcomm_setup_transfer() [all …]
|
/linux-6.1.9/drivers/media/pci/zoran/ |
D | zoran_card.c | 721 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 …]
|
D | zoran_driver.c | 144 static __u32 zoran_v4l2_calc_bufsize(struct zoran_jpg_settings *settings) in zoran_v4l2_calc_bufsize() argument 146 __u8 div = settings->ver_dcm * settings->hor_dcm * settings->tmp_dcm; in zoran_v4l2_calc_bufsize() 335 struct zoran_jpg_settings settings; in zoran_try_fmt_vid_out() local 341 settings = zr->jpg_settings; in zoran_try_fmt_vid_out() 345 settings.tmp_dcm = 1; in zoran_try_fmt_vid_out() 347 settings.tmp_dcm = 2; in zoran_try_fmt_vid_out() 348 settings.decimation = 0; in zoran_try_fmt_vid_out() 350 settings.ver_dcm = 2; in zoran_try_fmt_vid_out() 352 settings.ver_dcm = 1; in zoran_try_fmt_vid_out() 354 settings.hor_dcm = 4; in zoran_try_fmt_vid_out() [all …]
|
/linux-6.1.9/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_shub.c | 182 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read_output() 259 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_master_enable() 294 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read() 296 aux_sens = &hw->settings->shub_settings.aux_sens; in st_lsm6dsx_shub_read() 345 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_write() 407 const struct st_lsm6dsx_ext_dev_settings *settings; in st_lsm6dsx_shub_get_odr_val() local 410 settings = sensor->ext_info.settings; in st_lsm6dsx_shub_get_odr_val() 411 for (i = 0; i < settings->odr_table.odr_len; i++) { in st_lsm6dsx_shub_get_odr_val() 412 if (settings->odr_table.odr_avl[i].milli_hz == odr) in st_lsm6dsx_shub_get_odr_val() 416 if (i == settings->odr_table.odr_len) in st_lsm6dsx_shub_get_odr_val() [all …]
|
D | st_lsm6dsx_buffer.c | 157 dec_reg = &hw->settings->decimator[sensor->id]; in st_lsm6dsx_update_decimators() 177 ts_dec_reg = &hw->settings->ts_settings.decimator; in st_lsm6dsx_update_decimators() 205 batch_reg = &hw->settings->batch[sensor->id]; in st_lsm6dsx_set_fifo_odr() 260 fifo_watermark = fifo_watermark * hw->settings->fifo_ops.th_wl; in st_lsm6dsx_update_watermark() 263 err = regmap_read(hw->regmap, hw->settings->fifo_ops.fifo_th.addr + 1, in st_lsm6dsx_update_watermark() 268 fifo_th_mask = hw->settings->fifo_ops.fifo_th.mask; in st_lsm6dsx_update_watermark() 274 hw->settings->fifo_ops.fifo_th.addr, in st_lsm6dsx_update_watermark() 356 u16 fifo_diff_mask = hw->settings->fifo_ops.fifo_diff.mask; in st_lsm6dsx_read_fifo() 362 hw->settings->fifo_ops.fifo_diff.addr, in st_lsm6dsx_read_fifo() 576 hw->settings->fifo_ops.fifo_diff.addr, in st_lsm6dsx_read_tagged_fifo() [all …]
|
/linux-6.1.9/sound/soc/codecs/ |
D | tlv320aic32x4-clk.c | 78 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-6.1.9/drivers/cpufreq/ |
D | sa1100-cpufreq.c | 115 struct sa1100_dram_regs *settings = sa1100_dram_settings; in sa1100_update_dram_timings() local 118 while (settings->speed != 0) { in sa1100_update_dram_timings() 119 if (new_speed == settings->speed) 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() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/isp/kernels/sc/sc_1.0/ |
D | ia_css_sc.host.c | 56 struct ia_css_shading_settings *settings) in sh_css_get_shading_settings() argument 58 if (!settings) in sh_css_get_shading_settings() 63 "ia_css_get_shading_settings() enter: settings=%p\n", settings); in sh_css_get_shading_settings() 65 *settings = params->shading_settings; in sh_css_get_shading_settings() 69 settings->enable_shading_table_conversion); in sh_css_get_shading_settings() 74 const struct ia_css_shading_settings *settings) in sh_css_set_shading_settings() argument 76 if (!settings) in sh_css_set_shading_settings() 82 settings->enable_shading_table_conversion); in sh_css_set_shading_settings() 84 params->shading_settings = *settings; in sh_css_set_shading_settings()
|
/linux-6.1.9/drivers/iio/light/ |
D | tsl2772.c | 175 struct tsl2772_settings settings; member 477 lux = (lux * chip->settings.als_gain_trim) / 1000; in tsl2772_get_lux() 563 chip->settings.prox_power = tsl2772_led_currents[i][1]; in tsl2772_read_prox_led_current() 625 memcpy(&chip->settings, chip->pdata->platform_default_settings, in tsl2772_defaults() 628 memcpy(&chip->settings, &tsl2772_default_settings, in tsl2772_defaults() 686 ret = (chip->settings.als_cal_target * chip->settings.als_gain_trim) / in tsl2772_als_calibrate() 691 chip->settings.als_gain_trim = ret; in tsl2772_als_calibrate() 710 chip->tsl2772_config[TSL2772_ALS_TIME] = chip->settings.als_time; in tsl2772_chip_on() 711 chip->tsl2772_config[TSL2772_PRX_TIME] = chip->settings.prox_time; in tsl2772_chip_on() 712 chip->tsl2772_config[TSL2772_WAIT_TIME] = chip->settings.wait_time; in tsl2772_chip_on() [all …]
|
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | of.c | 17 struct brcmf_mp_device *settings) in brcmf_of_get_country_codes() argument 30 settings->trivial_ccode_map = in brcmf_of_get_country_codes() 63 settings->country_codes = cc; in brcmf_of_get_country_codes() 69 struct brcmf_mp_device *settings) in brcmf_of_probe() argument 71 struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; in brcmf_of_probe() 84 settings->board_type = prop; in brcmf_of_probe() 87 settings->antenna_sku = prop; in brcmf_of_probe() 104 settings->board_type = board_type; in brcmf_of_probe() 112 err = brcmf_of_get_country_codes(dev, settings); in brcmf_of_probe() 116 of_get_mac_address(np, settings->mac); in brcmf_of_probe()
|
D | common.c | 437 struct brcmf_mp_device *settings; in brcmf_get_module_param() local 444 settings = kzalloc(sizeof(*settings), GFP_ATOMIC); in brcmf_get_module_param() 445 if (!settings) in brcmf_get_module_param() 449 settings->p2p_enable = !!brcmf_p2p_enable; in brcmf_get_module_param() 450 settings->feature_disable = brcmf_feature_disable; in brcmf_get_module_param() 451 settings->fcmode = brcmf_fcmode; in brcmf_get_module_param() 452 settings->roamoff = !!brcmf_roamoff; in brcmf_get_module_param() 453 settings->iapp = !!brcmf_iapp_enable; in brcmf_get_module_param() 455 settings->ignore_probe_fail = !!brcmf_ignore_probe_fail; in brcmf_get_module_param() 459 settings->bus.sdio.txglomsz = brcmf_sdiod_txglomsz; in brcmf_get_module_param() [all …]
|
/linux-6.1.9/drivers/hid/ |
D | hid-roccat-kone.c | 95 static void kone_set_settings_checksum(struct kone_settings *settings) in kone_set_settings_checksum() argument 98 unsigned char *address = (unsigned char *)settings; in kone_set_settings_checksum() 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() 279 memcpy(buf, ((char const *)&kone->settings) + off, count); in kone_sysfs_read_settings() 297 struct kone_settings *settings = (struct kone_settings *)buf; in kone_sysfs_write_settings() local 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() [all …]
|
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() 255 if (settings->startup_profile >= ARRAY_SIZE(pyra->profile_settings)) in pyra_sysfs_write_settings() 260 retval = pyra_set_settings(usb_dev, settings); in pyra_sysfs_write_settings() 266 profile_activated(pyra, settings->startup_profile); in pyra_sysfs_write_settings() 269 roccat_report.value = settings->startup_profile + 1; in pyra_sysfs_write_settings() 278 PYRA_SYSFS_R(settings, SETTINGS); 280 __BIN_ATTR(settings, (S_IWUSR | S_IRUGO), [all …]
|
/linux-6.1.9/drivers/iio/imu/st_lsm9ds0/ |
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-6.1.9/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.c | 40 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-6.1.9/drivers/net/phy/ |
D | phy-core.c | 159 static const struct phy_setting settings[] = { variable 280 for (i = 0, p = settings; i < ARRAY_SIZE(settings); i++, p++) { in phy_lookup_setting() 312 for (i = 0, count = 0; i < ARRAY_SIZE(settings) && count < size; i++) in phy_speeds() 313 if (settings[i].bit < __ETHTOOL_LINK_MODE_MASK_NBITS && in phy_speeds() 314 test_bit(settings[i].bit, mask) && in phy_speeds() 315 (count == 0 || speeds[count - 1] != settings[i].speed)) in phy_speeds() 316 speeds[count++] = settings[i].speed; in phy_speeds() 326 for (i = 0, p = settings; i < ARRAY_SIZE(settings); i++, p++) { in __set_linkmode_max_speed() 436 for (i = 0; i < ARRAY_SIZE(settings); i++) in phy_resolve_aneg_linkmode() 437 if (test_bit(settings[i].bit, common)) { in phy_resolve_aneg_linkmode() [all …]
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | khugepaged.c | 143 struct settings { struct 152 static struct settings saved_settings; argument 328 static void write_settings(struct settings *settings) in write_settings() argument 330 struct khugepaged_settings *khugepaged = &settings->khugepaged; in write_settings() 332 write_string("enabled", thp_enabled_strings[settings->thp_enabled]); in write_settings() 333 write_string("defrag", thp_defrag_strings[settings->thp_defrag]); in write_settings() 335 shmem_enabled_strings[settings->shmem_enabled]); in write_settings() 336 write_num("use_zero_page", settings->use_zero_page); in write_settings() 350 settings->read_ahead_kb); in write_settings() 354 static struct settings settings_stack[MAX_SETTINGS_DEPTH]; [all …]
|
/linux-6.1.9/drivers/iio/magnetometer/ |
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()
|
D | st_magn_i2c.c | 60 const struct st_sensor_settings *settings; in st_magn_i2c_probe() local 67 settings = st_magn_get_settings(client->name); in st_magn_i2c_probe() 68 if (!settings) { in st_magn_i2c_probe() 79 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
|
/linux-6.1.9/drivers/iio/common/st_sensors/ |
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-6.1.9/drivers/iio/gyro/ |
D | st_gyro_spi.c | 68 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-6.1.9/drivers/iio/pressure/ |
D | st_pressure_spi.c | 64 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()
|
/linux-6.1.9/drivers/net/wan/ |
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()
|