Home
last modified time | relevance | path

Searched refs:trim (Results 1 – 16 of 16) sorted by relevance

/drivers/rtc/
Drtc-rs5c372.c322 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
330 if (trim) { in rs5c372_get_trim()
344 *trim = tmp; in rs5c372_get_trim()
472 int err, osc, trim; in rs5c372_rtc_proc() local
474 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
478 seq_printf(seq, "trim\t\t: %d\n", trim); in rs5c372_rtc_proc()
502 int err, trim; in rs5c372_sysfs_show_trim() local
504 err = rs5c372_get_trim(to_i2c_client(dev), NULL, &trim); in rs5c372_sysfs_show_trim()
508 return sprintf(buf, "%d\n", trim); in rs5c372_sysfs_show_trim()
510 static DEVICE_ATTR(trim, S_IRUGO, rs5c372_sysfs_show_trim, NULL);
Drtc-x1205.c293 static int x1205_get_dtrim(struct i2c_client *client, int *trim) in x1205_get_dtrim() argument
320 *trim = 0; in x1205_get_dtrim()
323 *trim += 20; in x1205_get_dtrim()
326 *trim += 10; in x1205_get_dtrim()
329 *trim = -*trim; in x1205_get_dtrim()
334 static int x1205_get_atrim(struct i2c_client *client, int *trim) in x1205_get_atrim() argument
369 *trim = (atr * 250) + 11000; in x1205_get_atrim()
371 dev_dbg(&client->dev, "%s: real=%d\n", __func__, *trim); in x1205_get_atrim()
/drivers/hwmon/
Dbt1-pvt.c176 static inline void pvt_set_trim(struct pvt_hwmon *pvt, u32 trim) in pvt_set_trim() argument
180 trim = FIELD_PREP(PVT_CTRL_TRIM_MASK, trim); in pvt_set_trim()
184 trim | old); in pvt_set_trim()
648 u32 trim; in pvt_write_trim() local
659 trim = pvt_calc_trim(val); in pvt_write_trim()
660 pvt_set_trim(pvt, trim); in pvt_write_trim()
1006 u32 trim, temp; in pvt_init_iface() local
1051 trim = PVT_TRIM_DEF; in pvt_init_iface()
1054 trim = pvt_calc_trim(temp); in pvt_init_iface()
1056 pvt_set_trim(pvt, trim); in pvt_init_iface()
/drivers/infiniband/core/
Dumem_dmabuf.c48 unsigned long trim = cur + sg_dma_len(sg) - end; in ib_umem_dmabuf_map_pages() local
51 umem_dmabuf->last_sg_trim = trim; in ib_umem_dmabuf_map_pages()
52 sg_dma_len(sg) -= trim; in ib_umem_dmabuf_map_pages()
/drivers/phy/socionext/
Dphy-uniphier-usb3hs.c145 struct uniphier_u3hsphy_trim_param trim; in uniphier_u3hsphy_update_config() local
149 ret = uniphier_u3hsphy_get_nvparams(priv, &trim); in uniphier_u3hsphy_update_config()
158 if (!ret && trim_param_is_valid(&trim)) { in uniphier_u3hsphy_update_config()
159 priv->data->trim_func(priv, pconfig, &trim); in uniphier_u3hsphy_update_config()
/drivers/mmc/host/
Dsdhci-pci-arasan.c190 u8 drv_type, u8 itap, u8 trim, u8 clk) in arasan_phy_set() argument
226 ret = arasan_phy_write(host, trim, DLL_TRIM); in arasan_phy_set()
Dsdhci-tegra.c813 static void tegra_sdhci_set_dqs_trim(struct sdhci_host *host, u8 trim) in tegra_sdhci_set_dqs_trim() argument
819 val |= trim << SDHCI_TEGRA_CAP_OVERRIDES_DQS_TRIM_SHIFT; in tegra_sdhci_set_dqs_trim()
/drivers/memory/tegra/
Dtegra210-emc-cc-r21021.c1138 const u16 *offsets = emc->offsets->trim; in tegra210_emc_r21021_set_clock()
1171 const struct tegra210_emc_per_channel_regs *trim = in tegra210_emc_r21021_set_clock() local
1175 if (!trim[i].offset) in tegra210_emc_r21021_set_clock()
1178 if (emc->num_channels < 2 && trim[i].bank >= 1) in tegra210_emc_r21021_set_clock()
1181 offset = trim[i].offset; in tegra210_emc_r21021_set_clock()
1199 emc_channel_writel(emc, trim[i].bank, value, offset); in tegra210_emc_r21021_set_clock()
1203 emc_channel_writel(emc, trim[i].bank, in tegra210_emc_r21021_set_clock()
Dtegra210-emc.h794 u16 trim[TRIM_REGS_SIZE]; member
Dtegra210-emc-core.c319 .trim = {
/drivers/clk/microchip/
Dclk-core.c482 u32 trim, rodiv, v; in roclk_set_rate_and_parent() local
486 roclk_calc_div_trim(rate, parent_rate, &rodiv, &trim); in roclk_set_rate_and_parent()
489 parent_rate, rate, rodiv, trim); in roclk_set_rate_and_parent()
520 v |= trim << REFO_TRIM_SHIFT; in roclk_set_rate_and_parent()
/drivers/ata/
Dlibata-transport.c599 static DEVICE_ATTR(trim, S_IRUGO, show_ata_dev_trim, NULL);
778 SETUP_DEV_ATTRIBUTE(trim); in ata_attach_transport()
/drivers/nvdimm/
Dbtt.c152 int *trim, int *error, unsigned long rwb_flags) in btt_map_read() argument
199 if (trim) in btt_map_read()
200 *trim = z_flag; in btt_map_read()
/drivers/block/drbd/
Ddrbd_receiver.c1871 struct p_trim *trim = (pi->cmd == P_TRIM) ? pi->data : NULL; in read_in_block() local
1876 if (!trim && peer_device->connection->peer_integrity_tfm) { in read_in_block()
1890 if (trim) { in read_in_block()
1893 ds = be32_to_cpu(trim->size); in read_in_block()
1914 if (trim || wsame || zeroes) { in read_in_block()
1938 if (trim) { in read_in_block()
/drivers/block/
Drbd.c833 bool trim; member
5001 if (rbd_dev->opts->trim) { in rbd_init_disk()
6343 opt->trim = false; in rbd_parse_param()
6525 pctx.opts->trim = RBD_TRIM_DEFAULT; in rbd_add_parse_args()
/drivers/md/
DKconfig672 changes using free blocks identified by issuing a trim command.