Home
last modified time | relevance | path

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

12345

/linux/kernel/time/
H A 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 …]
H A 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 …]
H A Dtimekeeping.c2471 static int timekeeping_validate_timex(const struct __kernel_timex *txc) in timekeeping_validate_timex() argument
2473 if (txc->modes & ADJ_ADJTIME) { in timekeeping_validate_timex()
2475 if (!(txc->modes & ADJ_OFFSET_SINGLESHOT)) in timekeeping_validate_timex()
2477 if (!(txc->modes & ADJ_OFFSET_READONLY) && in timekeeping_validate_timex()
2482 if (txc->modes && !capable(CAP_SYS_TIME)) in timekeeping_validate_timex()
2488 if (txc->modes & ADJ_TICK && in timekeeping_validate_timex()
2489 (txc->tick < 900000/USER_HZ || in timekeeping_validate_timex()
2490 txc->tick > 1100000/USER_HZ)) in timekeeping_validate_timex()
2494 if (txc->modes & ADJ_SETOFFSET) { in timekeeping_validate_timex()
2507 if (txc->time.tv_usec < 0) in timekeeping_validate_timex()
[all …]
/linux/drivers/hsi/clients/
H A 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/tools/testing/selftests/timers/
H A 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/arch/sparc/kernel/
H A Dsys_sparc_64.c549 struct __kernel_timex txc; in SYSCALL_DEFINE1() local
550 struct __kernel_old_timeval *tv = (void *)&txc.time; in SYSCALL_DEFINE1()
557 if (copy_from_user(&txc, txc_p, sizeof(txc))) in SYSCALL_DEFINE1()
564 txc.time.tv_usec = tv->tv_usec; in SYSCALL_DEFINE1()
565 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1()
566 tv->tv_usec = txc.time.tv_usec; in SYSCALL_DEFINE1()
568 return copy_to_user(txc_p, &txc, sizeof(txc)) ? -EFAULT : ret; in SYSCALL_DEFINE1()
574 struct __kernel_timex txc; in SYSCALL_DEFINE2() local
575 struct __kernel_old_timeval *tv = (void *)&txc.time; in SYSCALL_DEFINE2()
590 if (copy_from_user(&txc, txc_p, sizeof(txc))) in SYSCALL_DEFINE2()
[all …]
/linux/drivers/net/wireless/ath/carl9170/
H A Dtx.c521 struct _carl9170_tx_superframe *txc = (void *) skb->data; in carl9170_get_queued_skb() local
523 if (txc->s.cookie != cookie) in carl9170_get_queued_skb()
896 struct _carl9170_tx_superframe *txc = (void *) skb->data; in carl9170_tx_apply_rateset() local
927 txc->f.phy_control = phy_set; in carl9170_tx_apply_rateset()
937 txc->f.mac_control |= mac_tmp; in carl9170_tx_apply_rateset()
942 txc->s.rr[i - 1] = phy_set; in carl9170_tx_apply_rateset()
945 SET_VAL(CARL9170_TX_SUPER_RI_TRIES, txc->s.ri[i], in carl9170_tx_apply_rateset()
949 txc->s.ri[i] |= (AR9170_TX_MAC_PROT_RTS << in carl9170_tx_apply_rateset()
952 txc->s.ri[i] |= (AR9170_TX_MAC_PROT_CTS << in carl9170_tx_apply_rateset()
956 txc->s.ri[i] |= CARL9170_TX_SUPER_RI_AMPDU; in carl9170_tx_apply_rateset()
[all …]
/linux/arch/s390/kernel/
H A 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/Documentation/devicetree/bindings/net/
H A 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>;
H A 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.
H A 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/drivers/spi/
H A 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/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-mediatek.c212 * and the clock output to TXC pin. in mt2712_set_delay()
214 * The ingress timing can be adjusted by TXC delay macro circuit. in mt2712_set_delay()
225 * and the property "rmii_rxc" indicates which pin(TXC/RXC) in mt2712_set_delay()
240 * to TXC pin, the reference clock will be adjusted in mt2712_set_delay()
241 * by TXC delay macro circuit. in mt2712_set_delay()
363 * and the clock output to TXC pin. in mt8195_set_delay()
382 * and the property "rmii_rxc" indicates which pin(TXC/RXC) in mt8195_set_delay()
400 * to TXC pin, the reference clock will be adjusted in mt8195_set_delay()
401 * by TXC delay macro circuit. in mt8195_set_delay()
491 mac_delay->tx_inv = of_property_read_bool(plat->np, "mediatek,txc-inverse"); in mediatek_dwmac_config_dt()
/linux/drivers/staging/axis-fifo/
H A 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/drivers/net/can/usb/
H A Dgs_usb.c365 static void gs_free_tx_context(struct gs_tx_context *txc) in gs_free_tx_context() argument
367 txc->echo_id = GS_MAX_TX_URBS; in gs_free_tx_context()
580 struct gs_tx_context *txc; in gs_usb_receive_bulk_callback() local
651 txc = gs_get_tx_context(dev, hf->echo_id); in gs_usb_receive_bulk_callback()
654 if (!txc) { in gs_usb_receive_bulk_callback()
664 gs_free_tx_context(txc); in gs_usb_receive_bulk_callback()
750 struct gs_tx_context *txc = urb->context; in gs_usb_xmit_callback() local
751 struct gs_can *dev = txc->dev; in gs_usb_xmit_callback()
755 netdev_info(netdev, "usb xmit fail %u\n", txc->echo_id); in gs_usb_xmit_callback()
769 struct gs_tx_context *txc; in gs_can_start_xmit() local
[all …]
/linux/arch/arm/boot/dts/microchip/
H A Dsama5d3xmb_gmac.dtsi22 txc-skew-ps = <3000>;
36 txc-skew-ps = <3000>;
H A Dsama5d3xcm_cmp.dtsi57 txc-skew-ps = <3000>;
71 txc-skew-ps = <3000>;
/linux/arch/arm64/boot/dts/renesas/
H A Drzg2ul-smarc-som.dtsi84 txc-skew-psec = <2400>;
113 txc-skew-psec = <2400>;
145 txc {
175 txc {
H A Drzg3s-smarc-som.dtsi109 txc-skew-psec = <0>;
135 txc-skew-psec = <0>;
211 txc {
254 txc {
H A Drzg2l-smarc-som.dtsi108 txc-skew-psec = <2400>;
136 txc-skew-psec = <2400>;
183 txc {
213 txc {
/linux/arch/powerpc/sysdev/
H A Dtsi108_dev.c130 * "txc-rxc-delay-disable" property enables this in tsi108_eth_of_init()
135 if (of_property_read_bool(phy, "txc-rxc-delay-disable")) in tsi108_eth_of_init()
/linux/arch/arm/boot/dts/gemini/
H A Dgemini-nas4220b.dts122 pins = "U8 GMAC0 TXC";
126 pins = "V11 GMAC1 TXC";
/linux/Documentation/devicetree/bindings/sound/
H A Dfsl,imx-asrc.yaml50 - const: txc
173 "txa", "txb", "txc";
/linux/arch/alpha/kernel/
H A 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/drivers/net/phy/
H A Dmicrochip_t1.c1104 int txc; in lan887x_config_rgmii_en() local
1113 txc = phy_read_mmd(phydev, MDIO_MMD_VEND1, LAN887X_MIS_DLL_CFG_REG0); in lan887x_config_rgmii_en()
1114 if (txc < 0) in lan887x_config_rgmii_en()
1115 return txc; in lan887x_config_rgmii_en()
1133 txc &= ~LAN887X_MIS_DLL_CONF; in lan887x_config_rgmii_en()
1137 txc |= LAN887X_MIS_DLL_CONF; in lan887x_config_rgmii_en()
1141 txc &= ~LAN887X_MIS_DLL_CONF; in lan887x_config_rgmii_en()
1145 txc |= LAN887X_MIS_DLL_CONF; in lan887x_config_rgmii_en()
1161 LAN887X_MIS_DLL_CONF, txc); in lan887x_config_rgmii_en()

12345