Home
last modified time | relevance | path

Searched +full:num +full:- +full:ss +full:- +full:bits (Results 1 – 25 of 49) sorted by relevance

12

/linux/Documentation/devicetree/bindings/spi/
H A Dspi-xilinx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/spi/spi-xilinx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michal Simek <michal.simek@amd.com>
13 - $ref: spi-controller.yaml#
18 - xlnx,xps-spi-2.00.a
19 - xlnx,xps-spi-2.00.b
20 - xlnx,axi-quad-spi-1.00.a
28 xlnx,num-ss-bits:
[all …]
/linux/drivers/pci/
H A Dof_property.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
10 #include <linux/bits.h>
58 prop[0] = FIELD_PREP(OF_PCI_ADDR_FIELD_BUS, pdev->bus->number) | in of_pci_set_address()
59 FIELD_PREP(OF_PCI_ADDR_FIELD_DEV, PCI_SLOT(pdev->devfn)) | in of_pci_set_address()
60 FIELD_PREP(OF_PCI_ADDR_FIELD_FUNC, PCI_FUNC(pdev->devfn)); in of_pci_set_address()
74 u32 ss; in of_pci_get_addr_flags() local
76 if (res->flags & IORESOURCE_IO) in of_pci_get_addr_flags()
77 ss = OF_PCI_ADDR_SPACE_IO; in of_pci_get_addr_flags()
78 else if (res->flags & IORESOURCE_MEM_64) in of_pci_get_addr_flags()
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Dverbs.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright(c) 2015 - 2018 Intel Corporation.
73 /* 24Bits for qpn, upper 8Bits reserved */
154 u32 pending_tid_w_segs; /* Num of pending tid write segments */
155 u32 pending_tid_w_resp; /* Num of pending tid write responses */
160 u32 tid_r_reqs; /* Num of tid reads requested */
161 u32 tid_r_comp; /* Num of tid reads completed */
162 u32 pending_tid_r_segs; /* Num of pending tid read segments */
173 #define HFI1_QP_WQE_INVALID ((u32)-1)
177 struct rvt_sge_state ss; /* Used for TID RDMA READ Request */ member
[all …]
H A Dtid_rdma.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
13 #define CIRC_ADD(val, add, size) (((val) + (add)) & ((size) - 1))
15 #define CIRC_PREV(val, size) CIRC_ADD(val, -1, size)
23 * Bit definitions for priv->s_flags.
28 * HFI1_S_TID_WAIT_INTERLCK - QP is waiting for requester interlock
29 * HFI1_R_TID_WAIT_INTERLCK - QP is waiting for responder interlock
38 /* BIT(7) - BIT(15) reserved for RVT_S_WAIT_*. */
106 struct rvt_sge_state ss; /* SGE state for TID RDMA requests */ member
126 u32 ack_pending; /* num acks pending for this request */
133 * relevant (and not the PSNs maintained by verbs). Track per-flow
[all …]
/linux/drivers/usb/gadget/udc/
H A Dnet2280.h1 // SPDX-License-Identifier: GPL-2.0+
10 * Copyright (C) 2014 Ricardo Ribalda - Qtechnology/AS
16 /*-------------------------------------------------------------------------*/
26 writel(index, &regs->idxaddr); in get_idx_reg()
28 return readl(&regs->idxdata); in get_idx_reg()
34 writel(index, &regs->idxaddr); in set_idx_reg()
35 writel(value, &regs->idxdata); in set_idx_reg()
74 /*-------------------------------------------------------------------------*/
86 /*-------------------------------------------------------------------------*/
100 /* analogous to a host-side qh */
[all …]
H A Dnet2280.c1 // SPDX-License-Identifier: GPL-2.0+
27 * Copyright (C) 2003-2005 PLX Technology, Inc.
28 * Copyright (C) 2014 Ricardo Ribalda - Qtechnology/AS
39 #include <linux/dma-mapping.h>
87 EP_INFO("ep-a",
89 EP_INFO("ep-b",
91 EP_INFO("ep-c",
93 EP_INFO("ep-d",
95 EP_INFO("ep-e",
97 EP_INFO("ep-f",
[all …]
H A Ddummy_hcd.c1 // SPDX-License-Identifier: GPL-2.0+
3 * dummy_hcd.c -- Dummy/Loopback USB host and device emulator driver.
8 * Copyright (C) 2003-2005 Alan Stern
14 * Linux-USB host controller driver. USB traffic is simulated; there's
17 * - Gadget driver, responding to requests (device);
18 * - Host-side device driver, as already familiar in Linux.
51 #define POWER_BUDGET 500 /* in mA; use 8 for low-power port testing */
68 unsigned int num; member
74 .num = 1,
80 module_param_named(num, mod_data.num, uint, S_IRUGO);
[all …]
/linux/include/net/libeth/
H A Dxdp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
15 * Defined as bits to be able to use them as a mask on Rx.
28 * pick maximum pointer-compatible alignment.
36 * struct libeth_xdp_buff - libeth extension over &xdp_buff
40 * @priv: driver-private scratchspace
43 * to quickly get frame metadata from xdpmo and driver buff-to-xd
127 libeth_xdpsq_shared(u32 num) libeth_xdpsq_shared() argument
140 libeth_xdpsq_id(u32 num) libeth_xdpsq_id() argument
823 libeth_xdp_xmit_init_bulk(bq,dev,xdpsqs,num) global() argument
1141 libeth_xdp_tx_init_bulk(bq,prog,dev,xdpsqs,num) global() argument
1145 __libeth_xdp_tx_init_bulk(bq,pr,d,xdpsqs,num,xsk,ub,un) global() argument
1338 libeth_xdp_buff_stats_frags(struct libeth_rq_napi_stats * ss,const struct libeth_xdp_buff * xdp) libeth_xdp_buff_stats_frags() argument
1542 libeth_xdp_run_pass(xdp,bq,napi,ss,desc,run,populate) global() argument
[all...]
/linux/drivers/tty/
H A Dtty_io.c1 // SPDX-License-Identifier: GPL-2.0
8 * or rs-channels. It also implements echoing, cooked mode etc.
10 * Kill-line thanks to John T Kohl, who also corrected VMIN = VTIME = 0.
19 * between the high-level tty routines (tty_io.c and tty_ioctl.c) and
20 * the low-level tty routines (serial.c, pty.c, console.c). This
21 * makes for cleaner and more compact code. -TYT, 9/17/92
24 * which can be dynamically activated and de-activated by the line
29 * -- TYT, 1/31/92
32 * other bits should be there.
33 * -- Nick Holloway <alfie@dcs.warwick.ac.uk>, 27th May 1993.
[all …]
/linux/drivers/usb/gadget/function/
H A Duvc_configfs.c1 // SPDX-License-Identifier: GPL-2.0
19 /* -----------------------------------------------------------------------------
48 return li < ri ? -1 : li == ri ? 0 : 1; in uvcg_config_compare_u32()
59 unsigned int num; in __uvcg_fill_item_entries() local
63 ret = kstrtouint(buf, 0, &num); in __uvcg_fill_item_entries()
67 if (num != (num & GENMASK((size * 8) - 1, 0))) in __uvcg_fill_item_entries()
68 return -ERANGE; in __uvcg_fill_item_entries()
71 memcpy(*values, &num, size); in __uvcg_fill_item_entries()
88 return -EINVAL; in __uvcg_iter_item_entries()
92 return -ENOMEM; in __uvcg_iter_item_entries()
[all …]
/linux/drivers/usb/cdns3/
H A Dcdns3-gadget.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2018-2019 Cadence.
6 * Copyright (C) 2017-2018 NXP
15 #include <linux/dma-direction.h>
18 * USBSS-DEV register interface.
23 * struct cdns3_usb_regs - device controller registers.
53 * @buf_addr: Address for On-chip Buffer operations.
54 * @buf_data: Data for On-chip Buffer operations.
55 * @buf_ctrl: On-chip Buffer Access Control.
123 /* USB_CONF - bitmasks */
[all …]
/linux/drivers/spi/
H A Dspi-sh-msiof.c1 // SPDX-License-Identifier: GPL-2.0
7 * Copyright (C) 2014-2017 Glider bvba
14 #include <linux/dma-mapping.h>
71 return ioread16(p->mapbase + reg_offs); in sh_msiof_read()
73 return ioread32(p->mapbase + reg_offs); in sh_msiof_read()
83 iowrite16(value, p->mapbase + reg_offs); in sh_msiof_write()
86 iowrite32(value, p->mapbase + reg_offs); in sh_msiof_write()
102 return readl_poll_timeout_atomic(p->mapbase + SICTR, data, in sh_msiof_modify_ctr_wait()
112 complete(&p->done); in sh_msiof_spi_irq()
126 readl_poll_timeout_atomic(p->mapbase + SICTR, data, !(data & mask), 1, in sh_msiof_spi_reset_regs()
[all …]
H A Dspi-xilinx.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * 2002-2007 (c) MontaVista Software, Inc.
56 #define XSPI_SSR_OFFSET 0x70 /* 32-bit Slave Select Register */
120 if (!xspi->tx_ptr) { in xilinx_spi_tx()
121 xspi->write_fn(0, xspi->regs + XSPI_TXD_OFFSET); in xilinx_spi_tx()
125 switch (xspi->bytes_per_word) { in xilinx_spi_tx()
127 data = *(u8 *)(xspi->tx_ptr); in xilinx_spi_tx()
130 data = *(u16 *)(xspi->tx_ptr); in xilinx_spi_tx()
133 data = *(u32 *)(xspi->tx_ptr); in xilinx_spi_tx()
137 xspi->write_fn(data, xspi->regs + XSPI_TXD_OFFSET); in xilinx_spi_tx()
[all …]
/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * bdc.h - header for the BRCM BDC USB3.0 device controller
18 #include <linux/dma-mapping.h>
40 /* Start with SS as default */
46 /* Num of bds per table */
49 /* Num of tables in bd list for control,bulk and Int ep */
52 /* Num of tables in bd list for Isoch ep */
274 /* On disconnect, preserve these bits and clear rest */
306 /* Max_bdi = num_tabs * num_bds_table - 1 */
414 /* num of endpoints for a particular instantiation of IP */
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. *
170 unsigned int in_use; /* # of in-use command descriptors */
218 unsigned int avail; /* available bits - quota */
228 unsigned int max_avail; /* max bits to be sent to any port */
230 unsigned int num; /* num skbs in per port queues */ member
255 unsigned int intrtimer_nres; /* no-resource interrupt timer */
256 unsigned int fixed_intrtimer;/* non-adaptive interrupt timer */
277 struct sched *s = sge->tx_sched; in tx_sched_stop()
280 tasklet_kill(&s->sched_tsk); in tx_sched_stop()
[all …]
/linux/tools/testing/selftests/kvm/lib/x86/
H A Dprocessor.c1 // SPDX-License-Identifier: GPL-2.0-only
43 VEC_STR(SS); in ex_str()
65 regs->rax, regs->rbx, regs->rcx, regs->rdx); in regs_dump()
69 regs->rsi, regs->rdi, regs->rsp, regs->rbp); in regs_dump()
73 regs->r8, regs->r9, regs->r10, regs->r11); in regs_dump()
77 regs->r12, regs->r13, regs->r14, regs->r15); in regs_dump()
80 regs->rip, regs->rflags); in regs_dump()
88 indent, "", segment->base, segment->limit, in segment_dump()
89 segment->selector, segment->type); in segment_dump()
92 indent, "", segment->present, segment->dpl, in segment_dump()
[all …]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #define idpf_tx_buf_next(buf) (*(u32 *)&(buf)->priv)
14 * idpf_chk_linearize - Check if skb exceeds max descriptors per packet
37 * idpf_tx_timeout - Respond to a Tx Hang
45 adapter->tx_timeout_count++; in idpf_tx_timeout()
48 adapter->tx_timeout_count, txqueue); in idpf_tx_timeout()
50 set_bit(IDPF_HR_FUNC_RESET, adapter->flags); in idpf_tx_timeout()
51 queue_delayed_work(adapter->vc_event_wq, in idpf_tx_timeout()
52 &adapter->vc_event_task, in idpf_tx_timeout()
59 struct libeth_sq_napi_stats ss = { }; in idpf_tx_buf_clean() local
[all …]
/linux/drivers/usb/misc/
H A Dusbtest.c1 // SPDX-License-Identifier: GPL-2.0
16 /*-------------------------------------------------------------------------*/
18 static int override_alt = -1;
23 /*-------------------------------------------------------------------------*/
30 __u32 test_num; /* 0..(TEST_CASES-1) */
47 __u32 test_num; /* 0..(TEST_CASES-1) */
63 /*-------------------------------------------------------------------------*/
72 //#define KEYSPAN_19Qi /* grab un-renumerated serial adapter */
74 /*-------------------------------------------------------------------------*/
112 return interface_to_usbdev(test->intf); in testdev_to_usbdev()
[all …]
/linux/Documentation/networking/
H A Dpacket_mmap.rst1 .. SPDX-License-Identifier: GPL-2.0
22 - Ulisses Alonso Camaró <uaca@i.hate.spam.alumni.uv.es>
23 - Johann Baudy
67 [setup] socket() -------> creation of the capture socket
68 setsockopt() ---> allocation of the circular buffer (ring)
70 mmap() ---------> mapping of the allocated buffer to the
73 [capture] poll() ---------> to wait for incoming packets
75 [shutdown] close() --------> destruction of the capture socket and
88 supported and a link level pseudo-header is provided
107 [setup] socket() -------> creation of the transmission socket
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Dwmi.h1 /* 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.
29 * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff
45 * variable is already 4-byte aligned by virtue of being a u32
527 * for wmi_services is 64 as target is using only 4-bits of each 32-bit
528 * wmi_service word. Extending this to make use of remaining unused bits
533 __le32_to_cpu((wmi_svc_bmap)[((svc_id) - (len)) / 28]) & \
[all …]
/linux/drivers/iommu/
H A Dmsm_iommu.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
13 #include <linux/io-pgtable.h>
25 #include "msm_iommu_hw-8xxx.h"
58 ret = clk_enable(iommu->pclk); in __enable_clocks()
62 if (iommu->clk) { in __enable_clocks()
63 ret = clk_enable(iommu->clk); in __enable_clocks()
65 clk_disable(iommu->pclk); in __enable_clocks()
73 if (iommu->clk) in __disable_clocks()
74 clk_disable(iommu->clk); in __disable_clocks()
[all …]
/linux/drivers/pcmcia/
H A Drsrc_nonstatic.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rsrc_nonstatic.c -- Resource management routines for !SS_CAP_STATIC_MAP sockets
28 #include <pcmcia/ss.h>
49 u_long base, num; member
83 if (s && s->cb_dev) in claim_region()
84 parent = pci_find_parent_resource(s->cb_dev, res); in claim_region()
108 static int add_interval(struct resource_map *map, u_long base, u_long num) in add_interval() argument
112 for (p = map; ; p = p->next) { in add_interval()
113 if ((p != map) && (p->base+p->num >= base)) { in add_interval()
114 p->num = max(num + base - p->base, p->num); in add_interval()
[all …]
/linux/Documentation/input/devices/
H A Datarikbd.rst12 provides a convenient connection point for a mouse and switch-type joysticks.
13 The ikbd processor also maintains a time-of-day clock with one second
18 The ikbd communicates with the main processor over a high speed bi-directional
41 0xF8-0xFB relative mouse position records (lsbs determined by
43 0xFC time-of-day
67 ---------------------------
72 settable threshold of motion. Regardless of the threshold, all bits of
89 Note that the value of the button state bits should be valid even if the
92 +127...-128 range, the motion is broken into multiple packets.
97 ---------------------------
[all …]
/linux/arch/x86/boot/compressed/
H A Dkaslr.c1 // SPDX-License-Identifier: GPL-2.0
37 /* Simplified build-specific string for starting entropy. */
48 /* Rotate by odd number of bits and XOR. */ in rotate_xor()
49 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor()
78 * Store memory limit: MAXMEM on 64-bit and KERNEL_IMAGE_SIZE on 32-bit.
92 MEM_AVOID_MEMMAP_END = MEM_AVOID_MEMMAP_BEGIN + MAX_MEMMAP_REGIONS - 1,
101 if (one->start + one->size <= two->start) in mem_overlaps()
104 if (one->start >= two->start + two->size) in mem_overlaps()
124 return -EINVAL; in parse_memmap()
128 return -EINVAL; in parse_memmap()
[all …]
/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra234.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 #include <dt-bindings/clock/tegra234-clock.h>
4 #include <dt-bindings/gpio/tegra234-gpio.h>
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/mailbox/tegra186-hsp.h>
7 #include <dt-bindings/memory/tegra234-mc.h>
8 #include <dt-bindings/pinctrl/pinctrl-tegra-io-pad.h>
9 #include <dt-bindings/power/tegra234-powergate.h>
10 #include <dt-bindings/reset/tegra234-reset.h>
11 #include <dt-bindings/thermal/tegra234-bpmp-thermal.h>
[all …]

12