Lines Matching refs:data
633 u32 data;
636 ret = tb_port_read(port, &data, TB_CFG_PORT, ADP_CS_5, 1);
640 data &= ~ADP_CS_5_LCA_MASK;
641 data |= (credits << ADP_CS_5_LCA_SHIFT) & ADP_CS_5_LCA_MASK;
643 return tb_port_write(port, &data, TB_CFG_PORT, ADP_CS_5, 1);
1067 u32 data;
1069 if (tb_port_read(port, &data, TB_CFG_PORT,
1073 return !!(data & ADP_USB3_CS_0_PE);
1098 u32 data;
1100 if (tb_port_read(port, &data, TB_CFG_PORT,
1104 return !!(data & ADP_PCIE_CS_0_PE);
1129 u32 data;
1132 ret = tb_port_read(port, &data, TB_CFG_PORT,
1137 return !!(data & ADP_DP_CS_2_HDP);
1148 u32 data;
1151 ret = tb_port_read(port, &data, TB_CFG_PORT,
1156 data |= ADP_DP_CS_3_HDPC;
1157 return tb_port_write(port, &data, TB_CFG_PORT,
1173 u32 data[2];
1176 ret = tb_port_read(port, data, TB_CFG_PORT,
1177 port->cap_adap + ADP_DP_CS_0, ARRAY_SIZE(data));
1181 data[0] &= ~ADP_DP_CS_0_VIDEO_HOPID_MASK;
1182 data[1] &= ~ADP_DP_CS_1_AUX_RX_HOPID_MASK;
1183 data[1] &= ~ADP_DP_CS_1_AUX_RX_HOPID_MASK;
1185 data[0] |= (video << ADP_DP_CS_0_VIDEO_HOPID_SHIFT) &
1187 data[1] |= aux_tx & ADP_DP_CS_1_AUX_TX_HOPID_MASK;
1188 data[1] |= (aux_rx << ADP_DP_CS_1_AUX_RX_HOPID_SHIFT) &
1191 return tb_port_write(port, data, TB_CFG_PORT,
1192 port->cap_adap + ADP_DP_CS_0, ARRAY_SIZE(data));
1201 u32 data[2];
1203 if (tb_port_read(port, data, TB_CFG_PORT, port->cap_adap + ADP_DP_CS_0,
1204 ARRAY_SIZE(data)))
1207 return !!(data[0] & (ADP_DP_CS_0_VE | ADP_DP_CS_0_AE));
1220 u32 data[2];
1223 ret = tb_port_read(port, data, TB_CFG_PORT,
1224 port->cap_adap + ADP_DP_CS_0, ARRAY_SIZE(data));
1229 data[0] |= ADP_DP_CS_0_VE | ADP_DP_CS_0_AE;
1231 data[0] &= ~(ADP_DP_CS_0_VE | ADP_DP_CS_0_AE);
1233 return tb_port_write(port, data, TB_CFG_PORT,
1234 port->cap_adap + ADP_DP_CS_0, ARRAY_SIZE(data));
1307 u32 data;
1318 res = tb_sw_read(sw, &data, TB_CFG_SWITCH, sw->cap_plug_events + 1, 1);
1323 data = data & 0xFFFFFF83;
1330 data |= 4;
1333 data = data | 0x7c;
1335 return tb_sw_write(sw, &data, TB_CFG_SWITCH,
2819 static int tb_switch_match(struct device *dev, const void *data)
2822 const struct tb_sw_lookup *lookup = data;