/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_ptp.c | 128 static int hclge_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, argument 143 *ts = ns_to_timespec64(ns); 149 const struct timespec64 *ts) 155 writel(ts->tv_nsec, hdev->ptp->io_base + HCLGE_PTP_TIME_NSEC_REG); 156 writel(ts->tv_sec >> HCLGE_PTP_SEC_H_OFFSET, 158 writel(ts->tv_sec & HCLGE_PTP_SEC_L_MASK, 182 struct timespec64 ts; local 185 hclge_ptp_gettimex(ptp, &ts, NULL); 186 ns = timespec64_to_ns(&ts); 188 ts 148 hclge_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 474 struct timespec64 ts; local [all...] |
/linux-master/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_buffer.c | 195 * update hw ts decimator if necessary. Decimator for hw timestamp 196 * is always 1 or 0 in order to have a ts sample for each data 308 /* reset hw ts counter */ 332 /* reset hw ts counter */ 381 s64 ts = 0; local 465 * B0 = ts[15:8], B1 = ts[23:16], B3 = ts[7:0] 467 ts = data[1] << 16 | data[0] << 8 | data[3]; 474 if (!reset_ts && ts > 533 st_lsm6dsx_push_tagged_data(struct st_lsm6dsx_hw *hw, u8 tag, u8 *data, s64 ts) argument 609 s64 ts = 0; local [all...] |
/linux-master/drivers/ptp/ |
H A D | ptp_dfl_tod.c | 226 static int dfl_tod_get_timex(struct ptp_clock_info *ptp, struct timespec64 *ts, argument 245 ts->tv_nsec = nanosec; 246 ts->tv_sec = seconds; 252 const struct timespec64 *ts) 255 u32 seconds_msb = FIELD_GET(SECONDS_MSB, ts->tv_sec); 256 u32 seconds_lsb = FIELD_GET(SECONDS_LSB, ts->tv_sec); 257 u32 nanosec = FIELD_GET(SECONDS_LSB, ts->tv_nsec); 251 dfl_tod_set_time(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument
|
/linux-master/fs/adfs/ |
H A D | inode.c | 215 const struct timespec64 *ts) 217 s64 cs, nsec = timespec64_to_ns(ts); 248 struct timespec64 ts; local 275 adfs_adfs2unix_time(&ts, inode); 276 inode_set_atime_to_ts(inode, ts); 277 inode_set_mtime_to_ts(inode, ts); 278 inode_set_ctime_to_ts(inode, ts); 214 adfs_unix2adfs_time(struct inode *inode, const struct timespec64 *ts) argument
|
/linux-master/drivers/platform/x86/amd/pmf/ |
H A D | cnqf.c | 99 struct cnqf_mode_settings *ts; local 103 ts = &config_store.mode_set[src][CNQF_MODE_BALANCE]; 104 tp->power_threshold = ts->power_floor; 107 ts = &config_store.mode_set[src][CNQF_MODE_PERFORMANCE]; 108 tp->power_threshold = ts->power_floor; 111 ts = &config_store.mode_set[src][CNQF_MODE_BALANCE]; 112 tp->power_threshold = ts->power_floor; 115 ts = &config_store.mode_set[src][CNQF_MODE_PERFORMANCE]; 116 tp->power_threshold = ts->power_floor; 119 ts [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_dp_training_dpia.c | 202 static enum dc_status convert_trng_ptn_to_trng_stg(enum dc_dp_training_pattern tps, enum dpia_set_config_ts *ts) argument 208 *ts = DPIA_TS_TPS1; 211 *ts = DPIA_TS_TPS2; 214 *ts = DPIA_TS_TPS3; 217 *ts = DPIA_TS_TPS4; 220 *ts = DPIA_TS_DPRX_DONE; 224 *ts = DPIA_TS_DPRX_DONE; 303 enum dpia_set_config_ts ts; local 344 status = convert_trng_ptn_to_trng_stg(lt_settings->pattern_for_cr, &ts); 352 ts); 628 enum dpia_set_config_ts ts; local [all...] |
/linux-master/drivers/ata/ |
H A D | ahci_dwc.c | 265 u32 port, dmacr, ts; local 286 if (!of_property_read_u32(child, "snps,tx-ts-max", &ts)) { 287 ts = ilog2(ts); 289 dmacr |= FIELD_PREP(AHCI_DWC_PORT_TXTS_MASK, ts); 292 if (!of_property_read_u32(child, "snps,rx-ts-max", &ts)) { 293 ts = ilog2(ts); [all...] |
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot_ptp.c | 17 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) argument 46 set_normalized_timespec64(ts, s, ns); 52 const struct timespec64 *ts) 66 ocelot_write_rix(ocelot, lower_32_bits(ts->tv_sec), PTP_PIN_TOD_SEC_LSB, 68 ocelot_write_rix(ocelot, upper_32_bits(ts->tv_sec), PTP_PIN_TOD_SEC_MSB, 70 ocelot_write_rix(ocelot, ts->tv_nsec, PTP_PIN_TOD_NSEC, TOD_ACC_PIN); 121 struct timespec64 ts; local 124 ocelot_ptp_gettime64(ptp, &ts); 126 now = ktime_to_ns(timespec64_to_ktime(ts)); 127 ts 51 ocelot_ptp_settime64(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 706 ocelot_get_hwtimestamp(struct ocelot *ocelot, struct timespec64 *ts) argument 753 struct timespec64 ts; local [all...] |
/linux-master/fs/coda/ |
H A D | coda_linux.c | 69 static struct timespec64 coda_to_timespec64(struct coda_timespec ts) argument 72 .tv_sec = ts.tv_sec, 73 .tv_nsec = ts.tv_nsec, 81 struct coda_timespec ts = { local 86 return ts;
|
/linux-master/drivers/net/wireless/ath/ath12k/ |
H A D | dp_tx.c | 372 struct ath12k_dp_htt_wbm_tx_status *ts) 393 if (ts->acked) { 397 ts->ack_rssi; 414 struct ath12k_dp_htt_wbm_tx_status ts = {0}; local 426 ts.acked = (wbm_status == HAL_WBM_REL_HTT_TX_COMP_STATUS_OK); 427 ts.ack_rssi = le32_get_bits(status_desc->info2, 429 ath12k_dp_tx_htt_tx_complete_buf(ab, msdu, tx_ring, &ts); 448 struct hal_tx_status *ts) 454 if (WARN_ON_ONCE(ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM)) { 484 if (ts 369 ath12k_dp_tx_htt_tx_complete_buf(struct ath12k_base *ab, struct sk_buff *msdu, struct dp_tx_ring *tx_ring, struct ath12k_dp_htt_wbm_tx_status *ts) argument 446 ath12k_dp_tx_complete_msdu(struct ath12k *ar, struct sk_buff *msdu, struct hal_tx_status *ts) argument 507 ath12k_dp_tx_status_parse(struct ath12k_base *ab, struct hal_wbm_completion_ring_tx *desc, struct hal_tx_status *ts) argument 539 struct hal_tx_status ts = { 0 }; local [all...] |
/linux-master/drivers/staging/rtl8192e/ |
H A D | rtllib_rx.c | 406 static bool AddReorderEntry(struct rx_ts_record *ts, argument 409 struct list_head *pList = &ts->rx_pending_pkt_list; 411 while (pList->next != &ts->rx_pending_pkt_list) { 491 struct rx_ts_record *ts) 496 del_timer_sync(&ts->rx_pkt_pending_timer); 497 while (!list_empty(&ts->rx_pending_pkt_list)) { 506 list_entry(ts->rx_pending_pkt_list.prev, 520 ts->rx_indicate_seq = 0xffff; 525 struct rx_ts_record *ts, u16 SeqNum) 536 "%s(): Seq is %d, ts 490 rtllib_flush_rx_ts_pending_pkts(struct rtllib_device *ieee, struct rx_ts_record *ts) argument 523 RxReorderIndicatePacket(struct rtllib_device *ieee, struct rtllib_rxb *prxb, struct rx_ts_record *ts, u16 SeqNum) argument 891 struct rx_ts_record *ts = NULL; local 1233 struct rx_ts_record *ts = NULL; local [all...] |
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_ptp.c | 247 static int sja1105_ptpegr_ts_poll(struct dsa_switch *ds, int port, u64 *ts) argument 284 *ts = 0; 286 sja1105_unpack(packed_buf, ts, tstamp_bit_start, tstamp_bit_end, 347 u64 ticks, ts; local 359 ts = SJA1105_SKB_CB(skb)->tstamp; 360 ts = sja1105_tstamp_reconstruct(ds, ticks, ts); 362 shwt->hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); 394 u64 ts = SJA1105_SKB_CB(skb)->tstamp; local 398 shwt->hwtstamp = ns_to_ktime(sja1105_ticks_to_ns(ts)); 534 sja1105_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, struct ptp_system_timestamp *ptp_sts) argument 588 sja1105_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) argument 946 u64 ticks, ts; local [all...] |
/linux-master/arch/um/drivers/ |
H A D | rtc_kern.c | 35 struct timespec64 ts; local 38 read_persistent_clock64(&ts); 39 rtc_time64_to_tm(timespec64_to_ktime(ts) / NSEC_PER_SEC, tm);
|
/linux-master/arch/mips/mti-malta/ |
H A D | malta-time.c | 120 void read_persistent_clock64(struct timespec64 *ts) argument 122 ts->tv_sec = mc146818_get_cmos_time(); 123 ts->tv_nsec = 0;
|
/linux-master/samples/bpf/ |
H A D | offwaketime.bpf.c | 120 u64 delta, ts, *tsp; local 122 ts = bpf_ktime_get_ns(); 123 bpf_map_update_elem(&start, &pid, &ts, BPF_ANY);
|
/linux-master/drivers/iio/imu/inv_icm42600/ |
H A D | inv_icm42600_buffer.c | 279 struct inv_sensors_timestamp *ts = iio_priv(indio_dev); local 284 inv_sensors_timestamp_reset(ts); 505 struct inv_sensors_timestamp *ts; local 512 ts = iio_priv(st->indio_gyro); 513 inv_sensors_timestamp_interrupt(ts, st->fifo.period, st->fifo.nb.total, 522 ts = iio_priv(st->indio_accel); 523 inv_sensors_timestamp_interrupt(ts, st->fifo.period, st->fifo.nb.total, 537 struct inv_sensors_timestamp *ts; local 552 ts = iio_priv(st->indio_gyro); 553 inv_sensors_timestamp_interrupt(ts, s [all...] |
/linux-master/tools/perf/jvmti/ |
H A D | jvmti_agent.c | 108 timespec_to_ns(const struct timespec *ts) argument 110 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; 116 struct timespec ts; local 122 ret = clock_gettime(perf_clk_id, &ts); 126 return timespec_to_ns(&ts);
|
/linux-master/drivers/iio/humidity/ |
H A D | dht11.c | 86 struct {s64 ts; int value; } edges[DHT11_EDGES_PER_READ]; member in struct:dht11::__anon69 101 dht11->edges[i].ts - dht11->edges[i - 1].ts, 128 t = dht11->edges[offset + 2 * i + 2].ts - 129 dht11->edges[offset + 2 * i + 1].ts; 177 dht11->edges[dht11->num_edges].ts = ktime_get_boottime_ns();
|
/linux-master/drivers/net/can/esd/ |
H A D | esdacc.h | 142 u64 ts; member in struct:acc_bmmsg_rxtxdone 152 u64 ts; member in struct:acc_bmmsg_txabort 163 u64 ts; member in struct:acc_bmmsg_overrun 174 u64 ts; member in struct:acc_bmmsg_buserr 186 u64 ts; member in struct:acc_bmmsg_errstatechange 197 u64 ts; member in struct:acc_bmmsg_timeslice
|
/linux-master/include/media/ |
H A D | cec.h | 351 u8 error_cnt, ktime_t ts); 366 u8 status, ktime_t ts); 375 struct cec_msg *msg, ktime_t ts); 389 * @ts: the timestamp for this event 393 bool dropped_events, ktime_t ts); 400 * @ts: the timestamp for this event 403 void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts); 410 * @ts: the timestamp for this event 413 void cec_queue_pin_5v_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
|
H A D | dvb_demux.h | 99 * @feed.ts or @feed.sec. 100 * @feed.ts: a &struct dmx_ts_feed pointer. 106 * @cb.ts or @cb.sec. 107 * @cb.ts: a dmx_ts_cb() calback function pointer. 132 struct dmx_ts_feed ts; member in union:dvb_demux_feed::__anon12062 137 dmx_ts_cb ts; member in union:dvb_demux_feed::__anon12063 342 * depends on the &dvb_demux->feed->cb.ts logic. 348 * This function relies on &dvb_demux->feed->cb.ts to actually handle the
|
/linux-master/kernel/time/ |
H A D | posix-clock.c | 270 static int pc_clock_gettime(clockid_t id, struct timespec64 *ts) argument 280 err = cd.clk->ops.clock_gettime(cd.clk, ts); 289 static int pc_clock_getres(clockid_t id, struct timespec64 *ts) argument 299 err = cd.clk->ops.clock_getres(cd.clk, ts); 308 static int pc_clock_settime(clockid_t id, const struct timespec64 *ts) argument 323 err = cd.clk->ops.clock_settime(cd.clk, ts);
|
/linux-master/tools/testing/selftests/timers/ |
H A D | inconsistency-check.c | 157 struct timespec ts; local 184 if (clockid == CLOCK_HWSPECIFIC || clock_gettime(clockid, &ts)) {
|
/linux-master/drivers/scsi/snic/ |
H A D | snic_trc.h | 19 u64 ts; /* Time Stamp */ member in struct:snic_trc_data 63 tr_rec->ts = jiffies; /* Update time stamp at last */
|
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_taprio.c | 378 struct timespec64 ts; local 381 lan966x_ptp_gettime64(&lan966x->phc[LAN966X_PHC_PORT].info, &ts); 382 current_time = timespec64_to_ktime(ts); 446 struct timespec64 ts; local 464 ts = ktime_to_timespec64(base_time); 465 lan_wr(QSYS_TAS_BT_NSEC_NSEC_SET(ts.tv_nsec), 468 lan_wr(lower_32_bits(ts.tv_sec), 471 lan_wr(QSYS_TAS_BT_SEC_MSB_SEC_MSB_SET(upper_32_bits(ts.tv_sec)),
|