| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | resource_tracker.c | 17 * - Redistributions of source code must retain the above 21 * - Redistributions in binary form must reproduce the above 228 /* > 0 --> apply mirror when getting into HA mode */ 229 /* = 0 --> un-apply mirror when getting out of HA mode */ 237 struct rb_node *node = root->rb_node; in res_tracker_lookup() 243 if (res_id < res->res_id) in res_tracker_lookup() 244 node = node->rb_left; in res_tracker_lookup() 245 else if (res_id > res->res_id) in res_tracker_lookup() 246 node = node->rb_right; in res_tracker_lookup() 255 struct rb_node **new = &(root->rb_node), *parent = NULL; in res_tracker_insert() [all …]
|
| H A D | eq.c | 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 38 #include <linux/dma-mapping.h> 86 static u64 get_async_ev_mask(struct mlx4_dev *dev) in get_async_ev_mask() argument 89 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV) in get_async_ev_mask() 91 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT) in get_async_ev_mask() 99 __raw_writel((__force u32) cpu_to_be32((eq->cons_index & 0xffffff) | in eq_set_ci() 101 eq->doorbell); in eq_set_ci() 109 /* (entry & (eq->nent - 1)) gives us a cyclic array */ in get_eqe() 110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; in get_eqe() [all …]
|
| H A D | mlx4.h | 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 41 #include <linux/radix-tree.h> 60 #define DRV_VERSION "4.0-0" 88 MLX4_MAX_QP_PER_MGM = 4 * ((1 << MLX4_MAX_MGM_LOG_ENTRY_SIZE) / 16 - 2), 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, 223 &(mdev)->persist->pdev->dev, format, \ 228 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) [all …]
|
| /linux/drivers/fsi/ |
| H A D | fsi-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - Rework topology 9 * - s/chip_id/chip_loc 10 * - s/cfam/chip (cfam_id -> chip_id etc...) 27 #include "fsi-master.h" 28 #include "fsi-slave.h" 51 * FSI slave engine control register offsets 55 #define FSI_SSTAT 0x14 /* R : Slave status */ 94 /* Legacy /dev numbering: 4 devices per chip, 16 chips */ 105 static int fsi_bus_match(struct device *dev, const struct device_driver *drv) in fsi_bus_match() argument [all …]
|
| /linux/drivers/net/bonding/ |
| H A D | bond_main.c | 1 // SPDX-License-Identifier: GPL-1.0+ 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 96 /*----- 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 791 bond_update_speed_duplex(struct slave * slave) bond_update_speed_duplex() argument 852 struct slave *slave; bond_set_promiscuity() local 875 struct slave *slave; bond_set_allmulti() local 990 struct slave *slave; bond_get_old_active() local 1094 struct slave *slave, *hprio = NULL; bond_choose_primary_or_current() local 1150 struct slave *slave, *bestslave = NULL; bond_find_best_slave() local 1175 struct slave *slave = NULL; bond_should_notify_peers() local 1388 slave_enable_netpoll(struct slave * slave) slave_enable_netpoll() argument 1407 slave_disable_netpoll(struct slave * slave) slave_disable_netpoll() argument 1422 struct slave *slave = NULL; bond_poll_controller() local 1451 struct slave *slave; bond_netpoll_cleanup() local 1458 bond_netpoll_setup(struct net_device * dev) bond_netpoll_setup() argument 1462 struct slave *slave; bond_netpoll_setup() local 1475 slave_enable_netpoll(struct slave * slave) slave_enable_netpoll() argument 1479 slave_disable_netpoll(struct slave * slave) slave_disable_netpoll() argument 1489 bond_fix_features(struct net_device * dev,netdev_features_t features) bond_fix_features() argument 1495 struct slave *slave; bond_fix_features() local 1516 struct slave *slave; bond_header_create() local 1532 bond_header_parse(const struct sk_buff * skb,const struct net_device * dev,unsigned char * haddr) bond_header_parse() argument 1537 struct slave *slave; bond_header_parse() local 1586 bond_should_deliver_exact_match(struct sk_buff * skb,struct slave * slave,struct bonding * bond) bond_should_deliver_exact_match() argument 1602 struct slave *slave; bond_handle_frame() local 1702 bond_master_upper_dev_link(struct bonding * bond,struct slave * slave,struct netlink_ext_ack * extack) bond_master_upper_dev_link() argument 1722 bond_upper_dev_unlink(struct bonding * bond,struct slave * slave) bond_upper_dev_unlink() argument 1730 struct slave *slave = to_slave(kobj); slave_kobj_release() local 1747 bond_kobj_init(struct slave * slave) bond_kobj_init() argument 1762 struct slave *slave = NULL; bond_alloc_slave() local 1793 bond_fill_ifslave(struct slave * slave,struct ifslave * info) bond_fill_ifslave() argument 1803 struct slave *slave = container_of(_work, struct slave, bond_netdev_notify_work() local 1818 bond_queue_slave_event(struct slave * slave) bond_queue_slave_event() argument 1823 bond_lower_state_changed(struct slave * slave) bond_lower_state_changed() argument 1866 struct slave *slave; bond_xdp_set_features() local 2424 struct slave *slave, *oldcurrent; __bond_release_one() local 2637 struct slave *slave; bond_slave_info_query() local 2658 struct slave *slave; bond_miimon_inspect() local 2761 bond_miimon_link_change(struct bonding * bond,struct slave * slave,char link) bond_miimon_link_change() argument 2780 struct slave *slave, *primary, *active; bond_miimon_commit() local 2891 struct slave *slave; bond_mii_monitor() local 2960 bond_handle_vlan(struct slave * slave,struct bond_vlan_tag * tags,struct sk_buff * skb) bond_handle_vlan() argument 3005 bond_arp_send(struct slave * slave,int arp_op,__be32 dest_ip,__be32 src_ip,struct bond_vlan_tag * tags) bond_arp_send() argument 3071 bond_arp_send_all(struct bonding * bond,struct slave * slave) bond_arp_send_all() argument 3125 bond_validate_arp(struct bonding * bond,struct slave * slave,__be32 sip,__be32 tip) bond_validate_arp() argument 3146 bond_arp_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_arp_rcv() argument 3226 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 3250 bond_ns_send_all(struct bonding * bond,struct slave * slave) bond_ns_send_all() argument 3311 bond_confirm_addr6(struct net_device * dev,struct netdev_nested_priv * priv) bond_confirm_addr6() argument 3337 bond_validate_na(struct bonding * bond,struct slave * slave,struct in6_addr * saddr,struct in6_addr * daddr) bond_validate_na() argument 3366 bond_na_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_na_rcv() argument 3415 bond_rcv_validate(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_rcv_validate() argument 3445 bond_send_validate(struct bonding * bond,struct slave * slave) bond_send_validate() argument 3475 struct slave *slave, *oldcurrent; bond_loadbalance_arp_mon() local 3594 struct slave *slave; bond_ab_arp_inspect() local 3665 struct slave *slave; bond_ab_arp_commit() local 3754 struct slave *slave, *before = NULL, *new_slave = NULL, bond_ab_arp_probe() local 3938 struct slave *slave = bond_slave_get_rtnl(slave_dev), *primary; bond_slave_netdev_event() local 4341 struct slave *slave; bond_open() local 4403 struct slave *slave; bond_close() local 4465 bond_get_lowest_level_rcu(struct net_device * dev) bond_get_lowest_level_rcu() argument 4511 struct slave *slave; bond_get_stats() local 4691 struct slave *slave; bond_set_rx_mode() local 4714 struct slave *slave; bond_neigh_init() local 4754 bond_neigh_setup(struct net_device * dev,struct neigh_parms * parms) bond_neigh_setup() argument 4768 struct slave *slave, *rollback_slave; bond_change_mtu() local 4825 struct slave *slave, *rollback_slave; bond_set_mac_address() local 4900 struct slave *slave; bond_get_slave_by_id() local 4959 struct slave *slave; bond_xmit_roundrobin_slave_get() local 4997 struct slave *slave; bond_xdp_xmit_roundrobin_slave_get() local 5039 struct slave *slave; bond_xmit_roundrobin() local 5060 struct slave *slave; bond_xmit_activebackup() local 5159 struct slave *slave; bond_update_slave_arr() local 5230 struct slave *slave; bond_xmit_3ad_xor_slave_get() local 5260 bond_should_broadcast_neighbor(struct sk_buff * skb,struct net_device * dev) bond_should_broadcast_neighbor() argument 5295 bond_3ad_xor_xmit(struct sk_buff * skb,struct net_device * dev) bond_3ad_xor_xmit() argument 5299 struct slave *slave; bond_3ad_xor_xmit() local 5329 struct slave *slave = slaves->arr[i]; bond_xmit_broadcast() local 5367 struct slave *slave = NULL; bond_slave_override() local 5390 bond_select_queue(struct net_device * dev,struct sk_buff * skb,struct net_device * sb_dev) bond_select_queue() argument 5417 struct slave *slave = NULL; bond_xmit_get_slave() local 5503 struct slave *slave; __bond_sk_get_lower_dev() local 5518 bond_sk_get_lower_dev(struct net_device * dev,struct sock * sk) bond_sk_get_lower_dev() argument 5534 bond_tls_device_xmit(struct bonding * bond,struct sk_buff * skb,struct net_device * dev) bond_tls_device_xmit() argument 5548 __bond_start_xmit(struct sk_buff * skb,struct net_device * dev) __bond_start_xmit() argument 5586 bond_start_xmit(struct sk_buff * skb,struct net_device * dev) bond_start_xmit() argument 5611 struct slave *slave; bond_xdp_get_xmit_slave() local 5679 bond_xdp_set(struct net_device * dev,struct bpf_prog * prog,struct netlink_ext_ack * extack) bond_xdp_set() argument 5684 struct slave *slave, *rollback_slave; bond_xdp_set() local 5765 bond_xdp(struct net_device * dev,struct netdev_bpf * xdp) bond_xdp() argument 5775 bond_mode_bcast_speed(struct slave * slave,u32 speed) bond_mode_bcast_speed() argument 5806 bond_hwtstamp_get(struct net_device * dev,struct kernel_hwtstamp_config * cfg) bond_hwtstamp_get() argument 5824 bond_hwtstamp_set(struct net_device * dev,struct kernel_hwtstamp_config * cfg,struct netlink_ext_ack * extack) bond_hwtstamp_set() argument 5851 struct slave *slave; bond_ethtool_get_link_ksettings() local 5898 struct slave *slave; bond_ethtool_get_ts_info() local 6059 struct slave *slave; bond_uninit() local [all...] |
| H A D | bond_3ad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved. 52 * ---- 196 struct slave *slave = port->slave; __enable_collecting_port() local 221 struct slave *slave = port->slave; __enable_port() local 310 struct slave *slave = port->slave; __get_link_speed() local 421 struct slave *slave = port->slave; __get_duplex() local 860 struct slave *slave; __get_active_agg() local 929 struct slave *slave = port->slave; ad_lacpdu_send() local 973 struct slave *slave = port->slave; ad_marker_send() local 1137 struct slave *slave = port->slave; ad_mux_machine() local 1558 struct slave *slave; ad_port_selection_logic() local 1853 struct slave *slave; ad_agg_selection_logic() local 2085 struct slave *slave = port->slave; ad_enable_collecting() local 2253 bond_3ad_bind_slave(struct slave * slave) bond_3ad_bind_slave() argument 2307 bond_3ad_unbind_slave(struct slave * slave) bond_3ad_unbind_slave() argument 2473 struct slave *slave; bond_3ad_update_ad_actor_settings() local 2536 struct slave *slave; bond_3ad_state_machine_handler() local 2620 bond_3ad_rx_indication(struct lacpdu * lacpdu,struct slave * slave) bond_3ad_rx_indication() argument 2735 bond_3ad_adapter_speed_duplex_changed(struct slave * slave) bond_3ad_adapter_speed_duplex_changed() argument 2762 bond_3ad_handle_link_change(struct slave * slave,char link) bond_3ad_handle_link_change() argument 2865 struct slave *slave; __bond_3ad_get_active_agg_info() local 2901 bond_3ad_lacpdu_recv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_3ad_lacpdu_recv() argument 2936 struct slave *slave; bond_3ad_update_lacp_rate() local 2961 struct slave *slave; bond_3ad_update_lacp_active() local [all...] |
| H A D | bond_options.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/net/bond/bond_options.c - bonding options 99 { "balance-rr", BOND_MODE_ROUNDROBIN, BOND_VALFLAG_DEFAULT}, 100 { "active-backup", BOND_MODE_ACTIVEBACKUP, 0}, 101 { "balance-xor", BOND_MODE_XOR, 0}, 104 { "balance-tl 1152 struct slave *slave; _bond_options_arp_ip_target_set() local 1200 struct slave *slave; bond_option_arp_ip_target_rem() local 1270 slave_can_set_ns_maddr(const struct bonding * bond,struct slave * slave) slave_can_set_ns_maddr() argument 1294 slave_set_ns_maddrs(struct bonding * bond,struct slave * slave,bool add) slave_set_ns_maddrs() argument 1318 bond_slave_ns_maddrs_add(struct bonding * bond,struct slave * slave) bond_slave_ns_maddrs_add() argument 1325 bond_slave_ns_maddrs_del(struct bonding * bond,struct slave * slave) bond_slave_ns_maddrs_del() argument 1349 slave_set_ns_maddr(struct bonding * bond,struct slave * slave,struct in6_addr * target,struct in6_addr * slot) slave_set_ns_maddr() argument 1377 struct slave *slave; _bond_options_ns_ip6_target_set() local 1436 slave_set_ns_maddrs(struct bonding * bond,struct slave * slave,bool add) slave_set_ns_maddrs() argument 1438 bond_slave_ns_maddrs_add(struct bonding * bond,struct slave * slave) bond_slave_ns_maddrs_add() argument 1440 bond_slave_ns_maddrs_del(struct bonding * bond,struct slave * slave) bond_slave_ns_maddrs_del() argument 1448 struct slave *slave; bond_option_arp_validate_set() local 1485 struct slave *slave; bond_option_prio_set() local 1508 struct slave *slave; bond_option_primary_set() local 1609 struct slave *slave; bond_option_all_slaves_active_set() local 1700 struct slave *slave, *update_slave; bond_option_queue_id_set() local 1762 struct net_device *dev; bond_option_slaves_set() local 1831 struct slave *slave; bond_option_actor_port_prio_set() local [all...] |
| /linux/drivers/soundwire/ |
| H A D | bus_type.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright(c) 2015-17 Intel Corporation. 14 * sdw_get_device_id - find the matching SoundWire device id 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 26 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id() 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() 29 (!id->sdw_version || in sdw_get_device_id() [all …]
|
| H A D | mipi_disco.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2 // Copyright(c) 2015-17 Intel Corporation. 10 * The helper functions read the Master and Slave properties. Implementers 11 * of Master or Slave drivers can use any of the below three mechanisms: 12 * a) Use these APIs here as .read_prop() callback for Master and Slave 40 static bool mipi_device_property_read_bool(const struct device *dev, in mipi_device_property_read_bool() argument 43 return mipi_fwnode_property_read_bool(dev_fwnode(dev), propname); in mipi_device_property_read_bool() 47 * sdw_master_read_prop() - Read Master properties 52 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() 60 device_property_read_u32(bus->dev, in sdw_master_read_prop() [all …]
|
| /linux/include/net/ |
| H A D | bonding.h | 1 /* SPDX-License-Identifier: GPL-1.0+ */ 5 * Portions are (c) Copyright 1995 Simon "Guru Aleph-Null" Janes 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)->nam 103 is_netpoll_tx_blocked(struct net_device * dev) is_netpoll_tx_blocked() argument 112 is_netpoll_tx_blocked(dev) global() argument 156 struct slave { global() struct 157 struct net_device *dev; /* first - useful for panic debug */ global() member 167 backupslave global() argument 169 inactiveslave global() argument 170 rx_disabledslave global() argument 180 ad_infoslave global() argument 181 tlb_infoslave global() argument 187 slave_statsslave global() argument 190 kobjslave to_slave() argument 216 struct net_device *dev; /* first - useful for panic debug */ global() member 268 bond_slave_get_rcu(dev) global() argument 271 bond_slave_get_rtnl(dev) global() argument 293 bond_get_bond_by_slave(struct slave * slave) bond_get_bond_by_slave() argument 354 struct slave *slave = rcu_dereference_rtnl(bond->curr_active_slave); bond_option_active_slave_get_rcu() local 359 bond_slave_is_up(struct slave * slave) bond_slave_is_up() argument 364 bond_set_active_slave(struct slave * slave) bond_set_active_slave() argument 373 bond_set_backup_slave(struct slave * slave) bond_set_backup_slave() argument 382 bond_set_slave_state(struct slave * slave,int slave_state,bool notify) bond_set_slave_state() argument 427 bond_slave_state(struct slave * slave) bond_slave_state() argument 432 bond_is_active_slave(struct slave * slave) bond_is_active_slave() argument 437 bond_slave_can_tx(struct slave * slave) bond_slave_can_tx() argument 445 struct slave *slave; bond_is_active_slave_dev() local 492 slave_do_arp_validate(struct bonding * bond,struct slave * slave) slave_do_arp_validate() argument 520 slave_oldest_target_arp_rx(struct bonding * bond,struct slave * slave) slave_oldest_target_arp_rx() argument 534 slave_last_rx(struct bonding * bond,struct slave * slave) slave_last_rx() argument 542 slave_update_last_tx(struct slave * slave) slave_update_last_tx() argument 547 slave_last_tx(struct slave * slave) slave_last_tx() argument 553 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument 559 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument 567 bond_set_slave_inactive_flags(struct slave * slave,bool notify) bond_set_slave_inactive_flags() argument 578 bond_set_slave_tx_disabled_flags(struct slave * slave,bool notify) bond_set_slave_tx_disabled_flags() argument 584 bond_set_slave_active_flags(struct slave * slave,bool notify) bond_set_slave_active_flags() argument 593 bond_set_slave_rx_enabled_flags(struct slave * slave,bool notify) bond_set_slave_rx_enabled_flags() argument 599 bond_is_slave_inactive(struct slave * slave) bond_is_slave_inactive() argument 604 bond_is_slave_rx_disabled(struct slave * slave) bond_is_slave_rx_disabled() argument 609 bond_propose_link_state(struct slave * slave,int state) bond_propose_link_state() argument 614 bond_commit_link_state(struct slave * slave,bool notify) bond_commit_link_state() argument 632 bond_set_slave_link_state(struct slave * slave,int state,bool notify) bond_set_slave_link_state() argument 653 bond_confirm_addr(struct net_device * dev,__be32 dst,__be32 local) bond_confirm_addr() argument 811 bond_tx_drop(struct net_device * dev,struct sk_buff * skb) bond_tx_drop() argument [all...] |
| /linux/drivers/net/ |
| H A D | eql.c | 2 * Equalizer Load-balancer for serial network interfaces. 4 * (c) Copyright 1995 Simon "Guru Aleph-Null" Janes 17 * Phone: 1-703-847-0040 ext 103 33 * Added one-line eql_remove_slave patch. 47 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) - 52 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) - 56 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) - 60 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) - 74 * Broken set-bit locking snapshot 80 * Log trimmed of non-pertinent 1.x branch messages [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | rt5682-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt5682-sdw.c -- RT5682 ALSA SoC audio component driver 27 #include <sound/soc-dapm.h> 41 struct device *dev = context; in rt5682_sdw_read() local 42 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_read() 60 struct device *dev = context; rt5682_sdw_write() local 297 rt5682_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt5682_sdw_init() argument 298 rt5682_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt5682_sdw_init() argument 368 rt5682_io_init(struct device * dev,struct sdw_slave * slave) rt5682_io_init() argument 484 rt5682_sdw_readable_register(struct device * dev,unsigned int reg) rt5682_sdw_readable_register() argument 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 602 rt5682_clock_config(struct device * dev) rt5682_clock_config() 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 711 rt5682_dev_suspend(struct device * dev) rt5682_dev_suspend() argument 727 rt5682_dev_system_suspend(struct device * dev) rt5682_dev_system_suspend() argument 730 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt5682_dev_system_suspend() local 755 rt5682_dev_resume(struct device * dev) rt5682_dev_resume() argument 757 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt5682_dev_resume() local [all...] |
| H A D | rt722-sdca-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt722-sdca-sdw.c -- rt722 SDCA ALSA SoC audio driver 16 #include "rt722-sdca.h" 17 #include "rt722-sdc 19 rt722_sdca_mbq_size(struct device * dev,unsigned int reg) rt722_sdca_mbq_size() argument 154 rt722_sdca_readable_register(struct device * dev,unsigned int reg) rt722_sdca_readable_register() argument 159 rt722_sdca_volatile_register(struct device * dev,unsigned int reg) rt722_sdca_volatile_register() argument 208 rt722_sdca_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt722_sdca_update_status() argument 242 rt722_sdca_read_prop(struct sdw_slave * slave) rt722_sdca_read_prop() argument 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 453 rt722_sdca_dev_suspend(struct device * dev) rt722_sdca_dev_suspend() argument 468 rt722_sdca_dev_system_suspend(struct device * dev) rt722_sdca_dev_system_suspend() argument 471 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_system_suspend() local 500 rt722_sdca_dev_resume(struct device * dev) rt722_sdca_dev_resume() argument 502 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_resume() local [all...] |
| H A D | max98363.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 static bool max98363_readable_register(struct device *dev, unsigned int reg) in max98363_readable_register() argument 49 static bool max98363_volatile_reg(struct device *dev, unsigned int reg) in max98363_volatile_reg() argument 77 static int max98363_suspend(struct device *dev) in max98363_suspend() argument 79 struct max98363_priv *max98363 = dev_get_drvdata(dev); in max98363_suspend() 81 regcache_cache_only(max98363->regmap, true); in max98363_suspend() 82 regcache_mark_dirty(max98363->regma in max98363_suspend() 89 max98363_resume(struct device * dev) max98363_resume() argument 91 struct sdw_slave *slave = dev_to_sdw_dev(dev); max98363_resume() local 119 max98363_read_prop(struct sdw_slave * slave) max98363_read_prop() argument 157 max98363_io_init(struct sdw_slave * slave) max98363_io_init() argument 159 struct device *dev = &slave->dev; max98363_io_init() local 298 max98363_update_status(struct sdw_slave * slave,enum sdw_slave_status status) max98363_update_status() argument 386 max98363_init(struct sdw_slave * slave,struct regmap * regmap) max98363_init() argument 390 struct device *dev = &slave->dev; max98363_init() local 432 max98363_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) max98363_sdw_probe() argument [all...] |
| H A D | rt1308-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // rt1308-sdw.c -- rt1308 ALSA SoC audio driver 22 #include <sound/soc-dapm.h> 26 #include "rt1308-sdw.h" 28 static bool rt1308_readable_register(struct device *dev, unsigned int reg) in rt1308_readable_register() argument 45 static bool rt1308_volatile_register(struct device *dev, unsigne argument 85 rt1308_clock_config(struct device * dev) rt1308_clock_config() argument 123 rt1308_read_prop(struct sdw_slave * slave) rt1308_read_prop() argument 213 rt1308_io_init(struct device * dev,struct sdw_slave * slave) rt1308_io_init() argument 301 rt1308_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt1308_update_status() argument 320 rt1308_bus_config(struct sdw_slave * slave,struct sdw_bus_params * params) rt1308_bus_config() argument 335 rt1308_interrupt_callback(struct sdw_slave * slave,struct sdw_slave_intr_status * status) rt1308_interrupt_callback() argument 599 rt1308_sdw_parse_dt(struct rt1308_sdw_priv * rt1308,struct device * dev) rt1308_sdw_parse_dt() argument 679 rt1308_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt1308_sdw_init() argument 680 rt1308_sdw_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt1308_sdw_init() argument 729 rt1308_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt1308_sdw_probe() argument 742 rt1308_sdw_remove(struct sdw_slave * slave) rt1308_sdw_remove() argument 755 rt1308_dev_suspend(struct device * dev) rt1308_dev_suspend() argument 769 rt1308_dev_resume(struct device * dev) rt1308_dev_resume() argument 771 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt1308_dev_resume() local [all...] |
| H A D | rt1017-sdca-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt1017-sdca-sdw.c -- rt1017 SDCA ALSA SoC amplifier audio driver 18 #include <sound/soc-dapm.h> 22 #include "rt1017-sdc 24 rt1017_sdca_readable_register(struct device * dev,unsigned int reg) rt1017_sdca_readable_register() argument 112 rt1017_sdca_volatile_register(struct device * dev,unsigned int reg) rt1017_sdca_volatile_register() argument 257 rt1017_sdca_read_prop(struct sdw_slave * slave) rt1017_sdca_read_prop() argument 319 rt1017_sdca_io_init(struct device * dev,struct sdw_slave * slave) rt1017_sdca_io_init() argument 371 rt1017_sdca_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt1017_sdca_update_status() argument 702 rt1017_sdca_init(struct device * dev,struct regmap * regmap,struct sdw_slave * slave) rt1017_sdca_init() 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 760 rt1017_sdca_dev_suspend(struct device * dev) rt1017_sdca_dev_suspend() argument 774 rt1017_sdca_dev_resume(struct device * dev) rt1017_sdca_dev_resume() argument 776 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt1017_sdca_dev_resume() local [all...] |
| H A D | max98373-sdw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include "max98373-sdw.h" 178 static bool max98373_readable_register(struct device *dev, unsigned int reg) in max98373_readable_register() argument 214 static bool max98373_volatile_reg(struct device *dev, unsigned int reg) in max98373_volatile_reg() argument 249 static int max98373_suspend(struct device *dev) in max98373_suspend() argument 251 struct max98373_priv *max98373 = dev_get_drvdata(dev); in max98373_suspend() 255 for (i = 0; i < max98373->cache_nu in max98373_suspend() 265 max98373_resume(struct device * dev) max98373_resume() argument 267 struct sdw_slave *slave = dev_to_sdw_dev(dev); max98373_resume() local 299 max98373_read_prop(struct sdw_slave * slave) max98373_read_prop() argument 359 max98373_io_init(struct sdw_slave * slave) max98373_io_init() argument 361 struct device *dev = &slave->dev; max98373_io_init() local 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 489 struct device *dev = &slave->dev; max98373_clock_config() local 728 max98373_init(struct sdw_slave * slave,struct regmap * regmap) max98373_init() argument 733 struct device *dev = &slave->dev; max98373_init() local 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...] |
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | mad.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 63 #define GET_BLK_PTR_FROM_EQE(eqe) be32_to_cpu(eqe->event.port_mgmt_change.params.tbl_change_info.bl… 64 #define GET_MASK_FROM_EQE(eqe) be32_to_cpu(eqe->event.port_mgmt_change.params.tbl_change_info.tbl_e… 91 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u32 port_num); 92 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u32 port_num); 93 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num, 104 return cpu_to_be64(atomic_inc_return(&ctx->tid)) | in mlx4_ib_get_new_demux_tid() 108 int mlx4_MAD_IFC(struct mlx4_ib_dev *dev, int mad_ifc_flags, in mlx4_MAD_IFC() argument 119 inmailbox = mlx4_alloc_cmd_mailbox(dev->dev); in mlx4_MAD_IFC() [all …]
|
| H A D | sysfs.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 42 * 0 - requests opensm to assign a value. 43 * ffffffffffffffff - delete this entry. 44 * other - value assigned by administrator. 46 static ssize_t show_admin_alias_guid(struct device *dev, in show_admin_alias_guid() argument 51 struct mlx4_ib_iov_port *port = mlx4_ib_iov_dentry->ctx; in show_admin_alias_guid() 52 struct mlx4_ib_dev *mdev = port->dev; in show_admin_alias_guid() 55 sysadmin_ag_val = mlx4_get_admin_guid(mdev->de in show_admin_alias_guid() 68 store_admin_alias_guid(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) store_admin_alias_guid() argument 111 show_port_gid(struct device * dev,struct device_attribute * attr,char * buf) show_port_gid() argument 140 show_phys_port_pkey(struct device * dev,struct device_attribute * attr,char * buf) show_phys_port_pkey() argument 166 create_sysfs_entry(void * _ctx,struct mlx4_ib_iov_sysfs_attr * _dentry,char * _name,struct kobject * _kobj,ssize_t (* show)(struct device * dev,struct device_attribute * attr,char * buf),ssize_t (* store)(struct device * dev,struct device_attribute * attr,const char * buf,size_t count)) create_sysfs_entry() argument 169 create_sysfs_entry(void * _ctx,struct mlx4_ib_iov_sysfs_attr * _dentry,char * _name,struct kobject * _kobj,ssize_t (* show)(struct device * dev,struct device_attribute * attr,char * buf),ssize_t (* store)(struct device * dev,struct device_attribute * attr,const char * buf,size_t count)) create_sysfs_entry() argument 355 get_name(struct mlx4_ib_dev * dev,char * name,int i,int max) get_name() argument 367 struct mlx4_ib_dev *dev; global() member 372 int slave; global() member 536 sysfs_show_smi_enabled(struct device * dev,struct device_attribute * attr,char * buf) sysfs_show_smi_enabled() argument 547 sysfs_show_enable_smi_admin(struct device * dev,struct device_attribute * attr,char * buf) sysfs_show_enable_smi_admin() argument 559 sysfs_store_enable_smi_admin(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) sysfs_store_enable_smi_admin() argument 623 add_port(struct mlx4_ib_dev * dev,int port_num,int slave) add_port() argument 692 register_one_pkey_tree(struct mlx4_ib_dev * dev,int slave) register_one_pkey_tree() argument 771 int slave; unregister_pkey_tree() local 797 mlx4_ib_device_register_sysfs(struct mlx4_ib_dev * dev) mlx4_ib_device_register_sysfs() argument [all...] |
| /linux/drivers/net/ethernet/ti/ |
| H A D | cpsw-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 static int davinci_emac_3517_get_macid(struct device *dev, u16 offset, in davinci_emac_3517_get_macid() argument 15 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument 21 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in davinci_emac_3517_get_macid() 23 if (PTR_ERR(syscon) == -ENODEV) in davinci_emac_3517_get_macid() 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 48 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in cpsw_am33xx_cm_get_macid() 50 if (PTR_ERR(syscon) == -ENODEV) in cpsw_am33xx_cm_get_macid() [all …]
|
| H A D | cpsw-phy-sel.c | 1 // SPDX-License-Identifier: GPL-2.0 31 struct device *dev; member 35 phy_interface_t phy_mode, int slave); 40 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() argument 47 reg = readl(priv->gmii_sel); in cpsw_gmii_sel_am3352() 66 dev_warn(priv->dev, in cpsw_gmii_sel_am3352() 75 mask = GMII_SEL_MODE_MASK << (slave * 2) | BIT(slave + 6); in cpsw_gmii_sel_am3352() 76 mask |= BIT(slave + 4); in cpsw_gmii_sel_am3352() 77 mode <<= slave * 2; in cpsw_gmii_sel_am3352() 79 if (priv->rmii_clock_external) { in cpsw_gmii_sel_am3352() [all …]
|
| /linux/drivers/base/regmap/ |
| H A D | regmap-sdw-mbq.c | 1 // SPDX-License-Identifier: GPL-2.0 17 struct device *dev; member 20 bool (*readable_reg)(struct device *dev, unsigned int reg); 29 int size = ctx->val_size; in regmap_sdw_mbq_size() 31 if (ctx->cfg.mbq_size) { in regmap_sdw_mbq_size() 32 size = ctx->cfg.mbq_size(ctx->dev, reg); in regmap_sdw_mbq_size() 33 if (!size || size > ctx->val_size) in regmap_sdw_mbq_size() 34 return -EINVAL; in regmap_sdw_mbq_size() 42 if (ctx->cfg.deferrable) in regmap_sdw_mbq_deferrable() 43 return ctx->cfg.deferrable(ctx->dev, reg); in regmap_sdw_mbq_deferrable() [all …]
|
| /linux/net/sched/ |
| H A D | sch_teql.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 ----- 54 struct net_device *dev; global() member 78 struct net_device *dev = qdisc_dev(sch); teql_enqueue() local 168 struct net_device *dev = qdisc_dev(sch); teql_qdisc_init() local 221 __teql_resolve(struct sk_buff * skb,struct sk_buff * skb_res,struct net_device * dev,struct netdev_queue * txq,struct dst_entry * dst) __teql_resolve() argument 260 teql_resolve(struct sk_buff * skb,struct sk_buff * skb_res,struct net_device * dev,struct netdev_queue * txq) teql_resolve() argument 279 teql_master_xmit(struct sk_buff * skb,struct net_device * dev) teql_master_xmit() argument 299 struct net_device *slave = qdisc_dev(q); teql_master_xmit() local 358 teql_master_open(struct net_device * dev) teql_master_open() argument 372 struct net_device *slave = qdisc_dev(q); teql_master_open() local 400 teql_master_close(struct net_device * dev) teql_master_close() argument 406 teql_master_stats64(struct net_device * dev,struct rtnl_link_stats64 * stats) teql_master_stats64() argument 417 teql_master_mtu(struct net_device * dev,int new_mtu) teql_master_mtu() argument 442 teql_master_setup(struct net_device * dev) teql_master_setup() argument 480 struct net_device *dev; teql_init() local [all...] |
| /linux/drivers/spmi/ |
| H A D | spmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 16 #include <dt-bindings/spmi/spmi.h> 23 static void spmi_dev_release(struct device *dev) in spmi_dev_release() argument 25 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release() 34 static void spmi_ctrl_release(struct device *dev) in spmi_ctrl_release() argument 36 struct spmi_controller *ctrl = to_spmi_controller(dev); in spmi_ctrl_release() 46 spmi_device_match(struct device * dev,const struct device_driver * drv) spmi_device_match() argument 325 spmi_drv_probe(struct device * dev) spmi_drv_probe() argument 348 spmi_drv_remove(struct device * dev) spmi_drv_remove() argument 362 spmi_drv_shutdown(struct device * dev) spmi_drv_shutdown() argument 370 spmi_drv_uevent(const struct device * dev,struct kobj_uevent_env * env) spmi_drv_uevent() argument 402 struct device *dev = bus_find_device_by_of_node(&spmi_bus_type, np); spmi_find_device_by_of_node() local 562 spmi_ctrl_remove_device(struct device * dev,void * data) spmi_ctrl_remove_device() argument [all...] |
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | bond_options.sh | 2 # SPDX-License-Identifier: GPL-2.0 24 ip -n ${s_ns} link set eth0 type bond_slave prio 10 25 [[ $? -ne 0 ]] && skip=0 28 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10" 29 [[ $? -ne 0 ]] && skip=0 39 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6} 40 [[ $? -ne 0 ]] && skip=0 43 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}" 44 [[ $? -ne 0 ]] && skip=0 46 ip -n ${s_ns} link del bond1 [all …]
|