Home
last modified time | relevance | path

Searched +full:big +full:- +full:endian +full:- +full:desc (Results 1 – 25 of 227) sorted by relevance

12345678910

/kernel/linux/linux-4.19/Documentation/devicetree/bindings/usb/
Dusb-ohci.txt4 - compatible : "generic-ohci"
5 - reg : ohci controller register range (address and length)
6 - interrupts : ohci controller interrupt
9 - big-endian-regs : boolean, set this for hcds with big-endian registers
10 - big-endian-desc : boolean, set this for hcds with big-endian descriptors
11 - big-endian : boolean, for hcds with big-endian-regs + big-endian-desc
12 - no-big-frame-no : boolean, set if frame_no lives in bits [15:0] of HCCA
13 - remote-wakeup-connected: remote wakeup is wired on the platform
14 - num-ports : u32, to override the detected port count
15 - clocks : a list of phandle + clock specifier pairs
[all …]
Dusb-ehci.txt4 - compatible : should be "generic-ehci".
5 - reg : should contain at least address and length of the standard EHCI
6 register set for the device. Optional platform-dependent registers
7 (debug-port or other) can be also specified here, but only after
9 - interrupts : one EHCI interrupt should be described here.
12 - big-endian-regs : boolean, set this for hcds with big-endian registers
13 - big-endian-desc : boolean, set this for hcds with big-endian descriptors
14 - big-endian : boolean, for hcds with big-endian-regs + big-endian-desc
15 - needs-reset-on-resume : boolean, set this to force EHCI reset after resume
16 - has-transaction-translator : boolean, set this if EHCI have a Transaction
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/
Dgeneric-ohci.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/usb/generic-ohci.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - $ref: "usb-hcd.yaml"
13 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 const: generic-ohci
34 In case the Renesas R-Car Gen3 SoCs:
35 - if a host only channel: first clock should be host.
36 - if a USB DRD channel: first clock should be host and second
[all …]
Dgeneric-ehci.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/usb/generic-ehci.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 - $ref: "usb-hcd.yaml"
14 - if:
19 const: ibm,usb-ehci-440epx
28 const: generic-ehci
45 In case the Renesas R-Car Gen3 SoCs:
[all …]
/kernel/linux/linux-5.10/arch/mips/include/asm/sgi/
Dhpc3.h22 #define HPCDMA_EOX 0x80000000 /* last desc in chain for tx */
23 #define HPCDMA_EOR 0x80000000 /* last desc in chain for rx */
26 #define HPCDMA_XIE 0x20000000 /* irq generated when at end of this desc */
39 volatile u32 pbdma_dptr; /* pbus dma channel desc ptr */
40 u32 _unused0[0x1000/4 - 2]; /* padding */
48 #define HPC3_PDMACTRL_SEL 0x00000002 /* little endian transfer */
54 #define HPC3_PDMACTRL_HW 0x0000ff00 /* DMA High-water mark */
58 u32 _unused1[0x1000/4 - 1]; /* padding */
65 u32 _unused0[0x1000/4 - 2]; /* padding */
73 #define HPC3_SCTRL_ENDIAN 0x02 /* DMA endian mode, 0=big 1=little */
[all …]
/kernel/linux/linux-4.19/arch/mips/include/asm/sgi/
Dhpc3.h22 #define HPCDMA_EOX 0x80000000 /* last desc in chain for tx */
23 #define HPCDMA_EOR 0x80000000 /* last desc in chain for rx */
26 #define HPCDMA_XIE 0x20000000 /* irq generated when at end of this desc */
39 volatile u32 pbdma_dptr; /* pbus dma channel desc ptr */
40 u32 _unused0[0x1000/4 - 2]; /* padding */
48 #define HPC3_PDMACTRL_SEL 0x00000002 /* little endian transfer */
54 #define HPC3_PDMACTRL_HW 0x0000ff00 /* DMA High-water mark */
58 u32 _unused1[0x1000/4 - 1]; /* padding */
65 u32 _unused0[0x1000/4 - 2]; /* padding */
73 #define HPC3_SCTRL_ENDIAN 0x02 /* DMA endian mode, 0=big 1=little */
[all …]
/kernel/linux/linux-4.19/drivers/usb/host/
Dehci-ppc-of.c1 // SPDX-License-Identifier: GPL-1.0+
5 * Bus Glue for PPC On-Chip EHCI driver on the of_platform bus
10 * Based on "ehci-ppc-soc.c" by Stefan Roese <sr@denx.de>
11 * and "ohci-ppc-of.c" by Sylvain Munaut <tnt@246tNt.com>
85 return -EINVAL; in ppc44x_enable_bmt()
96 struct device_node *dn = op->dev.of_node; in ehci_hcd_ppc_of_probe()
106 return -ENODEV; in ehci_hcd_ppc_of_probe()
108 dev_dbg(&op->dev, "initializing PPC-OF USB Controller\n"); in ehci_hcd_ppc_of_probe()
114 hcd = usb_create_hcd(&ehci_ppc_of_hc_driver, &op->dev, "PPC-OF USB"); in ehci_hcd_ppc_of_probe()
116 return -ENOMEM; in ehci_hcd_ppc_of_probe()
[all …]
Dohci-platform.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright 2011-2012 Hauke Mehrtens <hauke@hauke-m.de>
9 * Derived from the OCHI-SSB driver
10 * Derived from the OHCI-PCI driver
12 * Copyright 2000-2002 David Brownell
18 #include <linux/dma-mapping.h>
36 #define hcd_to_ohci_priv(h) ((struct ohci_platform_priv *)hcd_to_ohci(h)->priv)
43 static const char hcd_name[] = "ohci-platform";
51 for (clk = 0; clk < OHCI_MAX_CLKS && priv->clks[clk]; clk++) { in ohci_platform_power_on()
52 ret = clk_prepare_enable(priv->clks[clk]); in ohci_platform_power_on()
[all …]
Dohci.h1 // SPDX-License-Identifier: GPL-1.0+
6 * (C) Copyright 2000-2002 David Brownell <dbrownell@users.sourceforge.net>
27 /* first fields are hardware-specified */
49 struct ed *ed_prev; /* for non-interrupt EDs */
53 /* create --> IDLE --> OPER --> ... --> IDLE --> destroy
54 * usually: OPER --> UNLINK --> (IDLE | OPER) --> ...
76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0)
89 /* first fields are hardware-specified */
124 * big-endian PPC hardware that's the second entry.
132 struct td *td_hash; /* dma-->td hashtable */
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dehci-ppc-of.c1 // SPDX-License-Identifier: GPL-1.0+
5 * Bus Glue for PPC On-Chip EHCI driver on the of_platform bus
10 * Based on "ehci-ppc-soc.c" by Stefan Roese <sr@denx.de>
11 * and "ohci-ppc-of.c" by Sylvain Munaut <tnt@246tNt.com>
85 return -EINVAL; in ppc44x_enable_bmt()
96 struct device_node *dn = op->dev.of_node; in ehci_hcd_ppc_of_probe()
106 return -ENODEV; in ehci_hcd_ppc_of_probe()
108 dev_dbg(&op->dev, "initializing PPC-OF USB Controller\n"); in ehci_hcd_ppc_of_probe()
114 hcd = usb_create_hcd(&ehci_ppc_of_hc_driver, &op->dev, "PPC-OF USB"); in ehci_hcd_ppc_of_probe()
116 return -ENOMEM; in ehci_hcd_ppc_of_probe()
[all …]
Dohci-platform.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright 2011-2012 Hauke Mehrtens <hauke@hauke-m.de>
9 * Derived from the OCHI-SSB driver
10 * Derived from the OHCI-PCI driver
12 * Copyright 2000-2002 David Brownell
18 #include <linux/dma-mapping.h>
36 #define hcd_to_ohci_priv(h) ((struct ohci_platform_priv *)hcd_to_ohci(h)->priv)
43 static const char hcd_name[] = "ohci-platform";
51 for (clk = 0; clk < OHCI_MAX_CLKS && priv->clks[clk]; clk++) { in ohci_platform_power_on()
52 ret = clk_prepare_enable(priv->clks[clk]); in ohci_platform_power_on()
[all …]
Dohci.h1 /* SPDX-License-Identifier: GPL-1.0+ */
6 * (C) Copyright 2000-2002 David Brownell <dbrownell@users.sourceforge.net>
27 /* first fields are hardware-specified */
49 struct ed *ed_prev; /* for non-interrupt EDs */
53 /* create --> IDLE --> OPER --> ... --> IDLE --> destroy
54 * usually: OPER --> UNLINK --> (IDLE | OPER) --> ...
76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0)
89 /* first fields are hardware-specified */
124 * big-endian PPC hardware that's the second entry.
132 struct td *td_hash; /* dma-->td hashtable */
[all …]
/kernel/linux/linux-4.19/drivers/gpio/
Dgpio-mpc8xxx.c49 * This hardware has a big endian bit assignment such that GPIO line 0 is
55 return BIT(31 - offset); in mpc_pin2mask()
69 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get()
70 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get()
71 out_shadow = gc->bgpio_data & out_mask; in mpc8572_gpio_get()
82 return -EINVAL; in mpc5121_gpio_dir_out()
84 return mpc8xxx_gc->direction_output(gc, gpio, val); in mpc5121_gpio_dir_out()
93 return -EINVAL; in mpc5125_gpio_dir_out()
95 return mpc8xxx_gc->direction_output(gc, gpio, val); in mpc5125_gpio_dir_out()
102 if (mpc8xxx_gc->irq && offset < MPC8XXX_GPIO_PINS) in mpc8xxx_gpio_to_irq()
[all …]
Dgpio-brcmstb.c2 * Copyright (C) 2015-2017 Broadcom
71 #define GPIO_BIT(gpio) ((gpio) & (MAX_GPIO_PER_BANK - 1))
77 return bank->parent_priv; in brcmstb_gpio_gc_to_priv()
83 void __iomem *reg_base = bank->parent_priv->reg_base; in __brcmstb_gpio_get_active_irqs()
85 return bank->gc.read_reg(reg_base + GIO_STAT(bank->id)) & in __brcmstb_gpio_get_active_irqs()
86 bank->gc.read_reg(reg_base + GIO_MASK(bank->id)); in __brcmstb_gpio_get_active_irqs()
95 spin_lock_irqsave(&bank->gc.bgpio_lock, flags); in brcmstb_gpio_get_active_irqs()
97 spin_unlock_irqrestore(&bank->gc.bgpio_lock, flags); in brcmstb_gpio_get_active_irqs()
105 return hwirq - (bank->gc.base - bank->parent_priv->gpio_base); in brcmstb_gpio_hwirq_to_offset()
111 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_set_imask()
[all …]
/kernel/linux/linux-5.10/drivers/net/vmxnet3/
Dvmxnet3_defs.h4 * Copyright (C) 2008-2020, VMware, Inc. All Rights Reserved.
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23 * Maintained by: pv-drivers@vmware.com
57 #define VMXNET3_REG_ALIGN 8 /* All registers are 8-byte aligned. */
104 * Little Endian layout of bitfields -
110 * Big Endian layout of bitfields -
116 * Thus, le32_to_cpu on the dword will allow the big endian driver to read
118 * bit fields written by big endian driver to format required by device.
370 /* # of tx desc needed for a tx buffer size */
371 #define VMXNET3_TXD_NEEDED(size) (((size) + VMXNET3_MAX_TX_BUF_SIZE - 1) / \
[all …]
/kernel/linux/linux-4.19/drivers/net/vmxnet3/
Dvmxnet3_defs.h4 * Copyright (C) 2008-2016, VMware, Inc. All Rights Reserved.
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23 * Maintained by: pv-drivers@vmware.com
57 #define VMXNET3_REG_ALIGN 8 /* All registers are 8-byte aligned. */
102 * Little Endian layout of bitfields -
108 * Big Endian layout of bitfields -
114 * Thus, le32_to_cpu on the dword will allow the big endian driver to read
116 * bit fields written by big endian driver to format required by device.
365 /* # of tx desc needed for a tx buffer size */
366 #define VMXNET3_TXD_NEEDED(size) (((size) + VMXNET3_MAX_TX_BUF_SIZE - 1) / \
[all …]
/kernel/linux/linux-5.10/arch/sh/boards/mach-rsk/
Ddevices-rsk7203.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2008 - 2010 Paul Mundt
42 .id = -1,
57 .default_trigger = "nand-disk",
79 .name = "leds-gpio",
80 .id = -1,
91 .desc = "SW1",
96 .desc = "SW2",
101 .desc = "SW3",
112 .name = "gpio-keys-polled",
[all …]
/kernel/linux/linux-4.19/arch/sh/boards/mach-rsk/
Ddevices-rsk7203.c4 * Copyright (C) 2008 - 2010 Paul Mundt
45 .id = -1,
60 .default_trigger = "nand-disk",
82 .name = "leds-gpio",
83 .id = -1,
94 .desc = "SW1",
99 .desc = "SW2",
104 .desc = "SW3",
115 .name = "gpio-keys-polled",
133 /* Setup LAN9118: CS1 in 16-bit Big Endian Mode, IRQ0 at Port B */ in rsk7203_devices_setup()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dni_usb6501.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Comedi driver for National Instruments USB-6501
6 * COMEDI - Linux Control and Measurement Device Interface
12 * Description: National Instruments USB-6501 module
13 * Devices: [National Instruments] USB-6501 (ni_usb6501)
24 * NI-6501 - USB PROTOCOL DESCRIPTION
27 * - request (out)
28 * - response (in)
39 * byte 5 is the total packet length - 4
75 * RES: 00 01 00 10 00 0C 01 00 00 00 00 02 <u32 counter value, Big Endian>
[all …]
/kernel/linux/linux-4.19/drivers/staging/comedi/drivers/
Dni_usb6501.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Comedi driver for National Instruments USB-6501
6 * COMEDI - Linux Control and Measurement Device Interface
12 * Description: National Instruments USB-6501 module
13 * Devices: [National Instruments] USB-6501 (ni_usb6501)
24 * NI-6501 - USB PROTOCOL DESCRIPTION
27 * - request (out)
28 * - response (in)
39 * byte 5 is the total packet length - 4
75 * RES: 00 01 00 10 00 0C 01 00 00 00 00 02 <u32 counter value, Big Endian>
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_api_cmd.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/dma-mapping.h>
34 (1 << (fls(cell_size - 1))) : API_CMD_CELL_SIZE_MIN)
49 #define MASKED_IDX(chain, idx) ((idx) & ((chain)->num_cells - 1))
91 enum hinic_api_cmd_chain_type chain_type = chain->chain_type; in set_prod_idx()
92 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx()
100 prod_idx |= HINIC_API_CMD_PI_SET(chain->prod_idx, IDX); in set_prod_idx()
109 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in get_hw_cons_idx()
110 val = hinic_hwif_read_reg(chain->hwif, addr); in get_hw_cons_idx()
119 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in dump_api_chain_reg()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_api_cmd.c22 #include <linux/dma-mapping.h>
43 (1 << (fls(cell_size - 1))) : API_CMD_CELL_SIZE_MIN)
58 #define MASKED_IDX(chain, idx) ((idx) & ((chain)->num_cells - 1))
100 enum hinic_api_cmd_chain_type chain_type = chain->chain_type; in set_prod_idx()
101 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx()
109 prod_idx |= HINIC_API_CMD_PI_SET(chain->prod_idx, IDX); in set_prod_idx()
118 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in get_hw_cons_idx()
119 val = hinic_hwif_read_reg(chain->hwif, addr); in get_hw_cons_idx()
125 * chain_busy - check if the chain is still processing last requests
128 * Return 0 - Success, negative - Failure
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-brcmstb.c2 * Copyright (C) 2015-2017 Broadcom
71 #define GPIO_BIT(gpio) ((gpio) & (MAX_GPIO_PER_BANK - 1))
77 return bank->parent_priv; in brcmstb_gpio_gc_to_priv()
83 void __iomem *reg_base = bank->parent_priv->reg_base; in __brcmstb_gpio_get_active_irqs()
85 return bank->gc.read_reg(reg_base + GIO_STAT(bank->id)) & in __brcmstb_gpio_get_active_irqs()
86 bank->gc.read_reg(reg_base + GIO_MASK(bank->id)); in __brcmstb_gpio_get_active_irqs()
95 spin_lock_irqsave(&bank->gc.bgpio_lock, flags); in brcmstb_gpio_get_active_irqs()
97 spin_unlock_irqrestore(&bank->gc.bgpio_lock, flags); in brcmstb_gpio_get_active_irqs()
105 return hwirq - (bank->gc.base - bank->parent_priv->gpio_base); in brcmstb_gpio_hwirq_to_offset()
111 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_set_imask()
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Dtxx9dmac.h1 /* SPDX-License-Identifier: GPL-2.0-only */
17 * be configured for memory-memory or device-memory transfer, but only
18 * one channel can do alignment-free memory-memory transfer at a time
23 * make one dedicated channel for memory-memory transfer. The
56 * Redefine this macro to handle differences between 32- and 64-bit
57 * addressing, big vs. little endian, etc.
92 /* per-channel registers */
190 return ddev->have_64bit_regs; in __is_dmac64()
195 return __is_dmac64(dc->ddev); in is_dmac64()
199 /* Hardware descriptor definition. (for simple-chain) */
[all …]
/kernel/linux/linux-4.19/drivers/dma/
Dtxx9dmac.h20 * be configured for memory-memory or device-memory transfer, but only
21 * one channel can do alignment-free memory-memory transfer at a time
26 * make one dedicated channel for memory-memory transfer. The
59 * Redefine this macro to handle differences between 32- and 64-bit
60 * addressing, big vs. little endian, etc.
95 /* per-channel registers */
193 return ddev->have_64bit_regs; in __is_dmac64()
198 return __is_dmac64(dc->ddev); in is_dmac64()
202 /* Hardware descriptor definition. (for simple-chain) */
242 return (dc->ccr & TXX9_DMA_CCR_INTENT) != 0; in txx9dmac_chan_INTENT()
[all …]

12345678910