Home
last modified time | relevance | path

Searched full:carrier (Results 1 – 25 of 566) sorted by relevance

12345678910>>...23

/Linux-v6.6/tools/testing/selftests/net/
Dsetup_loopback.sh13 carrier="$(cat /sys/class/net/${dev}/carrier)"
14 if [[ "${carrier}" -ne 1 ]] ; then
15 echo "carrier not ready yet..." >&2
18 echo "carrier ready" >&2
22 echo "${carrier}"
33 # Check for the carrier
34 carrier=$(netdev_check_for_carrier ${dev})
35 if [[ "${carrier}" -ne 1 ]] ; then
82 # Check for the carrier
83 carrier=$(netdev_check_for_carrier ${dev})
[all …]
Dtest_bridge_backup_port.sh260 # has a carrier and not forwarded out of any port when it does not have
261 # a carrier.
268 run_cmd "ip -n sw1 link set dev swp1 carrier off"
269 log_test $? 0 "swp1 carrier off"
277 run_cmd "ip -n sw1 link set dev swp1 carrier on"
278 log_test $? 0 "swp1 carrier on"
281 # forwarded out of swp1 when it has a carrier and out of vx0 when swp1
282 # does not have a carrier.
293 run_cmd "ip -n sw1 link set dev swp1 carrier off"
294 log_test $? 0 "swp1 carrier off"
[all …]
/Linux-v6.6/Documentation/driver-api/
Dmen-chameleon-bus.rst12 2.2 Carrier Devices
40 The current implementation is limited to PCI and PCIe based carrier devices
44 - Multi-resource MCB devices like the VME Controller or M-Module carrier.
47 - A per-carrier IRQ domain for carrier devices that have one (or more) IRQs
56 - drivers for MCB Carrier Devices and
71 Carrier Devices
74 A carrier device is just an abstraction for the real world physical bus the
76 properties of the carrier device (like querying the IRQ number of a PCI
77 device). To provide abstraction from the real hardware bus, an MCB carrier
79 to hardware related function calls. For example a carrier device may
[all …]
/Linux-v6.6/include/linux/
Dipack.h83 * @slot: Slot where the device is plugged in the carrier board
91 * is not the same with PCI carrier or VME carrier. The endianness is managed
92 * by the carrier board throught bus->ops.
142 * @get_clockrate: Returns the clockrate the carrier is currently
144 * @set_clockrate: Sets the clock-rate for carrier / module communication.
166 * @dev: pointer to carrier device
186 * The carrier board device should call this function to register itself as
213 * is done by the carrier driver. The carrier should populate the fields
230 * Add a new IPack device. The call is done by the carrier driver
269 * ipack_get_carrier - it increase the carrier ref. counter of
[all …]
/Linux-v6.6/drivers/net/wan/
Dhdlc.c109 return NOTIFY_DONE; /* Only interested in carrier changes */ in hdlc_device_event()
114 printk(KERN_DEBUG "%s: hdlc_device_event NETDEV_CHANGE, carrier %i\n", in hdlc_device_event()
121 if (hdlc->carrier == on) in hdlc_device_event()
124 hdlc->carrier = on; in hdlc_device_event()
129 if (hdlc->carrier) { in hdlc_device_event()
130 netdev_info(dev, "Carrier detected\n"); in hdlc_device_event()
133 netdev_info(dev, "Carrier lost\n"); in hdlc_device_event()
147 printk(KERN_DEBUG "%s: hdlc_open() carrier %i open %i\n", dev->name, in hdlc_open()
148 hdlc->carrier, hdlc->open); in hdlc_open()
163 if (hdlc->carrier) { in hdlc_open()
[all …]
/Linux-v6.6/drivers/media/pci/cx88/
Dcx88-dsp.c22 #define baseband_freq(carrier, srate, tone) ((s32)( \ argument
23 (compat_remainder(carrier + tone, srate)) / srate * 2 * INT_PI))
26 * We calculate the baseband frequencies of the carrier and the pilot tones
159 s32 carrier, stereo, dual, noise; in detect_a2_a2m_eiaj() local
186 carrier = freq_magnitude(x, N, carrier_freq); in detect_a2_a2m_eiaj()
192 "detect a2/a2m/eiaj: carrier=%d, stereo=%d, dual=%d, noise=%d\n", in detect_a2_a2m_eiaj()
193 carrier, stereo, dual, noise); in detect_a2_a2m_eiaj()
202 if ((carrier > max(stereo, dual) * 2) && in detect_a2_a2m_eiaj()
203 (carrier < max(stereo, dual) * 6) && in detect_a2_a2m_eiaj()
204 (carrier > 20 && carrier < 200) && in detect_a2_a2m_eiaj()
[all …]
/Linux-v6.6/drivers/media/rc/
Dite-cir.h71 /* set the carrier parameters */
89 /* rx low carrier frequency, in Hz, 0 means no demodulation */
92 /* tx high carrier frequency, in Hz, 0 means no demodulation */
95 /* tx carrier frequency, in Hz */
114 /* low-speed carrier frequency limits (Hz) */
118 /* high-speed carrier frequency limits (Hz) */
122 /* default carrier freq for when demodulator is off (Hz) */
131 * carrier frequency...
141 /* high speed carrier freq values */
154 /* values for demodulator carrier range allowance */
[all …]
Dgpio-ir-tx.c20 unsigned int carrier; member
39 static int gpio_ir_tx_set_carrier(struct rc_dev *dev, u32 carrier) in gpio_ir_tx_set_carrier() argument
43 if (carrier > 500000) in gpio_ir_tx_set_carrier()
46 gpio_ir->carrier = carrier; in gpio_ir_tx_set_carrier()
109 gpio_ir->carrier); in gpio_ir_tx_modulated()
111 (NSEC_PER_SEC / 100), gpio_ir->carrier); in gpio_ir_tx_modulated()
153 if (gpio_ir->carrier) in gpio_ir_tx()
188 gpio_ir->carrier = 38000; in gpio_ir_tx_probe()
Dpwm-ir-tx.c20 unsigned int carrier; member
39 static int pwm_ir_set_carrier(struct rc_dev *dev, u32 carrier) in pwm_ir_set_carrier() argument
43 if (!carrier) in pwm_ir_set_carrier()
46 pwm_ir->carrier = carrier; in pwm_ir_set_carrier()
63 state.period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, pwm_ir->carrier); in pwm_ir_tx()
98 pwm_ir->carrier = 38000; in pwm_ir_probe()
Dmeson-ir-tx.c71 unsigned int carrier; member
81 unsigned int cnt = DIV_ROUND_CLOSEST(ir->clk_rate, ir->carrier); in meson_irtx_set_mod()
86 ir->carrier, NSEC_PER_SEC / ir->clk_rate * cnt, in meson_irtx_set_mod()
97 * output to be high. Set up carrier frequency and duty cycle. Then in meson_irtx_setup()
116 unsigned int tb_us = DIV_ROUND_CLOSEST(USEC_PER_SEC, ir->carrier); in meson_irtx_prepare_pulse()
167 * Pulse timebase equals to carrier period. in meson_irtx_check_buf()
170 max_tb_us = USEC_PER_SEC / ir->carrier; in meson_irtx_check_buf()
215 static int meson_irtx_set_carrier(struct rc_dev *rc, u32 carrier) in meson_irtx_set_carrier() argument
219 if (carrier == 0) in meson_irtx_set_carrier()
222 ir->carrier = carrier; in meson_irtx_set_carrier()
[all …]
Dene_ir.h83 #define ENE_CIRCFG_CARR_DEMOD 0x08 /* Enable carrier demodulator */
88 #define ENE_CIRCFG_TX_CARR 0x80 /* send TX carrier or not */
96 #define ENE_CIRCFG2_CARR_DETECT 0x10 /* Enable carrier detection */
124 /* Carrier detect setting
125 * Low nibble - number of carrier pulses to average
126 * High nibble - number of initial carrier pulses to discard
130 /* detected RX carrier period (resolution: 500 ns) */
134 /* detected RX carrier pulse width (resolution: 500 ns) */
139 #define ENE_CIRMOD_PRD_POL 0x80 /* TX carrier polarity*/
230 bool carrier_detect_enabled; /* carrier detect enabled */
Drc-loopback.c50 static int loop_set_tx_carrier(struct rc_dev *dev, u32 carrier) in loop_set_tx_carrier() argument
54 dev_dbg(&dev->dev, "setting tx carrier: %u\n", carrier); in loop_set_tx_carrier()
55 lodev->txcarrier = carrier; in loop_set_tx_carrier()
78 dev_dbg(&dev->dev, "invalid rx carrier range %u to %u\n", min, max); in loop_set_rx_carrier_range()
82 dev_dbg(&dev->dev, "setting rx carrier range %u to %u\n", min, max); in loop_set_rx_carrier_range()
97 dev_dbg(&dev->dev, "ignoring tx, carrier out of range\n"); in loop_tx_ir()
125 rawir.carrier = lodev->txcarrier; in loop_tx_ir()
168 dev_dbg(&dev->dev, "%sabling carrier reports\n", enable ? "en" : "dis"); in loop_set_carrier_report()
Dir-rx51.c27 unsigned int freq; /* carrier frequency */
28 unsigned int duty_cycle; /* carrier duty cycle */
184 static int ir_rx51_set_tx_carrier(struct rc_dev *dev, u32 carrier) in ir_rx51_set_tx_carrier() argument
188 if (carrier > 500000 || carrier < 20000) in ir_rx51_set_tx_carrier()
191 ir_rx51->freq = carrier; in ir_rx51_set_tx_carrier()
237 /* Use default, in case userspace does not set the carrier */ in ir_rx51_probe()
Dmceusb.c82 #define MCE_CMD_SETIRCFS 0x06 /* Set tx carrier, 4 bytes */
89 #define MCE_CMD_GETIRCFS 0x07 /* Get carrier */
105 #define MCE_RSP_EQIRCFS 0x06 /* tx carrier, 4 bytes */
111 #define MCE_RSP_EQIRRXCFCNT 0x15 /* rx carrier count, 4 bytes */
198 * 2, rx2 which under counts IR carrier cycles
494 u32 carrier; member
509 /* receiver carrier frequency detection support */
603 u32 carrier, period; in mceusb_dev_printdata() local
705 dev_dbg(dev, "%s: no carrier", inout); in mceusb_dev_printdata()
715 carrier = USEC_PER_SEC / period; in mceusb_dev_printdata()
[all …]
Diguanair.c38 uint32_t carrier; member
266 * The iguanair creates the carrier by busy spinning after each half period.
271 static int iguanair_set_tx_carrier(struct rc_dev *dev, uint32_t carrier) in iguanair_set_tx_carrier() argument
275 if (carrier < 25000 || carrier > 150000) in iguanair_set_tx_carrier()
278 if (carrier != ir->carrier) { in iguanair_set_tx_carrier()
281 ir->carrier = carrier; in iguanair_set_tx_carrier()
283 cycles = DIV_ROUND_CLOSEST(24000000, carrier * 2) - in iguanair_set_tx_carrier()
327 /* convert from us to carrier periods */ in iguanair_tx()
329 periods = DIV_ROUND_CLOSEST(txbuf[i] * ir->carrier, 1000000); in iguanair_tx()
Dene_ir.c316 /* Sense current received carrier */
319 int carrier, duty_cycle; in ene_rx_sense_carrier() local
331 dbg("RX: hardware carrier period = %02x", period); in ene_rx_sense_carrier()
332 dbg("RX: hardware carrier pulse period = %02x", hperiod); in ene_rx_sense_carrier()
334 carrier = 2000000 / period; in ene_rx_sense_carrier()
336 dbg("RX: sensed carrier = %d Hz, duty cycle %d%%", in ene_rx_sense_carrier()
337 carrier, duty_cycle); in ene_rx_sense_carrier()
341 .carrier = carrier, in ene_rx_sense_carrier()
415 /* Enable carrier demodulation */ in ene_rx_setup()
418 /* Enable carrier detection */ in ene_rx_setup()
[all …]
/Linux-v6.6/Documentation/userspace-api/media/v4l/
Dvidioc-enumstd.rst257 * - Chrominance sub-carrier frequency (Hz)
280 * - Sound carrier relative to vision carrier (MHz)
326 frequency of the second carrier being 242.1875 kHz above the
327 frequency of the first sound carrier. For stereophonic sound
331 New Zealand uses a sound carrier displaced 5.4996 ± 0.0005 MHz from
332 the vision carrier.
337 is being introduced. The second carrier is 5.85 MHz above the vision
338 carrier and is DQPSK modulated with 728 kbit/s sound and data
343 second sound carrier is 6.552 MHz above the vision carrier and is
348 In France, a digital carrier 5.85 MHz away from the vision carrier
[all …]
/Linux-v6.6/Documentation/driver-api/media/
Drc-core.rst32 carrier. The carrier can be switched on or off by the IR transmitter
33 hardware. When the carrier is switched on, it is called *PULSE*.
34 When the carrier is switched off, it is called *SPACE*.
39 The carrier parameters (frequency, duty cycle) and the intervals for
41 For example, the NEC protocol uses a carrier of 38kHz, and transmissions
49 signal in a sequence of *PULSE/SPACE* events, filtering out the carrier
50 frequency. Due to that, the receiver doesn't care about the carrier's
Ddtv-frontend.rst199 - c->cnr.stat[0] for global S/N carrier ratio,
200 - c->cnr.stat[1] for Layer A S/N carrier ratio,
201 - c->cnr.stat[2] for layer B S/N carrier ratio,
202 - c->cnr.stat[3] for layer C S/N carrier ratio.
217 in order to detect the carrier. When no carrier is detected, the gain is
227 .. [#f3] On a few devices, the gain keeps floating if there is no carrier.
228 On such devices, strength report should check first if carrier is
232 Carrier Signal to Noise ratio (:ref:`DTV-STAT-CNR`)
233 - Signal to Noise ratio for the main carrier.
236 available when the main carrier is detected. On those hardware, CNR
/Linux-v6.6/drivers/media/pci/saa7134/
Dsaa7134-tvaudio.c149 static u32 tvaudio_carr2reg(u32 carrier) in tvaudio_carr2reg() argument
151 u64 a = carrier; in tvaudio_carr2reg()
465 int max1,max2,carrier,rx,mode,lastmode,default_carrier; in tvaudio_thread() local
497 carrier = 0; in tvaudio_thread()
509 audio_dbg(1, "only one main carrier candidate - skipping scan\n"); in tvaudio_thread()
511 carrier = default_carrier; in tvaudio_thread()
513 /* scan for the main carrier */ in tvaudio_thread()
525 carrier = mainscan[i].carr; in tvaudio_thread()
532 if (0 != carrier && max1 > 2000 && max1 > max2*3) { in tvaudio_thread()
533 /* found good carrier */ in tvaudio_thread()
[all …]
/Linux-v6.6/Documentation/userspace-api/media/rc/
Dlirc-func.rst21 lirc-set-rec-carrier
22 lirc-set-rec-carrier-range
23 lirc-set-send-carrier
25 lirc-set-measure-carrier-mode
Dlirc-get-features.rst77 .. _LIRC-CAN-SET-SEND-CARRIER:
98 .. _LIRC-CAN-SET-REC-CARRIER:
102 The driver supports setting the receive carrier frequency using
105 .. _LIRC-CAN-SET-REC-CARRIER-RANGE:
126 .. _LIRC-CAN-MEASURE-CARRIER:
Dlirc-set-send-carrier.rst13 LIRC_SET_SEND_CARRIER - Set send carrier used to modulate IR TX.
29 Frequency of the carrier to be modulated, in Hz.
34 Set send carrier used to modulate IR PWM pulses and spaces.
/Linux-v6.6/drivers/mcb/
DKconfig21 tristate "PCI based MCB carrier"
26 This is a MCB carrier on a PCI device. Both PCI attached on-board
33 tristate "LPC (non PCI) based MCB carrier"
37 This is a MCB carrier on a LPC or non PCI device.
/Linux-v6.6/Documentation/devicetree/bindings/arm/
Dfsl.yaml374 - const: phytec,imx6q-pbab01 # PHYTEC phyFLEX carrier board
381 - toradex,apalis_imx6q-ixora # Apalis iMX6Q/D Module on Ixora Carrier Board
382 - toradex,apalis_imx6q-ixora-v1.1 # Apalis iMX6Q/D Module on Ixora V1.1 Carrier Board
383 - toradex,apalis_imx6q-ixora-v1.2 # Apalis iMX6Q/D Module on Ixora V1.2 Carrier Board
547 - const: phytec,imx6dl-pbab01 # PHYTEC phyFLEX carrier board
659 - const: kontron,bl-imx6ul # Kontron BL i.MX6UL Carrier Board
665 - const: kontron,bl-imx6ul-43 # Kontron BL i.MX6UL Carrier Board with 4.3" Display
666 - const: kontron,bl-imx6ul # Kontron BL i.MX6UL Carrier Board
756 - toradex,colibri-imx6ull-aster # Aster Carrier Board
758 - toradex,colibri-imx6ull-iris # Iris Carrier Board
[all …]

12345678910>>...23