Home
last modified time | relevance | path

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

12345678910>>...15

/linux/include/net/
H A Dbonding.h43 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__)
53 /* slave list primitives */
78 * @pos: current slave
159 struct slave { struct
170 u8 backup:1, /* indicates backup slave. Value corresponds with argument
172 inactive:1, /* indicates inactive slave */ argument
173 rx_disabled:1, /* indicates whether slave' argument
183 ad_infoslave global() argument
184 tlb_infoslave global() argument
190 slave_statsslave global() argument
193 kobjslave to_slave() argument
295 bond_get_bond_by_slave(struct slave * slave) bond_get_bond_by_slave() argument
356 struct slave *slave = rcu_dereference_rtnl(bond->curr_active_slave); bond_option_active_slave_get_rcu() local
361 bond_slave_is_up(struct slave * slave) bond_slave_is_up() argument
366 bond_set_active_slave(struct slave * slave) bond_set_active_slave() argument
375 bond_set_backup_slave(struct slave * slave) bond_set_backup_slave() argument
384 bond_set_slave_state(struct slave * slave,int slave_state,bool notify) bond_set_slave_state() argument
429 bond_slave_state(struct slave * slave) bond_slave_state() argument
434 bond_is_active_slave(struct slave * slave) bond_is_active_slave() argument
439 bond_slave_can_tx(struct slave * slave) bond_slave_can_tx() argument
447 struct slave *slave; bond_is_active_slave_dev() local
494 slave_do_arp_validate(struct bonding * bond,struct slave * slave) slave_do_arp_validate() argument
522 slave_oldest_target_arp_rx(struct bonding * bond,struct slave * slave) slave_oldest_target_arp_rx() argument
536 slave_last_rx(struct bonding * bond,struct slave * slave) slave_last_rx() argument
544 slave_update_last_tx(struct slave * slave) slave_update_last_tx() argument
549 slave_last_tx(struct slave * slave) slave_last_tx() argument
555 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument
561 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument
569 bond_set_slave_inactive_flags(struct slave * slave,bool notify) bond_set_slave_inactive_flags() argument
580 bond_set_slave_tx_disabled_flags(struct slave * slave,bool notify) bond_set_slave_tx_disabled_flags() argument
586 bond_set_slave_active_flags(struct slave * slave,bool notify) bond_set_slave_active_flags() argument
595 bond_set_slave_rx_enabled_flags(struct slave * slave,bool notify) bond_set_slave_rx_enabled_flags() argument
601 bond_is_slave_inactive(struct slave * slave) bond_is_slave_inactive() argument
606 bond_is_slave_rx_disabled(struct slave * slave) bond_is_slave_rx_disabled() argument
611 bond_propose_link_state(struct slave * slave,int state) bond_propose_link_state() argument
616 bond_commit_link_state(struct slave * slave,bool notify) bond_commit_link_state() argument
634 bond_set_slave_link_state(struct slave * slave,int state,bool notify) bond_set_slave_link_state() argument
[all...]
H A 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 transmitting
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/drivers/soundwire/
H A Dbus.c172 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_delete_slave() local
173 struct sdw_bus *bus = slave->bus; in sdw_delete_slave()
177 sdw_slave_debugfs_exit(slave); in sdw_delete_slave()
181 if (slave->dev_num) { /* clear dev_num if assigned */ in sdw_delete_slave()
182 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave()
184 bus->ops->put_device_num(bus, slave); in sdw_delete_slave()
186 list_del_init(&slave->node); in sdw_delete_slave()
362 int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, in sdw_fill_msg() argument
381 if (slave && !slave->prop.paging_support) in sdw_fill_msg()
392 if (!slave) { in sdw_fill_msg()
[all …]
H A Ddebugfs.c37 static ssize_t sdw_sprintf(struct sdw_slave *slave, in sdw_sprintf() argument
42 value = sdw_read_no_pm(slave, reg); in sdw_sprintf()
53 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show() local
61 ret = pm_runtime_get_sync(&slave->dev); in sdw_slave_reg_show()
63 pm_runtime_put_noidle(&slave->dev); in sdw_slave_reg_show()
72 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
76 ret += sdw_sprintf(slave, buf, ret, SDW_DP0_CHANNELEN); in sdw_slave_reg_show()
78 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
82 ret += sdw_sprintf(slave, buf, ret, in sdw_slave_reg_show()
86 ret += sdw_sprintf(slave, buf, ret, i); in sdw_slave_reg_show()
[all …]
H A Dslave.c14 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local
16 of_node_put(slave->dev.of_node); in sdw_slave_release()
17 mutex_destroy(&slave->sdw_dev_lock); in sdw_slave_release()
18 kfree(slave); in sdw_slave_release()
31 struct sdw_slave *slave; in sdw_slave_add() local
35 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add()
36 if (!slave) in sdw_slave_add()
40 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add()
41 slave->dev.parent = bus->dev; in sdw_slave_add()
42 slave->dev.fwnode = fwnode; in sdw_slave_add()
[all …]
H A Dstream.c64 struct sdw_slave *slave, in _sdw_program_slave_port_params() argument
85 ret = sdw_write_no_pm(slave, addr1, t_params->offset2); in _sdw_program_slave_port_params()
94 ret = sdw_write_no_pm(slave, addr2, t_params->blk_pkg_mode); in _sdw_program_slave_port_params()
112 ret = sdw_write_no_pm(slave, addr3, wbuf); in _sdw_program_slave_port_params()
122 ret = sdw_write_no_pm(slave, addr4, wbuf); in _sdw_program_slave_port_params()
135 struct sdw_slave_prop *slave_prop = &s_rt->slave->prop; in sdw_program_slave_port_params()
142 if (s_rt->slave->is_mockup_device) in sdw_program_slave_port_params()
148 dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, s_rt->direction, in sdw_program_slave_port_params()
180 ret = sdw_update_no_pm(s_rt->slave, addr1, 0xF, wbuf); in sdw_program_slave_port_params()
182 dev_err(&s_rt->slave->dev, in sdw_program_slave_port_params()
[all …]
H A Dirq.c51 struct sdw_slave *slave = data; in sdw_irq_dispose_mapping() local
53 irq_dispose_mapping(slave->irq); in sdw_irq_dispose_mapping()
56 void sdw_irq_create_mapping(struct sdw_slave *slave) in sdw_irq_create_mapping() argument
58 slave->irq = irq_create_mapping(slave->bus->domain, slave->index); in sdw_irq_create_mapping()
59 if (!slave->irq) in sdw_irq_create_mapping()
60 dev_warn(&slave->dev, "Failed to map IRQ\n"); in sdw_irq_create_mapping()
62 devm_add_action_or_reset(&slave->dev, sdw_irq_dispose_mapping, slave); in sdw_irq_create_mapping()
/linux/drivers/net/bonding/
H A Dbond_sysfs_slave.c15 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 …]
H A Dbond_main.c374 struct slave *slave, *rollback_slave; in bond_vlan_rx_add_vid() local
378 bond_for_each_slave(bond, slave, iter) { in bond_vlan_rx_add_vid()
379 res = vlan_vid_add(slave->dev, proto, vid); in bond_vlan_rx_add_vid()
389 if (rollback_slave == slave) in bond_vlan_rx_add_vid()
409 struct slave *slave; in bond_vlan_rx_kill_vid() local
411 bond_for_each_slave(bond, slave, iter) in bond_vlan_rx_kill_vid()
412 vlan_vid_del(slave->dev, proto, vid); in bond_vlan_rx_kill_vid()
435 struct slave *slave; in bond_ipsec_dev() local
441 slave = rcu_dereference(bond->curr_active_slave); in bond_ipsec_dev()
442 if (!slave) in bond_ipsec_dev()
[all …]
H A Dbond_procfs.c16 struct slave *slave; in bond_info_seq_start() local
24 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start()
26 return slave; in bond_info_seq_start()
35 struct slave *slave; in bond_info_seq_next() local
42 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
44 return slave; in bond_info_seq_next()
45 if (slave == v) in bond_info_seq_next()
62 struct slave *curr, *primary; in bond_info_show_master()
191 const struct slave *slave) in bond_info_show_slave() argument
195 seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); in bond_info_show_slave()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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 …]
H A 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 …]
/linux/arch/arm/mach-omap2/
H A Domap_hwmod_2xxx_interconnect_data.c26 .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/sound/soc/sdca/
H A Dsdca_device.c18 void sdca_lookup_interface_revision(struct sdw_slave *slave) in sdca_lookup_interface_revision()
20 struct fwnode_handle *fwnode = slave->dev.fwnode; in sdca_lookup_interface_revision()
27 &slave->sdca_data.interface_revision); in sdca_lookup_interface_revision()
36 void sdca_lookup_swft(struct sdw_slave *slave) in sdca_device_quirk_rt712_vb()
41 (struct acpi_table_header **)&slave->sdca_data.swft); in sdca_device_quirk_rt712_vb()
43 dev_info(&slave->dev, "SWFT not available\n"); in sdca_device_quirk_rt712_vb()
45 devm_add_action_or_reset(&slave->dev, devm_acpi_table_put, in sdca_device_quirk_rt712_vb()
46 &slave->sdca_data.swft); in sdca_device_quirk_rt712_vb()
50 static bool sdca_device_quirk_rt712_vb(struct sdw_slave *slave) in sdca_device_quirk_rt712_vb()
52 struct sdw_slave_id *id = &slave in sdca_device_quirk_rt712_vb()
17 sdca_lookup_interface_revision(struct sdw_slave * slave) sdca_lookup_interface_revision() argument
30 sdca_device_quirk_rt712_vb(struct sdw_slave * slave) sdca_device_quirk_rt712_vb() argument
59 sdca_device_quirk_skip_func_type_patching(struct sdw_slave * slave) sdca_device_quirk_skip_func_type_patching() argument
76 sdca_device_quirk_match(struct sdw_slave * slave,enum sdca_quirk quirk) sdca_device_quirk_match() argument
[all...]
/linux/drivers/net/
H A Deql.c142 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/sound/soc/codecs/
H A Drt722-sdca-sdw.c208 static int rt722_sdca_update_status(struct sdw_slave *slave, in rt722_sdca_update_status() argument
211 struct rt722_sdca_priv *rt722 = dev_get_drvdata(&slave->dev); in rt722_sdca_update_status()
224 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK1, in rt722_sdca_update_status()
226 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK2, in rt722_sdca_update_status()
232 * Perform initialization only if slave status is present and in rt722_sdca_update_status()
239 return rt722_sdca_io_init(&slave->dev, slave); in rt722_sdca_update_status()
242 static int rt722_sdca_read_prop(struct sdw_slave *slave) in rt722_sdca_read_prop() argument
244 struct sdw_slave_prop *prop = &slave->prop; in rt722_sdca_read_prop()
251 sdw_slave_read_lane_mapping(slave); in rt722_sdca_read_prop()
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
471 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_system_suspend() local
502 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_resume() local
[all...]
H A Drt5682-sdw.c121 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 in rt5682_io_init()
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
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
730 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt5682_dev_system_suspend() local
757 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt5682_dev_resume() local
[all...]
H A Dsdw-mockup.c23 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 in sdw_mockup_read_prop()
197 sdw_mockup_bus_config(struct sdw_slave * slave,struct sdw_bus_params * params) sdw_mockup_bus_config() argument
203 sdw_mockup_interrupt_callback(struct sdw_slave * slave,struct sdw_slave_intr_status * status) sdw_mockup_interrupt_callback() argument
216 sdw_mockup_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) sdw_mockup_sdw_probe() argument
240 sdw_mockup_sdw_remove(struct sdw_slave * slave) sdw_mockup_sdw_remove() argument
[all...]
H A Drt1017-sdca-sdw.c257 static int rt1017_sdca_read_prop(struct sdw_slave *slave) in rt1017_sdca_read_prop() argument
259 struct sdw_slave_prop *prop = &slave->prop; in rt1017_sdca_read_prop()
279 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1017_sdca_read_prop()
297 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1017_sdca_read_prop()
319 static int rt1017_sdca_io_init(struct device *dev, struct sdw_slave *slave) in rt1017_sdca_io_init() argument
335 pm_runtime_set_autosuspend_delay(&slave->dev, 3000); in rt1017_sdca_io_init()
336 pm_runtime_use_autosuspend(&slave->dev); in rt1017_sdca_io_init()
339 pm_runtime_set_active(&slave->dev); in rt1017_sdca_io_init()
342 pm_runtime_mark_last_busy(&slave->dev); in rt1017_sdca_io_init()
344 pm_runtime_enable(&slave in rt1017_sdca_io_init()
371 rt1017_sdca_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt1017_sdca_update_status() 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
776 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt1017_sdca_dev_resume() local
[all...]
H A Dmax98363.c91 struct sdw_slave *slave = dev_to_sdw_dev(dev); in max98363_resume() local
98 if (!slave->unattach_request) in max98363_resume()
101 time = wait_for_completion_timeout(&slave->initialization_complete, in max98363_resume()
110 slave->unattach_request = 0; in max98363_resume()
119 static int max98363_read_prop(struct sdw_slave *slave) in max98363_read_prop() argument
121 struct sdw_slave_prop *prop = &slave->prop; in max98363_read_prop()
137 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98363_read_prop()
157 static int max98363_io_init(struct sdw_slave *slave) in max98363_io_init() argument
159 struct device *dev = &slave->dev; in max98363_io_init()
220 if (!max98363->slave) in max98363_sdw_dai_hw_params()
[all …]
H A Dmax98373-sdw.c267 struct sdw_slave *slave = dev_to_sdw_dev(dev); in max98373_resume() local
274 if (!slave->unattach_request) in max98373_resume()
277 time = wait_for_completion_timeout(&slave->initialization_complete, in max98373_resume()
281 sdw_show_ping_status(slave->bus, true); in max98373_resume()
287 slave->unattach_request = 0; in max98373_resume()
299 static int max98373_read_prop(struct sdw_slave *slave) in max98373_read_prop() argument
301 struct sdw_slave_prop *prop = &slave->prop; in max98373_read_prop()
317 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98373_read_prop()
336 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98373_read_prop()
359 static int max98373_io_init(struct sdw_slave *slave) in max98373_io_init() argument
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
728 max98373_init(struct sdw_slave * slave,struct regmap * regmap) max98373_init() argument
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...]
H A Drt1318-sdw.c345 static int rt1318_read_prop(struct sdw_slave *slave) in rt1318_read_prop() argument
347 struct sdw_slave_prop *prop = &slave->prop; in rt1318_read_prop()
364 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1318_read_prop()
382 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1318_read_prop()
404 static int rt1318_io_init(struct device *dev, struct sdw_slave *slave) in rt1318_io_init() argument
419 pm_runtime_set_active(&slave->dev); in rt1318_io_init()
422 pm_runtime_get_noresume(&slave->dev); in rt1318_io_init()
437 pm_runtime_put_autosuspend(&slave->dev); in rt1318_io_init()
439 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); in rt1318_io_init()
443 static int rt1318_update_status(struct sdw_slave *slave, in rt1318_update_status() argument
734 rt1318_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt1318_sdw_init() argument
783 rt1318_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt1318_sdw_probe() argument
796 rt1318_sdw_remove(struct sdw_slave * slave) rt1318_sdw_remove() argument
824 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt1318_dev_resume() local
[all...]
/linux/drivers/net/ethernet/ti/
H A Dcpsw-common.c15 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 …]
/linux/drivers/dma/dw/
H A Dof.c20 struct dw_dma_slave slave = { in dw_dma_of_xlate() local
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()
31 slave.p_master = dma_spec->args[2]; in dw_dma_of_xlate()
33 slave.channels = dma_spec->args[3]; in dw_dma_of_xlate()
35 if (WARN_ON(slave.src_id >= DW_DMA_MAX_NR_REQUESTS || in dw_dma_of_xlate()
36 slave.dst_id >= DW_DMA_MAX_NR_REQUESTS || in dw_dma_of_xlate()
37 slave.m_master >= dw->pdata->nr_masters || in dw_dma_of_xlate()
38 slave.p_master >= dw->pdata->nr_masters || in dw_dma_of_xlate()
[all …]
/linux/drivers/infiniband/hw/mlx4/
H A Dcm.c58 int slave; member
360 static int alloc_rej_tmout(struct mlx4_ib_sriov *sriov, u32 rem_pv_cm_id, int slave) in alloc_rej_tmout() argument
384 item->slave = slave; in alloc_rej_tmout()
409 int slave; in lookup_rej_tmout_slave() local
417 slave = !item ? -ENOENT : xa_err(item); in lookup_rej_tmout_slave()
419 slave = item->slave; in lookup_rej_tmout_slave()
423 return slave; in lookup_rej_tmout_slave()
426 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, in mlx4_ib_demux_cm_handler() argument
439 if (!slave) in mlx4_ib_demux_cm_handler()
443 *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id); in mlx4_ib_demux_cm_handler()
[all …]

12345678910>>...15