/linux/tools/testing/selftests/net/ |
H A D | setup_loopback.sh | 15 carrier="$(cat /sys/class/net/${dev}/carrier)" 16 if [[ "${carrier}" -ne 1 ]] ; then 17 echo "carrier not ready yet..." >&2 20 echo "carrier ready" >&2 24 echo "${carrier}" 35 # Check for the carrier 36 carrier=$(netdev_check_for_carrier ${dev}) 37 if [[ "${carrier}" -ne 1 ]] ; then 84 # Check for the carrier 85 carrier=$(netdev_check_for_carrier ${dev}) [all …]
|
H A D | test_bridge_backup_port.sh | 263 # has a carrier and not forwarded out of any port when it does not have 264 # a carrier. 271 run_cmd "ip -n $sw1 link set dev swp1 carrier off" 273 log_test $? 0 "swp1 carrier off" 281 run_cmd "ip -n $sw1 link set dev swp1 carrier on" 283 log_test $? 0 "swp1 carrier on" 286 # forwarded out of swp1 when it has a carrier and out of vx0 when swp1 287 # does not have a carrier. 298 run_cmd "ip -n $sw1 link set dev swp1 carrier off" 300 log_test $? 0 "swp1 carrier off" [all …]
|
/linux/Documentation/driver-api/ |
H A D | men-chameleon-bus.rst | 12 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/arch/arm64/boot/dts/marvell/ |
H A D | ac5x-rd-carrier-cn9131.dts | 5 * Device tree for the AC5X RD Type 7 Com Express carrier board, 7 * This specific carrier board in this mode of operation (external) 17 * the AC5X RD becomes part of the carrier solution. 23 * There is no CPU booting in this mode on the carrier, only on the 26 * And it accesses the switch end-point on the AC5X RD portion of the carrier 31 #include "ac5x-rd-carrier.dtsi" 34 model = "Marvell Armada AC5X RD COM EXPRESS type 7 carrier board with CN9131 CPU module"; 35 compatible = "marvell,cn9131-ac5x-carrier", "marvell,rd-ac5x-carrier",
|
H A D | ac5x-rd-carrier.dtsi | 5 * Device tree for the AC5X RD Type 7 Com Express carrier board, 17 * the AC5X RD becomes part of the carrier solution. 26 * There is no CPU booting in this mode on the carrier, 31 model = "Marvell Armada AC5X RD COM EXPRESS type 7 carrier board"; 32 compatible = "marvell,rd-ac5x-carrier";
|
/linux/include/linux/ |
H A D | ipack.h | 83 * @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/drivers/net/wan/ |
H A D | hdlc.c | 109 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/drivers/media/pci/cx88/ |
H A D | cx88-dsp.c | 22 #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/drivers/media/rc/ |
H A D | ite-cir.h | 71 /* 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 …]
|
H A D | meson-ir-tx.c | 71 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 …]
|
H A D | pwm-ir-tx.c | 25 u32 carrier; member 48 static int pwm_ir_set_carrier(struct rc_dev *dev, u32 carrier) in pwm_ir_set_carrier() argument 52 if (!carrier) in pwm_ir_set_carrier() 55 pwm_ir->carrier = carrier; in pwm_ir_set_carrier() 72 state.period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, pwm_ir->carrier); in pwm_ir_tx_sleep() 102 state.period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, pwm_ir->carrier); in pwm_ir_tx_atomic() 163 pwm_ir->carrier = 38000; in pwm_ir_probe()
|
H A D | ene_ir.h | 83 #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 */
|
H A D | rc-loopback.c | 50 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()
|
H A D | mceusb.c | 82 #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 508 /* receiver carrier frequency detection support */ 602 u32 carrier, period; in mceusb_dev_printdata() local 704 dev_dbg(dev, "%s: no carrier", inout); in mceusb_dev_printdata() 714 carrier = USEC_PER_SEC / period; in mceusb_dev_printdata() [all …]
|
H A D | iguanair.c | 38 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()
|
H A D | ene_ir.c | 316 /* 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/Documentation/userspace-api/media/v4l/ |
H A D | vidioc-enumstd.rst | 257 * - 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/Documentation/driver-api/media/ |
H A D | rc-core.rst | 32 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
|
H A D | dtv-frontend.rst | 199 - 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/drivers/media/pci/saa7134/ |
H A D | saa7134-tvaudio.c | 149 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/Documentation/devicetree/bindings/arm/marvell/ |
H A D | armada-7k-8k.yaml | 64 Alleycat5X (98DX35xx) Reference Design as COM Express Carrier plus 67 - const: marvell,cn9130-ac5x-carrier 68 - const: marvell,rd-ac5x-carrier 75 Alleycat5X (98DX35xx) Reference Design as COM Express Carrier plus 78 - const: marvell,cn9131-ac5x-carrier 79 - const: marvell,rd-ac5x-carrier
|
/linux/Documentation/userspace-api/media/rc/ |
H A D | lirc-func.rst | 21 lirc-set-rec-carrier 22 lirc-set-rec-carrier-range 23 lirc-set-send-carrier 25 lirc-set-measure-carrier-mode
|
H A D | lirc-get-features.rst | 77 .. _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:
|
/linux/drivers/mcb/ |
H A D | Kconfig | 21 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/Documentation/devicetree/bindings/arm/ |
H A D | fsl.yaml | 365 - description: i.MX6Q Kontron SMARC-sAMX6i on SMARC Eval Carrier 2.0 384 - phytec,imx6q-pbab01 # PHYTEC phyFLEX carrier board 391 - toradex,apalis_imx6q-ixora # Apalis iMX6Q/D Module on Ixora Carrier Board 392 - toradex,apalis_imx6q-ixora-v1.1 # Apalis iMX6Q/D Module on Ixora V1.1 Carrier Board 393 - toradex,apalis_imx6q-ixora-v1.2 # Apalis iMX6Q/D Module on Ixora V1.2 Carrier Board 556 - description: i.MX6DL Kontron SMARC-sAMX6i on SMARC Eval Carrier 2.0 573 - const: phytec,imx6dl-pbab01 # PHYTEC phyFLEX carrier board 693 - const: kontron,bl-imx6ul # Kontron BL i.MX6UL Carrier Board 699 - const: kontron,bl-imx6ul-43 # Kontron BL i.MX6UL Carrier Board with 4.3" Display 700 - const: kontron,bl-imx6ul # Kontron BL i.MX6UL Carrier Board [all …]
|