Home
last modified time | relevance | path

Searched defs:sw (Results 1 – 25 of 99) sorted by relevance

1234

/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.c67 int prestera_router_hw_init(struct prestera_switch *sw) in prestera_router_hw_init()
99 void prestera_router_hw_fini(struct prestera_switch *sw) in prestera_router_hw_fini()
110 static struct prestera_vr *__prestera_vr_find(struct prestera_switch *sw, in __prestera_vr_find()
123 static struct prestera_vr *__prestera_vr_create(struct prestera_switch *sw, in __prestera_vr_create()
152 static void __prestera_vr_destroy(struct prestera_switch *sw, in __prestera_vr_destroy()
160 static struct prestera_vr *prestera_vr_get(struct prestera_switch *sw, u32 tb_id, in prestera_vr_get()
179 static void prestera_vr_put(struct prestera_switch *sw, struct prestera_vr *vr) in prestera_vr_put()
213 prestera_rif_entry_find(const struct prestera_switch *sw, in prestera_rif_entry_find()
231 void prestera_rif_entry_destroy(struct prestera_switch *sw, in prestera_rif_entry_destroy()
247 prestera_rif_entry_create(struct prestera_switch *sw, in prestera_rif_entry_create()
[all …]
H A Dprestera_router.c106 static int prestera_util_nhc2nc_key(struct prestera_switch *sw, in prestera_util_nhc2nc_key() argument
133 prestera_util_nhc_eq_n_cache_key(struct prestera_switch *sw, in prestera_util_nhc_eq_n_cache_key() argument
151 prestera_util_neigh2nc_key(struct prestera_switch *sw, struct neighbour *n, in prestera_util_neigh2nc_key() argument
430 prestera_neigh_iface_init(struct prestera_switch *sw, in prestera_neigh_iface_init() argument
452 prestera_kern_neigh_cache_find(struct prestera_switch *sw, in prestera_kern_neigh_cache_find() argument
464 __prestera_kern_neigh_cache_destruct(struct prestera_switch *sw, in __prestera_kern_neigh_cache_destruct() argument
471 __prestera_kern_neigh_cache_destroy(struct prestera_switch *sw, in __prestera_kern_neigh_cache_destroy() argument
482 __prestera_kern_neigh_cache_create(struct prestera_switch * sw,struct prestera_kern_neigh_cache_key * key) __prestera_kern_neigh_cache_create() argument
512 prestera_kern_neigh_cache_get(struct prestera_switch * sw,struct prestera_kern_neigh_cache_key * key) prestera_kern_neigh_cache_get() argument
525 prestera_kern_neigh_cache_put(struct prestera_switch * sw,struct prestera_kern_neigh_cache * n_cache) prestera_kern_neigh_cache_put() argument
538 prestera_kern_fib_cache_find(struct prestera_switch * sw,struct prestera_kern_fib_cache_key * key) prestera_kern_fib_cache_find() argument
550 __prestera_kern_fib_cache_destruct(struct prestera_switch * sw,struct prestera_kern_fib_cache * fib_cache) __prestera_kern_fib_cache_destruct() argument
568 prestera_kern_fib_cache_destroy(struct prestera_switch * sw,struct prestera_kern_fib_cache * fib_cache) prestera_kern_fib_cache_destroy() argument
579 __prestera_kern_fib_cache_create_nhs(struct prestera_switch * sw,struct prestera_kern_fib_cache * fc) __prestera_kern_fib_cache_create_nhs() argument
617 prestera_kern_fib_cache_create(struct prestera_switch * sw,struct prestera_kern_fib_cache_key * key,struct fib_notifier_info * info) prestera_kern_fib_cache_create() argument
656 __prestera_k_arb_fib_nh_offload_set(struct prestera_switch * sw,struct prestera_kern_fib_cache * fibc,struct prestera_kern_neigh_cache * nc,bool offloaded,bool trap) __prestera_k_arb_fib_nh_offload_set() argument
680 __prestera_k_arb_n_offload_set(struct prestera_switch * sw,struct prestera_kern_neigh_cache * nc,bool offloaded) __prestera_k_arb_n_offload_set() argument
696 __prestera_k_arb_fib_lpm_offload_set(struct prestera_switch * sw,struct prestera_kern_fib_cache * fc,bool fail,bool offload,bool trap) __prestera_k_arb_fib_lpm_offload_set() argument
724 __prestera_k_arb_n_lpm_set(struct prestera_switch * sw,struct prestera_kern_neigh_cache * n_cache,bool enabled) __prestera_k_arb_n_lpm_set() argument
774 __prestera_k_arb_nc_kern_fib_fetch(struct prestera_switch * sw,struct prestera_kern_neigh_cache * nc) __prestera_k_arb_nc_kern_fib_fetch() argument
786 __prestera_k_arb_nc_kern_n_fetch(struct prestera_switch * sw,struct prestera_kern_neigh_cache * nc) __prestera_k_arb_nc_kern_n_fetch() argument
817 __prestera_k_arb_nc_apply(struct prestera_switch * sw,struct prestera_kern_neigh_cache * nc) __prestera_k_arb_nc_apply() argument
857 __prestera_pr_k_arb_fc_lpm_info_calc(struct prestera_switch * sw,struct prestera_kern_fib_cache * fc) __prestera_pr_k_arb_fc_lpm_info_calc() argument
929 __prestera_k_arb_f_lpm_set(struct prestera_switch * sw,struct prestera_kern_fib_cache * fc,bool enabled) __prestera_k_arb_f_lpm_set() argument
956 __prestera_k_arb_fc_apply(struct prestera_switch * sw,struct prestera_kern_fib_cache * fc) __prestera_k_arb_fc_apply() argument
993 __prestera_k_arb_util_fib_overlaps(struct prestera_switch * sw,struct prestera_kern_fib_cache * fc) __prestera_k_arb_util_fib_overlaps() argument
1011 __prestera_k_arb_util_fib_overlapped(struct prestera_switch * sw,struct prestera_kern_fib_cache * fc) __prestera_k_arb_util_fib_overlapped() argument
1028 __prestera_k_arb_hw_state_upd(struct prestera_switch * sw,struct prestera_kern_neigh_cache * nc) __prestera_k_arb_hw_state_upd() argument
1076 prestera_k_arb_hw_evt(struct prestera_switch * sw) prestera_k_arb_hw_evt() argument
1101 prestera_k_arb_n_evt(struct prestera_switch * sw,struct neighbour * n) prestera_k_arb_n_evt() argument
1126 __prestera_k_arb_fib_evt2nc(struct prestera_switch * sw) __prestera_k_arb_fib_evt2nc() argument
1152 prestera_k_arb_fib_evt(struct prestera_switch * sw,bool replace,struct fib_notifier_info * info) prestera_k_arb_fib_evt() argument
1217 struct prestera_switch *sw = arg; __prestera_k_arb_abort_neigh_ht_cb() local
1235 struct prestera_switch *sw = arg; __prestera_k_arb_abort_fib_ht_cb() local
1249 prestera_k_arb_abort(struct prestera_switch * sw) prestera_k_arb_abort() argument
1315 __prestera_inetaddr_event(struct prestera_switch * sw,struct net_device * dev,unsigned long event,struct netlink_ext_ack * extack) __prestera_inetaddr_event() argument
1384 struct prestera_switch *sw; global() member
1393 struct prestera_switch *sw = fib_work->sw; __prestera_router_fib_event_work() local
1469 struct prestera_switch *sw; global() member
1477 struct prestera_switch *sw = net_work->sw; prestera_router_neigh_event_work() local
1533 prestera_neigh_work_init(struct prestera_switch * sw) prestera_neigh_work_init() argument
1541 prestera_neigh_work_fini(struct prestera_switch * sw) prestera_neigh_work_fini() argument
1546 prestera_router_init(struct prestera_switch * sw) prestera_router_init() argument
1627 prestera_router_fini(struct prestera_switch * sw) prestera_router_fini() argument
[all...]
H A Dprestera_main.c93 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, in prestera_port_find_by_hwid() argument
110 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id) in prestera_find_port() argument
372 struct prestera_switch *sw = port->sw; prestera_port_sfp_bind() local
603 prestera_port_create(struct prestera_switch * sw,u32 id) prestera_port_create() argument
764 prestera_destroy_ports(struct prestera_switch * sw) prestera_destroy_ports() argument
772 prestera_create_ports(struct prestera_switch * sw) prestera_create_ports() argument
795 prestera_port_handle_event(struct prestera_switch * sw,struct prestera_event * evt,void * arg) prestera_port_handle_event() argument
843 prestera_event_handlers_register(struct prestera_switch * sw) prestera_event_handlers_register() argument
850 prestera_event_handlers_unregister(struct prestera_switch * sw) prestera_event_handlers_unregister() argument
856 prestera_switch_set_base_mac_addr(struct prestera_switch * sw) prestera_switch_set_base_mac_addr() argument
870 prestera_lag_by_id(struct prestera_switch * sw,u16 id) prestera_lag_by_id() argument
875 prestera_lag_by_dev(struct prestera_switch * sw,struct net_device * dev) prestera_lag_by_dev() argument
890 prestera_lag_id(struct prestera_switch * sw,struct net_device * lag_dev,u16 * lag_id) prestera_lag_id() argument
914 prestera_lag_create(struct prestera_switch * sw,struct net_device * lag_dev) prestera_lag_create() argument
933 prestera_lag_destroy(struct prestera_switch * sw,struct prestera_lag * lag) prestera_lag_destroy() argument
944 struct prestera_switch *sw = port->sw; prestera_lag_port_add() local
974 struct prestera_switch *sw = port->sw; prestera_lag_port_del() local
1013 prestera_lag_init(struct prestera_switch * sw) prestera_lag_init() argument
1027 prestera_lag_fini(struct prestera_switch * sw) prestera_lag_fini() argument
1206 prestera_mdb_entry_create(struct prestera_switch * sw,const unsigned char * addr,u16 vid) prestera_mdb_entry_create() argument
1246 prestera_flood_domain_create(struct prestera_switch * sw) prestera_flood_domain_create() argument
1349 prestera_netdev_event_handler_register(struct prestera_switch * sw) prestera_netdev_event_handler_register() argument
1356 prestera_netdev_event_handler_unregister(struct prestera_switch * sw) prestera_netdev_event_handler_unregister() argument
1361 prestera_switch_init(struct prestera_switch * sw) prestera_switch_init() argument
1452 prestera_switch_fini(struct prestera_switch * sw) prestera_switch_fini() argument
1472 struct prestera_switch *sw; prestera_device_register() local
1494 struct prestera_switch *sw = dev->priv; prestera_device_unregister() local
[all...]
H A Dprestera_devlink.c127 struct prestera_switch *sw; member
356 struct prestera_switch *sw = devlink_priv(dl); in prestera_dl_info_get() local
396 void prestera_devlink_free(struct prestera_switch *sw) in prestera_devlink_free()
403 void prestera_devlink_register(struct prestera_switch *sw) in prestera_devlink_register()
410 void prestera_devlink_unregister(struct prestera_switch *sw) in prestera_devlink_unregister()
419 struct prestera_switch *sw = port->sw; in prestera_devlink_port_register() local
445 int prestera_devlink_traps_register(struct prestera_switch *sw) in prestera_devlink_traps_register()
499 prestera_get_trap_item_by_cpu_code(struct prestera_switch *sw, u8 cpu_code) in prestera_get_trap_item_by_cpu_code()
531 prestera_devlink_trap_item_lookup(struct prestera_switch *sw, u16 trap_id) in prestera_devlink_trap_item_lookup()
547 struct prestera_switch *sw = devlink_priv(devlink); in prestera_trap_init() local
[all …]
H A Dprestera_span.c21 struct prestera_switch *sw; member
78 struct prestera_switch *sw = port->sw; in prestera_span_get() local
103 static int prestera_span_put(struct prestera_switch *sw, u8 span_id) in prestera_span_put()
127 struct prestera_switch *sw = binding->port->sw; in prestera_span_rule_add() local
169 int prestera_span_init(struct prestera_switch *sw) in prestera_span_init()
185 void prestera_span_fini(struct prestera_switch *sw) in prestera_span_fini()
H A Dprestera_hw.c813 static int __prestera_cmd_ret(struct prestera_switch *sw, in __prestera_cmd_ret()
836 static int prestera_cmd_ret(struct prestera_switch *sw, in prestera_cmd_ret()
844 static int prestera_cmd_ret_wait(struct prestera_switch *sw, in prestera_cmd_ret_wait()
853 static int prestera_cmd(struct prestera_switch *sw, in prestera_cmd()
918 __find_event_handler(const struct prestera_switch *sw, in __find_event_handler()
931 static int prestera_find_event_handler(const struct prestera_switch *sw, in prestera_find_event_handler()
951 struct prestera_switch *sw = dev->priv; in prestera_evt_recv() local
981 struct prestera_switch *sw = dev->priv; in prestera_pkt_recv() local
1044 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac) in prestera_hw_switch_mac_set()
1056 int prestera_hw_switch_init(struct prestera_switch *sw) in prestera_hw_switch_init()
[all …]
H A Dprestera_switchdev.c30 struct prestera_switch *sw; member
97 prestera_bridge_find(const struct prestera_switch *sw, in prestera_bridge_find()
123 prestera_bridge_port_find(struct prestera_switch *sw, in prestera_bridge_port_find()
788 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_ageing_set() local
801 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_vlan_set() local
879 struct prestera_switch *sw; in prestera_br_port_lag_mdb_mc_enable_sync() local
1094 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_mc_disabled_set() local
1220 struct prestera_switch *sw = port->sw; in prestera_port_fdb_set() local
1474 struct prestera_switch *sw = port->sw; in prestera_port_vlans_add() local
1494 prestera_br_mdb_entry_create(struct prestera_switch *sw, in prestera_br_mdb_entry_create()
[all …]
H A Dprestera_flow.c79 prestera_flow_block_create(struct prestera_switch *sw, in prestera_flow_block_create()
173 prestera_flow_block_get(struct prestera_switch *sw, in prestera_flow_block_get()
222 struct prestera_switch *sw = port->sw; in prestera_setup_flow_block_bind() local
259 struct prestera_switch *sw = port->sw; in prestera_setup_flow_block_unbind() local
H A Dprestera_acl.c15 struct prestera_switch *sw; member
477 int prestera_acl_rule_add(struct prestera_switch *sw, in prestera_acl_rule_add()
529 void prestera_acl_rule_del(struct prestera_switch *sw, in prestera_acl_rule_del()
578 static int __prestera_acl_rule_entry2hw_del(struct prestera_switch *sw, in __prestera_acl_rule_entry2hw_del()
584 static int __prestera_acl_rule_entry2hw_add(struct prestera_switch *sw, in __prestera_acl_rule_entry2hw_add()
633 __prestera_acl_rule_entry_act_destruct(struct prestera_switch *sw, in __prestera_acl_rule_entry_act_destruct()
659 __prestera_acl_rule_entry_act_construct(struct prestera_switch *sw, in __prestera_acl_rule_entry_act_construct()
878 int prestera_acl_init(struct prestera_switch *sw) in prestera_acl_init()
913 void prestera_acl_fini(struct prestera_switch *sw) in prestera_acl_fini()
/linux/drivers/thunderbolt/
H A Dswitch.c38 __nvm_get_auth_status(const struct tb_switch * sw) __nvm_get_auth_status() argument
50 nvm_get_auth_status(const struct tb_switch * sw,u32 * status) nvm_get_auth_status() argument
61 nvm_set_auth_status(const struct tb_switch * sw,u32 status) nvm_set_auth_status() argument
86 nvm_clear_auth_status(const struct tb_switch * sw) nvm_clear_auth_status() argument
99 nvm_validate_and_write(struct tb_switch * sw) nvm_validate_and_write() argument
127 nvm_authenticate_host_dma_port(struct tb_switch * sw) nvm_authenticate_host_dma_port() argument
167 nvm_authenticate_device_dma_port(struct tb_switch * sw) nvm_authenticate_device_dma_port() argument
212 nvm_readable(struct tb_switch * sw) nvm_readable() argument
228 nvm_upgradeable(struct tb_switch * sw) nvm_upgradeable() argument
235 nvm_authenticate(struct tb_switch * sw,bool auth_only) nvm_authenticate() argument
276 tb_switch_nvm_read(struct tb_switch * sw,unsigned int address,void * buf,size_t size) tb_switch_nvm_read() argument
287 struct tb_switch *sw = tb_to_switch(nvm->dev); nvm_read() local
310 struct tb_switch *sw = tb_to_switch(nvm->dev); nvm_write() local
328 tb_switch_nvm_init(struct tb_switch * sw) tb_switch_nvm_init() argument
358 tb_switch_nvm_add(struct tb_switch * sw) tb_switch_nvm_add() argument
394 tb_switch_nvm_remove(struct tb_switch * sw) tb_switch_nvm_remove() argument
855 tb_switch_is_reachable(const struct tb_switch * parent,const struct tb_switch * sw) tb_switch_is_reachable() argument
1563 tb_switch_generation_name(const struct tb_switch * sw) tb_switch_generation_name() argument
1579 tb_dump_switch(const struct tb * tb,const struct tb_switch * sw) tb_dump_switch() argument
1597 tb_switch_reset_host(struct tb_switch * sw) tb_switch_reset_host() argument
1662 tb_switch_reset_device(struct tb_switch * sw) tb_switch_reset_device() argument
1667 tb_switch_enumerated(struct tb_switch * sw) tb_switch_enumerated() argument
1698 tb_switch_reset(struct tb_switch * sw) tb_switch_reset() argument
1739 tb_switch_wait_for_bit(struct tb_switch * sw,u32 offset,u32 bit,u32 value,int timeout_msec) tb_switch_wait_for_bit() argument
1766 tb_plug_events_active(struct tb_switch * sw,bool active) tb_plug_events_active() argument
1805 struct tb_switch *sw = tb_to_switch(dev); authorized_show() local
1813 struct tb_switch *sw; disapprove_switch() local
1835 tb_switch_set_authorized(struct tb_switch * sw,unsigned int val) tb_switch_set_authorized() argument
1893 struct tb_switch *sw = tb_to_switch(dev); authorized_store() local
1915 struct tb_switch *sw = tb_to_switch(dev); boot_show() local
1924 struct tb_switch *sw = tb_to_switch(dev); device_show() local
1933 struct tb_switch *sw = tb_to_switch(dev); device_name_show() local
1942 struct tb_switch *sw = tb_to_switch(dev); generation_show() local
1951 struct tb_switch *sw = tb_to_switch(dev); key_show() local
1969 struct tb_switch *sw = tb_to_switch(dev); key_store() local
2003 struct tb_switch *sw = tb_to_switch(dev); speed_show() local
2018 struct tb_switch *sw = tb_to_switch(dev); rx_lanes_show() local
2044 struct tb_switch *sw = tb_to_switch(dev); tx_lanes_show() local
2070 struct tb_switch *sw = tb_to_switch(dev); nvm_authenticate_show() local
2080 struct tb_switch *sw = tb_to_switch(dev); nvm_authenticate_sysfs() local
2172 struct tb_switch *sw = tb_to_switch(dev); nvm_version_show() local
2194 struct tb_switch *sw = tb_to_switch(dev); vendor_show() local
2203 struct tb_switch *sw = tb_to_switch(dev); vendor_name_show() local
2212 struct tb_switch *sw = tb_to_switch(dev); unique_id_show() local
2242 struct tb_switch *sw = tb_to_switch(dev); switch_attr_is_visible() local
2306 struct tb_switch *sw = tb_to_switch(dev); tb_switch_release() local
2327 const struct tb_switch *sw = tb_to_switch(dev); tb_switch_uevent() local
2365 struct tb_switch *sw = tb_to_switch(dev); tb_switch_runtime_suspend() local
2376 struct tb_switch *sw = tb_to_switch(dev); tb_switch_runtime_resume() local
2396 tb_switch_get_generation(struct tb_switch * sw) tb_switch_get_generation() argument
2441 tb_switch_exceeds_max_depth(const struct tb_switch * sw,int depth) tb_switch_exceeds_max_depth() argument
2470 struct tb_switch *sw; tb_switch_alloc() local
2588 struct tb_switch *sw; tb_switch_alloc_safe_mode() local
2621 tb_switch_configure(struct tb_switch * sw) tb_switch_configure() argument
2685 tb_switch_configuration_valid(struct tb_switch * sw) tb_switch_configuration_valid() argument
2692 tb_switch_set_uuid(struct tb_switch * sw) tb_switch_set_uuid() argument
2738 tb_switch_add_dma_port(struct tb_switch * sw) tb_switch_add_dma_port() argument
2837 tb_switch_default_link_ports(struct tb_switch * sw) tb_switch_default_link_ports() argument
2867 tb_switch_lane_bonding_possible(struct tb_switch * sw) tb_switch_lane_bonding_possible() argument
2879 tb_switch_update_link_attributes(struct tb_switch * sw) tb_switch_update_link_attributes() argument
2912 tb_switch_link_init(struct tb_switch * sw) tb_switch_link_init() argument
2966 tb_switch_lane_bonding_enable(struct tb_switch * sw) tb_switch_lane_bonding_enable() argument
3018 tb_switch_lane_bonding_disable(struct tb_switch * sw) tb_switch_lane_bonding_disable() argument
3050 tb_switch_asym_enable(struct tb_switch * sw,enum tb_link_width width) tb_switch_asym_enable() argument
3093 tb_switch_asym_disable(struct tb_switch * sw) tb_switch_asym_disable() argument
3143 tb_switch_set_link_width(struct tb_switch * sw,enum tb_link_width width) tb_switch_set_link_width() argument
3214 tb_switch_configure_link(struct tb_switch * sw) tb_switch_configure_link() argument
3243 tb_switch_unconfigure_link(struct tb_switch * sw) tb_switch_unconfigure_link() argument
3272 tb_switch_credits_init(struct tb_switch * sw) tb_switch_credits_init() argument
3282 tb_switch_port_hotplug_enable(struct tb_switch * sw) tb_switch_port_hotplug_enable() argument
3314 tb_switch_add(struct tb_switch * sw) tb_switch_add() argument
3446 tb_switch_remove(struct tb_switch * sw) tb_switch_remove() argument
3487 tb_sw_set_unplugged(struct tb_switch * sw) tb_sw_set_unplugged() argument
3508 tb_switch_set_wake(struct tb_switch * sw,unsigned int flags,bool runtime) tb_switch_set_wake() argument
3520 tb_switch_check_wakes(struct tb_switch * sw) tb_switch_check_wakes() argument
3541 tb_switch_resume(struct tb_switch * sw,bool runtime) tb_switch_resume() argument
3657 tb_switch_suspend(struct tb_switch * sw,bool runtime) tb_switch_suspend() argument
3708 tb_switch_query_dp_resource(struct tb_switch * sw,struct tb_port * in) tb_switch_query_dp_resource() argument
3725 tb_switch_alloc_dp_resource(struct tb_switch * sw,struct tb_port * in) tb_switch_alloc_dp_resource() argument
3751 tb_switch_dealloc_dp_resource(struct tb_switch * sw,struct tb_port * in) tb_switch_dealloc_dp_resource() argument
3777 struct tb_switch *sw = tb_to_switch(dev); tb_switch_match() local
3890 tb_switch_find_port(struct tb_switch * sw,enum tb_port_type type) tb_switch_find_port() argument
3907 tb_switch_pcie_bridge_write(struct tb_switch * sw,unsigned int bridge,unsigned int pcie_offset,u32 value) tb_switch_pcie_bridge_write() argument
3960 tb_switch_pcie_l1_enable(struct tb_switch * sw) tb_switch_pcie_l1_enable() argument
3996 tb_switch_xhci_connect(struct tb_switch * sw) tb_switch_xhci_connect() argument
4040 tb_switch_xhci_disconnect(struct tb_switch * sw) tb_switch_xhci_disconnect() argument
[all...]
H A Dlc.c20 int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid) in tb_lc_read_uuid()
27 static int read_lc_desc(struct tb_switch *sw, u32 *desc) in read_lc_desc()
36 struct tb_switch *sw = port->sw; in find_port_lc_cap() local
64 struct tb_switch *sw = port->sw; in tb_lc_reset_port() local
99 struct tb_switch *sw = port->sw; in tb_lc_set_port_configured() local
161 struct tb_switch *sw = port->sw; in tb_lc_set_xdomain_configured() local
227 struct tb_switch *sw = port->sw; in tb_lc_start_lane_initialization() local
261 struct tb_switch *sw = port->sw; in tb_lc_is_clx_supported() local
285 struct tb_switch *sw = port->sw; in tb_lc_is_usb_plugged() local
312 struct tb_switch *sw = port->sw; in tb_lc_is_xhci_connected() local
[all …]
H A Deeprom.c18 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write() argument
26 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read() argument
42 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active() argument
71 tb_eeprom_transfer(struct tb_switch * sw,struct tb_eeprom_ctl * ctl,enum tb_eeprom_transfer direction) tb_eeprom_transfer() argument
96 tb_eeprom_out(struct tb_switch * sw,u8 val) tb_eeprom_out() argument
116 tb_eeprom_in(struct tb_switch * sw,u8 * val) tb_eeprom_in() argument
137 tb_eeprom_get_drom_offset(struct tb_switch * sw,u16 * offset) tb_eeprom_get_drom_offset() argument
168 tb_eeprom_read_n(struct tb_switch * sw,u16 offset,u8 * val,size_t count) tb_eeprom_read_n() argument
304 tb_drom_read_uid_only(struct tb_switch * sw,u64 * uid) tb_drom_read_uid_only() argument
326 tb_drom_parse_entry_generic(struct tb_switch * sw,struct tb_drom_entry_header * header) tb_drom_parse_entry_generic() argument
362 tb_drom_parse_entry_port(struct tb_switch * sw,struct tb_drom_entry_header * header) tb_drom_parse_entry_port() argument
416 tb_drom_parse_entries(struct tb_switch * sw,size_t header_size) tb_drom_parse_entries() argument
447 tb_switch_drom_alloc(struct tb_switch * sw,size_t size) tb_switch_drom_alloc() argument
460 tb_switch_drom_free(struct tb_switch * sw) tb_switch_drom_free() argument
473 tb_drom_copy_efi(struct tb_switch * sw,u16 * size) tb_drom_copy_efi() argument
503 tb_drom_copy_nvm(struct tb_switch * sw,u16 * size) tb_drom_copy_nvm() argument
543 usb4_copy_drom(struct tb_switch * sw,u16 * size) usb4_copy_drom() argument
564 tb_drom_bit_bang(struct tb_switch * sw,u16 * size) tb_drom_bit_bang() argument
592 tb_drom_parse_v1(struct tb_switch * sw) tb_drom_parse_v1() argument
620 usb4_drom_parse(struct tb_switch * sw) usb4_drom_parse() argument
636 tb_drom_parse(struct tb_switch * sw,u16 size) tb_drom_parse() argument
674 tb_drom_host_read(struct tb_switch * sw) tb_drom_host_read() argument
695 tb_drom_device_read(struct tb_switch * sw) tb_drom_device_read() argument
723 tb_drom_read(struct tb_switch * sw) tb_drom_read() argument
[all...]
H A Dtmu.c58 static bool tb_switch_tmu_enhanced_is_supported(const struct tb_switch *sw) in tb_switch_tmu_enhanced_is_supported()
63 static int tb_switch_set_tmu_mode_params(struct tb_switch *sw, in tb_switch_set_tmu_mode_params()
122 static bool tb_switch_tmu_ucap_is_supported(struct tb_switch *sw) in tb_switch_tmu_ucap_is_supported()
135 static int tb_switch_tmu_rate_read(struct tb_switch *sw) in tb_switch_tmu_rate_read()
149 static int tb_switch_tmu_rate_write(struct tb_switch *sw, int rate) in tb_switch_tmu_rate_write()
332 static int tb_switch_tmu_set_time_disruption(struct tb_switch *sw, bool set) in tb_switch_tmu_set_time_disruption()
357 static int tmu_mode_init(struct tb_switch *sw) in tmu_mode_init()
411 int tb_switch_tmu_init(struct tb_switch *sw) in tb_switch_tmu_init()
447 int tb_switch_tmu_post_time(struct tb_switch *sw) in tb_switch_tmu_post_time()
565 int tb_switch_tmu_disable(struct tb_switch *sw) in tb_switch_tmu_disable()
[all …]
H A Dquirks.c10 static void quirk_force_power_link(struct tb_switch *sw) in quirk_force_power_link() argument
16 static void quirk_dp_credit_allocation(struct tb_switch *sw) in quirk_dp_credit_allocation() argument
24 static void quirk_clx_disable(struct tb_switch *sw) in quirk_clx_disable() argument
33 quirk_usb3_maximum_bandwidth(struct tb_switch * sw) quirk_usb3_maximum_bandwidth() argument
49 quirk_block_rpm_in_redrive(struct tb_switch * sw) quirk_block_rpm_in_redrive() argument
128 tb_check_quirks(struct tb_switch * sw) tb_check_quirks() argument
[all...]
H A Dtb.c112 static void tb_add_dp_resources(struct tb_switch *sw) in tb_add_dp_resources() argument
139 static void tb_remove_dp_resources(struct tb_switch *sw) in tb_remove_dp_resources() argument
185 tb_enable_clx(struct tb_switch * sw) tb_enable_clx() argument
236 tb_disable_clx(struct tb_switch * sw) tb_disable_clx() argument
257 struct tb_switch *sw; tb_increase_switch_tmu_accuracy() local
284 struct tb_switch *sw; tb_increase_tmu_accuracy() local
304 struct tb_switch *sw = tb_to_switch(dev); tb_switch_tmu_hifi_uni_required() local
320 tb_enable_tmu(struct tb_switch * sw) tb_enable_tmu() argument
377 tb_switch_discover_tunnels(struct tb_switch * sw,struct list_head * list,bool alloc_hopids) tb_switch_discover_tunnels() argument
435 struct tb_switch *sw = port->sw; tb_scan_xdomain() local
462 tb_find_unused_port(struct tb_switch * sw,enum tb_port_type type) tb_find_unused_port() argument
481 tb_find_usb3_down(struct tb_switch * sw,const struct tb_port * port) tb_find_usb3_down() argument
515 struct tb_switch *sw; tb_find_first_usb3_tunnel() local
907 tb_tunnel_usb3(struct tb * tb,struct tb_switch * sw) tb_tunnel_usb3() argument
999 tb_create_usb3_tunnels(struct tb_switch * sw) tb_create_usb3_tunnels() argument
1046 struct tb_switch *sw; tb_configure_asym() local
1153 struct tb_switch *sw; tb_configure_sym() local
1235 tb_configure_link(struct tb_port * down,struct tb_port * up,struct tb_switch * sw) tb_configure_link() argument
1275 tb_scan_switch(struct tb_switch * sw) tb_scan_switch() argument
1296 struct tb_switch *sw; tb_scan_port() local
1792 tb_free_unplugged_children(struct tb_switch * sw) tb_free_unplugged_children() argument
1816 tb_find_pcie_down(struct tb_switch * sw,const struct tb_port * port) tb_find_pcie_down() argument
2116 struct tb_switch *sw = port->sw; tb_enter_redrive() local
2141 struct tb_switch *sw = port->sw; tb_exit_redrive() local
2157 tb_switch_enter_redrive(struct tb_switch * sw) tb_switch_enter_redrive() argument
2169 tb_switch_exit_redrive(struct tb_switch * sw) tb_switch_exit_redrive() argument
2264 tb_disconnect_pci(struct tb * tb,struct tb_switch * sw) tb_disconnect_pci() argument
2285 tb_tunnel_pci(struct tb * tb,struct tb_switch * sw) tb_tunnel_pci() argument
2336 struct tb_switch *sw; tb_approve_xdomain_paths() local
2385 struct tb_switch *sw; __tb_disconnect_xdomain_paths() local
2436 struct tb_switch *sw; tb_handle_hotplug() local
2753 struct tb_switch *sw; tb_handle_dp_bandwidth_request() local
3009 struct tb_switch *sw = tb_to_switch(dev); tb_scan_finalize_switch() local
3123 tb_restore_children(struct tb_switch * sw) tb_restore_children() argument
3155 tb_free_unplugged_xdomains(struct tb_switch * sw) tb_free_unplugged_xdomains() argument
[all...]
H A Dicm.c422 struct icm_fr_pkg_get_topology_response *switches, *sw; in icm_fr_get_route() local
498 icm_fr_approve_switch(struct tb * tb,struct tb_switch * sw) icm_fr_approve_switch() argument
525 icm_fr_add_switch_key(struct tb * tb,struct tb_switch * sw) icm_fr_add_switch_key() argument
552 icm_fr_challenge_switch_key(struct tb * tb,struct tb_switch * sw,const u8 * challenge,u8 * response) icm_fr_challenge_switch_key() argument
643 struct tb_switch *sw; alloc_switch() local
661 add_switch(struct tb_switch * parent_sw,struct tb_switch * sw) add_switch() argument
677 update_switch(struct tb_switch * sw,u64 route,u8 connection_id,u8 connection_key,u8 link,u8 depth,bool boot) update_switch() argument
703 remove_switch(struct tb_switch * sw) remove_switch() argument
709 add_xdomain(struct tb_switch * sw,u64 route,const uuid_t * local_uuid,const uuid_t * remote_uuid,u8 link,u8 depth) add_xdomain() argument
742 struct tb_switch *sw; remove_xdomain() local
756 struct tb_switch *sw, *parent_sw; icm_fr_device_connected() local
903 struct tb_switch *sw; icm_fr_device_disconnected() local
938 struct tb_switch *sw; icm_fr_xdomain_connected() local
1072 icm_tr_approve_switch(struct tb * tb,struct tb_switch * sw) icm_tr_approve_switch() argument
1099 icm_tr_add_switch_key(struct tb * tb,struct tb_switch * sw) icm_tr_add_switch_key() argument
1127 icm_tr_challenge_switch_key(struct tb * tb,struct tb_switch * sw,const u8 * challenge,u8 * response) icm_tr_challenge_switch_key() argument
1247 struct tb_switch *sw, *parent_sw; __icm_tr_device_connected() local
1346 struct tb_switch *sw; icm_tr_device_disconnected() local
1372 struct tb_switch *sw; icm_tr_xdomain_connected() local
2056 icm_unplug_children(struct tb_switch * sw) icm_unplug_children() argument
2073 struct tb_switch *sw = tb_to_switch(dev); complete_rpm() local
2080 remove_unplugged_switch(struct tb_switch * sw) remove_unplugged_switch() argument
2101 icm_free_unplugged_children(struct tb_switch * sw) icm_free_unplugged_children() argument
2169 icm_runtime_suspend_switch(struct tb_switch * sw) icm_runtime_suspend_switch() argument
2176 icm_runtime_resume_switch(struct tb_switch * sw) icm_runtime_resume_switch() argument
2308 icm_usb4_switch_op(struct tb_switch * sw,u16 opcode,u32 * metadata,u8 * status,const void * tx_data,size_t tx_data_len,void * rx_data,size_t rx_data_len) icm_usb4_switch_op() argument
2370 icm_usb4_switch_nvm_authenticate_status(struct tb_switch * sw,u32 * status) icm_usb4_switch_nvm_authenticate_status() argument
[all...]
H A Dnvm.c58 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_version() local
91 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_validate() local
138 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_write_headers() local
162 struct tb_switch *sw = tb_to_switch(nvm->dev); in asmedia_switch_nvm_version() local
296 const struct tb_switch *sw = tb_to_switch(dev); in tb_nvm_alloc() local
/linux/drivers/input/joystick/
H A Dsidewinder.c96 struct sw { struct
112 * sw_read_packet() is a function which reads either a data packet, or an argument
283 static int sw_parse(unsigned char *buf, struct sw *sw) in sw_parse()
407 static int sw_read(struct sw *sw) in sw_read()
484 struct sw *sw = gameport_get_drvdata(gameport); in sw_poll() local
493 struct sw *sw = input_get_drvdata(dev); in sw_open() local
501 struct sw *sw = input_get_drvdata(dev); in sw_close() local
570 struct sw *sw; in sw_connect() local
790 struct sw *sw = gameport_get_drvdata(gameport); in sw_disconnect() local
/linux/drivers/platform/surface/
H A Dsurface_aggregator_tabletsw.c72 struct ssam_tablet_sw *sw = dev_get_drvdata(dev); in state_show() local
90 struct ssam_tablet_sw *sw = container_of(work, struct ssam_tablet_sw, update_work); ssam_tablet_sw_update_workfn() local
110 struct ssam_tablet_sw *sw = dev_get_drvdata(dev); ssam_tablet_sw_resume() local
120 struct ssam_tablet_sw *sw; ssam_tablet_sw_probe() local
194 struct ssam_tablet_sw *sw = ssam_device_get_drvdata(sdev); ssam_tablet_sw_remove() local
216 ssam_kip_cover_state_name(struct ssam_tablet_sw * sw,const struct ssam_tablet_sw_state * state) ssam_kip_cover_state_name() argument
244 ssam_kip_cover_state_is_tablet_mode(struct ssam_tablet_sw * sw,const struct ssam_tablet_sw_state * state) ssam_kip_cover_state_is_tablet_mode() argument
271 ssam_kip_get_cover_state(struct ssam_tablet_sw * sw,struct ssam_tablet_sw_state * state) ssam_kip_get_cover_state() argument
289 struct ssam_tablet_sw *sw = container_of(nf, struct ssam_tablet_sw, notif); ssam_kip_sw_notif() local
358 ssam_pos_state_name_cover(struct ssam_tablet_sw * sw,u32 state) ssam_pos_state_name_cover() argument
385 ssam_pos_state_name_sls(struct ssam_tablet_sw * sw,u32 state) ssam_pos_state_name_sls() argument
406 ssam_pos_state_name(struct ssam_tablet_sw * sw,const struct ssam_tablet_sw_state * state) ssam_pos_state_name() argument
422 ssam_pos_state_is_tablet_mode_cover(struct ssam_tablet_sw * sw,u32 state) ssam_pos_state_is_tablet_mode_cover() argument
441 ssam_pos_state_is_tablet_mode_sls(struct ssam_tablet_sw * sw,u32 state) ssam_pos_state_is_tablet_mode_sls() argument
460 ssam_pos_state_is_tablet_mode(struct ssam_tablet_sw * sw,const struct ssam_tablet_sw_state * state) ssam_pos_state_is_tablet_mode() argument
476 ssam_pos_get_sources_list(struct ssam_tablet_sw * sw,struct ssam_sources_list * sources) ssam_pos_get_sources_list() argument
513 ssam_pos_get_source(struct ssam_tablet_sw * sw,u32 * source_id) ssam_pos_get_source() argument
547 ssam_pos_get_posture_for_source(struct ssam_tablet_sw * sw,u32 source_id,u32 * posture) ssam_pos_get_posture_for_source() argument
562 ssam_pos_get_posture(struct ssam_tablet_sw * sw,struct ssam_tablet_sw_state * state) ssam_pos_get_posture() argument
588 struct ssam_tablet_sw *sw = container_of(nf, struct ssam_tablet_sw, notif); ssam_pos_sw_notif() local
[all...]
/linux/drivers/usb/roles/
H A Dclass.c75 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role()
106 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role()
169 struct usb_role_switch *sw; in usb_role_switch_get() local
192 struct usb_role_switch *sw; in fwnode_usb_role_switch_get() local
211 void usb_role_switch_put(struct usb_role_switch *sw) in usb_role_switch_put()
231 struct usb_role_switch *sw = NULL; in usb_role_switch_find_by_fwnode() local
250 struct usb_role_switch *sw = to_role_switch(dev); in usb_role_switch_is_visible() local
276 struct usb_role_switch *sw = to_role_switch(dev); in role_show() local
285 struct usb_role_switch *sw = to_role_switch(dev); in role_store() local
334 struct usb_role_switch *sw = to_role_switch(dev); in usb_role_switch_release() local
[all …]
/linux/include/linux/usb/
H A Drole.h70 static inline int usb_role_switch_set_role(struct usb_role_switch *sw, in usb_role_switch_set_role()
76 static inline enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role()
92 static inline void usb_role_switch_put(struct usb_role_switch *sw) { } in usb_role_switch_put()
107 static inline void usb_role_switch_unregister(struct usb_role_switch *sw) { } in usb_role_switch_unregister()
110 usb_role_switch_set_drvdata(struct usb_role_switch *sw, void *data) in usb_role_switch_set_drvdata()
114 static inline void *usb_role_switch_get_drvdata(struct usb_role_switch *sw) in usb_role_switch_get_drvdata()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/sw/
H A Dbase.c30 nvkm_sw_mthd(struct nvkm_sw *sw, int chid, int subc, u32 mthd, u32 data) in nvkm_sw_mthd()
61 struct nvkm_sw *sw = nvkm_sw(oclass->engine); in nvkm_sw_oclass_get() local
80 struct nvkm_sw *sw = nvkm_sw(oclass->engine); in nvkm_sw_cclass_get() local
101 struct nvkm_sw *sw; in nvkm_sw_new_() local
/linux/drivers/block/
H A Dswim3.c274 struct swim3 __iomem *sw = fs->swim3; in swim3_select() local
286 struct swim3 __iomem *sw = fs->swim3; in swim3_action() local
298 struct swim3 __iomem *sw = fs->swim3; swim3_readbit() local
374 struct swim3 __iomem *sw = fs->swim3; scan_track() local
387 struct swim3 __iomem *sw = fs->swim3; seek_track() local
434 struct swim3 __iomem *sw = fs->swim3; setup_transfer() local
559 struct swim3 __iomem *sw = fs->swim3; scan_timeout() local
583 struct swim3 __iomem *sw = fs->swim3; seek_timeout() local
602 struct swim3 __iomem *sw = fs->swim3; settle_timeout() local
631 struct swim3 __iomem *sw = fs->swim3; xfer_timeout() local
658 struct swim3 __iomem *sw = fs->swim3; swim3_interrupt() local
929 struct swim3 __iomem *sw = fs->swim3; floppy_open() local
1010 struct swim3 __iomem *sw = fs->swim3; floppy_release() local
1035 struct swim3 __iomem *sw; floppy_revalidate() local
1086 struct swim3 __iomem *sw; swim3_mb_event() local
[all...]
/linux/arch/nios2/kernel/
H A Dsignal.c38 struct switch_stack *sw, in rt_restore_ucontext() argument
101 do_rt_sigreturn(struct switch_stack * sw) do_rt_sigreturn() argument
130 struct switch_stack *sw = (struct switch_stack *)regs - 1; rt_setup_ucontext() local
[all...]
/linux/drivers/scsi/libsas/
H A Dsas_event.c13 bool sas_queue_work(struct sas_ha_struct *ha, struct sas_work *sw) in sas_queue_work()
43 struct sas_work *sw, *_sw; in sas_queue_deferred_work() local
155 struct sas_work *sw = &ev->work; in sas_defer_event() local

1234