/linux-master/drivers/pwm/ |
H A D | pwm-fsl-ftm.c | 115 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 D | efx.h | 201 unsigned int ef4_ticks_to_usecs(struct ef4_nic *efx, unsigned int ticks);
|
/linux-master/include/uapi/linux/ |
H A D | soundcard.h | 1240 #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 D | vt_ioctl.c | 310 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 D | keyboard.c | 276 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 D | dsi.c | 1858 /* 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 D | dsi.c | 1331 /* 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 D | sata_sx4.c | 1215 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 D | kvaser_usb_hydra.c | 529 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 D | aha152x.c | 1768 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 D | time.c | 186 * 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 D | starfive-wdt.c | 198 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 D | 88pm860x.h | 413 int (*sync)(unsigned int ticks);
|
/linux-master/net/appletalk/ |
H A D | aarp.c | 992 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 D | siena.c | 41 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 D | cxgb4.h | 496 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 D | spi-cadence-quadspi.c | 1146 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 D | wss_lib.c | 755 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 D | cs4231.c | 669 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 D | cthw20k2.c | 1114 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 D | cthw20k1.c | 1171 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 D | i2c-mlxbf.c | 1100 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 D | inode.c | 153 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 D | amigaffs.c | 387 ds->ticks = cpu_to_be32(rem * 50);
|
/linux-master/drivers/block/ |
H A D | amiflop.c | 341 int ticks; local 346 ticks = MS_TICKS*ms-1; 347 ciaa.tblo=ticks%256; 348 ciaa.tbhi=ticks/256;
|