/linux-6.6.21/drivers/soundwire/ |
D | bus.c | 168 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_delete_slave() local 169 struct sdw_bus *bus = slave->bus; in sdw_delete_slave() 173 sdw_slave_debugfs_exit(slave); in sdw_delete_slave() 177 if (slave->dev_num) { /* clear dev_num if assigned */ in sdw_delete_slave() 178 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave() 180 bus->ops->put_device_num(bus, slave); in sdw_delete_slave() 182 list_del_init(&slave->node); in sdw_delete_slave() 358 int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, in sdw_fill_msg() argument 377 if (slave && !slave->prop.paging_support) in sdw_fill_msg() 388 if (!slave) { in sdw_fill_msg() [all …]
|
D | bus_type.c | 22 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument 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() 30 slave->id.sdw_version == id->sdw_version) && in sdw_get_device_id() 32 slave->id.class_id == id->class_id)) in sdw_get_device_id() 40 struct sdw_slave *slave; in sdw_bus_match() local 45 slave = dev_to_sdw_dev(dev); in sdw_bus_match() 48 ret = !!sdw_get_device_id(slave, drv); in sdw_bus_match() 53 int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size) in sdw_slave_modalias() argument 58 slave->id.mfg_id, slave->id.part_id, in sdw_slave_modalias() [all …]
|
D | debugfs.c | 34 static ssize_t sdw_sprintf(struct sdw_slave *slave, in sdw_sprintf() argument 39 value = sdw_read_no_pm(slave, reg); in sdw_sprintf() 50 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show() local 59 ret = pm_runtime_get_sync(&slave->dev); in sdw_slave_reg_show() 61 pm_runtime_put_noidle(&slave->dev); in sdw_slave_reg_show() 71 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show() 75 ret += sdw_sprintf(slave, buf, ret, SDW_DP0_CHANNELEN); in sdw_slave_reg_show() 77 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show() 81 ret += sdw_sprintf(slave, buf, ret, in sdw_slave_reg_show() 85 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show() [all …]
|
D | slave.c | 13 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local 15 mutex_destroy(&slave->sdw_dev_lock); in sdw_slave_release() 16 kfree(slave); in sdw_slave_release() 28 struct sdw_slave *slave; in sdw_slave_add() local 32 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add() 33 if (!slave) in sdw_slave_add() 37 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add() 38 slave->dev.parent = bus->dev; in sdw_slave_add() 39 slave->dev.fwnode = fwnode; in sdw_slave_add() 43 dev_set_name(&slave->dev, "sdw:%01x:%01x:%04x:%04x:%02x", in sdw_slave_add() [all …]
|
D | sysfs_slave.c | 74 struct sdw_slave *slave = dev_to_sdw_dev(dev); \ 75 return sprintf(buf, format_string, slave->prop.field); \ 98 struct sdw_slave *slave = dev_to_sdw_dev(dev); in modalias_show() local 100 return sdw_slave_modalias(slave, buf, 256); in modalias_show() 108 ATTRIBUTE_GROUPS(slave); 147 struct sdw_slave *slave = dev_to_sdw_dev(dev); \ 148 return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ 161 struct sdw_slave *slave = dev_to_sdw_dev(dev); in words_show() local 165 for (i = 0; i < slave->prop.dp0_prop->num_words; i++) in words_show() 167 slave->prop.dp0_prop->words[i]); in words_show() [all …]
|
/linux-6.6.21/include/net/ |
D | bonding.h | 156 struct slave { struct 189 static inline struct slave *to_slave(struct kobject *kobj) in to_slave() argument 191 return container_of(kobj, struct slave, kobj); in to_slave() 197 struct slave *arr[]; 216 struct slave __rcu *curr_active_slave; 217 struct slave __rcu *current_arp_slave; 218 struct slave __rcu *primary_slave; 225 struct slave *); 267 ((struct slave *) rcu_dereference(dev->rx_handler_data)) 270 ((struct slave *) rtnl_dereference(dev->rx_handler_data)) [all …]
|
D | bond_alb.h | 12 struct slave; 15 #define SLAVE_TLB_INFO(slave) ((slave)->tlb_info) argument 56 struct slave *tx_slave; /* A pointer to slave used for transmiting 111 struct slave *slave; /* the slave assigned to this client */ member 138 struct slave *rx_slave;/* last slave to xmit from */ 155 int bond_alb_init_slave(struct bonding *bond, struct slave *slave); 156 void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave); 157 void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link); 158 void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave); 161 struct slave *bond_xmit_alb_slave_get(struct bonding *bond, [all …]
|
/linux-6.6.21/drivers/net/bonding/ |
D | bond_sysfs_slave.c | 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() 50 slave->perm_hwaddr); in perm_hwaddr_show() [all …]
|
D | bond_main.c | 372 struct slave *slave, *rollback_slave; in bond_vlan_rx_add_vid() local 376 bond_for_each_slave(bond, slave, iter) { in bond_vlan_rx_add_vid() 377 res = vlan_vid_add(slave->dev, proto, vid); in bond_vlan_rx_add_vid() 387 if (rollback_slave == slave) in bond_vlan_rx_add_vid() 407 struct slave *slave; in bond_vlan_rx_kill_vid() local 409 bond_for_each_slave(bond, slave, iter) in bond_vlan_rx_kill_vid() 410 vlan_vid_del(slave->dev, proto, vid); in bond_vlan_rx_kill_vid() 432 struct slave *slave; in bond_ipsec_add_sa() local 440 slave = rcu_dereference(bond->curr_active_slave); in bond_ipsec_add_sa() 441 if (!slave) { in bond_ipsec_add_sa() [all …]
|
D | bond_alb.c | 54 static void alb_send_learning_packets(struct slave *slave, const u8 mac_addr[], 87 static inline void tlb_init_slave(struct slave *slave) in tlb_init_slave() argument 89 SLAVE_TLB_INFO(slave).load = 0; in tlb_init_slave() 90 SLAVE_TLB_INFO(slave).head = TLB_NULL_INDEX; in tlb_init_slave() 93 static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, in __tlb_clear_slave() argument 104 index = SLAVE_TLB_INFO(slave).head; in __tlb_clear_slave() 113 tlb_init_slave(slave); in __tlb_clear_slave() 116 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument 120 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave() 161 static long long compute_gap(struct slave *slave) in compute_gap() argument [all …]
|
D | bond_3ad.c | 130 if (port->slave == NULL) in __get_bond_by_port() 133 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port() 147 struct slave *first_slave; in __get_first_agg() 180 bond_set_slave_inactive_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); in __disable_port() 189 struct slave *slave = port->slave; in __enable_port() local 191 if ((slave->link == BOND_LINK_UP) && bond_slave_is_up(slave)) in __enable_port() 192 bond_set_slave_active_flags(slave, BOND_SLAVE_NOTIFY_LATER); in __enable_port() 201 return bond_is_active_slave(port->slave); in __port_is_enabled() 259 struct slave *slave = port->slave; in __get_link_speed() local 267 if (slave->link != BOND_LINK_UP) in __get_link_speed() [all …]
|
/linux-6.6.21/drivers/fsi/ |
D | fsi-core.c | 126 return fsi_slave_read(dev->slave, dev->addr + addr, val, size); in fsi_device_read() 136 return fsi_slave_write(dev->slave, dev->addr + addr, val, size); in fsi_device_write() 144 return fsi_slave_read(dev->slave, addr, val, sizeof(uint32_t)); in fsi_device_peek() 155 static struct fsi_device *fsi_create_device(struct fsi_slave *slave) in fsi_create_device() argument 163 dev->dev.parent = &slave->dev; in fsi_create_device() 171 static int fsi_slave_calc_addr(struct fsi_slave *slave, uint32_t *addrp, in fsi_slave_calc_addr() argument 177 if (addr > slave->size) in fsi_slave_calc_addr() 184 if (slave->id != 0) in fsi_slave_calc_addr() 195 static int fsi_slave_report_and_clear_errors(struct fsi_slave *slave) in fsi_slave_report_and_clear_errors() argument 197 struct fsi_master *master = slave->master; in fsi_slave_report_and_clear_errors() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/ |
D | resource_tracker.c | 306 static void rem_slave_vlans(struct mlx4_dev *dev, int slave); 307 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, in mlx4_grant_resource() argument 318 if (slave > dev->persist->num_vfs) in mlx4_grant_resource() 324 (dev->persist->num_vfs + 1) + slave] : in mlx4_grant_resource() 325 res_alloc->allocated[slave]; in mlx4_grant_resource() 330 guaranteed = res_alloc->guaranteed[slave]; in mlx4_grant_resource() 332 if (allocated + count > res_alloc->quota[slave]) { in mlx4_grant_resource() 334 slave, port, resource_str(res_type), count, in mlx4_grant_resource() 335 allocated, res_alloc->quota[slave]); in mlx4_grant_resource() 355 slave, port, resource_str(res_type), free, in mlx4_grant_resource() [all …]
|
D | cmd.c | 136 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave, 813 int slave, u64 slave_addr, in mlx4_ACCESS_MEM() argument 820 (slave & ~0x7f) | (size & 0xff)) { in mlx4_ACCESS_MEM() 822 slave_addr, master_addr, slave, size); in mlx4_ACCESS_MEM() 827 in_param = (u64) slave | slave_addr; in mlx4_ACCESS_MEM() 831 out_param = (u64) slave | slave_addr; in mlx4_ACCESS_MEM() 891 static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave, in mlx4_MAD_IFC_wrapper() argument 912 port = mlx4_slave_convert_port(dev, slave, slave_port); in mlx4_MAD_IFC_wrapper() 938 pidx = priv->virt2phys_pkey[slave][port - 1][vidx]; in mlx4_MAD_IFC_wrapper() 953 if (!err && slave != mlx4_master_func_num(dev)) { in mlx4_MAD_IFC_wrapper() [all …]
|
/linux-6.6.21/arch/arm/mach-omap2/ |
D | omap_hwmod_2xxx_interconnect_data.c | 26 .slave = &omap2xxx_l4_core_hwmod, 33 .slave = &omap2xxx_l3_main_hwmod, 40 .slave = &omap2xxx_l3_main_hwmod, 53 .slave = &omap2xxx_l4_wkup_hwmod, 60 .slave = &omap2xxx_uart1_hwmod, 68 .slave = &omap2xxx_uart2_hwmod, 76 .slave = &omap2xxx_uart3_hwmod, 84 .slave = &omap2xxx_mcspi1_hwmod, 92 .slave = &omap2xxx_mcspi2_hwmod, 100 .slave = &omap2xxx_timer3_hwmod, [all …]
|
/linux-6.6.21/sound/soc/codecs/ |
D | rt711-sdca-sdw.c | 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() 157 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK1, in rt711_sdca_update_status() 159 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK2, in rt711_sdca_update_status() 172 return rt711_sdca_io_init(&slave->dev, slave); in rt711_sdca_update_status() 175 static int rt711_sdca_read_prop(struct sdw_slave *slave) in rt711_sdca_read_prop() argument 177 struct sdw_slave_prop *prop = &slave->prop; in rt711_sdca_read_prop() 194 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_sdca_read_prop() 212 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_sdca_read_prop() 237 static int rt711_sdca_interrupt_callback(struct sdw_slave *slave, in rt711_sdca_interrupt_callback() argument [all …]
|
D | rt712-sdca-sdw.c | 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() 154 sdw_write_no_pm(rt712->slave, SDW_SCP_SDCA_INTMASK1, in rt712_sdca_update_status() 156 sdw_write_no_pm(rt712->slave, SDW_SCP_SDCA_INTMASK2, in rt712_sdca_update_status() 169 return rt712_sdca_io_init(&slave->dev, slave); in rt712_sdca_update_status() 172 static int rt712_sdca_read_prop(struct sdw_slave *slave) in rt712_sdca_read_prop() argument 174 struct sdw_slave_prop *prop = &slave->prop; in rt712_sdca_read_prop() 191 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt712_sdca_read_prop() 209 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt712_sdca_read_prop() 234 static int rt712_sdca_interrupt_callback(struct sdw_slave *slave, in rt712_sdca_interrupt_callback() argument [all …]
|
D | rt722-sdca-sdw.c | 161 static int rt722_sdca_update_status(struct sdw_slave *slave, in rt722_sdca_update_status() argument 164 struct rt722_sdca_priv *rt722 = dev_get_drvdata(&slave->dev); in rt722_sdca_update_status() 177 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK1, in rt722_sdca_update_status() 179 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK2, in rt722_sdca_update_status() 192 return rt722_sdca_io_init(&slave->dev, slave); in rt722_sdca_update_status() 195 static int rt722_sdca_read_prop(struct sdw_slave *slave) in rt722_sdca_read_prop() argument 197 struct sdw_slave_prop *prop = &slave->prop; in rt722_sdca_read_prop() 219 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt722_sdca_read_prop() 237 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt722_sdca_read_prop() 262 static int rt722_sdca_interrupt_callback(struct sdw_slave *slave, in rt722_sdca_interrupt_callback() argument [all …]
|
D | rt715-sdca-sdw.c | 119 static int rt715_sdca_update_status(struct sdw_slave *slave, in rt715_sdca_update_status() argument 122 struct rt715_sdca_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_sdca_update_status() 132 return rt715_sdca_io_init(&slave->dev, slave); in rt715_sdca_update_status() 135 static int rt715_sdca_read_prop(struct sdw_slave *slave) in rt715_sdca_read_prop() argument 137 struct sdw_slave_prop *prop = &slave->prop; in rt715_sdca_read_prop() 150 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt715_sdca_read_prop() 177 static int rt715_sdca_sdw_probe(struct sdw_slave *slave, in rt715_sdca_sdw_probe() argument 183 mbq_regmap = devm_regmap_init_sdw_mbq(slave, &rt715_sdca_mbq_regmap); in rt715_sdca_sdw_probe() 187 regmap = devm_regmap_init_sdw(slave, &rt715_sdca_regmap); in rt715_sdca_sdw_probe() 191 return rt715_sdca_init(&slave->dev, mbq_regmap, regmap, slave); in rt715_sdca_sdw_probe() [all …]
|
D | rt5682-sdw.c | 121 if (!rt5682->slave) in rt5682_sdw_hw_params() 132 retval = sdw_stream_add_slave(rt5682->slave, &stream_config, in rt5682_sdw_hw_params() 230 if (!rt5682->slave) in rt5682_sdw_hw_free() 233 sdw_stream_remove_slave(rt5682->slave, sdw_stream); in rt5682_sdw_hw_free() 298 struct sdw_slave *slave) in rt5682_sdw_init() argument 308 rt5682->slave = slave; in rt5682_sdw_init() 368 static int rt5682_io_init(struct device *dev, struct sdw_slave *slave) in rt5682_io_init() argument 389 pm_runtime_set_active(&slave->dev); in rt5682_io_init() 391 pm_runtime_get_noresume(&slave->dev); in rt5682_io_init() 477 pm_runtime_mark_last_busy(&slave->dev); in rt5682_io_init() [all …]
|
D | sdw-mockup.c | 23 struct sdw_slave *slave; member 69 if (!sdw_mockup->slave) in sdw_mockup_pcm_hw_params() 80 ret = sdw_stream_add_slave(sdw_mockup->slave, &stream_config, in sdw_mockup_pcm_hw_params() 95 if (!sdw_mockup->slave) in sdw_mockup_pcm_hw_free() 98 sdw_stream_remove_slave(sdw_mockup->slave, sdw_stream); in sdw_mockup_pcm_hw_free() 127 static int sdw_mockup_update_status(struct sdw_slave *slave, in sdw_mockup_update_status() argument 133 static int sdw_mockup_read_prop(struct sdw_slave *slave) in sdw_mockup_read_prop() argument 135 struct sdw_slave_prop *prop = &slave->prop; in sdw_mockup_read_prop() 155 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop() 173 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop() [all …]
|
D | rt700-sdw.c | 313 static int rt700_update_status(struct sdw_slave *slave, in rt700_update_status() argument 316 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_update_status() 329 return rt700_io_init(&slave->dev, slave); in rt700_update_status() 332 static int rt700_read_prop(struct sdw_slave *slave) in rt700_read_prop() argument 334 struct sdw_slave_prop *prop = &slave->prop; in rt700_read_prop() 351 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt700_read_prop() 370 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt700_read_prop() 396 static int rt700_bus_config(struct sdw_slave *slave, in rt700_bus_config() argument 399 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_bus_config() 404 ret = rt700_clock_config(&slave->dev); in rt700_bus_config() [all …]
|
/linux-6.6.21/drivers/net/ |
D | eql.c | 142 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave); 152 slave_t *slave = list_entry(this, slave_t, list); in eql_timer() local 154 if ((slave->dev->flags & IFF_UP) == IFF_UP) { in eql_timer() 155 slave->bytes_queued -= slave->priority_Bps; in eql_timer() 156 if (slave->bytes_queued < 0) in eql_timer() 157 slave->bytes_queued = 0; in eql_timer() 159 eql_kill_one_slave(&eql->queue, slave); in eql_timer() 223 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave) in eql_kill_one_slave() argument 225 list_del(&slave->list); in eql_kill_one_slave() 227 slave->dev->flags &= ~IFF_SLAVE; in eql_kill_one_slave() [all …]
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-at91-slave.c | 28 i2c_slave_event(dev->slave, in atmel_twi_interrupt_slave() 34 i2c_slave_event(dev->slave, in atmel_twi_interrupt_slave() 44 i2c_slave_event(dev->slave, I2C_SLAVE_READ_PROCESSED, &value); in atmel_twi_interrupt_slave() 51 i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_RECEIVED, &value); in atmel_twi_interrupt_slave() 59 i2c_slave_event(dev->slave, I2C_SLAVE_STOP, &value); in atmel_twi_interrupt_slave() 65 static int at91_reg_slave(struct i2c_client *slave) in at91_reg_slave() argument 67 struct at91_twi_dev *dev = i2c_get_adapdata(slave->adapter); in at91_reg_slave() 69 if (dev->slave) in at91_reg_slave() 72 if (slave->flags & I2C_CLIENT_TEN) in at91_reg_slave() 78 dev->slave = slave; in at91_reg_slave() [all …]
|
/linux-6.6.21/drivers/net/ethernet/ti/ |
D | cpsw-common.c | 15 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument 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 55 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lo); in cpsw_am33xx_cm_get_macid() 56 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_hi); in cpsw_am33xx_cm_get_macid() 68 int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr) in ti_cm_get_macid() argument 71 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); in ti_cm_get_macid() 74 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); in ti_cm_get_macid() 77 return davinci_emac_3517_get_macid(dev, 0x110, slave, mac_addr); in ti_cm_get_macid() [all …]
|