| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | resource_tracker.c | 17 * - Redistributions of source code must retain the above 21 * - Redistributions in binary form must reproduce the above 228 /* > 0 --> apply mirror when getting into HA mode */ 229 /* = 0 --> un-apply mirror when getting out of HA mode */ 237 struct rb_node *node = root->rb_node; in res_tracker_lookup() 243 if (res_id < res->res_id) in res_tracker_lookup() 244 node = node->rb_left; in res_tracker_lookup() 245 else if (res_id > res->res_id) in res_tracker_lookup() 246 node = node->rb_right; in res_tracker_lookup() 255 struct rb_node **new = &(root->rb_node), *parent = NULL; in res_tracker_insert() [all …]
|
| H A D | eq.c | 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 38 #include <linux/dma-mapping.h> 86 static u64 get_async_ev_mask(struct mlx4_dev *dev) in get_async_ev_mask() argument 89 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV) in get_async_ev_mask() 91 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT) in get_async_ev_mask() 99 __raw_writel((__force u32) cpu_to_be32((eq->cons_index & 0xffffff) | in eq_set_ci() 101 eq->doorbell); in eq_set_ci() 109 /* (entry & (eq->nent - 1)) gives us a cyclic array */ in get_eqe() 110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; in get_eqe() [all …]
|
| H A D | mlx4.h | 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 41 #include <linux/radix-tree.h> 60 #define DRV_VERSION "4.0-0" 88 MLX4_MAX_QP_PER_MGM = 4 * ((1 << MLX4_MAX_MGM_LOG_ENTRY_SIZE) / 16 - 2), 134 /*The flag indicates that the slave should delay the RESET cmd*/ 205 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, 207 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, 223 &(mdev)->persist->pdev->dev, format, \ 228 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) [all …]
|
| /linux/drivers/fsi/ |
| H A D | fsi-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - Rework topology 9 * - s/chip_id/chip_loc 10 * - s/cfam/chip (cfam_id -> chip_id etc...) 27 #include "fsi-master.h" 28 #include "fsi-slave.h" 51 * FSI slave engine control register offsets 55 #define FSI_SSTAT 0x14 /* R : Slave status */ 94 /* Legacy /dev numbering: 4 devices per chip, 16 chips */ 105 static int fsi_bus_match(struct device *dev, const struct device_driver *drv) in fsi_bus_match() argument [all …]
|
| /linux/drivers/net/bonding/ |
| H A D | bond_main.c | 1 // SPDX-License-Identifier: GPL-1.0+ 21 * the first slave bonded to the channel. All slaves will then use 28 * will attach eth0 to bond0 as a slave. eth0 hw mac address will either 96 /*---------------------------- Module parameters ----------------------------*/ 145 MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, " 146 "1 for active-backup, 2 for balance-xor, " 147 "3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, " 148 "6 for balance-alb"); 152 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave " 157 "2 for only on active slave " [all …]
|
| H A D | bond_3ad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved. 52 * -------------------------------------------------------------- 54 * -------------------------------------------------------------- 124 * __get_bond_by_port - get the port's bonding struct 131 if (port->slave == NULL) in __get_bond_by_port() 134 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port() 138 * __get_first_agg - get the first aggregator in the bond 141 * Return the aggregator of the first slave in @bond, or %NULL if it can't be 148 struct slave *first_slave; in __get_first_agg() [all …]
|
| H A D | bond_options.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/net/bond/bond_options.c - bonding options 97 { "balance-rr", BOND_MODE_ROUNDROBIN, BOND_VALFLAG_DEFAULT}, 98 { "active-backup", BOND_MODE_ACTIVEBACKUP, 0}, 99 { "balance-xor", BOND_MODE_XOR, 0}, 102 { "balance-tlb", BOND_MODE_TLB, 0}, 103 { "balance-alb", BOND_MODE_ALB, 0}, 104 { NULL, -1, 0}, 110 { NULL, -1, 0}, 120 { NULL, -1, 0}, [all …]
|
| /linux/drivers/soundwire/ |
| H A D | bus_type.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright(c) 2015-17 Intel Corporation. 14 * sdw_get_device_id - find the matching SoundWire device id 15 * @slave: SoundWire Slave Device 16 * @drv: SoundWire Slave Driver 22 sdw_get_device_id(struct sdw_slave *slave, const struct sdw_driver *drv) in sdw_get_device_id() argument 26 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id() 27 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id() 28 slave->id.part_id == id->part_id && in sdw_get_device_id() 29 (!id->sdw_version || in sdw_get_device_id() [all …]
|
| H A D | mipi_disco.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2 // Copyright(c) 2015-17 Intel Corporation. 10 * The helper functions read the Master and Slave properties. Implementers 11 * of Master or Slave drivers can use any of the below three mechanisms: 12 * a) Use these APIs here as .read_prop() callback for Master and Slave 40 static bool mipi_device_property_read_bool(const struct device *dev, in mipi_device_property_read_bool() argument 43 return mipi_fwnode_property_read_bool(dev_fwnode(dev), propname); in mipi_device_property_read_bool() 47 * sdw_master_read_prop() - Read Master properties 52 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() 60 device_property_read_u32(bus->dev, in sdw_master_read_prop() [all …]
|
| /linux/include/net/ |
| H A D | bonding.h | 1 /* SPDX-License-Identifier: GPL-1.0+ */ 5 * Portions are (c) Copyright 1995 Simon "Guru Aleph-Null" Janes 43 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 45 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 47 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 49 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 51 #define BOND_MODE(bond) ((bond)->params.mode) 53 /* slave list primitives */ 54 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower) 61 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \ [all …]
|
| /linux/drivers/net/ |
| H A D | eql.c | 2 * Equalizer Load-balancer for serial network interfaces. 4 * (c) Copyright 1995 Simon "Guru Aleph-Null" Janes 17 * Phone: 1-703-847-0040 ext 103 33 * Added one-line eql_remove_slave patch. 47 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) - 52 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) - 56 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) - 60 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) - 74 * Broken set-bit locking snapshot 80 * Log trimmed of non-pertinent 1.x branch messages [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | rt5682-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt5682-sdw.c -- RT5682 ALSA SoC audio component driver 27 #include <sound/soc-dapm.h> 41 struct device *dev = context; in rt5682_sdw_read() local 42 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_read() 60 struct device *dev = context; rt5682_sdw_write() local 297 rt5682_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt5682_sdw_init() argument 298 rt5682_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt5682_sdw_init() argument 368 rt5682_io_init(struct device * dev,struct sdw_slave * slave) rt5682_io_init() argument 484 rt5682_sdw_readable_register(struct device * dev,unsigned int reg) rt5682_sdw_readable_register() argument 511 rt5682_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt5682_update_status() argument 530 rt5682_read_prop(struct sdw_slave * slave) rt5682_read_prop() argument 602 rt5682_clock_config(struct device * dev) rt5682_clock_config() argument 640 rt5682_bus_config(struct sdw_slave * slave,struct sdw_bus_params * params) rt5682_bus_config() argument 655 rt5682_interrupt_callback(struct sdw_slave * slave,struct sdw_slave_intr_status * status) rt5682_interrupt_callback() argument 680 rt5682_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt5682_sdw_probe() argument 693 rt5682_sdw_remove(struct sdw_slave * slave) rt5682_sdw_remove() argument 711 rt5682_dev_suspend(struct device * dev) rt5682_dev_suspend() argument 727 rt5682_dev_system_suspend(struct device * dev) rt5682_dev_system_suspend() argument 730 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt5682_dev_system_suspend() local 755 rt5682_dev_resume(struct device * dev) rt5682_dev_resume() argument 757 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt5682_dev_resume() local [all...] |
| H A D | rt722-sdca-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt722-sdca-sdw.c -- rt722 SDCA ALSA SoC audio driver 16 #include "rt722-sdca.h" 17 #include "rt722-sdc 19 rt722_sdca_mbq_size(struct device * dev,unsigned int reg) rt722_sdca_mbq_size() argument 154 rt722_sdca_readable_register(struct device * dev,unsigned int reg) rt722_sdca_readable_register() argument 159 rt722_sdca_volatile_register(struct device * dev,unsigned int reg) rt722_sdca_volatile_register() argument 208 rt722_sdca_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt722_sdca_update_status() argument 242 rt722_sdca_read_prop(struct sdw_slave * slave) rt722_sdca_read_prop() argument 314 rt722_sdca_interrupt_callback(struct sdw_slave * slave,struct sdw_slave_intr_status * status) rt722_sdca_interrupt_callback() argument 416 rt722_sdca_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt722_sdca_sdw_probe() argument 429 rt722_sdca_sdw_remove(struct sdw_slave * slave) rt722_sdca_sdw_remove() argument 453 rt722_sdca_dev_suspend(struct device * dev) rt722_sdca_dev_suspend() argument 468 rt722_sdca_dev_system_suspend(struct device * dev) rt722_sdca_dev_system_suspend() argument 471 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_system_suspend() local 500 rt722_sdca_dev_resume(struct device * dev) rt722_sdca_dev_resume() argument 502 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_resume() local [all...] |
| H A D | max98363.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 static bool max98363_readable_register(struct device *dev, unsigned int reg) in max98363_readable_register() argument 49 static bool max98363_volatile_reg(struct device *dev, unsigned int reg) in max98363_volatile_reg() argument 77 static int max98363_suspend(struct device *dev) in max98363_suspend() argument 79 struct max98363_priv *max98363 = dev_get_drvdata(dev); in max98363_suspend() 81 regcache_cache_only(max98363->regmap, true); in max98363_suspend() 82 regcache_mark_dirty(max98363->regmap); in max98363_suspend() 89 static int max98363_resume(struct device *dev) in max98363_resume() argument 91 struct sdw_slave *slave = dev_to_sdw_dev(dev); in max98363_resume() local 92 struct max98363_priv *max98363 = dev_get_drvdata(dev); in max98363_resume() [all …]
|
| H A D | rt1308-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // rt1308-sdw.c -- rt1308 ALSA SoC audio driver 22 #include <sound/soc-dapm.h> 26 #include "rt1308-sdw.h" 28 static bool rt1308_readable_register(struct device *dev, unsigned int reg) in rt1308_readable_register() argument 45 static bool rt1308_volatile_register(struct device *dev, unsigne argument 85 rt1308_clock_config(struct device * dev) rt1308_clock_config() argument 123 rt1308_read_prop(struct sdw_slave * slave) rt1308_read_prop() argument 213 rt1308_io_init(struct device * dev,struct sdw_slave * slave) rt1308_io_init() argument 301 rt1308_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt1308_update_status() argument 320 rt1308_bus_config(struct sdw_slave * slave,struct sdw_bus_params * params) rt1308_bus_config() argument 335 rt1308_interrupt_callback(struct sdw_slave * slave,struct sdw_slave_intr_status * status) rt1308_interrupt_callback() argument 599 rt1308_sdw_parse_dt(struct rt1308_sdw_priv * rt1308,struct device * dev) rt1308_sdw_parse_dt() argument 679 rt1308_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt1308_sdw_init() argument 680 rt1308_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt1308_sdw_init() argument 729 rt1308_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt1308_sdw_probe() argument 742 rt1308_sdw_remove(struct sdw_slave * slave) rt1308_sdw_remove() argument 755 rt1308_dev_suspend(struct device * dev) rt1308_dev_suspend() argument 769 rt1308_dev_resume(struct device * dev) rt1308_dev_resume() argument 771 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt1308_dev_resume() local [all...] |
| H A D | rt1017-sdca-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt1017-sdca-sdw.c -- rt1017 SDCA ALSA SoC amplifier audio driver 18 #include <sound/soc-dapm.h> 22 #include "rt1017-sdc 24 rt1017_sdca_readable_register(struct device * dev,unsigned int reg) rt1017_sdca_readable_register() argument 112 rt1017_sdca_volatile_register(struct device * dev,unsigned int reg) rt1017_sdca_volatile_register() argument 257 rt1017_sdca_read_prop(struct sdw_slave * slave) rt1017_sdca_read_prop() argument 319 rt1017_sdca_io_init(struct device * dev,struct sdw_slave * slave) rt1017_sdca_io_init() argument 371 rt1017_sdca_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt1017_sdca_update_status() argument 702 rt1017_sdca_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt1017_sdca_init() argument 703 rt1017_sdca_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt1017_sdca_init() argument 731 rt1017_sdca_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt1017_sdca_sdw_probe() argument 744 rt1017_sdca_sdw_remove(struct sdw_slave * slave) rt1017_sdca_sdw_remove() argument 760 rt1017_sdca_dev_suspend(struct device * dev) rt1017_sdca_dev_suspend() argument 774 rt1017_sdca_dev_resume(struct device * dev) rt1017_sdca_dev_resume() argument 776 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt1017_sdca_dev_resume() local [all...] |
| H A D | max98373-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include "max98373-sdw.h" 178 static bool max98373_readable_register(struct device *dev, unsigned int reg) in max98373_readable_register() argument 214 static bool max98373_volatile_reg(struct device *dev, unsigned int reg) in max98373_volatile_reg() argument 249 static int max98373_suspend(struct device *dev) in max98373_suspend() argument 251 struct max98373_priv *max98373 = dev_get_drvdata(dev); in max98373_suspend() 255 for (i = 0; i < max98373->cache_nu in max98373_suspend() 265 max98373_resume(struct device * dev) max98373_resume() argument 267 struct sdw_slave *slave = dev_to_sdw_dev(dev); max98373_resume() local 299 max98373_read_prop(struct sdw_slave * slave) max98373_read_prop() argument 359 max98373_io_init(struct sdw_slave * slave) max98373_io_init() argument 361 struct device *dev = &slave->dev; max98373_io_init() local 466 max98373_clock_calculate(struct sdw_slave * slave,unsigned int clk_freq) max98373_clock_calculate() argument 486 max98373_clock_config(struct sdw_slave * slave,struct sdw_bus_params * params) max98373_clock_config() argument 489 struct device *dev = &slave->dev; max98373_clock_config() local 728 max98373_init(struct sdw_slave * slave,struct regmap * regmap) max98373_init() argument 733 struct device *dev = &slave->dev; max98373_init() local 789 max98373_update_status(struct sdw_slave * slave,enum sdw_slave_status status) max98373_update_status() argument 807 max98373_bus_config(struct sdw_slave * slave,struct sdw_bus_params * params) max98373_bus_config() argument 829 max98373_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) max98373_sdw_probe() argument 842 max98373_sdw_remove(struct sdw_slave * slave) max98373_sdw_remove() argument [all...] |
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | mad.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 63 #define GET_BLK_PTR_FROM_EQE(eqe) be32_to_cpu(eqe->event.port_mgmt_change.params.tbl_change_info.bl… 64 #define GET_MASK_FROM_EQE(eqe) be32_to_cpu(eqe->event.port_mgmt_change.params.tbl_change_info.tbl_e… 91 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u32 port_num); 92 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u32 port_num); 93 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num, 104 return cpu_to_be64(atomic_inc_return(&ctx->tid)) | in mlx4_ib_get_new_demux_tid() 108 int mlx4_MAD_IFC(struct mlx4_ib_dev *dev, int mad_ifc_flags, in mlx4_MAD_IFC() argument 119 inmailbox = mlx4_alloc_cmd_mailbox(dev->dev); in mlx4_MAD_IFC() [all …]
|
| H A D | sysfs.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 42 * 0 - requests opensm to assign a value. 43 * ffffffffffffffff - delete this entry. 44 * other - value assigned by administrator. 46 static ssize_t show_admin_alias_guid(struct device *dev, in show_admin_alias_guid() argument 51 struct mlx4_ib_iov_port *port = mlx4_ib_iov_dentry->ctx; in show_admin_alias_guid() 52 struct mlx4_ib_dev *mdev = port->dev; in show_admin_alias_guid() 55 sysadmin_ag_val = mlx4_get_admin_guid(mdev->dev, in show_admin_alias_guid() 56 mlx4_ib_iov_dentry->entry_num, in show_admin_alias_guid() [all …]
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | cpsw-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 static int davinci_emac_3517_get_macid(struct device *dev, u16 offset, in davinci_emac_3517_get_macid() argument 15 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument 21 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in davinci_emac_3517_get_macid() 23 if (PTR_ERR(syscon) == -ENODEV) in davinci_emac_3517_get_macid() 28 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); in davinci_emac_3517_get_macid() 29 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); in davinci_emac_3517_get_macid() 41 static int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave, in cpsw_am33xx_cm_get_macid() argument 48 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in cpsw_am33xx_cm_get_macid() 50 if (PTR_ERR(syscon) == -ENODEV) in cpsw_am33xx_cm_get_macid() [all …]
|
| H A D | cpsw-phy-sel.c | 1 // SPDX-License-Identifier: GPL-2.0 31 struct device *dev; member 35 phy_interface_t phy_mode, int slave); 40 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() argument 47 reg = readl(priv->gmii_sel); in cpsw_gmii_sel_am3352() 66 dev_warn(priv->dev, in cpsw_gmii_sel_am3352() 75 mask = GMII_SEL_MODE_MASK << (slave * 2) | BIT(slave + 6); in cpsw_gmii_sel_am3352() 76 mask |= BIT(slave + 4); in cpsw_gmii_sel_am3352() 77 mode <<= slave * 2; in cpsw_gmii_sel_am3352() 79 if (priv->rmii_clock_external) { in cpsw_gmii_sel_am3352() [all …]
|
| /linux/drivers/base/regmap/ |
| H A D | regmap-sdw-mbq.c | 1 // SPDX-License-Identifier: GPL-2.0 17 struct device *dev; member 20 bool (*readable_reg)(struct device *dev, unsigned int reg); 29 int size = ctx->val_size; in regmap_sdw_mbq_size() 31 if (ctx->cfg.mbq_size) { in regmap_sdw_mbq_size() 32 size = ctx->cfg.mbq_size(ctx->dev, reg); in regmap_sdw_mbq_size() 33 if (!size || size > ctx->val_size) in regmap_sdw_mbq_size() 34 return -EINVAL; in regmap_sdw_mbq_size() 42 if (ctx->cfg.deferrable) in regmap_sdw_mbq_deferrable() 43 return ctx->cfg.deferrable(ctx->dev, reg); in regmap_sdw_mbq_deferrable() [all …]
|
| /linux/net/sched/ |
| H A D | sch_teql.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 ---------------- 27 and new qdisc with the same name. To join a slave to the equalizer 30 # tc qdisc add dev eth0 root teql0 31 # tc qdisc add dev eth1 root teql0 36 -------------- 38 1. Slave devices MUST be active devices, i.e., they must raise the tbusy 41 2. This device puts no limitations on physical slave characteristics 42 f.e. it will equalize 9600baud line and 100Mb ethernet perfectly :-) 46 3. If the slave requires address resolution, only protocols using [all …]
|
| /linux/drivers/spmi/ |
| H A D | spmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 16 #include <dt-bindings/spmi/spmi.h> 23 static void spmi_dev_release(struct device *dev) in spmi_dev_release() argument 25 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release() 34 static void spmi_ctrl_release(struct device *dev) in spmi_ctrl_release() argument 36 struct spmi_controller *ctrl = to_spmi_controller(dev); in spmi_ctrl_release() 38 ida_free(&ctrl_ida, ctrl->nr); in spmi_ctrl_release() 46 static int spmi_device_match(struct device *dev, const struct device_driver *drv) in spmi_device_match() argument 48 if (of_driver_match_device(dev, drv)) in spmi_device_match() [all …]
|
| /linux/drivers/dma/dw/ |
| H A D | of.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2007-2008 Atmel Corporation 6 * Copyright (C) 2010-2011 ST Microelectronics 19 struct dw_dma *dw = ofdma->of_dma_data; in dw_dma_of_xlate() 20 struct dw_dma_slave slave = { in dw_dma_of_xlate() local 21 .dma_dev = dw->dma.dev, in dw_dma_of_xlate() 25 if (dma_spec->args_count < 3 || dma_spec->args_count > 4) in dw_dma_of_xlate() 28 slave.src_id = dma_spec->args[0]; in dw_dma_of_xlate() 29 slave.dst_id = dma_spec->args[0]; in dw_dma_of_xlate() 30 slave.m_master = dma_spec->args[1]; in dw_dma_of_xlate() [all …]
|