Home
last modified time | relevance | path

Searched refs:txc (Results 1 – 25 of 63) sorted by relevance

123

/linux-6.6.21/kernel/time/
Dntp.c193 static inline void pps_fill_timex(struct __kernel_timex *txc) in pps_fill_timex() argument
195 txc->ppsfreq = shift_right((pps_freq >> PPM_SCALE_INV_SHIFT) * in pps_fill_timex()
197 txc->jitter = pps_jitter; in pps_fill_timex()
199 txc->jitter = pps_jitter / NSEC_PER_USEC; in pps_fill_timex()
200 txc->shift = pps_shift; in pps_fill_timex()
201 txc->stabil = pps_stabil; in pps_fill_timex()
202 txc->jitcnt = pps_jitcnt; in pps_fill_timex()
203 txc->calcnt = pps_calcnt; in pps_fill_timex()
204 txc->errcnt = pps_errcnt; in pps_fill_timex()
205 txc->stbcnt = pps_stbcnt; in pps_fill_timex()
[all …]
Dtime.c271 struct __kernel_timex txc; /* Local copy of parameter */ in SYSCALL_DEFINE1() local
278 if (copy_from_user(&txc, txc_p, sizeof(struct __kernel_timex))) in SYSCALL_DEFINE1()
280 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1()
281 return copy_to_user(txc_p, &txc, sizeof(struct __kernel_timex)) ? -EFAULT : ret; in SYSCALL_DEFINE1()
286 int get_old_timex32(struct __kernel_timex *txc, const struct old_timex32 __user *utp) in get_old_timex32() argument
290 memset(txc, 0, sizeof(struct __kernel_timex)); in get_old_timex32()
294 txc->modes = tx32.modes; in get_old_timex32()
295 txc->offset = tx32.offset; in get_old_timex32()
296 txc->freq = tx32.freq; in get_old_timex32()
297 txc->maxerror = tx32.maxerror; in get_old_timex32()
[all …]
Dtimekeeping.c2342 static int timekeeping_validate_timex(const struct __kernel_timex *txc) in timekeeping_validate_timex() argument
2344 if (txc->modes & ADJ_ADJTIME) { in timekeeping_validate_timex()
2346 if (!(txc->modes & ADJ_OFFSET_SINGLESHOT)) in timekeeping_validate_timex()
2348 if (!(txc->modes & ADJ_OFFSET_READONLY) && in timekeeping_validate_timex()
2353 if (txc->modes && !capable(CAP_SYS_TIME)) in timekeeping_validate_timex()
2359 if (txc->modes & ADJ_TICK && in timekeeping_validate_timex()
2360 (txc->tick < 900000/USER_HZ || in timekeeping_validate_timex()
2361 txc->tick > 1100000/USER_HZ)) in timekeeping_validate_timex()
2365 if (txc->modes & ADJ_SETOFFSET) { in timekeeping_validate_timex()
2378 if (txc->time.tv_usec < 0) in timekeeping_validate_timex()
[all …]
Dntp_internal.h11 extern int __do_adjtimex(struct __kernel_timex *txc,
/linux-6.6.21/tools/testing/selftests/timers/
Dfreq-step.c82 struct timex txc; in reset_ntp_error() local
84 txc.modes = ADJ_SETOFFSET; in reset_ntp_error()
85 txc.time.tv_sec = 0; in reset_ntp_error()
86 txc.time.tv_usec = 0; in reset_ntp_error()
88 if (adjtimex(&txc) < 0) { in reset_ntp_error()
96 struct timex txc; in set_frequency() local
101 txc.modes = ADJ_TICK | ADJ_FREQUENCY; in set_frequency()
102 txc.tick = 1000000 / user_hz + tick_offset; in set_frequency()
103 txc.freq = (1e6 * freq - user_hz * tick_offset) * (1 << 16); in set_frequency()
105 if (adjtimex(&txc) < 0) { in set_frequency()
/linux-6.6.21/drivers/hsi/clients/
Dhsi_char.c377 static int hsc_tx_set(struct hsi_client *cl, struct hsc_tx_config *txc) in hsc_tx_set() argument
382 if ((txc->mode != HSI_MODE_STREAM) && (txc->mode != HSI_MODE_FRAME)) in hsc_tx_set()
384 if ((txc->channels == 0) || (txc->channels > HSC_DEVS)) in hsc_tx_set()
386 if (txc->channels & (txc->channels - 1)) in hsc_tx_set()
388 if ((txc->arb_mode != HSI_ARB_RR) && (txc->arb_mode != HSI_ARB_PRIO)) in hsc_tx_set()
391 cl->tx_cfg.mode = txc->mode; in hsc_tx_set()
392 cl->tx_cfg.num_hw_channels = txc->channels; in hsc_tx_set()
393 cl->tx_cfg.speed = txc->speed; in hsc_tx_set()
394 cl->tx_cfg.arb_mode = txc->arb_mode; in hsc_tx_set()
404 static inline void hsc_tx_get(struct hsi_client *cl, struct hsc_tx_config *txc) in hsc_tx_get() argument
[all …]
/linux-6.6.21/arch/sparc/kernel/
Dsys_sparc_64.c553 struct __kernel_timex txc; in SYSCALL_DEFINE1() local
554 struct __kernel_old_timeval *tv = (void *)&txc.time; in SYSCALL_DEFINE1()
561 if (copy_from_user(&txc, txc_p, sizeof(txc))) in SYSCALL_DEFINE1()
568 txc.time.tv_usec = tv->tv_usec; in SYSCALL_DEFINE1()
569 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1()
570 tv->tv_usec = txc.time.tv_usec; in SYSCALL_DEFINE1()
572 return copy_to_user(txc_p, &txc, sizeof(txc)) ? -EFAULT : ret; in SYSCALL_DEFINE1()
578 struct __kernel_timex txc; in SYSCALL_DEFINE2() local
579 struct __kernel_old_timeval *tv = (void *)&txc.time; in SYSCALL_DEFINE2()
594 if (copy_from_user(&txc, txc_p, sizeof(txc))) in SYSCALL_DEFINE2()
[all …]
/linux-6.6.21/arch/s390/kernel/
Dtime.c595 struct __kernel_timex txc; in stp_clear_leap() local
598 memset(&txc, 0, sizeof(txc)); in stp_clear_leap()
600 ret = do_adjtimex(&txc); in stp_clear_leap()
604 txc.modes = ADJ_STATUS; in stp_clear_leap()
605 txc.status &= ~(STA_INS|STA_DEL); in stp_clear_leap()
606 return do_adjtimex(&txc); in stp_clear_leap()
613 struct __kernel_timex txc; in stp_check_leap() local
645 memset(&txc, 0, sizeof(txc)); in stp_check_leap()
646 ret = do_adjtimex(&txc); in stp_check_leap()
650 txc.modes = ADJ_STATUS; in stp_check_leap()
[all …]
/linux-6.6.21/drivers/spi/
Dspi-oc-tiny.c49 unsigned int txc, rxc; member
119 hw->txc = 0; in tiny_spi_txrx_bufs()
126 hw->txc++; in tiny_spi_txrx_bufs()
129 hw->txc++; in tiny_spi_txrx_bufs()
134 hw->txc++; in tiny_spi_txrx_bufs()
172 if (hw->txc < hw->len) { in tiny_spi_irq()
175 hw->txc++; in tiny_spi_irq()
/linux-6.6.21/drivers/net/wireless/ath/carl9170/
Dtx.c520 struct _carl9170_tx_superframe *txc = (void *) skb->data; in carl9170_get_queued_skb() local
522 if (txc->s.cookie != cookie) in carl9170_get_queued_skb()
895 struct _carl9170_tx_superframe *txc = (void *) skb->data; in carl9170_tx_apply_rateset() local
926 txc->f.phy_control = phy_set; in carl9170_tx_apply_rateset()
936 txc->f.mac_control |= mac_tmp; in carl9170_tx_apply_rateset()
941 txc->s.rr[i - 1] = phy_set; in carl9170_tx_apply_rateset()
944 SET_VAL(CARL9170_TX_SUPER_RI_TRIES, txc->s.ri[i], in carl9170_tx_apply_rateset()
948 txc->s.ri[i] |= (AR9170_TX_MAC_PROT_RTS << in carl9170_tx_apply_rateset()
951 txc->s.ri[i] |= (AR9170_TX_MAC_PROT_CTS << in carl9170_tx_apply_rateset()
955 txc->s.ri[i] |= CARL9170_TX_SUPER_RI_AMPDU; in carl9170_tx_apply_rateset()
[all …]
Ddebug.c287 struct _carl9170_tx_superframe *txc = (void *) skb->data; in carl9170_debugfs_format_frame() local
290 struct ieee80211_hdr *hdr = (void *) txc->frame_data; in carl9170_debugfs_format_frame()
293 "pc:%.8x, to:%d ms\n", prefix, skb, txc->s.cookie, in carl9170_debugfs_format_frame()
295 le16_to_cpu(txc->f.mac_control), le32_to_cpu(txc->f.phy_control), in carl9170_debugfs_format_frame()
/linux-6.6.21/drivers/net/can/usb/
Dgs_usb.c362 static void gs_free_tx_context(struct gs_tx_context *txc) in gs_free_tx_context() argument
364 txc->echo_id = GS_MAX_TX_URBS; in gs_free_tx_context()
577 struct gs_tx_context *txc; in gs_usb_receive_bulk_callback() local
648 txc = gs_get_tx_context(dev, hf->echo_id); in gs_usb_receive_bulk_callback()
651 if (!txc) { in gs_usb_receive_bulk_callback()
661 gs_free_tx_context(txc); in gs_usb_receive_bulk_callback()
747 struct gs_tx_context *txc = urb->context; in gs_usb_xmit_callback() local
748 struct gs_can *dev = txc->dev; in gs_usb_xmit_callback()
752 netdev_info(netdev, "usb xmit fail %u\n", txc->echo_id); in gs_usb_xmit_callback()
766 struct gs_tx_context *txc; in gs_can_start_xmit() local
[all …]
/linux-6.6.21/arch/arm/boot/dts/microchip/
Dsama5d3xmb_gmac.dtsi22 txc-skew-ps = <3000>;
36 txc-skew-ps = <3000>;
Dsama5d3xcm_cmp.dtsi57 txc-skew-ps = <3000>;
71 txc-skew-ps = <3000>;
/linux-6.6.21/drivers/tty/serial/
Dmen_z135_uart.c297 u32 txc; in men_z135_handle_tx() local
321 txc = (wptr >> 16) & 0x3ff; in men_z135_handle_tx()
324 if (txc > MEN_Z135_FIFO_WATERMARK) in men_z135_handle_tx()
325 txc = MEN_Z135_FIFO_WATERMARK; in men_z135_handle_tx()
327 txfree = MEN_Z135_FIFO_WATERMARK - txc; in men_z135_handle_tx()
457 u16 txc; in men_z135_tx_empty() local
460 txc = (wptr >> 16) & 0x3ff; in men_z135_tx_empty()
462 if (txc == 0) in men_z135_tx_empty()
/linux-6.6.21/Documentation/devicetree/bindings/net/
Dmicrel-ksz90x1.txt50 - txc-skew-ps : Skew control of TXC pad
74 The following 5-bit values table apply to rxc-skew-ps and txc-skew-ps.
138 - txc-skew-ps : Skew control of TX clock pad
172 - txc-skew-psec : Skew control of TX clock pad
193 txc-skew-ps = <1800>;
203 txc-skew-ps = <1800>;
/linux-6.6.21/drivers/staging/axis-fifo/
Daxis-fifo.txt24 - xlnx,axi-str-txc-protocol: Should be "XIL_AXI_STREAM_ETH_CTRL"
25 - xlnx,axi-str-txc-tdata-width: Should be <0x20>
66 xlnx,axi-str-txc-protocol = "XIL_AXI_STREAM_ETH_CTRL";
67 xlnx,axi-str-txc-tdata-width = <0x20>;
/linux-6.6.21/arch/alpha/kernel/
Dosf_sys.c1190 struct __kernel_timex txc; in SYSCALL_DEFINE1() local
1194 if (copy_from_user(&txc, txc_p, offsetof(struct timex32, time)) || in SYSCALL_DEFINE1()
1195 copy_from_user(&txc.tick, &txc_p->tick, sizeof(struct timex32) - in SYSCALL_DEFINE1()
1199 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1()
1204 if (copy_to_user(txc_p, &txc, offsetof(struct timex32, time)) || in SYSCALL_DEFINE1()
1205 (copy_to_user(&txc_p->tick, &txc.tick, sizeof(struct timex32) - in SYSCALL_DEFINE1()
1207 (put_user(txc.time.tv_sec, &txc_p->time.tv_sec)) || in SYSCALL_DEFINE1()
1208 (put_user(txc.time.tv_usec, &txc_p->time.tv_usec))) in SYSCALL_DEFINE1()
/linux-6.6.21/arch/arm/boot/dts/nxp/imx/
Dimx6dl-mba6.dtsi20 txc-skew-ps = <1860>;
Dimx6q-mba6.dtsi26 txc-skew-ps = <1860>;
/linux-6.6.21/Documentation/devicetree/bindings/sound/
Dfsl,asrc.txt25 - dma-names : Contains "rxa", "rxb", "rxc", "txa", "txb" and "txc".
77 "txa", "txb", "txc";
/linux-6.6.21/drivers/net/dsa/sja1105/
Dsja1105_clocking.c342 struct sja1105_cgu_mii_ctrl txc; in sja1105_cgu_rgmii_tx_clk_config() local
358 txc.clksrc = clksrc; in sja1105_cgu_rgmii_tx_clk_config()
360 txc.autoblock = 1; in sja1105_cgu_rgmii_tx_clk_config()
362 txc.pd = 0; in sja1105_cgu_rgmii_tx_clk_config()
363 sja1105_cgu_mii_control_packing(packed_buf, &txc, PACK); in sja1105_cgu_rgmii_tx_clk_config()
/linux-6.6.21/arch/powerpc/boot/dts/
Dholly.dts69 txc-rxc-delay-disable;
75 txc-rxc-delay-disable;
/linux-6.6.21/arch/arm64/boot/dts/renesas/
Drzg2ul-smarc-som.dtsi84 txc-skew-psec = <2400>;
113 txc-skew-psec = <2400>;
/linux-6.6.21/arch/arm/boot/dts/intel/socfpga/
Dsocfpga_arria10_mercury_aa1.dtsi51 txc-skew-ps = <1860>; /* 960ps */

123