Home
last modified time | relevance | path

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

12

/Linux-v4.19/kernel/time/
Dntp.c192 static inline void pps_fill_timex(struct timex *txc) in pps_fill_timex() argument
194 txc->ppsfreq = shift_right((pps_freq >> PPM_SCALE_INV_SHIFT) * in pps_fill_timex()
196 txc->jitter = pps_jitter; in pps_fill_timex()
198 txc->jitter /= NSEC_PER_USEC; in pps_fill_timex()
199 txc->shift = pps_shift; in pps_fill_timex()
200 txc->stabil = pps_stabil; in pps_fill_timex()
201 txc->jitcnt = pps_jitcnt; in pps_fill_timex()
202 txc->calcnt = pps_calcnt; in pps_fill_timex()
203 txc->errcnt = pps_errcnt; in pps_fill_timex()
204 txc->stbcnt = pps_stbcnt; in pps_fill_timex()
[all …]
Dtimekeeping.c2272 static int timekeeping_validate_timex(const struct timex *txc) in timekeeping_validate_timex() argument
2274 if (txc->modes & ADJ_ADJTIME) { in timekeeping_validate_timex()
2276 if (!(txc->modes & ADJ_OFFSET_SINGLESHOT)) in timekeeping_validate_timex()
2278 if (!(txc->modes & ADJ_OFFSET_READONLY) && in timekeeping_validate_timex()
2283 if (txc->modes && !capable(CAP_SYS_TIME)) in timekeeping_validate_timex()
2289 if (txc->modes & ADJ_TICK && in timekeeping_validate_timex()
2290 (txc->tick < 900000/USER_HZ || in timekeeping_validate_timex()
2291 txc->tick > 1100000/USER_HZ)) in timekeeping_validate_timex()
2295 if (txc->modes & ADJ_SETOFFSET) { in timekeeping_validate_timex()
2308 if (txc->time.tv_usec < 0) in timekeeping_validate_timex()
[all …]
Dtime.c268 struct timex txc; /* Local copy of parameter */ in SYSCALL_DEFINE1() local
275 if (copy_from_user(&txc, txc_p, sizeof(struct timex))) in SYSCALL_DEFINE1()
277 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1()
278 return copy_to_user(txc_p, &txc, sizeof(struct timex)) ? -EFAULT : ret; in SYSCALL_DEFINE1()
285 struct timex txc; in COMPAT_SYSCALL_DEFINE1() local
288 err = compat_get_timex(&txc, utp); in COMPAT_SYSCALL_DEFINE1()
292 ret = do_adjtimex(&txc); in COMPAT_SYSCALL_DEFINE1()
294 err = compat_put_timex(utp, &txc); in COMPAT_SYSCALL_DEFINE1()
Dntp_internal.h11 extern int __do_adjtimex(struct timex *txc, const struct timespec64 *ts, s32 *time_tai);
/Linux-v4.19/kernel/
Dcompat.c33 int compat_get_timex(struct timex *txc, const struct compat_timex __user *utp) in compat_get_timex() argument
37 memset(txc, 0, sizeof(struct timex)); in compat_get_timex()
41 txc->modes = tx32.modes; in compat_get_timex()
42 txc->offset = tx32.offset; in compat_get_timex()
43 txc->freq = tx32.freq; in compat_get_timex()
44 txc->maxerror = tx32.maxerror; in compat_get_timex()
45 txc->esterror = tx32.esterror; in compat_get_timex()
46 txc->status = tx32.status; in compat_get_timex()
47 txc->constant = tx32.constant; in compat_get_timex()
48 txc->precision = tx32.precision; in compat_get_timex()
[all …]
/Linux-v4.19/tools/testing/selftests/timers/
Dfreq-step.c90 struct timex txc; in reset_ntp_error() local
92 txc.modes = ADJ_SETOFFSET; in reset_ntp_error()
93 txc.time.tv_sec = 0; in reset_ntp_error()
94 txc.time.tv_usec = 0; in reset_ntp_error()
96 if (adjtimex(&txc) < 0) { in reset_ntp_error()
104 struct timex txc; in set_frequency() local
109 txc.modes = ADJ_TICK | ADJ_FREQUENCY; in set_frequency()
110 txc.tick = 1000000 / user_hz + tick_offset; in set_frequency()
111 txc.freq = (1e6 * freq - user_hz * tick_offset) * (1 << 16); in set_frequency()
113 if (adjtimex(&txc) < 0) { in set_frequency()
/Linux-v4.19/drivers/hsi/clients/
Dhsi_char.c390 static int hsc_tx_set(struct hsi_client *cl, struct hsc_tx_config *txc) in hsc_tx_set() argument
395 if ((txc->mode != HSI_MODE_STREAM) && (txc->mode != HSI_MODE_FRAME)) in hsc_tx_set()
397 if ((txc->channels == 0) || (txc->channels > HSC_DEVS)) in hsc_tx_set()
399 if (txc->channels & (txc->channels - 1)) in hsc_tx_set()
401 if ((txc->arb_mode != HSI_ARB_RR) && (txc->arb_mode != HSI_ARB_PRIO)) in hsc_tx_set()
404 cl->tx_cfg.mode = txc->mode; in hsc_tx_set()
405 cl->tx_cfg.num_hw_channels = txc->channels; in hsc_tx_set()
406 cl->tx_cfg.speed = txc->speed; in hsc_tx_set()
407 cl->tx_cfg.arb_mode = txc->arb_mode; in hsc_tx_set()
417 static inline void hsc_tx_get(struct hsi_client *cl, struct hsc_tx_config *txc) in hsc_tx_get() argument
[all …]
/Linux-v4.19/drivers/net/can/usb/
Dgs_usb.c223 static void gs_free_tx_context(struct gs_tx_context *txc) in gs_free_tx_context() argument
225 txc->echo_id = GS_MAX_TX_URBS; in gs_free_tx_context()
306 struct gs_tx_context *txc; in gs_usb_receive_bulk_callback() local
364 txc = gs_get_tx_context(dev, hf->echo_id); in gs_usb_receive_bulk_callback()
367 if (!txc) { in gs_usb_receive_bulk_callback()
376 gs_free_tx_context(txc); in gs_usb_receive_bulk_callback()
457 struct gs_tx_context *txc = urb->context; in gs_usb_xmit_callback() local
458 struct gs_can *dev = txc->dev; in gs_usb_xmit_callback()
462 netdev_info(netdev, "usb xmit fail %d\n", txc->echo_id); in gs_usb_xmit_callback()
480 struct gs_tx_context *txc; in gs_can_start_xmit() local
[all …]
/Linux-v4.19/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()
891 struct _carl9170_tx_superframe *txc = (void *) skb->data; in carl9170_tx_apply_rateset() local
922 txc->f.phy_control = phy_set; in carl9170_tx_apply_rateset()
932 txc->f.mac_control |= mac_tmp; in carl9170_tx_apply_rateset()
937 txc->s.rr[i - 1] = phy_set; in carl9170_tx_apply_rateset()
940 SET_VAL(CARL9170_TX_SUPER_RI_TRIES, txc->s.ri[i], in carl9170_tx_apply_rateset()
944 txc->s.ri[i] |= (AR9170_TX_MAC_PROT_RTS << in carl9170_tx_apply_rateset()
947 txc->s.ri[i] |= (AR9170_TX_MAC_PROT_CTS << in carl9170_tx_apply_rateset()
951 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-v4.19/drivers/spi/
Dspi-oc-tiny.c53 unsigned int txc, rxc; member
135 hw->txc = 0; in tiny_spi_txrx_bufs()
142 hw->txc++; in tiny_spi_txrx_bufs()
145 hw->txc++; in tiny_spi_txrx_bufs()
150 hw->txc++; in tiny_spi_txrx_bufs()
188 if (hw->txc < hw->len) { in tiny_spi_irq()
191 hw->txc++; in tiny_spi_irq()
/Linux-v4.19/arch/arm/boot/dts/
Dsama5d3xmb_gmac.dtsi23 txc-skew-ps = <3000>;
37 txc-skew-ps = <3000>;
Dsama5d3xcm_cmp.dtsi94 txc-skew-ps = <3000>;
108 txc-skew-ps = <3000>;
Dat91-dvk_su60_somc.dtsi124 txc-skew-ps = <3000>;
Dsocfpga_cyclone5_de0_sockit.dts68 txc-skew-ps = <1860>; /* 960ps */
Dsocfpga_cyclone5_sodia.dts90 txc-skew-ps = <3000>;
Dsocfpga_arria5_socdk.dts82 txc-skew-ps = <2600>;
Dsocfpga_arria10_socdk.dtsi95 txc-skew-ps = <1860>; /* 960ps */
/Linux-v4.19/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()
461 u16 txc; in men_z135_tx_empty() local
464 txc = (wptr >> 16) & 0x3ff; in men_z135_tx_empty()
466 if (txc == 0) in men_z135_tx_empty()
/Linux-v4.19/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>
62 xlnx,axi-str-txc-protocol = "XIL_AXI_STREAM_ETH_CTRL";
63 xlnx,axi-str-txc-tdata-width = <0x20>;
/Linux-v4.19/Documentation/devicetree/bindings/net/
Dmicrel-ksz90x1.txt22 - txc-skew-ps : Skew control of TXC pad
45 - txc-skew-ps : Skew control of TX clock pad
73 txc-skew-ps = <3000>;
/Linux-v4.19/Documentation/devicetree/bindings/sound/
Dfsl,asrc.txt20 - dma-names : Contains "rxa", "rxb", "rxc", "txa", "txb" and "txc".
63 "txa", "txb", "txc";
/Linux-v4.19/arch/alpha/kernel/
Dosf_sys.c1257 struct timex txc; in SYSCALL_DEFINE1() local
1261 if (copy_from_user(&txc, txc_p, offsetof(struct timex32, time)) || in SYSCALL_DEFINE1()
1262 copy_from_user(&txc.tick, &txc_p->tick, sizeof(struct timex32) - in SYSCALL_DEFINE1()
1266 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1()
1271 if (copy_to_user(txc_p, &txc, offsetof(struct timex32, time)) || in SYSCALL_DEFINE1()
1272 (copy_to_user(&txc_p->tick, &txc.tick, sizeof(struct timex32) - in SYSCALL_DEFINE1()
1274 (put_tv_to_tv32(&txc_p->time, &txc.time))) in SYSCALL_DEFINE1()
/Linux-v4.19/arch/powerpc/boot/dts/
Dholly.dts69 txc-rxc-delay-disable;
75 txc-rxc-delay-disable;
/Linux-v4.19/arch/arm64/boot/dts/altera/
Dsocfpga_stratix10_socdk.dts97 txc-skew-ps = <900>; /* 0ps */

12