/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_port.c | 1 // SPDX-License-Identifier: GPL-2.0+ 31 status->an_complete = true; in decode_sgmii_word() 33 status->link = false; in decode_sgmii_word() 39 status->speed = SPEED_10; in decode_sgmii_word() 42 status->speed = SPEED_100; in decode_sgmii_word() 45 status->speed = SPEED_1000; in decode_sgmii_word() 48 status->link = false; in decode_sgmii_word() 52 status->duplex = DUPLEX_FULL; in decode_sgmii_word() 54 status->duplex = DUPLEX_HALF; in decode_sgmii_word() 59 status->link = !(lp_abil & ADVERTISE_RFAULT) && status->link; in decode_cl37_word() [all …]
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_port.c | 1 // SPDX-License-Identifier: GPL-2.0+ 17 value = (MULTIPLIER_BIT - 1); in lan966x_wm_enc() 27 struct lan966x *lan966x = port->lan966x; in lan966x_port_link_down() 35 lan966x, AFI_PORT_CFG(port->chip_port)); in lan966x_port_link_down() 39 val = lan_rd(lan966x, AFI_PORT_FRM_OUT(port->chip_port)); in lan966x_port_link_down() 46 pr_err("AFI timeout chip port %u", port->chip_port); in lan966x_port_link_down() 56 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_link_down() 61 lan966x, DEV_MAC_ENA_CFG(port->chip_port)); in lan966x_port_link_down() 66 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_down() 71 lan966x, QSYS_PORT_MODE(port->chip_port)); in lan966x_port_link_down() [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | gpio-fan.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/hwmon/gpio-fan.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 14 const: gpio-fan 18 Specifies the pins that map to bits in the control value, 19 ordered MSB-->LSB. 23 alarm-gpios: 26 gpio-fan,speed-map: [all …]
|
/linux/drivers/hwmon/ |
H A D | gpio-fan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * gpio-fan.c - Hwmon driver for fans connected to GPIO lines. 39 struct gpio_fan_speed *speed; member 56 sysfs_notify(&fan_data->hwmon_dev->kobj, NULL, "fan1_alarm"); in fan_alarm_notify() 57 kobject_uevent(&fan_data->hwmon_dev->kobj, KOBJ_CHANGE); in fan_alarm_notify() 64 schedule_work(&fan_data->alarm_work); in fan_alarm_irq_handler() 75 gpiod_get_value_cansleep(fan_data->alarm_gpio)); in fan1_alarm_show() 83 struct device *dev = fan_data->dev; in fan_alarm_init() 89 alarm_irq = gpiod_to_irq(fan_data->alarm_gpio); in fan_alarm_init() 93 INIT_WORK(&fan_data->alarm_work, fan_alarm_notify); in fan_alarm_init() [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-designware-core.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 192 * struct dw_i2c_dev - private i2c-designware data 194 * @map: IO registers map 195 * @sysmap: System controller registers map 203 * @get_clk_rate_khz: callback to retrieve IP specific bus speed 225 * @rx_outstanding: current master-rx elements in tx fifo 228 * @ss_hcnt: standard speed HCNT value 229 * @ss_lcnt: standard speed LCNT value 230 * @fs_hcnt: fast speed HCNT value 231 * @fs_lcnt: fast speed LCNT value [all …]
|
H A D | i2c-designware-master.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 #include "i2c-designware-core.h" 36 regmap_write(dev->map, DW_IC_TX_TL, dev->tx_fifo_depth / 2); in i2c_dw_configure_fifo_master() 37 regmap_write(dev->map, DW_IC_RX_TL, 0); in i2c_dw_configure_fifo_master() 40 regmap_write(dev->map, DW_IC_CON, dev->master_cfg); in i2c_dw_configure_fifo_master() 47 struct i2c_timings *t = &dev->timings; in i2c_dw_set_timings_master() 56 ret = regmap_read(dev->map, DW_IC_COMP_PARAM_1, &comp_param1); in i2c_dw_set_timings_master() 61 /* Set standard and fast speed dividers for high/low periods */ in i2c_dw_set_timings_master() 62 sda_falling_time = t->sda_fall_ns ?: 300; /* ns */ in i2c_dw_set_timings_master() 63 scl_falling_time = t->scl_fall_ns ?: 300; /* ns */ in i2c_dw_set_timings_master() [all …]
|
H A D | i2c-designware-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 #include "i2c-designware-core.h" 64 "incorrect slave-transmitter mode configuration", 71 *val = readl(dev->base + reg); in dw_reg_read() 80 writel(val, dev->base + reg); in dw_reg_write() 89 *val = swab32(readl(dev->base + reg)); in dw_reg_read_swab() 98 writel(swab32(val), dev->base + reg); in dw_reg_write_swab() 107 *val = readw(dev->base + reg) | in dw_reg_read_word() 108 (readw(dev->base + reg + 2) << 16); in dw_reg_read_word() 117 writew(val, dev->base + reg); in dw_reg_write_word() [all …]
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | nvidia,tegra194-xusb-padctl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/phy/nvidia,tegra194-xusb-padctl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 21 Some of the lanes are high-speed lanes, which can be used for PCIe, SATA or 22 super-speed USB. Other lanes are for various types of low-speed, full-speed 23 or high-speed USB (such as UTMI, ULPI and HSIC). The XUSB pad controller 24 contains a software-configurable mux that sits between the I/O controller [all …]
|
H A D | realtek,usb2phy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Stanley Chang <stanley_chang@realtek.com> 21 Each XHCI maps to one USB 2.0 PHY and map one USB 3.0 PHY on some 23 XHCI controller#0 -- usb2phy -- phy#0 24 |- usb3phy -- phy#0 25 XHCI controller#1 -- usb2phy -- phy#0 26 XHCI controller#2 -- usb2phy -- phy#0 27 |- usb3phy -- phy#0 [all …]
|
/linux/sound/usb/ |
H A D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 /* convert our full speed USB rate into sampling rate in Hz */ 24 /* convert our high speed USB rate into sampling rate in Hz */ 35 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbbus_read() 36 if (!atomic_read(&chip->shutdown)) in proc_audio_usbbus_read() 37 snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip->dev->devnum); in proc_audio_usbbus_read() 42 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbid_read() 43 if (!atomic_read(&chip->shutdown)) in proc_audio_usbid_read() 45 USB_ID_VENDOR(chip->usb_id), in proc_audio_usbid_read() 46 USB_ID_PRODUCT(chip->usb_id)); in proc_audio_usbid_read() [all …]
|
/linux/usr/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 11 space-separated list of directories and files for building the 21 See <file:Documentation/driver-api/early-userspace/early_userspace_support.rst> for more details. 36 int "User ID to map to 0 (user root)" 41 (-1 = current user) will be owned by root in the resulting image. 46 int "Group ID to map to 0 (group root)" 51 (-1 = current group) will be owned by root in the resulting image. 112 prompt "Built-in initramfs compression mode" 118 decompression speed. Compression speed is only relevant 119 when building a kernel. Decompression speed is relevant at [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | intel-gw-pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/intel-gw-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rahul Tanwar <rtanwar@maxlinear.com> 16 const: intel,lgm-pcie 18 - compatible 21 - $ref: /schemas/pci/snps,dw-pcie.yaml# 26 - const: intel,lgm-pcie 27 - const: snps,dw-pcie [all …]
|
H A D | toshiba,visconti-pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/toshiba,visconti-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> 16 - $ref: /schemas/pci/snps,dw-pcie.yaml# 20 const: toshiba,visconti-pcie 24 - description: Data Bus Interface (DBI) registers. 25 - description: PCIe configuration space region. 26 - description: Visconti specific additional registers. [all …]
|
H A D | ti,j721e-pci-host.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ 4 --- 5 $id: http://devicetree.org/schemas/pci/ti,j721e-pci-host.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Kishon Vijay Abraham I <kishon@ti.com> 16 - const: ti,j721e-pcie-host 17 - const: ti,j784s4-pcie-host 18 - description: PCIe controller in AM64 20 - const: ti,am64-pcie-host [all …]
|
/linux/net/ethtool/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 [NETIF_F_SG_BIT] = "tx-scatter-gather", 14 [NETIF_F_IP_CSUM_BIT] = "tx-checksum-ipv4", 15 [NETIF_F_HW_CSUM_BIT] = "tx-checksum-ip-generic", 16 [NETIF_F_IPV6_CSUM_BIT] = "tx-checksum-ipv6", 18 [NETIF_F_FRAGLIST_BIT] = "tx-scatter-gather-fraglist", 19 [NETIF_F_HW_VLAN_CTAG_TX_BIT] = "tx-vlan-hw-insert", 21 [NETIF_F_HW_VLAN_CTAG_RX_BIT] = "rx-vlan-hw-parse", 22 [NETIF_F_HW_VLAN_CTAG_FILTER_BIT] = "rx-vlan-filter", 23 [NETIF_F_HW_VLAN_STAG_TX_BIT] = "tx-vlan-stag-hw-insert", [all …]
|
/linux/arch/powerpc/boot/dts/ |
H A D | rainier.dts | 15 /dts-v1/; 18 #address-cells = <2>; 19 #size-cells = <1>; 22 dcr-parent = <&{/cpus/cpu@0}>; 34 #address-cells = <1>; 35 #size-cells = <0>; 41 clock-frequency = <0>; /* Filled in by zImage */ 42 timebase-frequency = <0>; /* Filled in by zImage */ 43 i-cache-line-size = <32>; 44 d-cache-line-size = <32>; [all …]
|
H A D | bamboo.dts | 14 /dts-v1/; 17 #address-cells = <2>; 18 #size-cells = <1>; 21 dcr-parent = <&{/cpus/cpu@0}>; 33 #address-cells = <1>; 34 #size-cells = <0>; 40 clock-frequency = <0>; /* Filled in by zImage */ 41 timebase-frequency = <0>; /* Filled in by zImage */ 42 i-cache-line-size = <32>; 43 d-cache-line-size = <32>; [all …]
|
H A D | sequoia.dts | 15 /dts-v1/; 18 #address-cells = <2>; 19 #size-cells = <1>; 22 dcr-parent = <&{/cpus/cpu@0}>; 34 #address-cells = <1>; 35 #size-cells = <0>; 41 clock-frequency = <0>; /* Filled in by zImage */ 42 timebase-frequency = <0>; /* Filled in by zImage */ 43 i-cache-line-size = <32>; 44 d-cache-line-size = <32>; [all …]
|
H A D | yosemite.dts | 12 /dts-v1/; 15 #address-cells = <2>; 16 #size-cells = <1>; 19 dcr-parent = <&{/cpus/cpu@0}>; 31 #address-cells = <1>; 32 #size-cells = <0>; 38 clock-frequency = <0>; /* Filled in by zImage */ 39 timebase-frequency = <0>; /* Filled in by zImage */ 40 i-cache-line-size = <32>; 41 d-cache-line-size = <32>; [all …]
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | maxim,max8952.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 - $ref: regulator.yaml# 19 max8952,default-mode: 25 max8952,dvs-mode-microvolt: 35 max8952,en-gpio: 40 max8952,ramp-speed: 45 Voltage ramp speed, values map to: [all …]
|
/linux/drivers/net/ethernet/hisilicon/ |
H A D | hip04_eth.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 155 #define TX_NEXT(N) (((N) + 1) & (TX_DESC_NUM-1)) 156 #define RX_NEXT(N) (((N) + 1) & (RX_DESC_NUM-1)) 165 #define DRV_NAME "hip04-ether" 218 unsigned int speed; member 244 struct regmap *map; member 253 return (head - tail) % TX_DESC_NUM; in tx_count() 256 static void hip04_config_port(struct net_device *ndev, u32 speed, u32 duplex) in hip04_config_port() argument 261 priv->speed = speed; in hip04_config_port() 262 priv->duplex = duplex; in hip04_config_port() [all …]
|
/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | thunder_xcv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 70 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw() 72 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw() 75 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw() 77 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw() 81 /* Configure DLL - enable or bypass in xcv_init_hw() 84 cfg = readq_relaxed(xcv->reg_base + XCV_DLL_CTL); in xcv_init_hw() 87 writeq_relaxed(cfg, xcv->reg_base + XCV_DLL_CTL); in xcv_init_hw() 92 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw() 94 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw() [all …]
|
/linux/arch/mips/include/uapi/asm/ |
H A D | termbits.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 14 #include <asm-generic/termbits-common.h> 39 speed_t c_ispeed; /* input speed */ 40 speed_t c_ospeed; /* output speed */ 50 speed_t c_ispeed; /* input speed */ 51 speed_t c_ospeed; /* output speed */ 58 #define VKILL 3 /* Kill-line character [ICANON] */ 60 #define VTIME 5 /* Time-out value (tenths of a second) [!ICANON] */ 64 #define VSTART 8 /* Start (X-ON) character [IXON, IXOFF] */ 65 #define VSTOP 9 /* Stop (X-OFF) character [IXON, IXOFF] */ [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/lan969x/ |
H A D | lan969x_calendar.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 /* Each entry in the following struct defines properties for a given speed 24 /* Number of devices that requires this speed. */ 27 /* Array of devices that requires this speed. */ 30 /* Number of slots required for one device running this speed. */ 33 /* Gap between two slots for one device running this speed. */ 49 return -EINVAL; in lan969x_dsm_cal_idx_get() 58 return -ENOENT; in lan969x_dsm_cal_idx_get() 61 static enum lan969x_dsm_cal_dev lan969x_dsm_cal_get_dev(int speed) in lan969x_dsm_cal_get_dev() argument 63 return (speed == 10000 ? DSM_CAL_DEV_10G : in lan969x_dsm_cal_get_dev() [all …]
|
/linux/Documentation/arch/m68k/ |
H A D | buddha-driver.rst | 8 ------------------------------------------------------------------------ 10 Register map of the Buddha IDE controller and the 11 Buddha-part of the Catweasel Zorro-II version 21 product number: 0 (42 for Catweasel Z-II) 23 Rom-vector: $1000 25 The card should be a Z-II board, size 64K, not for freemem 26 list, Rom-Vektor is valid, no second Autoconfig-board on the 30 as the Amiga Kickstart does: The lower nibble of the 8-Bit 36 otherwise your chance is only 1:16 to find the board :-). 38 The local memory-map is even active when mapped to $e8: [all …]
|