/linux/tools/perf/Documentation/ |
H A D | perf-daemon.txt | 1 perf-daemon(1) 6 ---- 7 perf-daemon - Run record sessions on background 11 -------- 16 'perf daemon stop' [<options>] 22 ----------- 32 …916507 916508 ... \_ perf record --control=fifo:control,ack -m 10M -e cycles --overwrite --switc… 33 …916507 916509 ... \_ perf record --control=fifo:control,ack -m 20M -e sched:* --overwrite --swit… 38 to produce data periodically, like with --switch-output configuration 41 Each session is started with control setup (with perf record --control [all …]
|
/linux/drivers/i2c/algos/ |
H A D | i2c-algo-pca.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * i2c-algo-pca.c i2c driver algorithms for PCA9564 adapters 15 #include <linux/i2c-algo-pca.h> 26 #define pca_outw(adap, reg, val) adap->write_byte(adap->data, reg, val) 27 #define pca_inw(adap, reg) adap->read_byte(adap->data, reg) 30 #define pca_clock(adap) adap->i2c_clock 33 #define pca_wait(adap) adap->wait_for_completion_cb(adap->data) 37 if (adap->chip == I2C_PCA_CHIP_9665) { in pca_reset() 46 * After a reset we need to re-apply any configuration in pca_reset() 50 pca_outw(adap, I2C_PCA_IND, adap->bus_settings.mode); in pca_reset() [all …]
|
H A D | i2c-algo-bit.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * i2c-algo-bit.c: i2c driver algorithms for bit-shift adapters 5 * Copyright (C) 1995-2000 Simon G. Vogl 17 #include <linux/i2c-algo-bit.h> 20 /* ----- global defines ----------------------------------------------- */ 33 /* ----- global variables --------------------------------------------- */ 35 static int bit_test; /* see if the line-setting functions work */ 37 MODULE_PARM_DESC(bit_test, "lines testing - 0 off; 1 report; 2 fail if stuck"); 43 "debug level - 0 off; 1 normal; 2 verbose; 3 very verbose"); 46 /* --- setting states on the bus with the right timing: --------------- */ [all …]
|
/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | qcom,sc7280-adsp-pil.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,sc7280-adsp-pil.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com> 19 - qcom,sc7280-adsp-pil 23 - description: qdsp6ss register 24 - description: efuse q6ss register 28 - description: Phandle to apps_smmu node with sid mask 32 - description: Watchdog interrupt [all …]
|
H A D | qcom,sc7180-mss-pil.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,sc7180-mss-pil.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sibi Sankar <quic_sibis@quicinc.com> 19 - qcom,sc7180-mss-pil 23 - description: MSS QDSP6 registers 24 - description: RMB registers 26 reg-names: 28 - const: qdsp6 [all …]
|
H A D | qcom,sc7280-mss-pil.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,sc7280-mss-pil.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sibi Sankar <quic_sibis@quicinc.com> 19 - qcom,sc7280-mss-pil 23 - description: MSS QDSP6 registers 24 - description: RMB registers 26 reg-names: 28 - const: qdsp6 [all …]
|
H A D | qcom,pas-common.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,pas-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 20 clock-names: 30 - description: Watchdog interrupt 31 - description: Fatal interrupt 32 - description: Ready interrupt 33 - description: Handover interrupt [all …]
|
H A D | qcom,sdx55-pas.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,sdx55-pas.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 19 - qcom,sdx55-mpss-pas 26 - description: XO clock 28 clock-names: 30 - const: xo 35 interrupt-names: [all …]
|
H A D | qcom,sc8280xp-pas.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,sc8280xp-pas.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 19 - qcom,sc8280xp-adsp-pas 20 - qcom,sc8280xp-nsp0-pas 21 - qcom,sc8280xp-nsp1-pas 28 - description: XO clock 30 clock-names: [all …]
|
/linux/drivers/media/pci/cobalt/ |
H A D | cobalt-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Derived from cx18-i2c.c 7 * Copyright 2012-2015 Cisco Systems, Inc. and/or its affiliates. 11 #include "cobalt-driver.h" 12 #include "cobalt-i2c.h" 15 /* Clock prescaler register lo-byte */ 18 /* Clock prescaler register high-byte */ 32 /* CTR[7:0] - Control register */ 40 /* CR[7:0] - Command register */ 45 /* I2C stop condition */ [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-gxp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P. */ 15 "gxp-i2c0", "gxp-i2c1", "gxp-i2c2", "gxp-i2c3", 16 "gxp-i2c4", "gxp-i2c5", "gxp-i2c6", "gxp-i2c7", 17 "gxp-i2c8", "gxp-i2c9" }; 100 drvdata->buf = drvdata->curr_msg->buf; in gxp_i2c_start() 101 drvdata->buf_remaining = drvdata->curr_msg->len; in gxp_i2c_start() 104 value = drvdata->curr_msg->addr << 9; in gxp_i2c_start() 107 value |= drvdata->curr_msg->flags & I2C_M_RD ? RW_CMD | START_CMD : START_CMD; in gxp_i2c_start() 109 drvdata->state = GXP_I2C_ADDR_PHASE; in gxp_i2c_start() [all …]
|
H A D | i2c-sh_mobile.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-19 Wolfram Sang <wsa@sang-engineering.com> 8 * Portions of the code based on out-of-tree driver i2c-sh7343.c 15 #include <linux/dma-mapping.h> 32 /* BUS: S A8 ACK P(*) */ 39 /* BUS: S A8 ACK D8(1) ACK P(*) */ 41 /* ICIC: -DTE */ 46 /* BUS: S A8 ACK D8(1) ACK D8(2) ACK P(*) */ 48 /* ICIC: -DTE */ 52 /* 3 bytes or more, +---------+ gets repeated */ [all …]
|
H A D | i2c-rzv2m.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2016-2022 Renesas Electronics Corporation 42 #define IICB0SPT BIT(0) /* Create Stop Condition Trigger */ 45 #define IICB0SSAC BIT(8) /* Ack Flag */ 47 #define IICB0SSSP BIT(4) /* Stop Condition Flag */ 92 complete(&priv->msg_tia_done); in rzv2m_i2c_tia_irq_handler() 111 pclk_hz = clk_get_rate(priv->clk); in rzv2m_i2c_clock_calculate() 120 priv->bus_mode = RZV2M_I2C_400K; in rzv2m_i2c_clock_calculate() 123 priv->bus_mode = RZV2M_I2C_100K; in rzv2m_i2c_clock_calculate() 127 return -EINVAL; in rzv2m_i2c_clock_calculate() [all …]
|
H A D | i2c-uniphier-f.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #define UNIPHIER_FI2C_CR_STO BIT(1) /* stop condition */ 18 #define UNIPHIER_FI2C_CR_NACK BIT(0) /* do not return ACK */ 26 #define UNIPHIER_FI2C_SSUT 0x18 /* restart/stop setup time control */ 33 #define UNIPHIER_FI2C_INT_TC BIT(7) /* send complete (STOP) */ 34 #define UNIPHIER_FI2C_INT_RC BIT(6) /* receive complete (STOP) */ 37 #define UNIPHIER_FI2C_INT_NA BIT(2) /* no ACK */ 41 #define UNIPHIER_FI2C_SR_STS BIT(11) /* stop condition detected */ 99 * TX-FIFO stores target address in it for the first access. in uniphier_fi2c_fill_txfifo() 103 fifo_space--; in uniphier_fi2c_fill_txfifo() [all …]
|
H A D | i2c-uniphier.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #define UNIPHIER_I2C_DTRM_STO BIT(9) /* stop condition */ 17 #define UNIPHIER_I2C_DTRM_NACK BIT(8) /* do not return ACK */ 22 #define UNIPHIER_I2C_DREC_STS BIT(12) /* stop condition detected */ 23 #define UNIPHIER_I2C_DREC_LRB BIT(11) /* no ACK */ 56 complete(&priv->comp); in uniphier_i2c_interrupt() 68 reinit_completion(&priv->comp); in uniphier_i2c_xfer_byte() 71 writel(txdata, priv->membase + UNIPHIER_I2C_DTRM); in uniphier_i2c_xfer_byte() 73 time_left = wait_for_completion_timeout(&priv->comp, adap->timeout); in uniphier_i2c_xfer_byte() 75 return -ETIMEDOUT; in uniphier_i2c_xfer_byte() [all …]
|
/linux/tools/perf/tests/shell/ |
H A D | daemon.sh | 3 # SPDX-License-Identifier: GPL-2.0 59 local ack=$7 102 if [ "${ack}" != "${line_ack}" ]; then 103 echo "FAILED: wrong ack" 118 line=`perf daemon --config ${config} -x: | head -1` 123 trap - SIGINT SIGTERM 125 # stop daemon 126 perf daemon stop --config ${config} 129 tail --pid=${pid} -f /dev/null 137 perf daemon start --config ${config} [all …]
|
/linux/Documentation/i2c/ |
H A D | slave-interface.rst | 5 by Wolfram Sang <wsa@sang-engineering.com> in 2014-15 10 example for the latter is the slave-eeprom driver, which acts as a dual memory 16 use a character device, be in-kernel only, or something completely different:: 20 +-----------+ v +---------+ v +--------+ v +------------+ 21 | Userspace +........+ Backend +-----------+ Driver +-----+ Controller | 22 +-----------+ +---------+ +--------+ +------------+ 24 ----------------------------------------------------------------+-- I2C 25 --------------------------------------------------------------+---- Bus 35 them as described in the document instantiating-devices.rst. The only 38 instantiating the slave-eeprom driver from userspace at the 7 bit address 0x64 [all …]
|
H A D | gpio-fault-injection.rst | 12 'i2c-fault-injector' subdirectory in the Kernel debugfs filesystem, usually 15 injection. They will be described now along with their intended use-cases. 21 ----- 31 ----- 56 -------------------------- 60 it will stop at the ACK phase after the address of the client has been 61 transmitted. Because the device will ACK its presence, this results in SDA 68 ----------------------- 73 The injector will again stop at one ACK phase, so the device will keep SDA low 78 b) after the address byte, a 0x00 byte will be transferred. Then, stop at ACK. [all …]
|
/linux/net/batman-adv/ |
H A D | tp_meter.c | 1 // SPDX-License-Identifier: GPL-2.0 45 #include "hard-interface.h" 52 * BATADV_TP_DEF_TEST_LENGTH - Default test length if not specified by the user 58 * BATADV_TP_AWND - Advertised window by the receiver (in bytes) 63 * BATADV_TP_RECV_TIMEOUT - Receiver activity timeout. If the receiver does not 69 * BATADV_TP_MAX_RTO - Maximum sender timeout. If the sender RTO gets beyond 76 * BATADV_TP_FIRST_SEQ - First seqno of each session. The number is rather high 79 #define BATADV_TP_FIRST_SEQ ((u32)-1 - 2000) 82 * BATADV_TP_PLEN - length of the payload (data after the batadv_unicast header) 85 #define BATADV_TP_PLEN (BATADV_TP_PACKET_LEN - ETH_HLEN - \ [all …]
|
/linux/net/sctp/ |
H A D | sm_statefuns.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 1999-2000 Cisco, Inc. 5 * Copyright (c) 1999-2001 Motorola, Inc. 6 * Copyright (c) 2001-2002 Intel Corp. 15 * lksctp developers <linux-sctp@vger.kernel.org> 177 __u16 chunk_length = ntohs(chunk->chunk_hdr->length); in sctp_chunk_length_valid() 180 if (unlikely(chunk->pdiscard)) in sctp_chunk_length_valid() 193 sctp_walk_errors(err, chunk->chunk_hdr); in sctp_err_chunk_valid() 195 return (void *)err == (void *)chunk->chunk_end; in sctp_err_chunk_valid() 207 * that it is in SHUTDOWN-ACK-SENT state, if it is not the chunk should be [all …]
|
/linux/drivers/staging/sm750fb/ |
H A D | ddk750_swi2c.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * swi2c.c --- SM750/SM718 DDK 22 * +-------------+-------------+-------------+-------------+ 37 * ---------------+---+---+---+---+ 40 * ---------------+---+---+---+---+ 41 * Tx Stop SDA | | L | | H | 43 * ---------------+---+---+---+---+ 46 * ---------------+---+---+---+---+ 49 * ---------------+---+---+---+---+ 86 * always be non-zero,which makes the while loop in sw_i2c_wait() [all …]
|
/linux/drivers/usb/serial/ |
H A D | keyspan_usa49msg.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 5 Copyright (C) 1998-2000 InnoSys Incorporated. All Rights Reserved 6 This file is available under a BSD-style copyright 19 Copyright (C) 1998-2000 InnoSys Incorporated. All Rights Reserved 21 This file is available under a BSD-style copyright 44 USB OUT (host -> USAxx, transmit) messages contain a 45 REQUEST_ACK indicator (set to 0xff to request an ACK at the 52 USB IN (USAxx -> host, receive) messages begin with a status 105 2000mar08 clone from usa26msg.h -> usa49msg.h 107 2000may03 change external clocking to match USA-49W hardware [all …]
|
/linux/drivers/media/usb/dvb-usb/ |
H A D | m920x.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 #include "dvb-usb.h" 47 always send the 7-bit slave I2C address as the 7 MSB, followed by 49 0x40: Send STOP condition. This should be set on the last byte of an 55 0x01: Respond with ACK, as opposed to a NACK. For a multi-byte read, 56 the master should send an ACK, that is pull SDA low during the 9th 60 What any other bits might mean, or how to get the slave's ACK/NACK
|
/linux/drivers/net/wan/ |
H A D | hdlc_ppp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Point-to-point protocol support 6 * Copyright (C) 1999 - 2008 Krzysztof Halasa <khc@pm.waw.pl> 68 u8 cr_id; /* ID of last Configuration-Request */ 79 u8 echo_id; /* ID of last Echo-Request (LCP) */ 84 enum {START = 0, STOP, TO_GOOD, TO_BAD, RCR_GOOD, RCR_BAD, RCA, RCN, RTR, RTA, enumerator 96 "Start", "Stop", "TO+", "TO-", "RCR+", "RCR-", "RCA", "RCN", 97 "RTR", "RTA", "RUC", "RXJ+", "RXJ-" 107 return (struct ppp *)dev_to_hdlc(dev)->state; in get_ppp() 116 return &ppp->protos[IDX_LCP]; in get_proto() [all …]
|
/linux/sound/i2c/ |
H A D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * (c) 1998 Gerd Knorr <kraxel@cs.tu-berlin.de> 40 return -EINVAL; in snd_i2c_bus_free() 41 while (!list_empty(&bus->devices)) { in snd_i2c_bus_free() 42 device = snd_i2c_device(bus->devices.next); in snd_i2c_bus_free() 45 if (bus->master) in snd_i2c_bus_free() 46 list_del(&bus->buses); in snd_i2c_bus_free() 48 while (!list_empty(&bus->buses)) { in snd_i2c_bus_free() 49 slave = snd_i2c_slave_bus(bus->buses.next); in snd_i2c_bus_free() 50 snd_device_free(bus->card, slave); in snd_i2c_bus_free() [all …]
|