Lines Matching refs:offset

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