Lines Matching defs:offset
335 static void write_cookie(packet_t* pkt, int offset, uint32_t v) {
336 if (offset + 4 > pkt->len) {
339 // may be at a byte offset so do each byte (big-endian)
340 pkt->pkt[offset] = (v >> 24);
341 pkt->pkt[offset + 1] = (v >> 16);
342 pkt->pkt[offset + 2] = (v >> 8);
343 pkt->pkt[offset + 3] = v;
845 static void set_header_ptr(int port, int offset) {
851 value |= V_BCM1480_HR_HEADER_PTR(offset); // set new one
975 /* Reset header offset to 0 */
1018 printf("writing cookie 0x%x at offset [%d]\n", cookie,
1480 static inline int hr_bitmask_one(int offset) {
1500 set_header_ptr(0, offset);
1503 err |= hr_send_one(0, ovc, j, offset, cookie, 1024 );