Lines Matching refs:space
198 enum tb_cfg_space space, u32 offset,
203 if (WARN(space != addr.space, "wrong space (expected %x, got %x\n)",
204 space, addr.space))
209 if (WARN(length != addr.length, "wrong space (expected %x, got %x\n)",
274 tb_ctl_dbg(ctl, "%llx:%x: invalid config space or offset\n",
823 * tb_cfg_read() - read from config space into buffer
828 u64 route, u32 port, enum tb_cfg_space space,
836 .space = space,
879 res.err = check_config_address(reply.addr, space, offset, length);
886 * tb_cfg_write() - write from buffer into config space
891 u64 route, u32 port, enum tb_cfg_space space,
899 .space = space,
944 res.err = check_config_address(reply.addr, space, offset, length);
948 static int tb_cfg_get_error(struct tb_ctl *ctl, enum tb_cfg_space space,
952 * For unimplemented ports access to port config space may return
957 if (space == TB_CFG_PORT &&
969 enum tb_cfg_space space, u32 offset, u32 length)
972 space, offset, length, TB_CFG_DEFAULT_TIMEOUT);
980 return tb_cfg_get_error(ctl, space, &res);
983 tb_ctl_warn(ctl, "%llx: timeout reading config space %u from %#x\n",
984 route, space, offset);
995 enum tb_cfg_space space, u32 offset, u32 length)
998 space, offset, length, TB_CFG_DEFAULT_TIMEOUT);
1006 return tb_cfg_get_error(ctl, space, &res);
1009 tb_ctl_warn(ctl, "%llx: timeout writing config space %u to %#x\n",
1010 route, space, offset);