| /kernel/linux/linux-5.10/drivers/soundwire/ |
| D | bus.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2 // Copyright(c) 2015-17 Intel Corporation. 19 if (rc < 0) in sdw_get_id() 22 bus->id = rc; in sdw_get_id() 27 * sdw_bus_master_add() - add a bus Master instance 41 if (!parent) { in sdw_bus_master_add() 43 return -ENODEV; in sdw_bus_master_add() 47 if (ret) { in sdw_bus_master_add() 53 if (ret) { in sdw_bus_master_add() 55 bus->link_id); in sdw_bus_master_add() [all …]
|
| D | bus_type.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright(c) 2015-17 Intel Corporation. 13 * sdw_get_device_id - find the matching SoundWire device id 14 * @slave: SoundWire Slave Device 15 * @drv: SoundWire Slave Driver 21 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument 25 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id() 26 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id() 27 slave->id.part_id == id->part_id && in sdw_get_device_id() 28 (!id->sdw_version || in sdw_get_device_id() [all …]
|
| D | slave.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2 // Copyright(c) 2015-17 Intel Corporation. 13 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local 15 kfree(slave); in sdw_slave_release() 27 struct sdw_slave *slave; in sdw_slave_add() local 31 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add() 32 if (!slave) in sdw_slave_add() 33 return -ENOMEM; in sdw_slave_add() 36 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add() 37 slave->dev.parent = bus->dev; in sdw_slave_add() [all …]
|
| /kernel/linux/linux-6.6/drivers/soundwire/ |
| D | bus.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2 // Copyright(c) 2015-17 Intel Corporation. 21 if (rc < 0) in sdw_get_id() 24 bus->id = rc; in sdw_get_id() 26 if (bus->controller_id == -1) in sdw_get_id() 27 bus->controller_id = rc; in sdw_get_id() 33 * sdw_bus_master_add() - add a bus Master instance 47 if (!parent) { in sdw_bus_master_add() 49 return -ENODEV; in sdw_bus_master_add() 53 if (ret < 0) { in sdw_bus_master_add() [all …]
|
| 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, 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 …]
|
| D | slave.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2 // Copyright(c) 2015-17 Intel Corporation. 13 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local 15 of_node_put(slave->dev.of_node); in sdw_slave_release() 16 mutex_destroy(&slave->sdw_dev_lock); in sdw_slave_release() 17 kfree(slave); in sdw_slave_release() 29 struct sdw_slave *slave; in sdw_slave_add() local 33 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add() 34 if (!slave) in sdw_slave_add() 35 return -ENOMEM; in sdw_slave_add() [all …]
|
| D | stream.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2 // Copyright(c) 2015-18 Intel Corporation. 5 * stream.c - SoundWire Bus stream operations. 39 if (sdw_cols[i] == col) in sdw_find_col_index() 53 if (sdw_rows[i] == row) in sdw_find_row_index() 63 struct sdw_slave *slave, in _sdw_program_slave_port_params() argument 71 if (bus->params.next_bank) { in _sdw_program_slave_port_params() 72 addr1 = SDW_DPN_OFFSETCTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params() 73 addr2 = SDW_DPN_BLOCKCTRL3_B1(t_params->port_num); in _sdw_program_slave_port_params() 74 addr3 = SDW_DPN_SAMPLECTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/bonding/ |
| 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 30 * b: if a hw mac address already is there, eth0's hw mac address 89 #if IS_ENABLED(CONFIG_TLS_DEVICE) 97 /*---------------------------- Module parameters ----------------------------*/ 147 MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, " 148 "1 for active-backup, 2 for balance-xor, " 149 "3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, " 150 "6 for balance-alb"); [all …]
|
| D | bond_alb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved. 37 u8 padding[ETH_ZLEN - ETH_HLEN]; 54 static void alb_send_learning_packets(struct slave *slave, const u8 mac_addr[], 76 if (save_load) { in tlb_init_table_entry() 77 entry->load_history = 1 + entry->tx_bytes / in tlb_init_table_entry() 79 entry->tx_bytes = 0; in tlb_init_table_entry() 82 entry->tx_slave = NULL; in tlb_init_table_entry() 83 entry->next = TLB_NULL_INDEX; in tlb_init_table_entry() 84 entry->prev = TLB_NULL_INDEX; in tlb_init_table_entry() [all …]
|
| D | bond_sysfs_slave.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 ssize_t (*show)(struct slave *, char *); 21 static ssize_t state_show(struct slave *slave, char *buf) in state_show() argument 23 switch (bond_slave_state(slave)) { in state_show() 34 static ssize_t mii_status_show(struct slave *slave, char *buf) in mii_status_show() argument 36 return sysfs_emit(buf, "%s\n", bond_slave_link_status(slave->link)); in mii_status_show() 40 static ssize_t link_failure_count_show(struct slave *slave, char *buf) in link_failure_count_show() argument 42 return sysfs_emit(buf, "%d\n", slave->link_failure_count); in link_failure_count_show() 46 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) in perm_hwaddr_show() argument 49 slave->dev->addr_len, in perm_hwaddr_show() [all …]
|
| 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 * -------------------------------------------------------------- 123 * __get_bond_by_port - get the port's bonding struct 126 * Return @port's bonding struct, or %NULL if it can't be found. 130 if (port->slave == NULL) in __get_bond_by_port() 133 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port() 137 * __get_first_agg - get the first aggregator in the bond 140 * Return the aggregator of the first slave in @bond, or %NULL if it can't be [all …]
|
| /kernel/linux/linux-5.10/drivers/net/bonding/ |
| D | bond_main.c | 20 * the first slave bonded to the channel. All slaves will then use 27 * will attach eth0 to bond0 as a slave. eth0 hw mac address will either 29 * b: if a hw mac address already is there, eth0's hw mac address 89 /*---------------------------- Module parameters ----------------------------*/ 139 MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, " 140 "1 for active-backup, 2 for balance-xor, " 141 "3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, " 142 "6 for balance-alb"); 146 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave " 149 "1 for only if speed of primary is " [all …]
|
| D | bond_alb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved. 37 u8 padding[ETH_ZLEN - ETH_HLEN]; 54 static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[], 76 if (save_load) { in tlb_init_table_entry() 77 entry->load_history = 1 + entry->tx_bytes / in tlb_init_table_entry() 79 entry->tx_bytes = 0; in tlb_init_table_entry() 82 entry->tx_slave = NULL; in tlb_init_table_entry() 83 entry->next = TLB_NULL_INDEX; in tlb_init_table_entry() 84 entry->prev = TLB_NULL_INDEX; in tlb_init_table_entry() [all …]
|
| 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 * -------------------------------------------------------------- 119 * __get_bond_by_port - get the port's bonding struct 122 * Return @port's bonding struct, or %NULL if it can't be found. 126 if (port->slave == NULL) in __get_bond_by_port() 129 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port() 133 * __get_first_agg - get the first aggregator in the bond 136 * Return the aggregator of the first slave in @bond, or %NULL if it can't be [all …]
|
| D | bond_sysfs_slave.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 ssize_t (*show)(struct slave *, char *); 27 static ssize_t state_show(struct slave *slave, char *buf) in state_show() argument 29 switch (bond_slave_state(slave)) { in state_show() 40 static ssize_t mii_status_show(struct slave *slave, char *buf) in mii_status_show() argument 42 return sprintf(buf, "%s\n", bond_slave_link_status(slave->link)); in mii_status_show() 46 static ssize_t link_failure_count_show(struct slave *slave, char *buf) in link_failure_count_show() argument 48 return sprintf(buf, "%d\n", slave->link_failure_count); in link_failure_count_show() 52 static ssize_t perm_hwaddr_show(struct slave *slave, char *buf) in perm_hwaddr_show() argument 55 slave->dev->addr_len, in perm_hwaddr_show() [all …]
|
| /kernel/linux/linux-6.6/include/net/ |
| 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 …]
|
| /kernel/linux/linux-5.10/include/net/ |
| D | bonding.h | 4 * Portions are (c) Copyright 1995 Simon "Guru Aleph-Null" Janes 42 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 44 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 46 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 48 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 50 #define BOND_MODE(bond) ((bond)->params.mode) 52 /* slave list primitives */ 53 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower) 60 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \ 64 netdev_adjacent_get_private(bond_slave_list(bond)->prev) : \ [all …]
|
| /kernel/linux/linux-6.6/drivers/fsi/ |
| 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 */ 106 * FSI endpoint-device support 123 if (addr > dev->size || size > dev->size || addr > dev->size - size) in fsi_device_read() [all …]
|
| /kernel/linux/linux-5.10/drivers/fsi/ |
| 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...) 25 #include "fsi-master.h" 48 * FSI slave engine control register offsets 52 #define FSI_SSTAT 0x14 /* R : Slave status */ 93 uint32_t size; /* size of slave address space */ 120 * FSI endpoint-device support 137 if (addr > dev->size || size > dev->size || addr > dev->size - size) in fsi_device_read() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
| D | netcp_ethss.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Sandeep Paulraj <s-paulraj@ti.com> 10 * Wingman Kwok <w-kwok2@ti.com> 37 #define GBE_MODULE_NAME "netcp-gbe" 56 #define GBENU_MODULE_NAME "netcp-gbenu" 61 ((GBE_IDENT((d)->ss_version) == GBE_SS_ID_NU) || \ 62 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_2U)) 65 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_NU) 68 (GBE_IDENT((d)->ss_version) == GBE_SS_VERSION_14) 70 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_2U) [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
| D | netcp_ethss.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Sandeep Paulraj <s-paulraj@ti.com> 10 * Wingman Kwok <w-kwok2@ti.com> 37 #define GBE_MODULE_NAME "netcp-gbe" 56 #define GBENU_MODULE_NAME "netcp-gbenu" 61 ((GBE_IDENT((d)->ss_version) == GBE_SS_ID_NU) || \ 62 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_2U)) 65 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_NU) 68 (GBE_IDENT((d)->ss_version) == GBE_SS_VERSION_14) 70 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_2U) [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | rt712-sdca-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt712-sdca-sdw.c -- rt712 SDCA ALSA SoC audio driver 15 #include "rt712-sdca.h" 16 #include "rt712-sdca-sdw.h" 125 .name = "sdw-mbq", 138 static int rt712_sdca_update_status(struct sdw_slave *slave, in rt712_sdca_update_status() argument 141 struct rt712_sdca_priv *rt712 = dev_get_drvdata(&slave->dev); in rt712_sdca_update_status() 143 if (status == SDW_SLAVE_UNATTACHED) in rt712_sdca_update_status() 144 rt712->hw_init = false; in rt712_sdca_update_status() 146 if (status == SDW_SLAVE_ATTACHED) { in rt712_sdca_update_status() [all …]
|
| D | rt711-sdca-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt711-sdw-sdca.c -- rt711 SDCA ALSA SoC audio driver 16 #include "rt711-sdca.h" 17 #include "rt711-sdca-sdw.h" 128 .name = "sdw-mbq", 141 static int rt711_sdca_update_status(struct sdw_slave *slave, in rt711_sdca_update_status() argument 144 struct rt711_sdca_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdca_update_status() 146 if (status == SDW_SLAVE_UNATTACHED) in rt711_sdca_update_status() 147 rt711->hw_init = false; in rt711_sdca_update_status() 149 if (status == SDW_SLAVE_ATTACHED) { in rt711_sdca_update_status() [all …]
|