Symbol: TB_CFG_SWITCH
drivers/thunderbolt/cap.c
162
ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 2);
drivers/thunderbolt/cap.c
210
ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/cap.c
246
ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/cap.c
35
ret = tb_sw_read(sw, &value, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/cap.c
44
return tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/clx.c
287
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/clx.c
297
return tb_sw_write(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/ctl.c
1177
TB_CFG_SWITCH, 0, 1,
drivers/thunderbolt/debugfs.c
1954
ret = tb_sw_read(sw, &data, TB_CFG_SWITCH, cap + offset + i, 1);
drivers/thunderbolt/debugfs.c
1979
ret = tb_sw_read(sw, data, TB_CFG_SWITCH, cap + offset, dwords);
drivers/thunderbolt/debugfs.c
2144
ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, cap, 1);
drivers/thunderbolt/debugfs.c
2152
ret = tb_sw_read(sw, (u32 *)&header + 1, TB_CFG_SWITCH,
drivers/thunderbolt/debugfs.c
2200
ret = tb_sw_read(sw, data, TB_CFG_SWITCH, 0, dwords);
drivers/thunderbolt/debugfs.c
257
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/debugfs.c
297
return regs_write(sw, NULL, TB_CFG_SWITCH, user_buf, count, ppos);
drivers/thunderbolt/eeprom.c
146
res = tb_sw_read(sw, &cap, TB_CFG_SWITCH, sw->cap_plug_events,
drivers/thunderbolt/eeprom.c
20
return tb_sw_write(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + ROUTER_CS_4, 1);
drivers/thunderbolt/eeprom.c
28
return tb_sw_read(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + ROUTER_CS_4, 1);
drivers/thunderbolt/icm.c
1039
return pcie2cio_write(tb_priv(tb), TB_CFG_SWITCH, 0, 0x777, BIT(1));
drivers/thunderbolt/icm.c
1506
return pcie2cio_write(tb_priv(tb), TB_CFG_SWITCH, 0, 0x50, BIT(9));
drivers/thunderbolt/icm.c
1825
res = tb_cfg_read_raw(tb->ctl, &tmp, 0, 0, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
110
ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1);
drivers/thunderbolt/lc.c
130
return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1);
drivers/thunderbolt/lc.c
172
ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1);
drivers/thunderbolt/lc.c
187
return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1);
drivers/thunderbolt/lc.c
24
return tb_sw_read(sw, uuid, TB_CFG_SWITCH, sw->cap_lc + TB_LC_FUSE, 4);
drivers/thunderbolt/lc.c
241
ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1);
drivers/thunderbolt/lc.c
247
return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1);
drivers/thunderbolt/lc.c
269
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_LINK_ATTR, 1);
drivers/thunderbolt/lc.c
296
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_CS_42, 1);
drivers/thunderbolt/lc.c
31
return tb_sw_read(sw, desc, TB_CFG_SWITCH, sw->cap_lc + TB_LC_DESC, 1);
drivers/thunderbolt/lc.c
323
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_LINK_REQ, 1);
drivers/thunderbolt/lc.c
343
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_LINK_REQ, 1);
drivers/thunderbolt/lc.c
352
return tb_sw_write(sw, &val, TB_CFG_SWITCH, cap + TB_LC_LINK_REQ, 1);
drivers/thunderbolt/lc.c
399
ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
416
return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, offset + TB_LC_SX_CTRL, 1);
drivers/thunderbolt/lc.c
491
ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
497
ret = tb_sw_write(sw, &ctrl, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
529
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, cap + TB_LC_PORT_ATTR, 1);
drivers/thunderbolt/lc.c
555
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
634
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
648
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
684
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
694
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/lc.c
716
return tb_sw_write(sw, &in, TB_CFG_SWITCH, TB_LC_POWER, 1);
drivers/thunderbolt/lc.c
75
ret = tb_sw_read(sw, &mode, TB_CFG_SWITCH, cap + TB_LC_PORT_MODE, 1);
drivers/thunderbolt/lc.c
81
ret = tb_sw_write(sw, &mode, TB_CFG_SWITCH, cap + TB_LC_PORT_MODE, 1);
drivers/thunderbolt/lc.c
87
ret = tb_sw_read(sw, &mode, TB_CFG_SWITCH, cap + TB_LC_PORT_MODE, 1);
drivers/thunderbolt/lc.c
93
return tb_sw_write(sw, &mode, TB_CFG_SWITCH, cap + TB_LC_PORT_MODE, 1);
drivers/thunderbolt/switch.c
1633
TB_CFG_SWITCH, 2, 2);
drivers/thunderbolt/switch.c
1661
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_3, 1);
drivers/thunderbolt/switch.c
1732
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/switch.c
1758
res = tb_sw_read(sw, &data, TB_CFG_SWITCH, sw->cap_plug_events + 1, 1);
drivers/thunderbolt/switch.c
1781
return tb_sw_write(sw, &data, TB_CFG_SWITCH,
drivers/thunderbolt/switch.c
2478
ret = tb_cfg_read(tb->ctl, &sw->config, route, 0, TB_CFG_SWITCH, 0, 5);
drivers/thunderbolt/switch.c
2634
ret = tb_sw_write(sw, (u32 *)&sw->config + 1, TB_CFG_SWITCH,
drivers/thunderbolt/switch.c
2651
ret = tb_sw_write(sw, (u32 *)&sw->config + 1, TB_CFG_SWITCH,
drivers/thunderbolt/switch.c
3901
ret = tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/switch.c
3914
ret = tb_sw_write(sw, &command, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/switch.c
3923
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/tmu.c
107
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
115
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
127
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
140
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
154
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
162
return tb_sw_write(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
345
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/tmu.c
354
return tb_sw_write(sw, &val, TB_CFG_SWITCH, offset, 1);
drivers/thunderbolt/tmu.c
466
ret = tb_sw_read(root_switch, gm_local_time, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
496
ret = tb_sw_write(sw, &local_time, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
511
ret = tb_sw_write(sw, &post_time, TB_CFG_SWITCH, post_time_offset, 2);
drivers/thunderbolt/tmu.c
515
ret = tb_sw_write(sw, &post_time_high, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
522
ret = tb_sw_read(sw, &post_time, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
710
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
717
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
72
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
80
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
85
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/tmu.c
99
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH,
drivers/thunderbolt/usb4.c
100
ret = tb_sw_read(sw, rx_data, TB_CFG_SWITCH, ROUTER_CS_9,
drivers/thunderbolt/usb4.c
172
if (tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_6, 1))
drivers/thunderbolt/usb4.c
254
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_6, 1);
drivers/thunderbolt/usb4.c
268
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
drivers/thunderbolt/usb4.c
297
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
drivers/thunderbolt/usb4.c
324
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
drivers/thunderbolt/usb4.c
330
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
drivers/thunderbolt/usb4.c
349
return tb_sw_read(sw, uid, TB_CFG_SWITCH, ROUTER_CS_7, 2);
drivers/thunderbolt/usb4.c
478
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
drivers/thunderbolt/usb4.c
490
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
drivers/thunderbolt/usb4.c
513
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
drivers/thunderbolt/usb4.c
519
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_5, 1);
drivers/thunderbolt/usb4.c
63
ret = tb_sw_write(sw, metadata, TB_CFG_SWITCH, ROUTER_CS_25, 1);
drivers/thunderbolt/usb4.c
68
ret = tb_sw_write(sw, tx_data, TB_CFG_SWITCH, ROUTER_CS_9,
drivers/thunderbolt/usb4.c
727
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1);
drivers/thunderbolt/usb4.c
75
ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1);
drivers/thunderbolt/usb4.c
83
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1);
drivers/thunderbolt/usb4.c
95
ret = tb_sw_read(sw, metadata, TB_CFG_SWITCH, ROUTER_CS_25, 1);