Lines Matching refs:offset

228 	size_t offset = 0;  in _load_header_info()  local
234 offset += _unmarshall32(buf + offset, &magic); in _load_header_info()
241 offset += _unmarshall32(buf + offset, &version); in _load_header_info()
248 offset += _unmarshall32(buf + offset, node_count); in _load_header_info()
249 offset += _unmarshall32(buf + offset, port_count); in _load_header_info()
251 offset += _unmarshall64(buf + offset, &fabric_cache->from_node_guid); in _load_header_info()
252 offset += _unmarshall32(buf + offset, &tmp32); in _load_header_info()
316 size_t offset = 0; in _load_node() local
339 offset += _unmarshall16(buf + offset, &node->smalid); in _load_node()
340 offset += _unmarshall8(buf + offset, &node->smalmc); in _load_node()
341 offset += _unmarshall8(buf + offset, &tmp8); in _load_node()
343 offset += _unmarshall_buf(buf + offset, node->switchinfo, in _load_node()
345 offset += _unmarshall64(buf + offset, &node->guid); in _load_node()
346 offset += _unmarshall8(buf + offset, &tmp8); in _load_node()
348 offset += _unmarshall8(buf + offset, &tmp8); in _load_node()
350 offset += _unmarshall_buf(buf + offset, node->info, IB_SMP_DATA_SIZE); in _load_node()
351 offset += _unmarshall_buf(buf + offset, node->nodedesc, in _load_node()
354 offset += _unmarshall8(buf + offset, &node_cache->ports_stored_count); in _load_node()
378 offset = 0; in _load_node()
381 offset += in _load_node()
382 _unmarshall64(buf + offset, in _load_node()
384 offset += in _load_node()
385 _unmarshall8(buf + offset, in _load_node()
417 size_t offset = 0; in _load_port() local
440 offset += _unmarshall64(buf + offset, &port->guid); in _load_port()
441 offset += _unmarshall8(buf + offset, &tmp8); in _load_port()
443 offset += _unmarshall8(buf + offset, &tmp8); in _load_port()
445 offset += _unmarshall16(buf + offset, &port->base_lid); in _load_port()
446 offset += _unmarshall8(buf + offset, &port->lmc); in _load_port()
447 offset += _unmarshall_buf(buf + offset, port->info, IB_SMP_DATA_SIZE); in _load_port()
448 offset += _unmarshall64(buf + offset, &port_cache->node_guid); in _load_port()
449 offset += _unmarshall8(buf + offset, &port_cache->remoteport_flag); in _load_port()
450 offset += in _load_port()
451 _unmarshall64(buf + offset, &port_cache->remoteport_cache_key.guid); in _load_port()
452 offset += in _load_port()
453 _unmarshall8(buf + offset, in _load_port()
770 size_t offset = 0; in _cache_header_info() local
775 offset += _marshall32(buf + offset, IBND_FABRIC_CACHE_MAGIC); in _cache_header_info()
776 offset += _marshall32(buf + offset, IBND_FABRIC_CACHE_VERSION); in _cache_header_info()
778 offset += _marshall32(buf + offset, 0); in _cache_header_info()
780 offset += _marshall32(buf + offset, 0); in _cache_header_info()
781 offset += _marshall64(buf + offset, fabric->from_node->guid); in _cache_header_info()
782 offset += _marshall32(buf + offset, fabric->maxhops_discovered); in _cache_header_info()
784 if (ibnd_write(fd, buf, offset) < 0) in _cache_header_info()
794 size_t offset = 0; in _cache_header_counts() local
796 offset += _marshall32(buf + offset, node_count); in _cache_header_counts()
797 offset += _marshall32(buf + offset, port_count); in _cache_header_counts()
804 if (ibnd_write(fd, buf, offset) < 0) in _cache_header_counts()
813 size_t offset = 0; in _cache_node() local
818 offset += _marshall16(buf + offset, node->smalid); in _cache_node()
819 offset += _marshall8(buf + offset, node->smalmc); in _cache_node()
820 offset += _marshall8(buf + offset, (uint8_t) node->smaenhsp0); in _cache_node()
821 offset += _marshall_buf(buf + offset, node->switchinfo, in _cache_node()
823 offset += _marshall64(buf + offset, node->guid); in _cache_node()
824 offset += _marshall8(buf + offset, (uint8_t) node->type); in _cache_node()
825 offset += _marshall8(buf + offset, (uint8_t) node->numports); in _cache_node()
826 offset += _marshall_buf(buf + offset, node->info, IB_SMP_DATA_SIZE); in _cache_node()
827 offset += _marshall_buf(buf + offset, node->nodedesc, IB_SMP_DATA_SIZE); in _cache_node()
832 ports_stored_offset = offset; in _cache_node()
833 offset += sizeof(uint8_t); in _cache_node()
837 offset += _marshall64(buf + offset, in _cache_node()
839 offset += _marshall8(buf + offset, in _cache_node()
848 if (ibnd_write(fd, buf, offset) < 0) in _cache_node()
857 size_t offset = 0; in _cache_port() local
859 offset += _marshall64(buf + offset, port->guid); in _cache_port()
860 offset += _marshall8(buf + offset, (uint8_t) port->portnum); in _cache_port()
861 offset += _marshall8(buf + offset, (uint8_t) port->ext_portnum); in _cache_port()
862 offset += _marshall16(buf + offset, port->base_lid); in _cache_port()
863 offset += _marshall8(buf + offset, port->lmc); in _cache_port()
864 offset += _marshall_buf(buf + offset, port->info, IB_SMP_DATA_SIZE); in _cache_port()
865 offset += _marshall64(buf + offset, port->node->guid); in _cache_port()
867 offset += _marshall8(buf + offset, 1); in _cache_port()
868 offset += _marshall64(buf + offset, port->remoteport->guid); in _cache_port()
869 offset += _marshall8(buf + offset, (uint8_t) port->remoteport->portnum); in _cache_port()
871 offset += _marshall8(buf + offset, 0); in _cache_port()
872 offset += _marshall64(buf + offset, 0); in _cache_port()
873 offset += _marshall8(buf + offset, 0); in _cache_port()
876 if (ibnd_write(fd, buf, offset) < 0) in _cache_port()