Home
last modified time | relevance | path

Searched refs:scl (Results 1 – 19 of 19) sorted by relevance

/drivers/video/fbdev/
Damba-clcd-nomadik.c15 static struct gpio_desc *scl; variable
34 gpiod_set_value_cansleep(scl, 1); in tpg110_readwrite_reg()
36 gpiod_set_value_cansleep(scl, 0); in tpg110_readwrite_reg()
49 gpiod_set_value_cansleep(scl, 1); in tpg110_readwrite_reg()
51 gpiod_set_value_cansleep(scl, 0); in tpg110_readwrite_reg()
59 gpiod_set_value_cansleep(scl, 1); in tpg110_readwrite_reg()
61 gpiod_set_value_cansleep(scl, 0); in tpg110_readwrite_reg()
78 gpiod_set_value_cansleep(scl, 1); in tpg110_readwrite_reg()
80 gpiod_set_value_cansleep(scl, 0); in tpg110_readwrite_reg()
201 scl = devm_get_gpiod_from_child(dev, "scl", &np->fwnode); in tpg110_init()
[all …]
/drivers/i2c/algos/
Di2c-algo-bit.c240 int scl, sda, ret; in test_bus() local
252 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus()
253 if (!scl || !sda) { in test_bus()
256 name, scl, sda); in test_bus()
262 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus()
267 if (!scl) { in test_bus()
275 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus()
280 if (!scl) { in test_bus()
288 scl = (adap->getscl == NULL) ? 0 : getscl(adap); in test_bus()
289 if (scl) { in test_bus()
[all …]
/drivers/i2c/busses/
Di2c-omap.c422 unsigned long scl; in omap_i2c_init() local
425 scl = internal_clk / 400; in omap_i2c_init()
426 fsscll = scl - (scl / 3) - 7; in omap_i2c_init()
427 fssclh = (scl / 3) - 5; in omap_i2c_init()
430 scl = fclk_rate / omap->speed; in omap_i2c_init()
431 hsscll = scl - (scl / 3) - 7; in omap_i2c_init()
432 hssclh = (scl / 3) - 5; in omap_i2c_init()
434 unsigned long scl; in omap_i2c_init() local
437 scl = internal_clk / omap->speed; in omap_i2c_init()
438 fsscll = scl - (scl / 3) - 7; in omap_i2c_init()
[all …]
Di2c-hix5hd2.c130 u32 scl, sysclock; in hix5hd2_i2c_drv_setrate() local
138 scl = (sysclock / (rate * 2)) / 2 - 1; in hix5hd2_i2c_drv_setrate()
139 writel_relaxed(scl, priv->regs + HIX5I2C_SCL_H); in hix5hd2_i2c_drv_setrate()
140 writel_relaxed(scl, priv->regs + HIX5I2C_SCL_L); in hix5hd2_i2c_drv_setrate()
146 __func__, sysclock, rate, scl); in hix5hd2_i2c_drv_setrate()
Di2c-rcar.c187 u32 scgd, cdf, round, ick, sum, scl, cdf_width; in rcar_i2c_clock_calculate() local
258 scl = ick / (20 + (scgd * 8) + round); in rcar_i2c_clock_calculate()
259 if (scl <= t->bus_freq_hz) in rcar_i2c_clock_calculate()
267 scl, t->bus_freq_hz, clk_get_rate(priv->clk), round, cdf, scgd); in rcar_i2c_clock_calculate()
/drivers/staging/olpc_dcon/
Dolpc_dcon_xo_1_5.c86 static void set_i2c_line(int sda, int scl) in set_i2c_line() argument
95 if (scl) in set_i2c_line()
/drivers/scsi/
Dmac53c94.c364 struct scatterlist *scl; in set_dma_cmds() local
379 scsi_for_each_sg(cmd, scl, nseg, i) { in set_dma_cmds()
380 dma_addr = sg_dma_address(scl); in set_dma_cmds()
381 dma_len = sg_dma_len(scl); in set_dma_cmds()
Dmesh.c1260 struct scatterlist *scl; in set_dma_cmds() local
1279 scsi_for_each_sg(cmd, scl, nseg, i) { in set_dma_cmds()
1280 u32 dma_addr = sg_dma_address(scl); in set_dma_cmds()
1281 u32 dma_len = sg_dma_len(scl); in set_dma_cmds()
1283 total += scl->length; in set_dma_cmds()
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/
Di2c_.fuc81 // $r1 - scl line
204 // $r1 - scl line
219 // $r1 - scl line
/drivers/gpu/drm/amd/powerplay/smumgr/
Dfiji_smc.c157 static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t *sda) in get_scl_sda_value() argument
161 *scl = SMU7_I2C_DDC1CLK; in get_scl_sda_value()
165 *scl = SMU7_I2C_DDC2CLK; in get_scl_sda_value()
169 *scl = SMU7_I2C_DDC3CLK; in get_scl_sda_value()
173 *scl = SMU7_I2C_DDC4CLK; in get_scl_sda_value()
177 *scl = SMU7_I2C_DDC5CLK; in get_scl_sda_value()
181 *scl = SMU7_I2C_DDC6CLK; in get_scl_sda_value()
185 *scl = SMU7_I2C_SCL; in get_scl_sda_value()
189 *scl = SMU7_I2C_DDCVGACLK; in get_scl_sda_value()
193 *scl = 0; in get_scl_sda_value()
/drivers/gpu/drm/rockchip/
Drockchip_vop_reg.c68 .scl = &rk3036_win_scl,
176 .scl = &rk3288_win_full_scl,
Drockchip_drm_vop.c58 REG_SET(x, win->base, win->phy->scl->name, v, RELAXED)
60 REG_SET(x, win->base, win->phy->scl->ext->name, v, RELAXED)
322 if (!win->phy->scl->ext) { in scl_vop_cal_scl_fac()
645 int min_scale = win->phy->scl ? FRAC_16_16(1, 8) : in vop_plane_atomic_check()
647 int max_scale = win->phy->scl ? FRAC_16_16(8, 1) : in vop_plane_atomic_check()
779 if (win->phy->scl) in vop_plane_atomic_update()
Drockchip_drm_vop.h111 const struct vop_scl_regs *scl; member
/drivers/net/ethernet/broadcom/
Dbcmsysport.h537 u32 scl; /* RO # of xmited single collision pkt */ member
Dbcmsysport.c233 STAT_MIB_TX("tx_single_col", mib.tx.scl),
/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.h124 u32 scl; /* RO # of xmited single collision pkt */ member
Dbcmgenet.c764 STAT_GENET_MIB_TX("tx_single_col", mib.tx.scl),
/drivers/media/dvb-frontends/
Ddib9000.c1654 u16 scl = state->component_bus_speed; /* SCL frequency */ in dib9000_fw_component_bus_xfer() local
1662 p[3] = (u8) scl & 0xff; /* scl */ in dib9000_fw_component_bus_xfer()
1663 p[4] = (u8) (scl >> 8); in dib9000_fw_component_bus_xfer()
/drivers/pinctrl/sh-pfc/
Dpfc-r8a7778.c1427 #define I2C_PFC_MUX(name, sda, scl) SH_PFC_MUX2(name, sda, scl) argument