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.h157 struct slave { struct
191 static inline struct slave *to_slave(struct kobject *kobj) in to_slave() argument
193 return container_of(kobj, struct slave, kobj); in to_slave()
199 struct slave *arr[];
218 struct slave __rcu *curr_active_slave;
219 struct slave __rcu *current_arp_slave;
220 struct slave __rcu *primary_slave;
227 struct slave *);
270 ((struct slave *) rcu_dereference(dev->rx_handler_data))
273 ((struct slave *) rtnl_dereference(dev->rx_handler_data))
[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.c171 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_delete_slave() local
172 struct sdw_bus *bus = slave->bus; in sdw_delete_slave()
176 sdw_slave_debugfs_exit(slave); in sdw_delete_slave()
180 if (slave->dev_num) { /* clear dev_num if assigned */ in sdw_delete_slave()
181 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave()
183 bus->ops->put_device_num(bus, slave); in sdw_delete_slave()
185 list_del_init(&slave->node); in sdw_delete_slave()
361 int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, in sdw_fill_msg() argument
380 if (slave && !slave->prop.paging_support) in sdw_fill_msg()
391 if (!slave) { in sdw_fill_msg()
[all …]
H A Dbus_type.c21 sdw_get_device_id(struct sdw_slave *slave, const 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 …]
H A Ddebugfs.c36 static ssize_t sdw_sprintf(struct sdw_slave *slave, in sdw_sprintf() argument
41 value = sdw_read_no_pm(slave, reg); in sdw_sprintf()
52 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show() local
60 ret = pm_runtime_get_sync(&slave->dev); in sdw_slave_reg_show()
62 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 …]
H A Dstream.c66 struct sdw_slave *slave, in _sdw_program_slave_port_params() argument
87 ret = sdw_write_no_pm(slave, addr1, t_params->offset2); in _sdw_program_slave_port_params()
96 ret = sdw_write_no_pm(slave, addr2, t_params->blk_pkg_mode); in _sdw_program_slave_port_params()
114 ret = sdw_write_no_pm(slave, addr3, wbuf); in _sdw_program_slave_port_params()
124 ret = sdw_write_no_pm(slave, addr4, wbuf); in _sdw_program_slave_port_params()
137 struct sdw_slave_prop *slave_prop = &s_rt->slave->prop; in sdw_program_slave_port_params()
144 if (s_rt->slave->is_mockup_device) in sdw_program_slave_port_params()
150 dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, s_rt->direction, in sdw_program_slave_port_params()
182 ret = sdw_update_no_pm(s_rt->slave, addr1, 0xF, wbuf); in sdw_program_slave_port_params()
184 dev_err(&s_rt->slave->dev, in sdw_program_slave_port_params()
[all …]
H A Dsysfs_slave.c73 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
74 return sprintf(buf, format_string, slave->prop.field); \
97 struct sdw_slave *slave = dev_to_sdw_dev(dev); in modalias_show() local
99 return sdw_slave_modalias(slave, buf, 256); in modalias_show()
145 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
146 return sprintf(buf, format_string, slave->prop.dp0_prop->field);\
159 struct sdw_slave *slave = dev_to_sdw_dev(dev); in words_show() local
163 for (i = 0; i < slave->prop.dp0_prop->num_words; i++) in words_show()
165 slave->prop.dp0_prop->words[i]); in words_show()
185 struct sdw_slave *slave = dev_to_sdw_dev(kobj_to_dev(kobj)); in dp0_attr_visible() local
[all …]
/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.c21 * 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
152 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
157 "2 for only on active slave "
196 MODULE_PARM_DESC(packets_per_slave, "Packets to send per slave in balance-rr "
197 "mode; 0 for a random slave, 1 packet per "
198 "slave (default), >1 packets per slave.");
295 * @slave_dev: slave that is supposed to xmit this skbuff
352 * We don't protect the slave lis
377 struct slave *slave, *rollback_slave; bond_vlan_rx_add_vid() local
412 struct slave *slave; bond_vlan_rx_kill_vid() local
438 struct slave *slave; bond_ipsec_dev() local
472 struct slave *slave; bond_ipsec_add_sa() local
524 struct slave *slave; bond_ipsec_add_sa_all() local
601 struct slave *slave; bond_ipsec_del_sa_all() local
759 struct slave *slave; bond_set_carrier() local
795 bond_update_speed_duplex(struct slave * slave) bond_update_speed_duplex() argument
856 struct slave *slave; bond_set_promiscuity() local
879 struct slave *slave; bond_set_allmulti() local
994 struct slave *slave; bond_get_old_active() local
1098 struct slave *slave, *hprio = NULL; bond_choose_primary_or_current() local
1154 struct slave *slave, *bestslave = NULL; bond_find_best_slave() local
1179 struct slave *slave = NULL; bond_should_notify_peers() local
1392 slave_enable_netpoll(struct slave * slave) slave_enable_netpoll() argument
1411 slave_disable_netpoll(struct slave * slave) slave_disable_netpoll() argument
1426 struct slave *slave = NULL; bond_poll_controller() local
1455 struct slave *slave; bond_netpoll_cleanup() local
1466 struct slave *slave; bond_netpoll_setup() local
1479 slave_enable_netpoll(struct slave * slave) slave_enable_netpoll() argument
1483 slave_disable_netpoll(struct slave * slave) slave_disable_netpoll() argument
1499 struct slave *slave; bond_fix_features() local
1520 struct slave *slave; bond_header_create() local
1541 struct slave *slave; bond_header_parse() local
1590 bond_should_deliver_exact_match(struct sk_buff * skb,struct slave * slave,struct bonding * bond) bond_should_deliver_exact_match() argument
1606 struct slave *slave; bond_handle_frame() local
1706 bond_master_upper_dev_link(struct bonding * bond,struct slave * slave,struct netlink_ext_ack * extack) bond_master_upper_dev_link() argument
1726 bond_upper_dev_unlink(struct bonding * bond,struct slave * slave) bond_upper_dev_unlink() argument
1734 struct slave *slave = to_slave(kobj); slave_kobj_release() local
1751 bond_kobj_init(struct slave * slave) bond_kobj_init() argument
1766 struct slave *slave = NULL; bond_alloc_slave() local
1797 bond_fill_ifslave(struct slave * slave,struct ifslave * info) bond_fill_ifslave() argument
1807 struct slave *slave = container_of(_work, struct slave, bond_netdev_notify_work() local
1822 bond_queue_slave_event(struct slave * slave) bond_queue_slave_event() argument
1827 bond_lower_state_changed(struct slave * slave) bond_lower_state_changed() argument
1870 struct slave *slave; bond_xdp_set_features() local
2430 struct slave *slave, *oldcurrent; __bond_release_one() local
2641 struct slave *slave; bond_slave_info_query() local
2662 struct slave *slave; bond_miimon_inspect() local
2765 bond_miimon_link_change(struct bonding * bond,struct slave * slave,char link) bond_miimon_link_change() argument
2784 struct slave *slave, *primary, *active; bond_miimon_commit() local
2898 struct slave *slave; bond_mii_monitor() local
2967 bond_handle_vlan(struct slave * slave,struct bond_vlan_tag * tags,struct sk_buff * skb) bond_handle_vlan() argument
3012 bond_arp_send(struct slave * slave,int arp_op,__be32 dest_ip,__be32 src_ip,struct bond_vlan_tag * tags) bond_arp_send() argument
3078 bond_arp_send_all(struct bonding * bond,struct slave * slave) bond_arp_send_all() argument
3132 bond_validate_arp(struct bonding * bond,struct slave * slave,__be32 sip,__be32 tip) bond_validate_arp() argument
3153 bond_arp_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_arp_rcv() argument
3233 bond_ns_send(struct slave * slave,const struct in6_addr * daddr,const struct in6_addr * saddr,struct bond_vlan_tag * tags) bond_ns_send() argument
3257 bond_ns_send_all(struct bonding * bond,struct slave * slave) bond_ns_send_all() argument
3344 bond_validate_na(struct bonding * bond,struct slave * slave,struct in6_addr * saddr,struct in6_addr * daddr) bond_validate_na() argument
3373 bond_na_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_na_rcv() argument
3422 bond_rcv_validate(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_rcv_validate() argument
3452 bond_send_validate(struct bonding * bond,struct slave * slave) bond_send_validate() argument
3483 struct slave *slave, *oldcurrent; bond_loadbalance_arp_mon() local
3602 struct slave *slave; bond_ab_arp_inspect() local
3673 struct slave *slave; bond_ab_arp_commit() local
3762 struct slave *slave, *before = NULL, *new_slave = NULL, bond_ab_arp_probe() local
3946 struct slave *slave = bond_slave_get_rtnl(slave_dev), *primary; bond_slave_netdev_event() local
4349 struct slave *slave; bond_open() local
4411 struct slave *slave; bond_close() local
4519 struct slave *slave; bond_get_stats() local
4699 struct slave *slave; bond_set_rx_mode() local
4722 struct slave *slave; bond_neigh_init() local
4776 struct slave *slave, *rollback_slave; bond_change_mtu() local
4833 struct slave *slave, *rollback_slave; bond_set_mac_address() local
4902 struct slave *slave; bond_get_slave_by_id() local
4961 struct slave *slave; bond_xmit_roundrobin_slave_get() local
4999 struct slave *slave; bond_xdp_xmit_roundrobin_slave_get() local
5041 struct slave *slave; bond_xmit_roundrobin() local
5062 struct slave *slave; bond_xmit_activebackup() local
5161 struct slave *slave; bond_update_slave_arr() local
5232 struct slave *slave; bond_xmit_3ad_xor_slave_get() local
5301 struct slave *slave; bond_3ad_xor_xmit() local
5331 struct slave *slave = slaves->arr[i]; bond_xmit_broadcast() local
5369 struct slave *slave = NULL; bond_slave_override() local
5419 struct slave *slave = NULL; bond_xmit_get_slave() local
5505 struct slave *slave; __bond_sk_get_lower_dev() local
5613 struct slave *slave; bond_xdp_get_xmit_slave() local
5686 struct slave *slave, *rollback_slave; bond_xdp_set() local
5777 bond_mode_bcast_speed(struct slave * slave,u32 speed) bond_mode_bcast_speed() argument
5853 struct slave *slave; bond_ethtool_get_link_ksettings() local
5902 struct slave *slave; bond_ethtool_get_ts_info() local
6063 struct slave *slave; bond_uninit() local
[all...]
H A Dbond_alb.c54 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 …]
H A Dbond_3ad.c131 if (port->slave == NULL) in __get_bond_by_port()
134 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
148 struct slave *first_slave; in __get_first_agg()
184 bond_set_slave_tx_disabled_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); in __disable_distributing_port()
196 struct slave *slave = port->slave; in __enable_collecting_port() local
198 if (slave->link == BOND_LINK_UP && bond_slave_is_up(slave)) in __enable_collecting_port()
199 bond_set_slave_rx_enabled_flags(slave, BOND_SLAVE_NOTIFY_LATER); in __enable_collecting_port()
210 bond_set_slave_inactive_flags(port->slave, BOND_SLAVE_NOTIFY_LATER); in __disable_port()
221 struct slave *slave = port->slave; in __enable_port() local
223 if ((slave->link == BOND_LINK_UP) && bond_slave_is_up(slave)) in __enable_port()
[all …]
/linux/drivers/fsi/
H A Dfsi-core.c181 return fsi_slave_read(dev->slave, dev->addr + addr, val, size); in fsi_device_read()
191 return fsi_slave_write(dev->slave, dev->addr + addr, val, size); in fsi_device_write()
199 return fsi_slave_read(dev->slave, addr, val, sizeof(uint32_t)); in fsi_device_peek()
210 static struct fsi_device *fsi_create_device(struct fsi_slave *slave) in fsi_create_device() argument
218 dev->dev.parent = &slave->dev; in fsi_create_device()
226 static int fsi_slave_calc_addr(struct fsi_slave *slave, uint32_t *addrp, in fsi_slave_calc_addr() argument
232 if (addr > slave->size) in fsi_slave_calc_addr()
239 if (slave->id != 0) in fsi_slave_calc_addr()
250 static int fsi_slave_report_and_clear_errors(struct fsi_slave *slave) in fsi_slave_report_and_clear_errors() argument
252 struct fsi_master *master = slave->master; in fsi_slave_report_and_clear_errors()
[all …]
/linux/sound/soc/sdca/
H A Dsdca_device.c18 void sdca_lookup_interface_revision(struct sdw_slave *slave) in sdca_lookup_interface_revision() argument
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_lookup_swft() argument
41 (struct acpi_table_header **)&slave->sdca_data.swft); in sdca_lookup_swft()
43 dev_info(&slave->dev, "SWFT not available\n"); in sdca_lookup_swft()
45 devm_add_action_or_reset(&slave->dev, devm_acpi_table_put, in sdca_lookup_swft()
46 slave->sdca_data.swft); in sdca_lookup_swft()
50 static bool sdca_device_quirk_rt712_vb(struct sdw_slave *slave) in sdca_device_quirk_rt712_vb() argument
52 struct sdw_slave_id *id = &slave->id; in sdca_device_quirk_rt712_vb()
[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 …]
/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/codecs/
H A Drt721-sdca-sdw.c194 static int rt721_sdca_update_status(struct sdw_slave *slave, in rt721_sdca_update_status() argument
197 struct rt721_sdca_priv *rt721 = dev_get_drvdata(&slave->dev); in rt721_sdca_update_status()
210 sdw_write_no_pm(rt721->slave, SDW_SCP_SDCA_INTMASK1, in rt721_sdca_update_status()
212 sdw_write_no_pm(rt721->slave, SDW_SCP_SDCA_INTMASK2, in rt721_sdca_update_status()
225 return rt721_sdca_io_init(&slave->dev, slave); in rt721_sdca_update_status()
228 static int rt721_sdca_read_prop(struct sdw_slave *slave) in rt721_sdca_read_prop() argument
230 struct sdw_slave_prop *prop = &slave->prop; in rt721_sdca_read_prop()
237 sdw_slave_read_prop(slave); in rt721_sdca_read_prop()
253 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt721_sdca_read_prop()
271 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt721_sdca_read_prop()
[all …]
H A Drt711-sdca-sdw.c141 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()
228 prop->dp0_prop = devm_kzalloc(&slave->dev, sizeof(*prop->dp0_prop), in rt711_sdca_read_prop()
[all …]
H A Drt712-sdca-sdw.c164 static int rt712_sdca_update_status(struct sdw_slave *slave, in rt712_sdca_update_status() argument
167 struct rt712_sdca_priv *rt712 = dev_get_drvdata(&slave->dev); in rt712_sdca_update_status()
180 sdw_write_no_pm(rt712->slave, SDW_SCP_SDCA_INTMASK1, in rt712_sdca_update_status()
182 sdw_write_no_pm(rt712->slave, SDW_SCP_SDCA_INTMASK2, in rt712_sdca_update_status()
195 return rt712_sdca_io_init(&slave->dev, slave); in rt712_sdca_update_status()
198 static int rt712_sdca_read_prop(struct sdw_slave *slave) in rt712_sdca_read_prop() argument
200 struct sdw_slave_prop *prop = &slave->prop; in rt712_sdca_read_prop()
207 sdw_slave_read_prop(slave); in rt712_sdca_read_prop()
219 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt712_sdca_read_prop()
237 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt712_sdca_read_prop()
[all …]
H A Drt722-sdca-sdw.c247 static int rt722_sdca_update_status(struct sdw_slave *slave, in rt722_sdca_update_status() argument
250 struct rt722_sdca_priv *rt722 = dev_get_drvdata(&slave->dev); in rt722_sdca_update_status()
263 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK1, in rt722_sdca_update_status()
265 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK2, in rt722_sdca_update_status()
278 return rt722_sdca_io_init(&slave->dev, slave); in rt722_sdca_update_status()
281 static int rt722_sdca_read_prop(struct sdw_slave *slave) in rt722_sdca_read_prop() argument
283 struct sdw_slave_prop *prop = &slave->prop; in rt722_sdca_read_prop()
290 sdw_slave_read_lane_mapping(slave); in rt722_sdca_read_prop()
307 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt722_sdca_read_prop()
325 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt722_sdca_read_prop()
[all …]
H A Drt766-sdca-sdw.c156 static int rt766_sdca_update_status(struct sdw_slave *slave, in rt766_sdca_update_status() argument
159 struct rt766_sdca_priv *rt766 = dev_get_drvdata(&slave->dev); in rt766_sdca_update_status()
172 sdw_write_no_pm(rt766->slave, SDW_SCP_SDCA_INTMASK3, in rt766_sdca_update_status()
174 sdw_write_no_pm(rt766->slave, SDW_SCP_SDCA_INTMASK4, in rt766_sdca_update_status()
187 return rt766_sdca_io_init(&slave->dev, slave); in rt766_sdca_update_status()
190 static int rt766_sdca_read_prop(struct sdw_slave *slave) in rt766_sdca_read_prop() argument
192 struct sdw_slave_prop *prop = &slave->prop; in rt766_sdca_read_prop()
195 ret = sdw_slave_read_prop(slave); in rt766_sdca_read_prop()
214 static int rt766_sdca_sdw_probe(struct sdw_slave *slave, in rt766_sdca_sdw_probe() argument
220 regmap = devm_regmap_init_sdw_mbq_cfg(&slave->dev, slave, in rt766_sdca_sdw_probe()
[all …]
H A Drt5682-sdw.c122 if (!rt5682->slave) in rt5682_sdw_hw_params()
133 retval = sdw_stream_add_slave(rt5682->slave, &stream_config, in rt5682_sdw_hw_params()
231 if (!rt5682->slave) in rt5682_sdw_hw_free()
234 sdw_stream_remove_slave(rt5682->slave, sdw_stream); in rt5682_sdw_hw_free()
299 struct sdw_slave *slave) in rt5682_sdw_init() argument
309 rt5682->slave = slave; in rt5682_sdw_init()
369 static int rt5682_io_init(struct device *dev, struct sdw_slave *slave) in rt5682_io_init() argument
390 pm_runtime_set_active(&slave->dev); in rt5682_io_init()
392 pm_runtime_get_noresume(&slave->dev); in rt5682_io_init()
488 pm_runtime_put_autosuspend(&slave->dev); in rt5682_io_init()
[all …]
H A Drt715-sdca-sdw.c118 static int rt715_sdca_update_status(struct sdw_slave *slave, in rt715_sdca_update_status() argument
121 struct rt715_sdca_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_sdca_update_status()
131 return rt715_sdca_io_init(&slave->dev, slave); in rt715_sdca_update_status()
134 static int rt715_sdca_read_prop(struct sdw_slave *slave) in rt715_sdca_read_prop() argument
136 struct sdw_slave_prop *prop = &slave->prop; in rt715_sdca_read_prop()
149 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt715_sdca_read_prop()
176 static int rt715_sdca_sdw_probe(struct sdw_slave *slave, in rt715_sdca_sdw_probe() argument
182 mbq_regmap = devm_regmap_init_sdw_mbq(slave, &rt715_sdca_mbq_regmap); in rt715_sdca_sdw_probe()
186 regmap = devm_regmap_init_sdw(slave, &rt715_sdca_regmap); in rt715_sdca_sdw_probe()
190 return rt715_sdca_init(&slave->dev, mbq_regmap, regmap, slave); in rt715_sdca_sdw_probe()
[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/include/linux/soundwire/
H A Dsdw.h468 int sdw_slave_read_prop(struct sdw_slave *slave);
469 int sdw_slave_read_lane_mapping(struct sdw_slave *slave);
625 int (*interrupt_callback)(struct sdw_slave *slave,
627 int (*update_status)(struct sdw_slave *slave,
629 int (*bus_config)(struct sdw_slave *slave,
631 int (*port_prep)(struct sdw_slave *slave,
634 int (*clk_stop)(struct sdw_slave *slave,
886 int (*get_device_num)(struct sdw_bus *bus, struct sdw_slave *slave);
887 void (*put_device_num)(struct sdw_bus *bus, struct sdw_slave *slave);
889 struct sdw_slave *slave,
[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 …]

12345678910>>...15