Lines Matching refs:length
81 u32 length:6; /* in dwords */ member
179 u32 length) in check_config_address() argument
189 if (WARN(length != addr.length, "wrong space (expected %x, got %x\n)", in check_config_address()
190 length, addr.length)) in check_config_address()
441 size_t length, int timeout_msec, in tb_ctl_rx() argument
457 res = parse_header(pkg, length, type, route); in tb_ctl_rx()
459 memcpy(buffer, pkg->buffer, length); in tb_ctl_rx()
618 u32 offset, u32 length, int timeout_msec) in tb_cfg_read_raw() argument
627 .length = length, in tb_cfg_read_raw()
636 res = tb_ctl_rx(ctl, &reply, 12 + 4 * length, timeout_msec, route, in tb_cfg_read_raw()
642 res.err = check_config_address(reply.addr, space, offset, length); in tb_cfg_read_raw()
644 memcpy(buffer, &reply.data, 4 * length); in tb_cfg_read_raw()
655 u32 offset, u32 length, int timeout_msec) in tb_cfg_write_raw() argument
664 .length = length, in tb_cfg_write_raw()
669 memcpy(&request.data, buffer, length * 4); in tb_cfg_write_raw()
671 res.err = tb_ctl_tx(ctl, &request, 12 + 4 * length, TB_CFG_PKG_WRITE); in tb_cfg_write_raw()
681 res.err = check_config_address(reply.addr, space, offset, length); in tb_cfg_write_raw()
686 enum tb_cfg_space space, u32 offset, u32 length) in tb_cfg_read() argument
689 space, offset, length, TB_CFG_DEFAULT_TIMEOUT); in tb_cfg_read()
699 enum tb_cfg_space space, u32 offset, u32 length) in tb_cfg_write() argument
702 space, offset, length, TB_CFG_DEFAULT_TIMEOUT); in tb_cfg_write()