/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | charger-manager.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/charger-manager.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 18 const: charger-manager 20 cm-chargers: 22 $ref: /schemas/types.yaml#/definitions/string-array 24 cm-num-chargers: 28 cm-fuel-gauge: [all …]
|
/linux/Documentation/userspace-api/media/cec/ |
H A D | cec-ioc-receive.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 14 CEC_RECEIVE, CEC_TRANSMIT - Receive or transmit a CEC message 42 If the file descriptor is in non-blocking mode and there are no received 43 messages pending, then it will return -1 and set errno to the ``EAGAIN`` 44 error code. If the file descriptor is in blocking mode and ``timeout`` 45 is non-zero and no message arrived within ``timeout`` milliseconds, then 46 it will return -1 and set errno to the ``ETIMEDOUT`` error code. 51 be 0, ``tx_status`` will be 0 and ``rx_status`` will be non-zero). 52 2. the transmit result of an earlier non-blocking transmit (the ``sequence`` 53 field will be non-zero, ``tx_status`` will be non-zero and ``rx_status`` [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | so_txtime.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * connected hosts, one instance in transmit mode and the other in receive 8 * mode using the '-r' option. Receiver will compare arrival timestamps to 10 * queue. The streams can differ due to out-of-order delivery and drops. 34 #include <poll.h> 78 struct cmsghdr *cm; in do_send_one() local 82 iov.iov_base = &ts->data; in do_send_one() 90 if (ts->delay_us >= 0) { in do_send_one() 95 tdeliver = glob_tstart + ts->delay_us * 1000; in do_send_one() 99 cm = CMSG_FIRSTHDR(&msg); in do_send_one() [all …]
|
H A D | msg_zerocopy.c | 7 * - SOCK_STREAM 8 * - SOCK_DGRAM 9 * - SOCK_DGRAM with UDP_CORK 10 * - SOCK_RAW 11 * - SOCK_RAW with IP_HDRINCL 14 * - SOCK_DGRAM 15 * - SOCK_RAW 18 * - SOCK_SEQPACKET 20 * Start this program on two connected hosts, one in send mode and 21 * the other with option '-r' to put it in receiver mode. [all …]
|
/linux/Documentation/networking/ |
H A D | msg_zerocopy.rst | 15 ----------------------- 40 --------- 43 netdev 2.1. For more in-depth information see that paper and talk, 53 [PATCH net-next v4 0/9] socket sendmsg MSG_ZEROCOPY 54 https://lore.kernel.org/netdev/20170803202945.70750-1-willemdebruijn.kernel@gmail.com 64 ------------ 68 copy avoidance mode for legacy processes that accidentally already pass 77 ------------ 86 A zerocopy failure will return -1 with errno ENOBUFS. This happens if 101 ------------- [all …]
|
/linux/drivers/power/supply/ |
H A D | charger-manager.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * during suspend-to-mem. 23 #include <linux/power/charger-manager.h> 35 { "USB-HOST", EXTCON_USB_HOST }, 40 { "FAST-CHARGER", EXTCON_CHG_USB_FAST }, 41 { "SLOW-CHARGER", EXTCON_CHG_USB_SLOW }, 49 { "CHARGE-DOWNSTREAM", EXTCON_CHG_USB_CDP }, 78 /* About in-suspend (suspend-again) monitoring */ 92 * is_batt_present - See if the battery presents in place. 93 * @cm: the Charger Manager representing the battery. [all …]
|
/linux/tools/testing/selftests/net/lib/ |
H A D | csum.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * CMD=$((./csum -[46] -[tu] -S $SADDR -D $DADDR -[RT] -r 1 $EXTRA_ARGS)) 15 * good packet: $CMD [-t] 16 * bad packet: $CMD [-t] -E 19 * option for TCP packets ('-t'). Optionally insert an iptables filter 39 * good packet: $CMD -U 40 * zero csum: $CMD -U -Z 46 * good packet: $CMD -s $smac -d $dmac -p [-t] 48 * Argument '-z' sends UDP packets with a 0x000 checksum disabled field, 51 * Argument '-e' adds a transport mode encapsulation header between [all …]
|
/linux/drivers/net/ethernet/dec/tulip/ |
H A D | interrupt.c | 5 Written/copyright 1994-2001 by Donald Becker. 35 16 Continues Mode (CM) 39 0x80150000, /* RX time = 1, RX pkts = 2, CM = 1 */ 53 // 0x80FF0000 /* RX time = 16, RX pkts = 7, CM = 1 */ 54 0x80F10000 /* RX time = 16, RX pkts = 0, CM = 1 */ 66 for (; tp->cur_rx - tp->dirty_rx > 0; tp->dirty_rx++) { in tulip_refill_rx() 67 entry = tp->dirty_rx % RX_RING_SIZE; in tulip_refill_rx() 68 if (tp->rx_buffers[entry].skb == NULL) { in tulip_refill_rx() 72 skb = tp->rx_buffers[entry].skb = in tulip_refill_rx() 77 mapping = dma_map_single(&tp->pdev->dev, skb->data, in tulip_refill_rx() [all …]
|
/linux/drivers/net/can/sja1000/ |
H A D | plx_pci.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2008-2010 Pavel Cheblakov <P.B.Cheblakov@inp.nsk.su> 7 * Copyright (C) 2008 Markus Plessing <plessing@ems-wuensche.com> 8 * Copyright (C) 2008 Sebastian Haas <haas@ems-wuensche.com> 26 MODULE_DESCRIPTION("Socket-CAN driver for PLX90xx PCI-bridge cards with " 37 /* Pointer to device-dependent reset function */ 71 * This means normal output mode, push-pull and the correct polarity. 86 /* SJA1000 Control Register in the BasicCAN Mode */ 89 /* States of some SJA1000 registers after hardware reset in the BasicCAN mode*/ 95 /* States of some SJA1000 registers after hardware reset in the PeliCAN mode*/ [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | diff-v4l.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _diff-v4l: 23 and below in :ref:`v4l-dev`. 25 The teletext devices (minor range 192-223) have been removed in V4L2 and 35 .. _v4l-dev: 37 .. flat-table:: V4L Device Types, Names and Numbers 38 :header-rows: 1 39 :stub-columns: 0 41 * - Device Type 42 - File Name [all …]
|
/linux/Documentation/networking/device_drivers/can/ |
H A D | can327.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 7 -------- 14 ----------- 26 ------------- 33 order to fake full-duplex operation. 36 enough to implement simple request-response protocols (such as OBD II), 50 ----------- 59 ---------------------------------- 68 --debug \ 69 --speed 38400 \ [all …]
|
/linux/drivers/rapidio/ |
H A D | rio_cm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * rio_cm - RapidIO Channelized Messaging Driver 5 * Copyright 2013-2016 Integrated Device Technology, Inc. 12 #include <linux/dma-mapping.h> 22 #include <linux/poll.h> 180 struct cm_dev *cmdev; /* associated CM device object */ 203 struct cm_dev *cm; member 226 static int riocm_post_send(struct cm_dev *cm, struct rio_dev *rdev, 248 is_msg_capable(dev->src_ops, dev->dst_ops) 254 spin_lock_bh(&ch->lock); in riocm_cmp() [all …]
|
/linux/drivers/thunderbolt/ |
H A D | nhi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Thunderbolt driver - NHI driver 16 #include <linux/dma-mapping.h> 28 #define RING_TYPE(ring) ((ring)->is_tx ? "TX ring" : "RX ring") 37 * Minimal number of vectors when we use MSI-X. Two for control channel 55 int bit = ring->hop; in ring_interrupt_index() 56 if (!ring->is_tx) in ring_interrupt_index() 57 bit += ring->nhi->hop_count; in ring_interrupt_index() 63 if (nhi->quirks & QUIRK_AUTO_CLEAR_INT) { in nhi_mask_interrupt() 66 val = ioread32(nhi->iobase + REG_RING_INTERRUPT_BASE + ring); in nhi_mask_interrupt() [all …]
|
H A D | switch.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Thunderbolt driver - switch/port utility functions 12 #include <linux/nvmem-provider.h> 42 if (uuid_equal(&st->uuid, sw->uuid)) in __nvm_get_auth_status() 57 *status = st ? st->status : 0; in nvm_get_auth_status() 64 if (WARN_ON(!sw->uuid)) in nvm_set_auth_status() 75 memcpy(&st->uuid, sw->uuid, sizeof(st->uuid)); in nvm_set_auth_status() 76 INIT_LIST_HEAD(&st->list); in nvm_set_auth_status() 77 list_add_tail(&st->list, &nvm_auth_status_cache); in nvm_set_auth_status() 80 st->status = status; in nvm_set_auth_status() [all …]
|
/linux/tools/testing/selftests/powerpc/nx-gzip/include/ |
H A D | nxu.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Hardware interface of the NX-GZIP compression accelerator 41 #define nx_get_time() (-1) 42 #define nx_get_freq() (-1) 50 * https://github.com/libnxz/power-gzip/blob/develop/doc/power_nx_gzip_um.pdf 71 * vas: virtual accelerator switch; the user mode interface 109 * Software can poll for the v bit 141 * When crb.c==1 (ccb defined) it is cm 145 /* Signal interrupt of crb.c==1 and cm==1 */ 291 uint32_t gzip_fc; /* bits[24-31] */ [all …]
|
/linux/drivers/media/i2c/ |
H A D | thp7312.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/mtd/spi-nor.h> 26 #include <media/v4l2-async.h> 27 #include <media/v4l2-cci.h> 28 #include <media/v4l2-ctrls.h> 29 #include <media/v4l2-device.h> 30 #include <media/v4l2-fwnode.h> 31 #include <media/v4l2-subdev.h> 129 * enum thp7312_focus_state - State of the focus handler 133 * @THP7312_FOCUS_STATE_AUTO: Continuous auto-focus [all …]
|
/linux/include/rdma/ |
H A D | ib_verbs.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 18 #include <linux/dma-mapping.h> 204 if (attr->gid_type == IB_GID_TYPE_IB) in rdma_gid_attr_network_type() 207 if (attr->gid_type == IB_GID_TYPE_ROCE) in rdma_gid_attr_network_type() 210 if (ipv6_addr_v4mapped((struct in6_addr *)&attr->gid)) in rdma_gid_attr_network_type() 246 * IPoIB driver may set NETIF_F_IP_CSUM for datagram mode. 281 * This device supports a per-devic [all...] |
/linux/drivers/infiniband/ulp/rtrs/ |
H A D | rtrs-clt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2014 - 2018 ProfitBricks GmbH. All rights reserved. 6 * Copyright (c) 2018 - 2019 1&1 IONOS Cloud GmbH. All rights reserved. 7 * Copyright (c) 2019 - 2020 1&1 IONOS SE. All rights reserved. 17 #include "rtrs-clt.h" 18 #include "rtrs-log.h" 19 #include "rtrs-clt-trace.h" 49 .name = "rtrs-client", 58 list_for_each_entry_rcu(clt_path, &clt->paths_list, s.entry) in rtrs_clt_is_connected() 59 if (READ_ONCE(clt_path->state) == RTRS_CLT_CONNECTED) { in rtrs_clt_is_connected() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | common.h | 2 * Copyright (c) 2005-2008 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 44 #define CH_ERR(adap, fmt, ...) dev_err(&adap->pdev->dev, fmt, ##__VA_ARGS__) 45 #define CH_WARN(adap, fmt, ...) dev_warn(&adap->pdev->dev, fmt, ##__VA_ARGS__) 46 #define CH_ALERT(adap, fmt, ...) dev_alert(&adap->pdev->dev, fmt, ##__VA_ARGS__) 53 if ((adapter)->msg_enable & NETIF_MSG_##category) \ 54 dev_printk(KERN_##level, &adapter->pdev->dev, fmt, \ 92 enum { /* adapter interrupt-maintained statistics */ 151 #define WR_FLITS (TX_DESC_FLITS + 1 - SGE_NUM_GENBITS) [all …]
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 31 * igb_check_reset_block - Check if PHY reset is blocked 48 * igb_get_phy_id - Retrieve the PHY ID and revision 56 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() 61 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) in igb_get_phy_id() 62 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id() 64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 68 phy->id = (u32)(phy_id << 16); in igb_get_phy_id() 70 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() [all …]
|
/linux/Documentation/admin-guide/ |
H A D | devices.txt | 1 0 Unnamed devices (e.g. non-device mounts) 7 2 = /dev/kmem OBSOLETE - replaced by /proc/kcore 11 6 = /dev/core OBSOLETE - replaced by /proc/kcore 18 12 = /dev/oldmem OBSOLETE - replaced by /proc/vmcore 31 2 char Pseudo-TTY masters 37 Pseudo-tty's are named as follows: 40 the 1st through 16th series of 16 pseudo-ttys each, and 44 These are the old-style (BSD) PTY devices; Unix98 106 3 char Pseudo-TTY slaves 112 These are the old-style (BSD) PTY devices; Unix98 [all …]
|
/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-hdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <media/v4l2-common.h> 16 #include "pvrusb2-std.h" 17 #include "pvrusb2-util.h" 18 #include "pvrusb2-hdw.h" 19 #include "pvrusb2-i2c-core.h" 20 #include "pvrusb2-eeprom.h" 21 #include "pvrusb2-hdw-internal.h" 22 #include "pvrusb2-encoder.h" 23 #include "pvrusb2-debug.h" [all …]
|
/linux/drivers/infiniband/hw/irdma/ |
H A D | utils.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 2 /* Copyright (c) 2015 - 2021 Intel Corporation */ 6 * irdma_arp_table -manage arp table 25 spin_lock_irqsave(&rf->arp_lock, flags); in irdma_arp_table() 26 for (arp_index = 0; (u32)arp_index < rf->arp_table_size; arp_index++) { in irdma_arp_table() 27 if (!memcmp(rf->arp_table[arp_index].ip_addr, ip, sizeof(ip))) in irdma_arp_table() 33 if (arp_index != rf->arp_table_size) { in irdma_arp_table() 34 arp_index = -1; in irdma_arp_table() 39 if (irdma_alloc_rsrc(rf, rf->allocated_arps, rf->arp_table_size, in irdma_arp_table() 40 (u32 *)&arp_index, &rf->next_arp_index)) { in irdma_arp_table() [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | mac.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 25 #include "wmi-tlv.h" 26 #include "wmi-ops.h" 100 #define ath10k_a_rates_size (ARRAY_SIZE(ath10k_rates) - \ 135 for (i = 0; i < sband->n_bitrates; i++) { in ath10k_mac_hw_rate_to_idx() 136 rate = &sband->bitrates[i]; in ath10k_mac_hw_rate_to_idx() [all …]
|
/linux/drivers/bus/ |
H A D | ti-sysc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ti-sysc.c - Texas Instruments sysc interconnect target driver 8 * Copyright (C) 2017-2024 Texas Instruments Incorporated - https://www.ti.com/ 13 * Copyright (C) 2009-2011 Nokia Corporation 14 * Copyright (C) 2011-2021 Texas Instruments Incorporated - https://www.ti.com/ 35 #include <linux/platform_data/ti-sysc.h> 37 #include <dt-bindings/bus/ti-sysc.h> 107 * struct sysc - TI sysc interconnect target module registers and capabilities 113 * @mdata: ti-sysc to hwmod translation data for a module 118 * @legacy_mode: configured for legacy mode if set [all …]
|