Lines Matching defs:sw
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
376 int usb4_switch_drom_read(struct tb_switch *sw, unsigned int address, void *buf, in usb4_switch_drom_read()
390 bool usb4_switch_lane_bonding_possible(struct tb_switch *sw) in usb4_switch_lane_bonding_possible()
411 int usb4_switch_set_wake(struct tb_switch *sw, unsigned int flags) in usb4_switch_set_wake()
481 int usb4_switch_set_sleep(struct tb_switch *sw) in usb4_switch_set_sleep()
509 int usb4_switch_nvm_sector_size(struct tb_switch *sw) in usb4_switch_nvm_sector_size()
532 struct tb_switch *sw = data; in usb4_switch_nvm_read_block() local
566 int usb4_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf, in usb4_switch_nvm_read()
573 static int usb4_switch_nvm_set_offset(struct tb_switch *sw, in usb4_switch_nvm_set_offset()
598 struct tb_switch *sw = data; in usb4_switch_nvm_write_next_block() local
623 int usb4_switch_nvm_write(struct tb_switch *sw, unsigned int address, in usb4_switch_nvm_write()
645 int usb4_switch_nvm_authenticate(struct tb_switch *sw) in usb4_switch_nvm_authenticate()
678 bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_query_dp_resource()
710 int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_alloc_dp_resource()
735 int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_dealloc_dp_resource()
753 static int usb4_port_idx(const struct tb_switch *sw, const struct tb_port *port) in usb4_port_idx()
784 struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw, in usb4_switch_map_pcie_down()
815 struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw, in usb4_switch_map_usb3_down()