/linux/Documentation/devicetree/bindings/pci/ |
H A D | nvidia,tegra20-pcie.txt | 4 - compatible: Must be: 5 - "nvidia,tegra20-pcie": for Tegra20 6 - "nvidia,tegra30-pcie": for Tegra30 7 - "nvidia,tegra124-pcie": for Tegra124 and Tegra132 8 - "nvidia,tegra210-pcie": for Tegra210 9 - "nvidia,tegra186-pcie": for Tegra186 10 - power-domains: To ungate power partition by BPMP powergate driver. Must 13 - device_type: Must be "pci" 14 - reg: A list of physical base address and length for each set of controller 15 registers. Must contain an entry for each entry in the reg-names property. [all …]
|
H A D | marvell,kirkwood-pcie.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/pci/marvell,kirkwood-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thomas Petazzoni <thomas.petazzoni@bootlin.com> 11 - Pali Rohár <pali@kernel.org> 14 - $ref: /schemas/pci/pci-host-bridge.yaml# 19 - marvell,armada-370-pcie 20 - marvell,armada-xp-pcie 21 - marvell,dove-pcie [all …]
|
/linux/drivers/soc/fsl/qbman/ |
H A D | bman_test_api.c | 1 /* Copyright 2008 - 2016 Freescale Semiconductor, Inc. 57 * LS-bits of buffer addresses, masking off the upper 8-bits on in bufs_cmp() 58 * release commands. The API provides for 48-bit addresses in bufs_cmp() 59 * because some SoCs support all 48-bits. When generating in bufs_cmp() 60 * garbage addresses for testing, we either need to zero the in bufs_cmp() 61 * upper 8-bits when releasing to BMan (otherwise we'll be in bufs_cmp() 63 * don't match), or we need to mask the upper 8-bits off when in bufs_cmp() 68 return -1; in bufs_cmp() 74 return -1; in bufs_cmp() 115 int num = 8; in bman_test_api() local [all …]
|
/linux/drivers/i2c/ |
H A D | i2c-atr.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Originally based on i2c-mux.c 11 #include <linux/i2c-atr.h> 22 #define ATR_MAX_SYMLINK_LEN 11 /* Longest name is 10 chars: "channel-99" */ 25 * struct i2c_atr_alias_pair - Holds the alias assigned to a client address. 33 * contains more distinct target addresses than the ATR channel can handle. 34 * It marks addresses that have already been attached to an alias so 47 * struct i2c_atr_alias_pool - Pool of client aliases available for an ATR. 66 * struct i2c_atr_chan - Data for a channel. 78 * @orig_addrs: Buffer used to store the original addresses during transmit [all …]
|
/linux/drivers/iio/magnetometer/ |
H A D | st_magn_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 42 /* Special L addresses for Sensor 2 */ 47 /* Special L addresses for sensor 3 */ 52 /* Special L addresses for sensor 4 */ 63 return &mdata->mount_matrix; in st_magn_get_mount_matrix() 177 .num = ST_MAGN_FS_AVL_1300MG, 183 .num = ST_MAGN_FS_AVL_1900MG, 189 .num = ST_MAGN_FS_AVL_2500MG, 195 .num = ST_MAGN_FS_AVL_4000MG, [all …]
|
/linux/tools/usb/usbip/src/ |
H A D | usbip_network.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * 2005-2007 Takahiro Hirofuchi 53 uint32_t usbip_net_pack_uint32_t(int pack, uint32_t num) in usbip_net_pack_uint32_t() argument 58 i = htonl(num); in usbip_net_pack_uint32_t() 60 i = ntohl(num); in usbip_net_pack_uint32_t() 65 uint16_t usbip_net_pack_uint16_t(int pack, uint16_t num) in usbip_net_pack_uint16_t() argument 70 i = htons(num); in usbip_net_pack_uint16_t() 72 i = ntohs(num); in usbip_net_pack_uint16_t() 79 udev->busnum = usbip_net_pack_uint32_t(pack, udev->busnum); in usbip_net_pack_usb_device() 80 udev->devnum = usbip_net_pack_uint32_t(pack, udev->devnum); in usbip_net_pack_usb_device() [all …]
|
/linux/include/linux/ |
H A D | remoteproc.h | 47 * struct resource_table - firmware resource table header 49 * @num: number of resource entries 75 u32 num; member 81 * struct fw_rsc_hdr - firmware resource entry header 95 * enum fw_resource_type - types of resource entries 99 * @RSC_DEVMEM: request to iommu_map a memory-based peripheral. 126 #define FW_RSC_ADDR_ANY (-1) 129 * struct fw_rsc_carveout - physically contiguous memory request 135 * @name: human-readable name of the requested memory region 149 * If the firmware is compiled with static addresses, then @da should specify [all …]
|
/linux/drivers/media/usb/au0828/ |
H A D | au0828-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <media/v4l2-common.h> 28 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_slave_did_read_ack() 51 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_read_busy() 74 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_write_done() 97 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_busy() 123 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_sendbytes() 124 u8 i2c_speed = dev->board.i2c_clk_divider; in i2c_sendbytes() 130 if (((dev->board.tuner_type == TUNER_XC5000) || in i2c_sendbytes() 131 (dev->board.tuner_type == TUNER_XC5000C)) && in i2c_sendbytes() [all …]
|
/linux/drivers/net/mdio/ |
H A D | mdio-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015-2016 Russell King 14 #include <linux/mdio/mdio-i2c.h> 19 * I2C bus addresses 0x50 and 0x51 are normally an EEPROM, which is 21 * addresses 16 and 17. Disallow access to these "phy" addresses. 36 struct i2c_adapter *i2c = bus->priv; in i2c_mii_read_default_c45() 54 msgs[0].len = p - addr; in i2c_mii_read_default_c45() 71 struct i2c_adapter *i2c = bus->priv; in i2c_mii_write_default_c45() 90 msg.len = p - data; in i2c_mii_write_default_c45() 100 return i2c_mii_read_default_c45(bus, phy_id, -1, reg); in i2c_mii_read_default_c22() [all …]
|
/linux/drivers/misc/bcm-vk/ |
H A D | bcm_vk_sg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright 2018-2020 Broadcom. 9 #include <linux/dma-mapping.h> 20 * [U32] num_sg = number of sg addresses (N) 23 * [U32] addr_l[0] = lower 32-bits of address0 24 * [U32] addr_h[0] = higher 32-bits of address0 26 * [U32] size[N-1] = size of data in addressN-1 27 * [U32] addr_l[N-1] = lower 32-bits of addressN-1 28 * [U32] addr_h[N-1] = higher 32-bits of addressN-1 45 * Scatter-gather DMA buffer API. [all …]
|
/linux/Documentation/devicetree/bindings/media/ |
H A D | stih407-c8sectpfe.txt | 14 - compatible : Should be "stih407-c8sectpfe" 16 - reg : Address and length of register sets for each device in 17 "reg-names" 19 - reg-names : The names of the register addresses corresponding to the 21 - c8sectpfe: c8sectpfe registers 22 - c8sectpfe-ram: c8sectpfe internal sram 24 - clocks : phandle list of c8sectpfe clocks 25 - clock-names : should be "c8sectpfe" 26 See: Documentation/devicetree/bindings/clock/clock-bindings.txt 28 - pinctrl-names : a pinctrl state named tsin%d-serial or tsin%d-parallel (where %d is tsin-num) [all …]
|
/linux/drivers/media/pci/zoran/ |
H A D | zr36016.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Zoran ZR36016 basic configuration functions - header file 14 int num; member 30 /* direct register addresses */ 36 /* indirect register addresses */
|
/linux/drivers/iio/chemical/ |
H A D | sen0322.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Possible I2C slave addresses: 34 ret = regmap_bulk_read(sen0322->regmap, SEN0322_REG_DATA, data, in sen0322_read_data() 42 * but it is multiplied by 100 here to avoid floating-point math in sen0322_read_data() 48 static int sen0322_read_scale(struct sen0322 *sen0322, int *num, int *den) in sen0322_read_scale() argument 53 ret = regmap_read(sen0322->regmap, SEN0322_REG_COEFF, &val); in sen0322_read_scale() 58 *num = val; in sen0322_read_scale() 60 } else { /* The device is not calibrated, using the factory-defaults. */ in sen0322_read_scale() 61 *num = 209; /* Oxygen content in the atmosphere is 20.9%. */ in sen0322_read_scale() 65 dev_dbg(regmap_get_device(sen0322->regmap), "scale: %d/%d\n", in sen0322_read_scale() [all …]
|
/linux/fs/jfs/ |
H A D | jfs_imap.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) International Business Machines Corp., 2000-2002 20 #define MAXIAGS ((1<<20)-1) /* maximum number of iags */ 36 ((((ino) & (INOSPEREXT-1)) >> L2INOSPERPAGE) << (l2nbperpg))) 73 /* allocation bit map: 1 bit per inode (0 - free, 1 - allocated) */ 76 pxd_t inoext[EXTSPERIAG]; /* 1024: inode extent addresses */ 102 __le32 in_numinos; /* 4: num of backed inodes */ 103 __le32 in_numfree; /* 4: num of free backed inodes */ 104 __le32 in_nbperiext; /* 4: num of blocks per inode extent */ 115 int in_numinos; /* num of backed inodes */ [all …]
|
/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-i2c-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <media/i2c/ir-kbd-i2c.h> 10 #include "pvrusb2-i2c-core.h" 11 #include "pvrusb2-hdw-internal.h" 12 #include "pvrusb2-debug.h" 13 #include "pvrusb2-fx2-cmd.h" 29 static int ir_mode[PVR_NUM] = { [0 ... PVR_NUM-1] = 1 }; 44 /* Return value - default 0 means success */ in pvr2_i2c_write() 49 if (length > (sizeof(hdw->cmd_buffer) - 3)) { in pvr2_i2c_write() 53 length,(unsigned int)(sizeof(hdw->cmd_buffer) - 3)); in pvr2_i2c_write() [all …]
|
/linux/drivers/media/usb/hdpvr/ |
H A D | hdpvr-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 struct IR_i2c_init_data *init_data = &dev->ir_i2c_init_data; in hdpvr_register_ir_i2c() 38 /* Our default information for ir-kbd-i2c.c to use */ in hdpvr_register_ir_i2c() 39 init_data->ir_codes = RC_MAP_HAUPPAUGE; in hdpvr_register_ir_i2c() 40 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; in hdpvr_register_ir_i2c() 41 init_data->type = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC6_MCE | in hdpvr_register_ir_i2c() 43 init_data->name = "HD-PVR"; in hdpvr_register_ir_i2c() 44 init_data->polling_interval = 405; /* ms, duplicated from Windows */ in hdpvr_register_ir_i2c() 47 return i2c_new_client_device(&dev->i2c_adapter, &info); in hdpvr_register_ir_i2c() 56 if ((len > sizeof(dev->i2c_buf)) || (wlen > sizeof(dev->i2c_buf))) in hdpvr_i2c_read() [all …]
|
/linux/include/uapi/linux/ |
H A D | virtio_ring.h | 42 /* This marks a buffer as write-only (otherwise read-only). */ 54 /* The Host uses this in used->flags to advise the Guest: don't kick me when 58 /* The Guest uses this in avail->flags to advise the Host: don't interrupt me 84 * at the end of the avail ring. Host should ignore the avail->flags field. */ 86 * at the end of the used ring. Guest should ignore the used->flags field. */ 90 * When using pre-virtio 1.0 layout, these fall out naturally. 97 * struct vring_desc - Virtio ring descriptors, 100 * @addr: buffer address (guest-physical) 138 * The ring element addresses are passed between components with different 139 * alignments assumptions. Thus, we might need to decrease the compiler-selected [all …]
|
H A D | vhost.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 /* Userspace interface for in-kernel virtio accelerators. */ 18 #define VHOST_FILE_UNBIND -1 72 /* Set addresses for the ring. */ 76 /* Get accessor: reads index, writes value in num */ 79 /* Set the vring byte order in num. Valid values are VHOST_VRING_LITTLE_ENDIAN 80 * or VHOST_VRING_BIG_ENDIAN (other values return -EINVAL). 82 * returns -EBUSY. 130 * used for transmit. Pass fd -1 to unbind from the socket and the transmit 152 * the device id defined in virtio-spec. [all …]
|
/linux/drivers/regulator/ |
H A D | max14577-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max14577.c - Regulator driver for the Maxim 14577/77836 12 #include <linux/mfd/max14577-private.h> 18 struct regmap *rmap = rdev->regmap; in max14577_reg_is_enabled() 32 return -EINVAL; in max14577_reg_is_enabled() 39 struct regmap *rmap = rdev->regmap; in max14577_reg_get_current_limit() 42 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_get_current_limit() 46 return -EINVAL; in max14577_reg_get_current_limit() 53 return limits->min; in max14577_reg_get_current_limit() 57 return limits->high_start + reg_data * limits->high_step; in max14577_reg_get_current_limit() [all …]
|
/linux/fs/nfs/filelayout/ |
H A D | filelayoutdev.c | 51 nfs4_print_deviceid(&dsaddr->id_node.deviceid); in nfs4_fl_free_deviceid() 53 for (i = 0; i < dsaddr->ds_num; i++) { in nfs4_fl_free_deviceid() 54 ds = dsaddr->ds_list[i]; in nfs4_fl_free_deviceid() 58 kfree(dsaddr->stripe_indices); in nfs4_fl_free_deviceid() 68 u32 cnt, num; in nfs4_fl_alloc_deviceid_node() local 79 struct net *net = server->nfs_client->cl_net; in nfs4_fl_alloc_deviceid_node() 86 xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen); in nfs4_fl_alloc_deviceid_node() 125 num = be32_to_cpup(p); in nfs4_fl_alloc_deviceid_node() 126 dprintk("%s ds_num %u\n", __func__, num); in nfs4_fl_alloc_deviceid_node() 127 if (num > NFS4_PNFS_MAX_MULTI_CNT) { in nfs4_fl_alloc_deviceid_node() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | tc_flower_scale.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # number of flower matches for different IPv6 addresses, then check the offload 56 if [[ -v TC_FLOWER_BATCH_FILE ]]; then 57 rm -f $TC_FLOWER_BATCH_FILE 63 local num=$1; shift 65 printf "2001:db8:1::%x" $num 76 cat >> $TC_FLOWER_BATCH_FILE <<-EOF 86 tc -b $TC_FLOWER_BATCH_FILE 94 local last=$((count - 1)) 98 offload_count=$(tc -j -s filter show dev $h2 ingress | [all …]
|
/linux/sound/core/seq/ |
H A D | seq_ports.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 43 /* return pointer to port structure - port is locked if found */ 45 int num) in snd_seq_port_use_ptr() argument 51 guard(read_lock)(&client->ports_lock); in snd_seq_port_use_ptr() 52 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr() 53 if (port->addr.port == num) { in snd_seq_port_use_ptr() 54 if (port->closing) in snd_seq_port_use_ptr() 56 snd_use_lock_use(&port->use_lock); in snd_seq_port_use_ptr() 64 /* search for the next port - port is locked if found */ 68 int num; in snd_seq_port_query_nearest() local [all …]
|
/linux/drivers/hwmon/ |
H A D | asb100.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * asb100.c - Part of lm_sensors, Linux kernel modules for hardware 10 * Copyright (C) 1998 - 2003 Frodo Looijaard <frodol@dds.nl>, 17 * ASB100-A "BACH". 19 * ASB100-A supports pwm1, while plain ASB100 does not. There is no known 32 #include <linux/hwmon-sysfs.h> 33 #include <linux/hwmon-vid.h> 40 /* I2C addresses to scan */ 46 "List of subclient addresses: {bus, clientaddr, subclientaddr1, subclientaddr2}"); 48 /* Voltage IN registers 0-6 */ [all …]
|
/linux/drivers/gpu/drm/ingenic/ |
H A D | ingenic-ipu.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include "ingenic-drm.h" 9 #include "ingenic-ipu.h" 71 /* Signed 15.16 fixed-point math (for bicubic scaling coefficients) */ 75 #define SHARPNESS_INCR (I2F(-1) / 8) 93 priv_state = drm_atomic_get_private_obj_state(state, &priv->private_obj); in ingenic_ipu_get_priv_state() 105 priv_state = drm_atomic_get_new_private_obj_state(state, &priv->private_obj); in ingenic_ipu_get_new_priv_state() 114 * and return value are 15.16 signed fixed-point. 116 * @f_a: Sharpness factor, typically in range [-4.0, -0.25]. 118 * -2.0 might cause ringing artifacts to outweigh any improvement. [all …]
|
/linux/sound/firewire/bebob/ |
H A D | bebob.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * bebob.h - a part of driver for BeBoB based devices 5 * Copyright (c) 2013-2014 Takashi Sakamoto 14 #include <linux/firewire-constants.h> 32 #include "../packets-buffer.h" 33 #include "../iso-resources.h" 34 #include "../amdtp-am824.h" 37 /* basic register addresses on DM1000/DM1100/DM1500 */ 58 unsigned int num; member 68 unsigned int num; member [all …]
|