| /linux/drivers/thunderbolt/ |
| A D | switch.c | 861 const struct tb_switch *sw) in tb_switch_is_reachable() 1433 int tb_switch_reset(struct tb_switch *sw) in tb_switch_reset() 1497 struct tb_switch *sw = tb_to_switch(dev); in authorized_show() local 1505 struct tb_switch *sw; in disapprove_switch() local 1585 struct tb_switch *sw = tb_to_switch(dev); in authorized_store() local 1607 struct tb_switch *sw = tb_to_switch(dev); in boot_show() local 1616 struct tb_switch *sw = tb_to_switch(dev); in device_show() local 1625 struct tb_switch *sw = tb_to_switch(dev); in device_name_show() local 2119 struct tb_switch *sw; in tb_switch_alloc() local 2230 struct tb_switch *sw; in tb_switch_alloc_safe_mode() local [all …]
|
| A D | lc.c | 16 int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid) in tb_lc_read_uuid() 23 static int read_lc_desc(struct tb_switch *sw, u32 *desc) in read_lc_desc() 32 struct tb_switch *sw = port->sw; in find_port_lc_cap() local 51 struct tb_switch *sw = port->sw; in tb_lc_set_port_configured() local 109 struct tb_switch *sw = port->sw; in tb_lc_set_xdomain_configured() local 173 struct tb_switch *sw = port->sw; in tb_lc_start_lane_initialization() local 233 int tb_lc_set_wake(struct tb_switch *sw, unsigned int flags) in tb_lc_set_wake() 272 int tb_lc_set_sleep(struct tb_switch *sw) in tb_lc_set_sleep() 316 bool tb_lc_lane_bonding_possible(struct tb_switch *sw) in tb_lc_lane_bonding_possible() 337 static int tb_lc_dp_sink_from_port(const struct tb_switch *sw, in tb_lc_dp_sink_from_port() [all …]
|
| A D | tmu.c | 14 static const char *tb_switch_tmu_mode_name(const struct tb_switch *sw) in tb_switch_tmu_mode_name() 40 static bool tb_switch_tmu_ucap_supported(struct tb_switch *sw) in tb_switch_tmu_ucap_supported() 53 static int tb_switch_tmu_rate_read(struct tb_switch *sw) in tb_switch_tmu_rate_read() 67 static int tb_switch_tmu_rate_write(struct tb_switch *sw, int rate) in tb_switch_tmu_rate_write() 131 static int tb_switch_tmu_set_time_disruption(struct tb_switch *sw, bool set) in tb_switch_tmu_set_time_disruption() 158 int tb_switch_tmu_init(struct tb_switch *sw) in tb_switch_tmu_init() 208 int tb_switch_tmu_post_time(struct tb_switch *sw) in tb_switch_tmu_post_time() 298 int tb_switch_tmu_disable(struct tb_switch *sw) in tb_switch_tmu_disable() 339 int tb_switch_tmu_enable(struct tb_switch *sw) in tb_switch_tmu_enable()
|
| A D | eeprom.c | 42 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active() 96 static int tb_eeprom_out(struct tb_switch *sw, u8 val) in tb_eeprom_out() 116 static int tb_eeprom_in(struct tb_switch *sw, u8 *val) in tb_eeprom_in() 302 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only() 324 static int tb_drom_parse_entry_generic(struct tb_switch *sw, in tb_drom_parse_entry_generic() 360 static int tb_drom_parse_entry_port(struct tb_switch *sw, in tb_drom_parse_entry_port() 441 static int tb_drom_copy_efi(struct tb_switch *sw, u16 *size) in tb_drom_copy_efi() 472 static int tb_drom_copy_nvm(struct tb_switch *sw, u16 *size) in tb_drom_copy_nvm() 547 static int tb_drom_parse(struct tb_switch *sw) in tb_drom_parse() 575 static int usb4_drom_parse(struct tb_switch *sw) in usb4_drom_parse() [all …]
|
| A D | tb.c | 72 static void tb_add_dp_resources(struct tb_switch *sw) in tb_add_dp_resources() 108 static void tb_discover_tunnels(struct tb_switch *sw) in tb_discover_tunnels() 184 struct tb_switch *sw = port->sw; in tb_scan_xdomain() local 208 static int tb_enable_tmu(struct tb_switch *sw) in tb_enable_tmu() 285 struct tb_switch *sw; in tb_find_first_usb3_tunnel() local 552 static void tb_scan_switch(struct tb_switch *sw) in tb_scan_switch() 572 struct tb_switch *sw; in tb_scan_port() local 1090 struct tb_switch *sw; in tb_approve_xdomain_paths() local 1124 struct tb_switch *sw; in __tb_disconnect_xdomain_paths() local 1168 struct tb_switch *sw; in tb_handle_hotplug() local [all …]
|
| A D | usb4.c | 178 static void usb4_switch_check_wakes(struct tb_switch *sw) in usb4_switch_check_wakes() 243 int usb4_switch_setup(struct tb_switch *sw) in usb4_switch_setup() 326 struct tb_switch *sw = data; in usb4_switch_drom_read_block() local 467 int usb4_switch_set_sleep(struct tb_switch *sw) in usb4_switch_set_sleep() 495 int usb4_switch_nvm_sector_size(struct tb_switch *sw) in usb4_switch_nvm_sector_size() 515 struct tb_switch *sw = data; in usb4_switch_nvm_read_block() local 581 struct tb_switch *sw = data; in usb4_switch_nvm_write_next_block() local 629 int usb4_switch_nvm_authenticate(struct tb_switch *sw) in usb4_switch_nvm_authenticate() 705 int usb4_switch_credits_init(struct tb_switch *sw) in usb4_switch_credits_init() 1006 int usb4_switch_add_ports(struct tb_switch *sw) in usb4_switch_add_ports() [all …]
|
| A D | debugfs.c | 123 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, in regs_write() 179 struct tb_switch *sw = s->private; in switch_regs_write() local 212 struct tb_switch *sw = port->sw; in counters_write() local 254 static void cap_show_by_dw(struct seq_file *s, struct tb_switch *sw, in cap_show_by_dw() 277 static void cap_show(struct seq_file *s, struct tb_switch *sw, in cap_show() 409 struct tb_switch *sw = port->sw; in port_regs_show() local 513 struct tb_switch *sw = s->private; in switch_regs_show() local 565 struct tb_switch *sw = port->sw; in path_show() local 628 struct tb_switch *sw = port->sw; in counters_show() local 663 void tb_switch_debugfs_init(struct tb_switch *sw) in tb_switch_debugfs_init() [all …]
|
| A D | tb.h | 231 struct tb_switch *sw; member 486 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port() 504 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() 577 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read() 639 #define __TB_SW_PRINT(level, sw, fmt, arg...) \ argument 758 #define tb_switch_for_each_port(sw, p) \ argument 762 static inline struct tb_switch *tb_switch_get(struct tb_switch *sw) in tb_switch_get() 769 static inline void tb_switch_put(struct tb_switch *sw) in tb_switch_put() 860 static inline bool tb_switch_is_usb4(const struct tb_switch *sw) in tb_switch_is_usb4() 874 static inline bool tb_switch_is_icm(const struct tb_switch *sw) in tb_switch_is_icm() [all …]
|
| A D | dma_port.c | 55 struct tb_switch *sw; member 168 static int dma_find_port(struct tb_switch *sw) in dma_find_port() 201 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw) in dma_port_alloc() 243 struct tb_switch *sw = dma->sw; in dma_port_wait_for_completion() local 281 struct tb_switch *sw = dma->sw; in dma_port_request() local 306 struct tb_switch *sw = dma->sw; in dma_port_flash_read_block() local 328 struct tb_switch *sw = dma->sw; in dma_port_flash_write_block() local 422 struct tb_switch *sw = dma->sw; in dma_port_flash_update_auth_status() local
|
| A D | quirks.c | 10 static void quirk_force_power_link(struct tb_switch *sw) in quirk_force_power_link() 15 static void quirk_dp_credit_allocation(struct tb_switch *sw) in quirk_dp_credit_allocation() 48 void tb_check_quirks(struct tb_switch *sw) in tb_check_quirks()
|
| A D | cap.c | 20 struct tb_switch *sw = port->sw; in tb_port_enable_tmu() local 145 int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset) in tb_switch_next_cap() 188 int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) in tb_switch_find_cap() 221 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec) in tb_switch_find_vse_cap()
|
| A D | icm.c | 613 struct tb_switch *sw; in alloc_switch() local 672 static void remove_switch(struct tb_switch *sw) in remove_switch() 714 struct tb_switch *sw; in remove_xdomain() local 727 struct tb_switch *sw, *parent_sw; in icm_fr_device_connected() local 874 struct tb_switch *sw; in icm_fr_device_disconnected() local 909 struct tb_switch *sw; in icm_fr_xdomain_connected() local 1207 struct tb_switch *sw, *parent_sw; in __icm_tr_device_connected() local 1306 struct tb_switch *sw; in icm_tr_device_disconnected() local 1332 struct tb_switch *sw; in icm_tr_xdomain_connected() local 2005 static void icm_unplug_children(struct tb_switch *sw) in icm_unplug_children() [all …]
|
| /linux/drivers/input/joystick/ |
| A D | sidewinder.c | 98 struct sw { struct 114 * sw_read_packet() is a function which reads either a data packet, or an argument 285 static int sw_parse(unsigned char *buf, struct sw *sw) in sw_parse() 409 static int sw_read(struct sw *sw) in sw_read() 486 struct sw *sw = gameport_get_drvdata(gameport); in sw_poll() local 495 struct sw *sw = input_get_drvdata(dev); in sw_open() local 503 struct sw *sw = input_get_drvdata(dev); in sw_close() local 572 struct sw *sw; in sw_connect() local 792 struct sw *sw = gameport_get_drvdata(gameport); in sw_disconnect() local
|
| /linux/drivers/usb/roles/ |
| A D | class.c | 70 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() 125 struct usb_role_switch *sw; in usb_role_switch_get() local 148 struct usb_role_switch *sw; in fwnode_usb_role_switch_get() local 167 void usb_role_switch_put(struct usb_role_switch *sw) in usb_role_switch_put() 203 struct usb_role_switch *sw = to_role_switch(dev); in usb_role_switch_is_visible() local 229 struct usb_role_switch *sw = to_role_switch(dev); in role_show() local 238 struct usb_role_switch *sw = to_role_switch(dev); in role_store() local 288 struct usb_role_switch *sw = to_role_switch(dev); in usb_role_switch_release() local 318 struct usb_role_switch *sw; in usb_role_switch_register() local 363 void usb_role_switch_unregister(struct usb_role_switch *sw) in usb_role_switch_unregister() [all …]
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| A D | prestera_main.c | 471 static void prestera_destroy_ports(struct prestera_switch *sw) in prestera_destroy_ports() 479 static int prestera_create_ports(struct prestera_switch *sw) in prestera_create_ports() 599 static void prestera_lag_destroy(struct prestera_switch *sw, in prestera_lag_destroy() 610 struct prestera_switch *sw = port->sw; in prestera_lag_port_add() local 640 struct prestera_switch *sw = port->sw; in prestera_lag_port_del() local 679 static int prestera_lag_init(struct prestera_switch *sw) in prestera_lag_init() 693 static void prestera_lag_fini(struct prestera_switch *sw) in prestera_lag_fini() 883 static int prestera_switch_init(struct prestera_switch *sw) in prestera_switch_init() 960 static void prestera_switch_fini(struct prestera_switch *sw) in prestera_switch_fini() 977 struct prestera_switch *sw; in prestera_device_register() local [all …]
|
| A D | prestera_acl.c | 12 struct prestera_switch *sw; member 18 struct prestera_switch *sw; member 43 prestera_acl_ruleset_create(struct prestera_switch *sw) in prestera_acl_ruleset_create() 79 prestera_acl_block_create(struct prestera_switch *sw, struct net *net) in prestera_acl_block_create() 296 int prestera_acl_rule_add(struct prestera_switch *sw, in prestera_acl_rule_add() 326 void prestera_acl_rule_del(struct prestera_switch *sw, in prestera_acl_rule_del() 335 int prestera_acl_rule_get_stats(struct prestera_switch *sw, in prestera_acl_rule_get_stats() 355 int prestera_acl_init(struct prestera_switch *sw) in prestera_acl_init() 370 void prestera_acl_fini(struct prestera_switch *sw) in prestera_acl_fini()
|
| A D | prestera_span.c | 20 struct prestera_switch *sw; member 77 struct prestera_switch *sw = port->sw; in prestera_span_get() local 102 static int prestera_span_put(struct prestera_switch *sw, u8 span_id) in prestera_span_put() 125 struct prestera_switch *sw = binding->port->sw; in prestera_span_rule_add() local 217 int prestera_span_init(struct prestera_switch *sw) in prestera_span_init() 233 void prestera_span_fini(struct prestera_switch *sw) in prestera_span_fini()
|
| A D | prestera_devlink.c | 127 struct prestera_switch *sw; member 356 struct prestera_switch *sw = devlink_priv(dl); in prestera_dl_info_get() local 399 void prestera_devlink_free(struct prestera_switch *sw) in prestera_devlink_free() 406 void prestera_devlink_register(struct prestera_switch *sw) in prestera_devlink_register() 413 void prestera_devlink_unregister(struct prestera_switch *sw) in prestera_devlink_unregister() 422 struct prestera_switch *sw = port->sw; in prestera_devlink_port_register() local 465 int prestera_devlink_traps_register(struct prestera_switch *sw) in prestera_devlink_traps_register() 552 prestera_devlink_trap_item_lookup(struct prestera_switch *sw, u16 trap_id) in prestera_devlink_trap_item_lookup() 568 struct prestera_switch *sw = devlink_priv(devlink); in prestera_trap_init() local 594 struct prestera_switch *sw = devlink_priv(devlink); in prestera_drop_counter_get() local [all …]
|
| A D | prestera_flow.c | 71 prestera_flow_block_get(struct prestera_switch *sw, in prestera_flow_block_get() 119 struct prestera_switch *sw = port->sw; in prestera_setup_flow_block_bind() local 152 struct prestera_switch *sw = port->sw; in prestera_setup_flow_block_unbind() local
|
| A D | prestera_hw.c | 554 static int __prestera_cmd_ret(struct prestera_switch *sw, in __prestera_cmd_ret() 577 static int prestera_cmd_ret(struct prestera_switch *sw, in prestera_cmd_ret() 585 static int prestera_cmd_ret_wait(struct prestera_switch *sw, in prestera_cmd_ret_wait() 594 static int prestera_cmd(struct prestera_switch *sw, in prestera_cmd() 659 __find_event_handler(const struct prestera_switch *sw, in __find_event_handler() 692 struct prestera_switch *sw = dev->priv; in prestera_evt_recv() local 722 struct prestera_switch *sw = dev->priv; in prestera_pkt_recv() local 797 int prestera_hw_switch_init(struct prestera_switch *sw) in prestera_hw_switch_init() 826 void prestera_hw_switch_fini(struct prestera_switch *sw) in prestera_hw_switch_fini() 1160 int prestera_hw_acl_rule_add(struct prestera_switch *sw, in prestera_hw_acl_rule_add() [all …]
|
| /linux/include/linux/usb/ |
| A D | role.h | 70 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() 101 static inline void usb_role_switch_unregister(struct usb_role_switch *sw) { } in usb_role_switch_unregister() 104 usb_role_switch_set_drvdata(struct usb_role_switch *sw, void *data) in usb_role_switch_set_drvdata() 108 static inline void *usb_role_switch_get_drvdata(struct usb_role_switch *sw) in usb_role_switch_get_drvdata()
|
| /linux/drivers/usb/typec/ |
| A D | mux.c | 66 struct typec_switch *sw; in fwnode_typec_switch_get() local 83 void typec_switch_put(struct typec_switch *sw) in typec_switch_put() 116 struct typec_switch *sw; in typec_switch_register() local 148 int typec_switch_set(struct typec_switch *sw, in typec_switch_set() 164 void typec_switch_unregister(struct typec_switch *sw) in typec_switch_unregister() 171 void typec_switch_set_drvdata(struct typec_switch *sw, void *data) in typec_switch_set_drvdata() 177 void *typec_switch_get_drvdata(struct typec_switch *sw) in typec_switch_get_drvdata()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
| A D | base.c | 30 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 81 struct nvkm_sw *sw = nvkm_sw(oclass->engine); in nvkm_sw_cclass_get() local 102 struct nvkm_sw *sw; in nvkm_sw_new_() local
|
| /linux/drivers/block/ |
| A D | swim3.c | 275 struct swim3 __iomem *sw = fs->swim3; in swim3_select() local 287 struct swim3 __iomem *sw = fs->swim3; in swim3_action() local 299 struct swim3 __iomem *sw = fs->swim3; in swim3_readbit() local 375 struct swim3 __iomem *sw = fs->swim3; in scan_track() local 388 struct swim3 __iomem *sw = fs->swim3; in seek_track() local 435 struct swim3 __iomem *sw = fs->swim3; in setup_transfer() local 560 struct swim3 __iomem *sw = fs->swim3; in scan_timeout() local 584 struct swim3 __iomem *sw = fs->swim3; in seek_timeout() local 603 struct swim3 __iomem *sw = fs->swim3; in settle_timeout() local 1035 struct swim3 __iomem *sw; in floppy_revalidate() local [all …]
|
| /linux/drivers/input/misc/ |
| A D | ad714x.c | 216 struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; in ad714x_button_state_machine() local 269 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; in ad714x_slider_cal_highest_stage() local 294 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; in ad714x_slider_cal_abs_pos() local 315 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; in ad714x_slider_cal_flt_pos() local 341 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; in ad714x_slider_state_machine() local 410 struct ad714x_wheel_drv *sw = &ad714x->sw->wheel[idx]; in ad714x_wheel_cal_highest_stage() local 452 struct ad714x_wheel_drv *sw = &ad714x->sw->wheel[idx]; in ad714x_wheel_cal_abs_pos() local 483 struct ad714x_wheel_drv *sw = &ad714x->sw->wheel[idx]; in ad714x_wheel_cal_flt_pos() local 513 struct ad714x_wheel_drv *sw = &ad714x->sw->wheel[idx]; in ad714x_wheel_state_machine() local 597 struct ad714x_touchpad_drv *sw = &ad714x->sw->touchpad[idx]; in touchpad_cal_highest_stage() local [all …]
|