/Linux-v5.10/drivers/thunderbolt/ |
D | switch.c | 42 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status() 54 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status() 65 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status() 90 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status() 103 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write() 171 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port() 211 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port() 256 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port() 271 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port() 280 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable() [all …]
|
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 161 static int tb_lc_set_wake_one(struct tb_switch *sw, unsigned int offset, in tb_lc_set_wake_one() 196 int tb_lc_set_wake(struct tb_switch *sw, unsigned int flags) in tb_lc_set_wake() 235 int tb_lc_set_sleep(struct tb_switch *sw) in tb_lc_set_sleep() 279 bool tb_lc_lane_bonding_possible(struct tb_switch *sw) in tb_lc_lane_bonding_possible() 300 static int tb_lc_dp_sink_from_port(const struct tb_switch *sw, in tb_lc_dp_sink_from_port() [all …]
|
D | eeprom.c | 18 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write() 26 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read() 42 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active() 71 static int tb_eeprom_transfer(struct tb_switch *sw, struct tb_eeprom_ctl *ctl, in tb_eeprom_transfer() 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() 137 static int tb_eeprom_get_drom_offset(struct tb_switch *sw, u16 *offset) in tb_eeprom_get_drom_offset() 168 static int tb_eeprom_read_n(struct tb_switch *sw, u16 offset, u8 *val, in tb_eeprom_read_n() 287 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only() 309 static int tb_drom_parse_entry_generic(struct tb_switch *sw, in tb_drom_parse_entry_generic() [all …]
|
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()
|
D | tb.c | 69 static void tb_add_dp_resources(struct tb_switch *sw) in tb_add_dp_resources() 86 static void tb_remove_dp_resources(struct tb_switch *sw) in tb_remove_dp_resources() 105 static void tb_discover_tunnels(struct tb_switch *sw) in tb_discover_tunnels() 177 struct tb_switch *sw = port->sw; in tb_scan_xdomain() local 198 static int tb_enable_tmu(struct tb_switch *sw) in tb_enable_tmu() 222 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port() 241 static struct tb_port *tb_find_usb3_down(struct tb_switch *sw, in tb_find_usb3_down() 275 struct tb_switch *sw; in tb_find_first_usb3_tunnel() local 429 static int tb_tunnel_usb3(struct tb *tb, struct tb_switch *sw) in tb_tunnel_usb3() 507 static int tb_create_usb3_tunnels(struct tb_switch *sw) in tb_create_usb3_tunnels() [all …]
|
D | usb4.c | 55 static int usb4_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit, in usb4_switch_wait_for_bit() 77 static int usb4_switch_op_read_data(struct tb_switch *sw, void *data, in usb4_switch_op_read_data() 86 static int usb4_switch_op_write_data(struct tb_switch *sw, const void *data, in usb4_switch_op_write_data() 95 static int usb4_switch_op_read_metadata(struct tb_switch *sw, u32 *metadata) in usb4_switch_op_read_metadata() 100 static int usb4_switch_op_write_metadata(struct tb_switch *sw, u32 metadata) in usb4_switch_op_write_metadata() 174 static int usb4_switch_op(struct tb_switch *sw, u16 opcode, u8 *status) in usb4_switch_op() 199 static void usb4_switch_check_wakes(struct tb_switch *sw) in usb4_switch_check_wakes() 264 int usb4_switch_setup(struct tb_switch *sw) in usb4_switch_setup() 333 int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) in usb4_switch_read_uid() 342 struct tb_switch *sw = data; in usb4_switch_drom_read_block() local [all …]
|
D | tb.h | 202 struct tb_switch *sw; member 417 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port() 435 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() 440 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at() 508 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read() 522 static inline int tb_sw_write(struct tb_switch *sw, const void *buffer, in tb_sw_write() 570 #define __TB_SW_PRINT(level, sw, fmt, arg...) \ argument 576 #define tb_sw_WARN(sw, fmt, arg...) __TB_SW_PRINT(tb_WARN, sw, fmt, ##arg) argument 577 #define tb_sw_warn(sw, fmt, arg...) __TB_SW_PRINT(tb_warn, sw, fmt, ##arg) argument 578 #define tb_sw_info(sw, fmt, arg...) __TB_SW_PRINT(tb_info, sw, fmt, ##arg) argument [all …]
|
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(struct seq_file *s, struct tb_switch *sw, in cap_show() 398 struct tb_switch *sw = port->sw; in port_regs_show() local 427 static void switch_cap_show(struct tb_switch *sw, struct seq_file *s, in switch_cap_show() 467 static void switch_caps_show(struct tb_switch *sw, struct seq_file *s) in switch_caps_show() 478 static int switch_basic_regs_show(struct tb_switch *sw, struct seq_file *s) in switch_basic_regs_show() 502 struct tb_switch *sw = s->private; in switch_regs_show() local 554 struct tb_switch *sw = port->sw; in path_show() local [all …]
|
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()
|
D | icm.c | 384 struct icm_fr_pkg_get_topology_response *switches, *sw; in icm_fr_get_route() local 460 static int icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw) in icm_fr_approve_switch() 487 static int icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw) in icm_fr_add_switch_key() 514 static int icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, in icm_fr_challenge_switch_key() 593 struct tb_switch *sw; in alloc_switch() local 611 static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw) in add_switch() 627 static void update_switch(struct tb_switch *parent_sw, struct tb_switch *sw, in update_switch() 652 static void remove_switch(struct tb_switch *sw) in remove_switch() 661 static void add_xdomain(struct tb_switch *sw, u64 route, in add_xdomain() 694 struct tb_switch *sw; in remove_xdomain() local [all …]
|
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 305 struct tb_switch *sw = dma->sw; in dma_port_flash_read_block() local 329 struct tb_switch *sw = dma->sw; in dma_port_flash_write_block() local 483 struct tb_switch *sw = dma->sw; in dma_port_flash_update_auth_status() local
|
D | quirks.c | 10 static void quirk_force_power_link(struct tb_switch *sw) in quirk_force_power_link() 32 void tb_check_quirks(struct tb_switch *sw) in tb_check_quirks()
|
/Linux-v5.10/drivers/input/joystick/ |
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 791 struct sw *sw = gameport_get_drvdata(gameport); in sw_disconnect() local
|
/Linux-v5.10/drivers/usb/roles/ |
D | class.c | 42 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() 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() 201 struct usb_role_switch *sw = to_role_switch(dev); in usb_role_switch_is_visible() local 218 struct usb_role_switch *sw = to_role_switch(dev); in role_show() local 227 struct usb_role_switch *sw = to_role_switch(dev); in role_store() local 277 struct usb_role_switch *sw = to_role_switch(dev); in usb_role_switch_release() local 307 struct usb_role_switch *sw; in usb_role_switch_register() local [all …]
|
/Linux-v5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_main.c | 50 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, in prestera_port_find_by_hwid() 65 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id) in prestera_find_port() 275 static int prestera_port_create(struct prestera_switch *sw, u32 id) in prestera_port_create() 393 static void prestera_destroy_ports(struct prestera_switch *sw) in prestera_destroy_ports() 401 static int prestera_create_ports(struct prestera_switch *sw) in prestera_create_ports() 422 static void prestera_port_handle_event(struct prestera_switch *sw, in prestera_port_handle_event() 447 static int prestera_event_handlers_register(struct prestera_switch *sw) in prestera_event_handlers_register() 454 static void prestera_event_handlers_unregister(struct prestera_switch *sw) in prestera_event_handlers_unregister() 460 static int prestera_switch_set_base_mac_addr(struct prestera_switch *sw) in prestera_switch_set_base_mac_addr() 539 static int prestera_netdev_event_handler_register(struct prestera_switch *sw) in prestera_netdev_event_handler_register() [all …]
|
D | prestera_devlink.c | 12 struct prestera_switch *sw = devlink_priv(dl); in prestera_dl_info_get() local 43 void prestera_devlink_free(struct prestera_switch *sw) in prestera_devlink_free() 50 int prestera_devlink_register(struct prestera_switch *sw) in prestera_devlink_register() 62 void prestera_devlink_unregister(struct prestera_switch *sw) in prestera_devlink_unregister() 71 struct prestera_switch *sw = port->sw; in prestera_devlink_port_register() local
|
D | prestera_hw.c | 323 static int __prestera_cmd_ret(struct prestera_switch *sw, in __prestera_cmd_ret() 346 static int prestera_cmd_ret(struct prestera_switch *sw, in prestera_cmd_ret() 354 static int prestera_cmd_ret_wait(struct prestera_switch *sw, in prestera_cmd_ret_wait() 363 static int prestera_cmd(struct prestera_switch *sw, in prestera_cmd() 405 __find_event_handler(const struct prestera_switch *sw, in __find_event_handler() 418 static int prestera_find_event_handler(const struct prestera_switch *sw, in prestera_find_event_handler() 438 struct prestera_switch *sw = dev->priv; in prestera_evt_recv() local 466 struct prestera_switch *sw = dev->priv; in prestera_pkt_recv() local 501 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac) in prestera_hw_switch_mac_set() 513 int prestera_hw_switch_init(struct prestera_switch *sw) in prestera_hw_switch_init() [all …]
|
D | prestera_switchdev.c | 30 struct prestera_switch *sw; member 616 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_ageing_set() local 634 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_vlan_set() local 771 struct prestera_switch *sw = port->sw; in prestera_port_fdb_set() local 1030 struct prestera_switch *sw = port->sw; in prestera_port_vlans_add() local 1083 struct prestera_switch *sw = port->sw; in prestera_port_vlans_del() local 1144 static void prestera_fdb_event(struct prestera_switch *sw, in prestera_fdb_event() 1174 static int prestera_fdb_init(struct prestera_switch *sw) in prestera_fdb_init() 1195 static void prestera_fdb_fini(struct prestera_switch *sw) in prestera_fdb_fini() 1230 int prestera_switchdev_init(struct prestera_switch *sw) in prestera_switchdev_init() [all …]
|
/Linux-v5.10/include/linux/usb/ |
D | role.h | 69 static inline int usb_role_switch_set_role(struct usb_role_switch *sw, in usb_role_switch_set_role() 75 static inline enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() 91 static inline void usb_role_switch_put(struct usb_role_switch *sw) { } in usb_role_switch_put() 100 static inline void usb_role_switch_unregister(struct usb_role_switch *sw) { } in usb_role_switch_unregister() 103 usb_role_switch_set_drvdata(struct usb_role_switch *sw, void *data) in usb_role_switch_set_drvdata() 107 static inline void *usb_role_switch_get_drvdata(struct usb_role_switch *sw) in usb_role_switch_get_drvdata()
|
/Linux-v5.10/drivers/usb/typec/ |
D | mux.c | 62 struct typec_switch *sw; in fwnode_typec_switch_get() local 79 void typec_switch_put(struct typec_switch *sw) in typec_switch_put() 112 struct typec_switch *sw; in typec_switch_register() local 144 int typec_switch_set(struct typec_switch *sw, in typec_switch_set() 160 void typec_switch_unregister(struct typec_switch *sw) in typec_switch_unregister() 167 void typec_switch_set_drvdata(struct typec_switch *sw, void *data) in typec_switch_set_drvdata() 173 void *typec_switch_get_drvdata(struct typec_switch *sw) in typec_switch_get_drvdata()
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
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-v5.10/drivers/block/ |
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 419 struct swim3 __iomem *sw = fs->swim3; in setup_transfer() local 542 struct swim3 __iomem *sw = fs->swim3; in scan_timeout() local 566 struct swim3 __iomem *sw = fs->swim3; in seek_timeout() local 585 struct swim3 __iomem *sw = fs->swim3; in settle_timeout() local 614 struct swim3 __iomem *sw = fs->swim3; in xfer_timeout() local [all …]
|
/Linux-v5.10/drivers/input/misc/ |
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 …]
|
/Linux-v5.10/arch/nios2/kernel/ |
D | signal.c | 38 struct switch_stack *sw, in rt_restore_ucontext() 101 asmlinkage int do_rt_sigreturn(struct switch_stack *sw) in do_rt_sigreturn() 129 struct switch_stack *sw = (struct switch_stack *)regs - 1; in rt_setup_ucontext() local
|
/Linux-v5.10/drivers/net/ethernet/intel/ice/ |
D | ice_switch.c | 920 struct ice_switch_info *sw = hw->switch_info; in ice_create_vsi_list_map() local 1132 struct ice_switch_info *sw = hw->switch_info; in ice_update_sw_rule_bridge_mode() local 1292 struct ice_switch_info *sw = hw->switch_info; in ice_find_rule_entry() local 1323 struct ice_switch_info *sw = hw->switch_info; in ice_find_vsi_list_entry() local 1352 struct ice_switch_info *sw = hw->switch_info; in ice_add_rule_internal() local 1520 struct ice_switch_info *sw = hw->switch_info; in ice_remove_rule_internal() local 1618 struct ice_switch_info *sw; in ice_add_mac() local 1762 struct ice_switch_info *sw = hw->switch_info; in ice_add_vlan_internal() local 2115 struct ice_switch_info *sw = hw->switch_info; in ice_find_ucast_rule_entry() local 2378 struct ice_switch_info *sw = hw->switch_info; in ice_clear_vsi_promisc() local [all …]
|