| /linux/drivers/soundwire/ |
| H A D | bus.c | 135 * Create Slave devices based on Slaves described in in sdw_bus_master_add() 172 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() 282 dev_err(bus->dev, "trf on Slave %d failed:%d %s addr %x count %d\n", in sdw_transfer_unlocked() 291 * sdw_transfer() - Synchronous transfer message to a SDW Slave devic 362 sdw_fill_msg(struct sdw_msg * msg,struct sdw_slave * slave,u32 addr,size_t count,u16 dev_num,u8 flags,u8 * buf) sdw_fill_msg() argument 415 sdw_ntransfer_no_pm(struct sdw_slave * slave,u32 addr,u8 flags,size_t count,u8 * val) sdw_ntransfer_no_pm() argument 452 sdw_nread_no_pm(struct sdw_slave * slave,u32 addr,size_t count,u8 * val) sdw_nread_no_pm() argument 468 sdw_nwrite_no_pm(struct sdw_slave * slave,u32 addr,size_t count,const u8 * val) sdw_nwrite_no_pm() argument 480 sdw_write_no_pm(struct sdw_slave * slave,u32 addr,u8 value) sdw_write_no_pm() argument 557 sdw_read_no_pm(struct sdw_slave * slave,u32 addr) sdw_read_no_pm() argument 570 sdw_update_no_pm(struct sdw_slave * slave,u32 addr,u8 mask,u8 val) sdw_update_no_pm() argument 584 sdw_update(struct sdw_slave * slave,u32 addr,u8 mask,u8 val) sdw_update() argument 609 sdw_nread(struct sdw_slave * slave,u32 addr,size_t count,u8 * val) sdw_nread() argument 640 sdw_nwrite(struct sdw_slave * slave,u32 addr,size_t count,const u8 * val) sdw_nwrite() argument 667 sdw_read(struct sdw_slave * slave,u32 addr) sdw_read() argument 689 sdw_write(struct sdw_slave * slave,u32 addr,u8 value) sdw_write() argument 702 struct sdw_slave *slave; sdw_get_slave() local 712 sdw_compare_devid(struct sdw_slave * slave,struct sdw_slave_id id) sdw_compare_devid() argument 726 sdw_get_device_num(struct sdw_slave * slave) sdw_get_device_num() argument 753 sdw_assign_device_num(struct sdw_slave * slave) sdw_assign_device_num() argument 815 is_clock_scaling_supported_by_slave(struct sdw_slave * slave) is_clock_scaling_supported_by_slave() argument 828 struct sdw_slave *slave, *_s; sdw_program_device_num() local 928 sdw_modify_slave_status(struct sdw_slave * slave,enum sdw_slave_status status) sdw_modify_slave_status() argument 959 sdw_slave_clk_stop_callback(struct sdw_slave * slave,enum sdw_clk_stop_mode mode,enum sdw_clk_stop_type type) sdw_slave_clk_stop_callback() argument 980 sdw_slave_clk_stop_prepare(struct sdw_slave * slave,enum sdw_clk_stop_mode mode,bool prepare) sdw_slave_clk_stop_prepare() argument 1058 struct sdw_slave *slave; sdw_bus_prep_clk_stop() local 1187 struct sdw_slave *slave; sdw_bus_exit_clk_stop() local 1256 sdw_configure_dpn_intr(struct sdw_slave * slave,int port,bool enable,int mask) sdw_configure_dpn_intr() argument 1288 sdw_slave_get_scale_index(struct sdw_slave * slave,u8 * base) sdw_slave_get_scale_index() argument 1363 sdw_slave_get_current_bank(struct sdw_slave * slave) sdw_slave_get_current_bank() argument 1375 sdw_slave_set_frequency(struct sdw_slave * slave) sdw_slave_set_frequency() argument 1417 sdw_initialize_slave(struct sdw_slave * slave) sdw_initialize_slave() argument 1498 sdw_handle_dp0_interrupt(struct sdw_slave * slave,u8 * slave_status) sdw_handle_dp0_interrupt() argument 1570 sdw_handle_port_interrupt(struct sdw_slave * slave,int port,u8 * slave_status) sdw_handle_port_interrupt() argument 1643 sdw_handle_slave_alerts(struct sdw_slave * slave) sdw_handle_slave_alerts() argument 1854 sdw_update_slave_status(struct sdw_slave * slave,enum sdw_slave_status status) sdw_update_slave_status() argument 1883 struct sdw_slave *slave; sdw_handle_slave_status() local 2025 struct sdw_slave *slave; sdw_clear_slave_status() local 2053 sdw_bpt_send_async(struct sdw_bus * bus,struct sdw_slave * slave,struct sdw_bpt_msg * msg) sdw_bpt_send_async() argument 2084 sdw_bpt_wait(struct sdw_bus * bus,struct sdw_slave * slave,struct sdw_bpt_msg * msg) sdw_bpt_wait() argument 2090 sdw_bpt_send_sync(struct sdw_bus * bus,struct sdw_slave * slave,struct sdw_bpt_msg * msg) sdw_bpt_send_sync() argument [all...] |
| H A D | bus_type.c | 15 * @slave: SoundWire Slave Device 16 * @drv: SoundWire Slave Driver 22 sdw_get_device_id(struct sdw_slave *slave, const 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() [all …]
|
| H A D | debugfs.c | 37 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, bu in sdw_slave_reg_show() 152 struct sdw_slave *slave = data; set_command() local 170 struct sdw_slave *slave = data; set_command_type() local 189 struct sdw_slave *slave = data; set_start_address() local 205 struct sdw_slave *slave = data; set_num_bytes() local 222 do_bpt_sequence(struct sdw_slave * slave,bool write,u8 * buffer) do_bpt_sequence() argument 249 struct sdw_slave *slave = data; cmd_go() local 339 sdw_slave_debugfs_init(struct sdw_slave * slave) sdw_slave_debugfs_init() argument 367 sdw_slave_debugfs_exit(struct sdw_slave * slave) sdw_slave_debugfs_exit() argument [all...] |
| H A D | slave.c | 14 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_obj(*slave); in sdw_slave_add() 36 if (!slave) in sdw_slave_add() 40 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add() 41 slave in sdw_slave_add() [all...] |
| H A D | stream.c | 67 struct sdw_slave *slave, in _sdw_program_slave_port_params() 88 ret = sdw_write_no_pm(slave, addr1, t_params->offset2); in _sdw_program_slave_port_params() 97 ret = sdw_write_no_pm(slave, addr2, t_params->blk_pkg_mode); in _sdw_program_slave_port_params() 115 ret = sdw_write_no_pm(slave, addr3, wbuf); in _sdw_program_slave_port_params() 125 ret = sdw_write_no_pm(slave, addr4, wbuf); in _sdw_program_slave_port_params() 138 struct sdw_slave_prop *slave_prop = &s_rt->slave->prop; in sdw_program_slave_port_params() 145 if (s_rt->slave->is_mockup_device) in sdw_program_slave_port_params() 151 dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave, s_rt->direction, in sdw_program_slave_port_params() 183 ret = sdw_update_no_pm(s_rt->slave, addr1, 0xF, wbuf); in sdw_program_slave_port_params() 185 dev_err(&s_rt->slave in sdw_program_slave_port_params() 64 _sdw_program_slave_port_params(struct sdw_bus * bus,struct sdw_slave * slave,struct sdw_transport_params * t_params,enum sdw_dpn_type type) _sdw_program_slave_port_params() argument 420 struct sdw_slave *slave = s_rt->slave; sdw_do_port_prep() local 619 struct sdw_slave *slave; sdw_notify_config() local 664 struct sdw_slave *slave; sdw_program_params() local 993 sdw_slave_port_free(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_port_free() argument 1013 sdw_slave_port_alloc(struct sdw_slave * slave,struct sdw_slave_runtime * s_rt,unsigned int num_config) sdw_slave_port_alloc() argument 1040 sdw_slave_port_config(struct sdw_slave * slave,struct sdw_slave_runtime * s_rt,const struct sdw_port_config * port_config,bool is_bpt_stream) sdw_slave_port_config() argument 1129 sdw_slave_rt_alloc(struct sdw_slave * slave,struct sdw_master_runtime * m_rt) sdw_slave_rt_alloc() argument 1163 sdw_slave_rt_find(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_rt_find() argument 1188 sdw_slave_rt_free(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_rt_free() argument 1380 sdw_get_slave_dpn_prop(struct sdw_slave * slave,enum sdw_data_direction direction,unsigned int port_num) sdw_get_slave_dpn_prop() argument 2117 sdw_stream_add_slave(struct sdw_slave * slave,struct sdw_stream_config * stream_config,const struct sdw_port_config * port_config,unsigned int num_ports,struct sdw_stream_runtime * stream) sdw_stream_add_slave() argument 2228 sdw_stream_remove_slave(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_stream_remove_slave() argument [all...] |
| H A D | bus.h | 33 void sdw_slave_debugfs_init(struct sdw_slave *slave); 34 void sdw_slave_debugfs_exit(struct sdw_slave *slave); 40 static inline void sdw_slave_debugfs_init(struct sdw_slave *slave) {} in sdw_slave_debugfs_init() argument 41 static inline void sdw_slave_debugfs_exit(struct sdw_slave *slave) {} in sdw_slave_debugfs_exit() argument 53 * @addr: Register address accessed in the Slave 55 * @dev_num: Slave device number 56 * @addr_page1: SCP address page 1 Slave register 57 * @addr_page2: SCP address page 2 Slave register 77 * @addr: Start Register address accessed in the Slave 93 * @dev_num: Slave device number [all …]
|
| /linux/include/net/ |
| H A D | bonding.h | 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__) 53 /* slave list primitives */ 75 * @pos: current slave 156 struct slave { 167 u8 backup:1, /* indicates backup slave. Value corresponds with 169 inactive:1, /* indicates inactive slave */ 170 rx_disabled:1, /* indicates whether slave' argument 159 struct slave { global() struct 172 inactiveslave global() argument 173 rx_disabledslave global() argument 183 ad_infoslave global() argument 184 tlb_infoslave global() argument 190 slave_statsslave global() argument 193 kobjslave to_slave() argument 296 bond_get_bond_by_slave(struct slave * slave) bond_get_bond_by_slave() argument 357 struct slave *slave = rcu_dereference_rtnl(bond->curr_active_slave); bond_option_active_slave_get_rcu() local 362 bond_slave_is_up(struct slave * slave) bond_slave_is_up() argument 367 bond_set_active_slave(struct slave * slave) bond_set_active_slave() argument 376 bond_set_backup_slave(struct slave * slave) bond_set_backup_slave() argument 385 bond_set_slave_state(struct slave * slave,int slave_state,bool notify) bond_set_slave_state() argument 430 bond_slave_state(struct slave * slave) bond_slave_state() argument 435 bond_is_active_slave(struct slave * slave) bond_is_active_slave() argument 440 bond_slave_can_tx(struct slave * slave) bond_slave_can_tx() argument 448 struct slave *slave; bond_is_active_slave_dev() local 495 slave_do_arp_validate(struct bonding * bond,struct slave * slave) slave_do_arp_validate() argument 523 slave_oldest_target_arp_rx(struct bonding * bond,struct slave * slave) slave_oldest_target_arp_rx() argument 537 slave_last_rx(struct bonding * bond,struct slave * slave) slave_last_rx() argument 545 slave_update_last_tx(struct slave * slave) slave_update_last_tx() argument 550 slave_last_tx(struct slave * slave) slave_last_tx() argument 556 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument 562 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument 570 bond_set_slave_inactive_flags(struct slave * slave,bool notify) bond_set_slave_inactive_flags() argument 581 bond_set_slave_tx_disabled_flags(struct slave * slave,bool notify) bond_set_slave_tx_disabled_flags() argument 587 bond_set_slave_active_flags(struct slave * slave,bool notify) bond_set_slave_active_flags() argument 596 bond_set_slave_rx_enabled_flags(struct slave * slave,bool notify) bond_set_slave_rx_enabled_flags() argument 602 bond_is_slave_inactive(struct slave * slave) bond_is_slave_inactive() argument 607 bond_is_slave_rx_disabled(struct slave * slave) bond_is_slave_rx_disabled() argument 612 bond_propose_link_state(struct slave * slave,int state) bond_propose_link_state() argument 617 bond_commit_link_state(struct slave * slave,bool notify) bond_commit_link_state() argument 635 bond_set_slave_link_state(struct slave * slave,int state,bool notify) bond_set_slave_link_state() argument [all...] |
| H A D | bond_alb.h | 12 struct slave; 15 #define SLAVE_TLB_INFO(slave) ((slave)->tlb_info) argument 49 /* RLB_PROMISC_TIMEOUT = 10 sec equals the time that the current slave is 56 struct slave *tx_slave; /* A pointer to slave used for transmitting 111 struct slave *slave; /* the slave assigned to this client */ member 119 * slave for transmit. 121 u32 load; /* Each slave sums the loadHistory of all clients 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); [all …]
|
| /linux/drivers/net/bonding/ |
| H A D | bond_main.c | 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 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 379 struct slave *slave, *rollback_slave; bond_vlan_rx_add_vid() local 414 struct slave *slave; bond_vlan_rx_kill_vid() local 440 struct slave *slave; bond_ipsec_dev() local 474 struct slave *slave; bond_ipsec_add_sa() local 526 struct slave *slave; bond_ipsec_add_sa_all() local 603 struct slave *slave; bond_ipsec_del_sa_all() local 761 struct slave *slave; bond_set_carrier() local 793 bond_update_speed_duplex(struct slave * slave) bond_update_speed_duplex() argument 854 struct slave *slave; bond_set_promiscuity() local 877 struct slave *slave; bond_set_allmulti() local 992 struct slave *slave; bond_get_old_active() local 1096 struct slave *slave, *hprio = NULL; bond_choose_primary_or_current() local 1152 struct slave *slave, *bestslave = NULL; bond_find_best_slave() local 1177 struct slave *slave = NULL; bond_should_notify_peers() local 1390 slave_enable_netpoll(struct slave * slave) slave_enable_netpoll() argument 1409 slave_disable_netpoll(struct slave * slave) slave_disable_netpoll() argument 1424 struct slave *slave = NULL; bond_poll_controller() local 1453 struct slave *slave; bond_netpoll_cleanup() local 1464 struct slave *slave; bond_netpoll_setup() local 1477 slave_enable_netpoll(struct slave * slave) slave_enable_netpoll() argument 1481 slave_disable_netpoll(struct slave * slave) slave_disable_netpoll() argument 1497 struct slave *slave; bond_fix_features() local 1518 struct slave *slave; bond_header_create() local 1539 struct slave *slave; bond_header_parse() local 1588 bond_should_deliver_exact_match(struct sk_buff * skb,struct slave * slave,struct bonding * bond) bond_should_deliver_exact_match() argument 1604 struct slave *slave; bond_handle_frame() local 1704 bond_master_upper_dev_link(struct bonding * bond,struct slave * slave,struct netlink_ext_ack * extack) bond_master_upper_dev_link() argument 1724 bond_upper_dev_unlink(struct bonding * bond,struct slave * slave) bond_upper_dev_unlink() argument 1732 struct slave *slave = to_slave(kobj); slave_kobj_release() local 1749 bond_kobj_init(struct slave * slave) bond_kobj_init() argument 1764 struct slave *slave = NULL; bond_alloc_slave() local 1795 bond_fill_ifslave(struct slave * slave,struct ifslave * info) bond_fill_ifslave() argument 1805 struct slave *slave = container_of(_work, struct slave, bond_netdev_notify_work() local 1820 bond_queue_slave_event(struct slave * slave) bond_queue_slave_event() argument 1825 bond_lower_state_changed(struct slave * slave) bond_lower_state_changed() argument 1868 struct slave *slave; bond_xdp_set_features() local 2420 struct slave *slave, *oldcurrent; __bond_release_one() local 2633 struct slave *slave; bond_slave_info_query() local 2654 struct slave *slave; bond_miimon_inspect() local 2757 bond_miimon_link_change(struct bonding * bond,struct slave * slave,char link) bond_miimon_link_change() argument 2776 struct slave *slave, *primary, *active; bond_miimon_commit() local 2887 struct slave *slave; bond_mii_monitor() local 2956 bond_handle_vlan(struct slave * slave,struct bond_vlan_tag * tags,struct sk_buff * skb) bond_handle_vlan() argument 3001 bond_arp_send(struct slave * slave,int arp_op,__be32 dest_ip,__be32 src_ip,struct bond_vlan_tag * tags) bond_arp_send() argument 3067 bond_arp_send_all(struct bonding * bond,struct slave * slave) bond_arp_send_all() argument 3121 bond_validate_arp(struct bonding * bond,struct slave * slave,__be32 sip,__be32 tip) bond_validate_arp() argument 3142 bond_arp_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_arp_rcv() argument 3222 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 3246 bond_ns_send_all(struct bonding * bond,struct slave * slave) bond_ns_send_all() argument 3333 bond_validate_na(struct bonding * bond,struct slave * slave,struct in6_addr * saddr,struct in6_addr * daddr) bond_validate_na() argument 3362 bond_na_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_na_rcv() argument 3411 bond_rcv_validate(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_rcv_validate() argument 3441 bond_send_validate(struct bonding * bond,struct slave * slave) bond_send_validate() argument 3471 struct slave *slave, *oldcurrent; bond_loadbalance_arp_mon() local 3590 struct slave *slave; bond_ab_arp_inspect() local 3661 struct slave *slave; bond_ab_arp_commit() local 3750 struct slave *slave, *before = NULL, *new_slave = NULL, bond_ab_arp_probe() local 3934 struct slave *slave = bond_slave_get_rtnl(slave_dev), *primary; bond_slave_netdev_event() local 4337 struct slave *slave; bond_open() local 4399 struct slave *slave; bond_close() local 4507 struct slave *slave; bond_get_stats() local 4687 struct slave *slave; bond_set_rx_mode() local 4710 struct slave *slave; bond_neigh_init() local 4764 struct slave *slave, *rollback_slave; bond_change_mtu() local 4821 struct slave *slave, *rollback_slave; bond_set_mac_address() local 4896 struct slave *slave; bond_get_slave_by_id() local 4955 struct slave *slave; bond_xmit_roundrobin_slave_get() local 4993 struct slave *slave; bond_xdp_xmit_roundrobin_slave_get() local 5035 struct slave *slave; bond_xmit_roundrobin() local 5056 struct slave *slave; bond_xmit_activebackup() local 5155 struct slave *slave; bond_update_slave_arr() local 5224 struct slave *slave; bond_xmit_3ad_xor_slave_get() local 5293 struct slave *slave; bond_3ad_xor_xmit() local 5323 struct slave *slave = slaves->arr[i]; bond_xmit_broadcast() local 5361 struct slave *slave = NULL; bond_slave_override() local 5411 struct slave *slave = NULL; bond_xmit_get_slave() local 5497 struct slave *slave; __bond_sk_get_lower_dev() local 5605 struct slave *slave; bond_xdp_get_xmit_slave() local 5678 struct slave *slave, *rollback_slave; bond_xdp_set() local 5769 bond_mode_bcast_speed(struct slave * slave,u32 speed) bond_mode_bcast_speed() argument 5845 struct slave *slave; bond_ethtool_get_link_ksettings() local 5892 struct slave *slave; bond_ethtool_get_ts_info() local 6053 struct slave *slave; bond_uninit() local [all...] |
| H A 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 …]
|
| H A D | bond_options.c | 266 .desc = "Packets to send per slave in RR mode", 418 .desc = "Reselect primary slave once it comes up", 432 .desc = "Currently active slave", 442 .desc = "Set queue id of a slave", 463 …nds between instances where the bonding driver sends learning packets to each slave's peer switch", 470 .desc = "Slave membership management", 962 slave_err(bond->dev, slave_dev, "Device is not bonding slave\n"); in bond_option_active_slave_set() 967 slave_err(bond->dev, slave_dev, "Device is not our slave\n"); in bond_option_active_slave_set() 975 netdev_dbg(bond->dev, "Clearing current active slave\n"); in bond_option_active_slave_set() 979 struct slave *old_active = rtnl_dereference(bond->curr_active_slave); in bond_option_active_slave_set() [all …]
|
| H A D | bond_procfs.c | 17 struct slave *slave; in bond_info_seq_start() 25 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start() 27 return slave; in bond_info_seq_start() 36 struct slave *slave; in bond_info_seq_next() 43 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next() 45 return slave; in bond_info_seq_next() 46 if (slave == v) in bond_info_seq_next() 63 struct slave *cur in bond_info_show_master() 16 struct slave *slave; bond_info_seq_start() local 35 struct slave *slave; bond_info_seq_next() local 191 bond_info_show_slave(struct seq_file * seq,const struct slave * slave) bond_info_show_slave() argument [all...] |
| /linux/drivers/fsi/ |
| H A D | fsi-core.c | 28 #include "fsi-slave.h" 51 * FSI slave engine control register offsets 55 #define FSI_SSTAT 0x14 /* R : Slave status */ 181 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() 225 /* FSI slave support */ 226 static int fsi_slave_calc_addr(struct fsi_slave *slave, uint32_t *addrp, in fsi_slave_calc_addr() argument [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A 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 …]
|
| H A D | cmd.c | 136 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave, 318 /* check if the slave is trying to boot in the middle of in mlx4_comm_cmd_poll() 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][por in mlx4_MAD_IFC_wrapper() 1025 mlx4_CMD_EPERM_wrapper(struct mlx4_dev * dev,int slave,struct mlx4_vhcr * vhcr,struct mlx4_cmd_mailbox * inbox,struct mlx4_cmd_mailbox * outbox,struct mlx4_cmd_info * cmd) mlx4_CMD_EPERM_wrapper() argument 1034 mlx4_DMA_wrapper(struct mlx4_dev * dev,int slave,struct mlx4_vhcr * vhcr,struct mlx4_cmd_mailbox * inbox,struct mlx4_cmd_mailbox * outbox,struct mlx4_cmd_info * cmd) mlx4_DMA_wrapper() argument 1661 mlx4_master_process_vhcr(struct mlx4_dev * dev,int slave,struct mlx4_vhcr_cmd * in_vhcr) mlx4_master_process_vhcr() argument 1842 mlx4_master_immediate_activate_vlan_qos(struct mlx4_priv * priv,int slave,int port) mlx4_master_immediate_activate_vlan_qos() argument 1995 mlx4_master_activate_admin_state(struct mlx4_priv * priv,int slave) mlx4_master_activate_admin_state() argument 2059 mlx4_master_deactivate_admin_state(struct mlx4_priv * priv,int slave) mlx4_master_deactivate_admin_state() argument 2084 mlx4_master_do_cmd(struct mlx4_dev * dev,int slave,u8 cmd,u16 param,u8 toggle) mlx4_master_do_cmd() argument 2237 int i, slave; mlx4_master_comm_channel() local 2546 int slave; mlx4_report_internal_err_comm_event() local 2731 mlx4_get_vf_indx(struct mlx4_dev * dev,int slave) mlx4_get_vf_indx() argument 2761 mlx4_get_active_ports(struct mlx4_dev * dev,int slave) mlx4_get_active_ports() argument 2785 mlx4_slave_convert_port(struct mlx4_dev * dev,int slave,int port) mlx4_slave_convert_port() argument 2802 mlx4_phys_to_slave_port(struct mlx4_dev * dev,int slave,int port) mlx4_phys_to_slave_port() argument 2856 mlx4_slaves_closest_port(struct mlx4_dev * dev,int slave,int port) mlx4_slaves_closest_port() argument 2872 mlx4_set_vport_qos(struct mlx4_priv * priv,int slave,int port,int max_tx_rate) mlx4_set_vport_qos() argument 2973 int slave; mlx4_set_vf_mac() local 3008 int slave; mlx4_set_vf_vlan() local 3077 int slave; mlx4_set_vf_rate() local 3140 mlx4_get_slave_default_vlan(struct mlx4_dev * dev,int port,int slave,u16 * vlan,u8 * qos) mlx4_get_slave_default_vlan() argument 3165 int slave; mlx4_set_vf_spoofchk() local 3195 int slave; mlx4_get_vf_config() local 3236 int slave; mlx4_set_vf_link_state() local 3340 int slave; mlx4_get_vf_stats() local 3366 mlx4_vf_smi_enabled(struct mlx4_dev * dev,int slave,int port) mlx4_vf_smi_enabled() argument 3379 mlx4_vf_get_enable_smi_admin(struct mlx4_dev * dev,int slave,int port) mlx4_vf_get_enable_smi_admin() argument 3395 mlx4_vf_set_enable_smi_admin(struct mlx4_dev * dev,int slave,int port,int enabled) mlx4_vf_set_enable_smi_admin() argument [all...] |
| H A D | eq.c | 147 u8 slave; in mlx4_gen_slave_eqe() local 152 slave = eqe->slave_id; in mlx4_gen_slave_eqe() 166 if (slave == ALL_SLAVES) { in mlx4_gen_slave_eqe() 178 mlx4_warn(dev, "Failed to generate event for slave %d\n", in mlx4_gen_slave_eqe() 184 if (mlx4_GEN_EQE(dev, slave, eqe)) in mlx4_gen_slave_eqe() 185 mlx4_warn(dev, "Failed to generate event for slave %d\n", in mlx4_gen_slave_eqe() 186 slave); in mlx4_gen_slave_eqe() 194 static void slave_event(struct mlx4_dev *dev, u8 slave, struct mlx4_eqe *eqe) in slave_event() argument 205 …mlx4_warn(dev, "Master failed to generate an EQE for slave: %d. No free EQE on slave events queue\… in slave_event() 206 slave); in slave_event() [all …]
|
| H A D | mlx4.h | 134 /*The flag indicates that the slave should delay the RESET cmd*/ 205 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, 207 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, 561 /* num_of_slave's lists, one per slave */ 657 int slave; member 994 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave, 999 int mlx4_SYNC_TPT_wrapper(struct mlx4_dev *dev, int slave, 1004 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave, 1009 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave, 1014 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave, [all …]
|
| /linux/arch/arm/mach-omap2/ |
| H A 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/drivers/net/ |
| H A 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() 211 "remember to turn off Van-Jacobson compression on your slave devices\n"); in eql_open() 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() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | rt722-sdca-sdw.c | 208 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() 238 /* perform I/O transfers required for Slave initialization */ 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 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 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 385 * PM runtime status is marked as 'active' only when a Slave reports as Attached in rt5682_io_init() 389 pm_runtime_set_active(&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...] |
| /linux/Documentation/devicetree/bindings/clock/ |
| H A D | amlogic,axg-audio-clkc.yaml | 46 - description: slave bit clock N0 provided by external components 47 - description: slave bit clock N1 provided by external components 48 - description: slave bit clock N2 provided by external components 49 - description: slave bit clock N3 provided by external components 50 - description: slave bit clock N4 provided by external components 51 - description: slave bit clock N5 provided by external components 52 - description: slave bit clock N6 provided by external components 53 - description: slave bit clock N7 provided by external components 54 - description: slave bit clock N8 provided by external components 55 - description: slave bit clock N9 provided by external components [all …]
|
| /linux/sound/soc/sdca/ |
| H A D | sdca_device.c | 18 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/infiniband/hw/mlx4/ |
| H A D | cm.c | 58 int slave; member 320 mlx4_ib_warn(ibdev, "%s: id{slave: %d, sl_cm_id: 0x%x} Failed to id_map_alloc\n", in mlx4_ib_multiplex_cm_handler() 333 pr_debug("id{slave: %d, sl_cm_id: 0x%x} is NULL! attr_id: 0x%x\n", in mlx4_ib_multiplex_cm_handler() 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 415 pr_debug("Could not find slave. rem_pv_cm_id 0x%x error: %d\n", in lookup_rej_tmout_slave() 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() [all …]
|
| /linux/Documentation/i2c/ |
| H A D | slave-interface.rst | 2 Linux I2C slave interface description 7 Linux can also be an I2C slave if the I2C controller in use has slave 8 functionality. For that to work, one needs slave support in the bus driver plus 10 example for the latter is the slave-eeprom driver, which acts as a dual memory 12 EEPROM, the Linux I2C slave can access the content via sysfs and handle data as 19 e.g. sysfs I2C slave events I/O registers 34 I2C slave backends behave like standard I2C clients. So, you can instantiate 36 difference is that i2c slave backends have their own address space. So, you 38 instantiating the slave-eeprom driver from userspace at the 7 bit address 0x64 41 # echo slave-24c02 0x1064 > /sys/bus/i2c/devices/i2c-1/new_device [all …]
|