Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 25 of 681) sorted by relevance

12345678910>>...28

/kernel/linux/linux-5.10/drivers/soundwire/
Dbus.c150 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_delete_slave() local
151 struct sdw_bus *bus = slave->bus; in sdw_delete_slave()
155 sdw_slave_debugfs_exit(slave); in sdw_delete_slave()
159 if (slave->dev_num) /* clear dev_num if assigned */ in sdw_delete_slave()
160 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave()
162 list_del_init(&slave->node); in sdw_delete_slave()
324 int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, in sdw_fill_msg() argument
343 if (slave && !slave->prop.paging_support) in sdw_fill_msg()
354 if (!slave) { in sdw_fill_msg()
359 if (!slave->prop.paging_support) { in sdw_fill_msg()
[all …]
Dbus_type.c21 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument
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()
29 slave->id.sdw_version == id->sdw_version) && in sdw_get_device_id()
31 slave->id.class_id == id->class_id)) in sdw_get_device_id()
39 struct sdw_slave *slave; in sdw_bus_match() local
44 slave = dev_to_sdw_dev(dev); in sdw_bus_match()
47 ret = !!sdw_get_device_id(slave, drv); in sdw_bus_match()
52 int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size) in sdw_slave_modalias() argument
57 slave->id.mfg_id, slave->id.part_id, in sdw_slave_modalias()
[all …]
Dslave.c13 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()
36 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add()
37 slave->dev.parent = bus->dev; in sdw_slave_add()
38 slave->dev.fwnode = fwnode; in sdw_slave_add()
42 dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x", in sdw_slave_add()
47 dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x:%x", in sdw_slave_add()
[all …]
Dsysfs_slave.c74 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 …]
Ddebugfs.c33 static ssize_t sdw_sprintf(struct sdw_slave *slave, in sdw_sprintf() argument
38 value = sdw_read(slave, reg); in sdw_sprintf()
49 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show() local
63 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
67 ret += sdw_sprintf(slave, buf, ret, SDW_DP0_CHANNELEN); in sdw_slave_reg_show()
69 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
73 ret += sdw_sprintf(slave, buf, ret, in sdw_slave_reg_show()
77 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
82 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
84 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
[all …]
Dstream.c62 struct sdw_slave *slave, in _sdw_program_slave_port_params() argument
83 ret = sdw_write(slave, addr1, t_params->offset2); in _sdw_program_slave_port_params()
90 ret = sdw_write(slave, addr2, t_params->blk_pkg_mode); in _sdw_program_slave_port_params()
107 ret = sdw_write(slave, addr3, wbuf); in _sdw_program_slave_port_params()
117 ret = sdw_write(slave, addr4, wbuf); in _sdw_program_slave_port_params()
130 struct sdw_slave_prop *slave_prop = &s_rt->slave->prop; in sdw_program_slave_port_params()
136 dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, in sdw_program_slave_port_params()
162 ret = sdw_update(s_rt->slave, addr1, 0xF, wbuf); in sdw_program_slave_port_params()
164 dev_err(&s_rt->slave->dev, in sdw_program_slave_port_params()
172 ret = sdw_write(s_rt->slave, addr2, (p_params->bps - 1)); in sdw_program_slave_port_params()
[all …]
/kernel/linux/linux-5.10/include/net/
Dbonding.h155 struct slave { struct
186 static inline struct slave *to_slave(struct kobject *kobj) in to_slave() argument
188 return container_of(kobj, struct slave, kobj); in to_slave()
194 struct slave *arr[];
213 struct slave __rcu *curr_active_slave;
214 struct slave __rcu *current_arp_slave;
215 struct slave __rcu *primary_slave;
221 struct slave *);
262 ((struct slave *) rcu_dereference(dev->rx_handler_data))
265 ((struct slave *) rtnl_dereference(dev->rx_handler_data))
[all …]
Dbond_alb.h12 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 …]
/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_sysfs_slave.c15 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()
56 slave->perm_hwaddr); in perm_hwaddr_show()
[all …]
Dbond_main.c332 struct slave *slave, *rollback_slave; in bond_vlan_rx_add_vid() local
336 bond_for_each_slave(bond, slave, iter) { in bond_vlan_rx_add_vid()
337 res = vlan_vid_add(slave->dev, proto, vid); in bond_vlan_rx_add_vid()
347 if (rollback_slave == slave) in bond_vlan_rx_add_vid()
367 struct slave *slave; in bond_vlan_rx_kill_vid() local
369 bond_for_each_slave(bond, slave, iter) in bond_vlan_rx_kill_vid()
370 vlan_vid_del(slave->dev, proto, vid); in bond_vlan_rx_kill_vid()
390 struct slave *slave; in bond_ipsec_add_sa() local
398 slave = rcu_dereference(bond->curr_active_slave); in bond_ipsec_add_sa()
399 if (!slave) { in bond_ipsec_add_sa()
[all …]
Dbond_alb.c54 static void alb_send_learning_packets(struct slave *slave, 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()
112 tlb_init_slave(slave); in __tlb_clear_slave()
115 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
119 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
160 static long long compute_gap(struct slave *slave) in compute_gap() argument
[all …]
Dbond_3ad.c125 if (port->slave == NULL) in __get_bond_by_port()
128 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
142 struct slave *first_slave; in __get_first_agg()
175 bond_set_slave_inactive_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); in __disable_port()
184 struct slave *slave = port->slave; in __enable_port() local
186 if ((slave->link == BOND_LINK_UP) && bond_slave_is_up(slave)) in __enable_port()
187 bond_set_slave_active_flags(slave, BOND_SLAVE_NOTIFY_LATER); in __enable_port()
196 return bond_is_active_slave(port->slave); in __port_is_enabled()
251 struct slave *slave = port->slave; in __get_link_speed() local
259 if (slave->link != BOND_LINK_UP) in __get_link_speed()
[all …]
Dbond_procfs.c15 struct slave *slave; in bond_info_seq_start() local
23 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start()
25 return slave; in bond_info_seq_start()
34 struct slave *slave; in bond_info_seq_next() local
41 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
43 return slave; in bond_info_seq_next()
44 if (slave == v) in bond_info_seq_next()
61 struct slave *curr, *primary; in bond_info_show_master()
170 const struct slave *slave) in bond_info_show_slave() argument
174 seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); in bond_info_show_slave()
[all …]
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-core.c140 return fsi_slave_read(dev->slave, dev->addr + addr, val, size); in fsi_device_read()
150 return fsi_slave_write(dev->slave, dev->addr + addr, val, size); in fsi_device_write()
158 return fsi_slave_read(dev->slave, addr, val, sizeof(uint32_t)); in fsi_device_peek()
169 static struct fsi_device *fsi_create_device(struct fsi_slave *slave) in fsi_create_device() argument
177 dev->dev.parent = &slave->dev; in fsi_create_device()
185 static int fsi_slave_calc_addr(struct fsi_slave *slave, uint32_t *addrp, in fsi_slave_calc_addr() argument
191 if (addr > slave->size) in fsi_slave_calc_addr()
198 if (slave->id != 0) in fsi_slave_calc_addr()
209 static int fsi_slave_report_and_clear_errors(struct fsi_slave *slave) in fsi_slave_report_and_clear_errors() argument
211 struct fsi_master *master = slave->master; in fsi_slave_report_and_clear_errors()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
Domap_hwmod_2xxx_interconnect_data.c27 .slave = &omap2xxx_l4_core_hwmod,
34 .slave = &omap2xxx_l3_main_hwmod,
41 .slave = &omap2xxx_l3_main_hwmod,
54 .slave = &omap2xxx_l4_wkup_hwmod,
61 .slave = &omap2xxx_uart1_hwmod,
69 .slave = &omap2xxx_uart2_hwmod,
77 .slave = &omap2xxx_uart3_hwmod,
85 .slave = &omap2xxx_mcspi1_hwmod,
93 .slave = &omap2xxx_mcspi2_hwmod,
101 .slave = &omap2xxx_timer3_hwmod,
[all …]
Domap_hwmod_44xx_data.c634 .slave = &omap44xx_dmm_hwmod,
642 .slave = &omap44xx_dmm_hwmod,
650 .slave = &omap44xx_l3_instr_hwmod,
658 .slave = &omap44xx_l3_instr_hwmod,
666 .slave = &omap44xx_l3_instr_hwmod,
674 .slave = &omap44xx_l3_main_1_hwmod,
682 .slave = &omap44xx_l3_main_1_hwmod,
690 .slave = &omap44xx_l3_main_1_hwmod,
698 .slave = &omap44xx_l3_main_2_hwmod,
706 .slave = &omap44xx_l3_main_2_hwmod,
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c306 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 …]
Dcmd.c136 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 …]
/kernel/linux/linux-5.10/drivers/net/
Deql.c140 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave);
150 slave_t *slave = list_entry(this, slave_t, list); in eql_timer() local
152 if ((slave->dev->flags & IFF_UP) == IFF_UP) { in eql_timer()
153 slave->bytes_queued -= slave->priority_Bps; in eql_timer()
154 if (slave->bytes_queued < 0) in eql_timer()
155 slave->bytes_queued = 0; in eql_timer()
157 eql_kill_one_slave(&eql->queue, slave); in eql_timer()
221 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave) in eql_kill_one_slave() argument
223 list_del(&slave->list); in eql_kill_one_slave()
225 slave->dev->flags &= ~IFF_SLAVE; in eql_kill_one_slave()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-at91-slave.c28 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw-common.c16 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument
29 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); in davinci_emac_3517_get_macid()
30 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); in davinci_emac_3517_get_macid()
42 static int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave, in cpsw_am33xx_cm_get_macid() argument
56 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lo); in cpsw_am33xx_cm_get_macid()
57 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_hi); in cpsw_am33xx_cm_get_macid()
69 int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr) in ti_cm_get_macid() argument
72 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); in ti_cm_get_macid()
75 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr); in ti_cm_get_macid()
78 return davinci_emac_3517_get_macid(dev, 0x110, slave, mac_addr); in ti_cm_get_macid()
[all …]
Dnetcp_ethss.c764 struct gbe_slave *slave; member
1728 #define for_each_sec_slave(slave, priv) \ argument
1729 list_for_each_entry((slave), &(priv)->secondary_slaves, slave_list)
1944 if (!gbe_intf->slave) in keystone_get_link_ksettings()
1948 cmd->base.port = gbe_intf->slave->phy_port_t; in keystone_get_link_ksettings()
1976 if (!gbe_intf->slave) in keystone_set_link_ksettings()
1979 if (port != gbe_intf->slave->phy_port_t) { in keystone_set_link_ksettings()
1996 gbe_intf->slave->phy_port_t = port; in keystone_set_link_ksettings()
2056 static void gbe_set_slave_mac(struct gbe_slave *slave, in gbe_set_slave_mac() argument
2061 writel(mac_hi(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_hi)); in gbe_set_slave_mac()
[all …]
/kernel/linux/linux-5.10/drivers/net/wan/
Ddlci.c193 netdev_start_xmit(skb, dlp->slave, txq, false); in dlci_transmit()
207 flp = netdev_priv(dlp->slave); in dlci_config()
219 err = (*flp->dlci_conf)(dlp->slave, dev, get); in dlci_config()
247 strncpy(ifr->ifr_slave, dlp->slave->name, sizeof(ifr->ifr_slave)); in dlci_dev_ioctl()
267 return dev_set_mtu(dlp->slave, new_mtu); in dlci_change_mtu()
281 if (!netif_running(dlp->slave)) in dlci_open()
284 flp = netdev_priv(dlp->slave); in dlci_open()
285 err = (*flp->activate)(dlp->slave, dev); in dlci_open()
303 flp = netdev_priv(dlp->slave); in dlci_close()
304 (*flp->deactivate)(dlp->slave, dev); in dlci_close()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Drt5682-sdw.c146 if (!rt5682->slave) in rt5682_sdw_hw_params()
167 retval = sdw_stream_add_slave(rt5682->slave, &stream_config, in rt5682_sdw_hw_params()
265 if (!rt5682->slave) in rt5682_sdw_hw_free()
268 sdw_stream_remove_slave(rt5682->slave, stream->sdw_stream); in rt5682_sdw_hw_free()
333 struct sdw_slave *slave) in rt5682_sdw_init() argument
343 rt5682->slave = slave; in rt5682_sdw_init()
370 dev_dbg(&slave->dev, "%s\n", __func__); in rt5682_sdw_init()
375 static int rt5682_io_init(struct device *dev, struct sdw_slave *slave) in rt5682_io_init() argument
389 pm_runtime_set_autosuspend_delay(&slave->dev, 3000); in rt5682_io_init()
390 pm_runtime_use_autosuspend(&slave->dev); in rt5682_io_init()
[all …]
Drt1308-sdw.c118 static int rt1308_read_prop(struct sdw_slave *slave) in rt1308_read_prop() argument
120 struct sdw_slave_prop *prop = &slave->prop; in rt1308_read_prop()
137 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1308_read_prop()
157 dev_dbg(&slave->dev, "%s\n", __func__); in rt1308_read_prop()
162 static int rt1308_io_init(struct device *dev, struct sdw_slave *slave) in rt1308_io_init() argument
182 pm_runtime_set_autosuspend_delay(&slave->dev, 3000); in rt1308_io_init()
183 pm_runtime_use_autosuspend(&slave->dev); in rt1308_io_init()
186 pm_runtime_set_active(&slave->dev); in rt1308_io_init()
189 pm_runtime_mark_last_busy(&slave->dev); in rt1308_io_init()
191 pm_runtime_enable(&slave->dev); in rt1308_io_init()
[all …]

12345678910>>...28