Home
last modified time | relevance | path

Searched full:txc (Results 1 – 25 of 106) sorted by relevance

12345

/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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 …]
/Linux-v6.1/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-v6.1/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
171 - txc-skew-psec : Skew control of TX clock pad
192 txc-skew-ps = <1800>;
202 txc-skew-ps = <1800>;
Dmediatek,star-emac.yaml55 PHYs, is connected to RXC pin. Otherwise, is connected to TXC pin.
62 mediatek,txc-inverse:
65 If present, indicates that clock on TXC pad will be inversed.
Dmediatek-dwmac.yaml100 PHYs, is connected to RXC pin. Otherwise, is connected to TXC pin.
106 outputs to TXC pin only.
108 mediatek,txc-inverse:
115 3. the reference clock, which outputs to TXC pin will be inversed in RMII case
/Linux-v6.1/arch/s390/kernel/
Dtime.c590 struct __kernel_timex txc; in stp_clear_leap() local
593 memset(&txc, 0, sizeof(txc)); in stp_clear_leap()
595 ret = do_adjtimex(&txc); in stp_clear_leap()
599 txc.modes = ADJ_STATUS; in stp_clear_leap()
600 txc.status &= ~(STA_INS|STA_DEL); in stp_clear_leap()
601 return do_adjtimex(&txc); in stp_clear_leap()
608 struct __kernel_timex txc; in stp_check_leap() local
640 memset(&txc, 0, sizeof(txc)); in stp_check_leap()
641 ret = do_adjtimex(&txc); in stp_check_leap()
645 txc.modes = ADJ_STATUS; in stp_check_leap()
[all …]
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-mediatek.c213 * and the clock output to TXC pin. in mt2712_set_delay()
215 * The ingress timing can be adjusted by TXC delay macro circuit. in mt2712_set_delay()
226 * and the property "rmii_rxc" indicates which pin(TXC/RXC) in mt2712_set_delay()
241 * to TXC pin, the reference clock will be adjusted in mt2712_set_delay()
242 * by TXC delay macro circuit. in mt2712_set_delay()
364 * and the clock output to TXC pin. in mt8195_set_delay()
383 * and the property "rmii_rxc" indicates which pin(TXC/RXC) in mt8195_set_delay()
401 * to TXC pin, the reference clock will be adjusted in mt8195_set_delay()
402 * by TXC delay macro circuit. in mt8195_set_delay()
515 mac_delay->tx_inv = of_property_read_bool(plat->np, "mediatek,txc-inverse"); in mediatek_dwmac_config_dt()
/Linux-v6.1/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-v6.1/drivers/net/can/usb/
Dgs_usb.c352 static void gs_free_tx_context(struct gs_tx_context *txc) in gs_free_tx_context() argument
354 txc->echo_id = GS_MAX_TX_URBS; in gs_free_tx_context()
531 struct gs_tx_context *txc; in gs_usb_receive_bulk_callback() local
604 txc = gs_get_tx_context(dev, hf->echo_id); in gs_usb_receive_bulk_callback()
607 if (!txc) { in gs_usb_receive_bulk_callback()
621 gs_free_tx_context(txc); in gs_usb_receive_bulk_callback()
705 struct gs_tx_context *txc = urb->context; in gs_usb_xmit_callback() local
706 struct gs_can *dev = txc->dev; in gs_usb_xmit_callback()
710 netdev_info(netdev, "usb xmit fail %u\n", txc->echo_id); in gs_usb_xmit_callback()
724 struct gs_tx_context *txc; in gs_can_start_xmit() local
[all …]
/Linux-v6.1/arch/arm/boot/dts/
Dsama5d3xmb_gmac.dtsi22 txc-skew-ps = <3000>;
36 txc-skew-ps = <3000>;
Dgemini-nas4220b.dts122 pins = "U8 GMAC0 TXC";
126 pins = "V11 GMAC1 TXC";
Dsama5d3xcm_cmp.dtsi57 txc-skew-ps = <3000>;
71 txc-skew-ps = <3000>;
Dimx6dl-mba6.dtsi20 txc-skew-ps = <1860>;
/Linux-v6.1/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()
460 u16 txc; in men_z135_tx_empty() local
463 txc = (wptr >> 16) & 0x3ff; in men_z135_tx_empty()
465 if (txc == 0) in men_z135_tx_empty()
/Linux-v6.1/Documentation/devicetree/bindings/sound/
Dfsl,asrc.txt25 - dma-names : Contains "rxa", "rxb", "rxc", "txa", "txb" and "txc".
77 "txa", "txb", "txc";
/Linux-v6.1/arch/powerpc/sysdev/
Dtsi108_dev.c130 * "txc-rxc-delay-disable" property enables this in tsi108_eth_of_init()
135 if (of_get_property(phy, "txc-rxc-delay-disable", NULL)) in tsi108_eth_of_init()
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.h29 /* TxC SOP DX EOP
60 /* TxC */
/Linux-v6.1/arch/alpha/kernel/
Dosf_sys.c1192 struct __kernel_timex txc; in SYSCALL_DEFINE1() local
1196 if (copy_from_user(&txc, txc_p, offsetof(struct timex32, time)) || in SYSCALL_DEFINE1()
1197 copy_from_user(&txc.tick, &txc_p->tick, sizeof(struct timex32) - in SYSCALL_DEFINE1()
1201 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1()
1206 if (copy_to_user(txc_p, &txc, offsetof(struct timex32, time)) || in SYSCALL_DEFINE1()
1207 (copy_to_user(&txc_p->tick, &txc.tick, sizeof(struct timex32) - in SYSCALL_DEFINE1()
1209 (put_user(txc.time.tv_sec, &txc_p->time.tv_sec)) || in SYSCALL_DEFINE1()
1210 (put_user(txc.time.tv_usec, &txc_p->time.tv_usec))) in SYSCALL_DEFINE1()

12345