Searched refs:ticks (Results 101 - 125 of 157) sorted by relevance

1234567

/linux-master/drivers/pwm/
H A Dpwm-fsl-ftm.c115 unsigned int ticks)
121 exval = ticks;
114 fsl_pwm_ticks_to_ns(struct fsl_pwm_chip *fpc, unsigned int ticks) argument
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Defx.h201 unsigned int ef4_ticks_to_usecs(struct ef4_nic *efx, unsigned int ticks);
/linux-master/include/uapi/linux/
H A Dsoundcard.h1240 #define SEQ_WAIT_TIME(ticks) _TIMER_EVENT(TMR_WAIT_ABS, ticks)
1241 #define SEQ_DELTA_TIME(ticks) _TIMER_EVENT(TMR_WAIT_REL, ticks)
/linux-master/drivers/tty/vt/
H A Dvt_ioctl.c310 unsigned int ticks, count; local
313 * Generate the tone for the appropriate number of ticks.
316 ticks = msecs_to_jiffies((arg >> 16) & 0xffff);
317 count = ticks ? (arg & 0xffff) : 0;
320 kd_mksound(count, ticks);
H A Dkeyboard.c276 void kd_mksound(unsigned int hz, unsigned int ticks) argument
282 if (hz && ticks)
283 mod_timer(&kd_mksound_timer, jiffies + ticks);
/linux-master/drivers/video/fbdev/omap2/omapfb/dss/
H A Ddsi.c1858 /* convert time in ns to ddr ticks, rounding up */
3206 unsigned ticks, bool x4, bool x16)
3212 BUG_ON(ticks > 0x1fff);
3214 /* ticks in DSI_FCK */
3221 r = FLD_MOD(r, ticks, 12, 0); /* LP_RX_COUNTER */
3224 total_ticks = ticks * (x16 ? 16 : 1) * (x4 ? 4 : 1);
3226 DSSDBG("LP_RX_TO %lu ticks (%#x%s%s) = %lu ns\n",
3228 ticks, x4 ? " x4" : "", x16 ? " x16" : "",
3232 static void dsi_set_ta_timeout(struct platform_device *dsidev, unsigned ticks, argument
3239 BUG_ON(ticks >
3205 dsi_set_lp_rx_timeout(struct platform_device *dsidev, unsigned ticks, bool x4, bool x16) argument
3259 dsi_set_stop_state_counter(struct platform_device *dsidev, unsigned ticks, bool x4, bool x16) argument
3286 dsi_set_hs_tx_timeout(struct platform_device *dsidev, unsigned ticks, bool x4, bool x16) argument
[all...]
/linux-master/drivers/gpu/drm/omapdrm/dss/
H A Ddsi.c1331 /* convert time in ns to ddr ticks, rounding up */
2403 static void dsi_set_lp_rx_timeout(struct dsi_data *dsi, unsigned int ticks, argument
2410 BUG_ON(ticks > 0x1fff);
2412 /* ticks in DSI_FCK */
2419 r = FLD_MOD(r, ticks, 12, 0); /* LP_RX_COUNTER */
2422 total_ticks = ticks * (x16 ? 16 : 1) * (x4 ? 4 : 1);
2424 DSSDBG("LP_RX_TO %lu ticks (%#x%s%s) = %lu ns\n",
2426 ticks, x4 ? " x4" : "", x16 ? " x16" : "",
2430 static void dsi_set_ta_timeout(struct dsi_data *dsi, unsigned int ticks, argument
2437 BUG_ON(ticks >
2457 dsi_set_stop_state_counter(struct dsi_data *dsi, unsigned int ticks, bool x4, bool x16) argument
2484 dsi_set_hs_tx_timeout(struct dsi_data *dsi, unsigned int ticks, bool x4, bool x16) argument
[all...]
/linux-master/drivers/ata/
H A Dsata_sx4.c1215 u32 ticks = 0; local
1250 ticks = (time_period - tcount);
1251 dev_dbg(host->dev, "Num counters 0x%x (%d)\n", ticks, ticks);
1253 clock = (ticks / 300000);
/linux-master/drivers/net/can/usb/kvaser_usb/
H A Dkvaser_usb_hydra.c529 u64 ticks; local
534 ticks = le64_to_cpu(cmd_ext->rx_can.timestamp);
536 ticks = le16_to_cpu(cmd->rx_can.timestamp[0]);
537 ticks += (u64)(le16_to_cpu(cmd->rx_can.timestamp[1])) << 16;
538 ticks += (u64)(le16_to_cpu(cmd->rx_can.timestamp[2])) << 32;
541 return ns_to_ktime(div_u64(ticks * 1000, cfg->timestamp_freq));
/linux-master/drivers/scsi/
H A Daha152x.c1768 long ticks; local
1783 ticks = (MSGI(3) * 4 + 49) / 50;
1787 if (ticks > 9 || MSGI(4) < 1 || MSGI(4) > 8) {
1795 SYNCRATE |= ((ticks - 2) << 4) + MSGI(4);
1796 } else if (ticks <= 9 && MSGI(4) >= 1) {
1800 if (ticks < 4) {
1801 ticks = 4;
1811 SYNCRATE |= ((ticks - 2) << 4) + MSGI(4);
/linux-master/arch/powerpc/kernel/
H A Dtime.c186 * deltascaled includes both user and system SPURR ticks.
187 * Apportion these ticks to system SPURR ticks and user
188 * SPURR ticks in the same ratio as the system time (delta)
190 * over the same interval. The system ticks get accounted here;
191 * the user ticks get saved up in paca->user_time_scaled to be
602 unsigned long long tb_to_ns(unsigned long long ticks) argument
604 return mulhdu(ticks, tb_to_ns_scale) << tb_to_ns_shift;
/linux-master/drivers/watchdog/
H A Dstarfive-wdt.c198 static u32 starfive_wdt_ticks_to_sec(struct starfive_wdt *wdt, u32 ticks) argument
200 return DIV_ROUND_CLOSEST(ticks, wdt->freq);
/linux-master/include/linux/mfd/
H A D88pm860x.h413 int (*sync)(unsigned int ticks);
/linux-master/net/appletalk/
H A Daarp.c992 static const char *dt2str(unsigned long ticks) argument
996 sprintf(buf, "%ld.%02ld", ticks / HZ, ((ticks % HZ) * 100) / HZ);
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dsiena.c41 unsigned int ticks; local
43 ticks = efx_siena_usecs_to_ticks(efx, channel->irq_moderation_us);
48 ticks - 1);
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4.h496 unsigned int idma_1s_thresh; /* 1s threshold in Core Clock ticks */
1693 unsigned int ticks)
1695 /* add Core Clock / 2 to round ticks to nearest uS */
1696 return ((ticks * 1000 + adapter->params.vpd.cclk/2) /
1701 unsigned int ticks)
1703 return (ticks << adap->params.tp.dack_re) / core_ticks_per_usec(adap);
2083 int hz, int ticks);
1692 core_ticks_to_us(const struct adapter *adapter, unsigned int ticks) argument
1700 dack_ticks_to_usec(const struct adapter *adap, unsigned int ticks) argument
/linux-master/drivers/spi/
H A Dspi-cadence-quadspi.c1146 unsigned int ticks; local
1148 ticks = ref_clk_hz / 1000; /* kHz */
1149 ticks = DIV_ROUND_UP(ticks * ns_val, 1000000);
1151 return ticks;
1163 /* calculate the number of ref ticks for one sclk tick */
/linux-master/sound/isa/wss/
H A Dwss_lib.c755 unsigned int ticks; local
758 ticks = timer->sticks;
760 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] ||
761 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) {
762 chip->image[CS4231_TIMER_HIGH] = (unsigned char) (ticks >> 8);
765 chip->image[CS4231_TIMER_LOW] = (unsigned char) ticks;
968 .ticks = 65535,
/linux-master/sound/sparc/
H A Dcs4231.c669 unsigned int ticks; local
673 ticks = timer->sticks;
675 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] ||
676 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) {
679 (unsigned char) (ticks >> 8));
682 (unsigned char) ticks);
874 .ticks = 65535,
/linux-master/sound/pci/ctxfi/
H A Dcthw20k2.c1114 static int set_timer_tick(struct hw *hw, unsigned int ticks) argument
1116 if (ticks)
1117 ticks |= TIMR_IE | TIMR_IP;
1118 hw_write_20kx(hw, TIMR, ticks);
H A Dcthw20k1.c1171 static int set_timer_tick(struct hw *hw, unsigned int ticks) argument
1173 if (ticks)
1174 ticks |= TIMR_IE | TIMR_IP;
1175 hw_write_20kx(hw, TIMR, ticks);
/linux-master/drivers/i2c/busses/
H A Di2c-mlxbf.c1100 u32 ticks; local
1103 * Compute ticks as follow:
1110 ticks = (nanoseconds * frequency) / MLXBF_I2C_FREQUENCY_1GHZ;
1112 * The number of ticks is rounded down and if minimum is equal to 1
1116 ticks++;
1118 return ticks;
/linux-master/fs/affs/
H A Dinode.c153 inode_set_atime(inode, inode_set_ctime(inode, (be32_to_cpu(tail->change.days) * 86400LL + be32_to_cpu(tail->change.mins) * 60 + be32_to_cpu(tail->change.ticks) / 50 + AFFS_EPOCH_DELTA) + sys_tz.tz_minuteswest * 60, 0).tv_sec, 0).tv_sec,
H A Damigaffs.c387 ds->ticks = cpu_to_be32(rem * 50);
/linux-master/drivers/block/
H A Damiflop.c341 int ticks; local
346 ticks = MS_TICKS*ms-1;
347 ciaa.tblo=ticks%256;
348 ciaa.tbhi=ticks/256;

Completed in 343 milliseconds

1234567