Home
last modified time | relevance | path

Searched refs:hdr_offset (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/dev/sfxge/common/
H A Def10_image.c611 uint32_t hdr_offset; in efx_build_signed_image_write_buffer() local
744 hdr_offset = buffer_size - SIGNED_IMAGE_CHUNK_HDR_LEN; in efx_build_signed_image_write_buffer()
752 memcpy(bufferp + hdr_offset, &chunk_hdr, sizeof (chunk_hdr)); in efx_build_signed_image_write_buffer()
766 hdr_offset = chunk_hdr.offset + chunk_hdr.len; in efx_build_signed_image_write_buffer()
767 if (hdr_offset > (buffer_size - SIGNED_IMAGE_CHUNK_HDR_LEN)) { in efx_build_signed_image_write_buffer()
774 chunk_hdr.offset = hdr_offset + SIGNED_IMAGE_CHUNK_HDR_LEN; in efx_build_signed_image_write_buffer()
777 memcpy(bufferp + hdr_offset, &chunk_hdr, SIGNED_IMAGE_CHUNK_HDR_LEN); in efx_build_signed_image_write_buffer()
793 hdr_offset = chunk_hdr.offset + chunk_hdr.len; in efx_build_signed_image_write_buffer()
794 if (hdr_offset > (buffer_size - SIGNED_IMAGE_CHUNK_HDR_LEN)) { in efx_build_signed_image_write_buffer()
804 memcpy(bufferp + hdr_offset, &chunk_hdr, SIGNED_IMAGE_CHUNK_HDR_LEN); in efx_build_signed_image_write_buffer()
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dcudbg_flash_utils.c97 u32 hdr_offset; in update_headers() local
120 hdr_offset = sizeof(struct cudbg_flash_hdr); in update_headers()
122 memcpy((void *)((char *)sec_hdr + hdr_offset), in update_headers()
132 hdr_offset = data_hdr_size + sizeof(struct cudbg_flash_hdr); in update_headers()
/freebsd/sys/dev/mxge/
H A Dif_mxge.c679 unsigned hdr_offset; in mxge_load_firmware_helper() local
719 hdr_offset = htobe32(*(const uint32_t *) in mxge_load_firmware_helper()
721 if ((hdr_offset & 3) || hdr_offset + sizeof(*hdr) > fw_len) { in mxge_load_firmware_helper()
726 hdr = (const void*)(inflate_buffer + hdr_offset); in mxge_load_firmware_helper()
886 size_t hdr_offset; in mxge_adopt_running_firmware() local
890 hdr_offset = htobe32(*(volatile uint32_t *) in mxge_adopt_running_firmware()
893 if ((hdr_offset & 3) || hdr_offset + sizeof(*hdr) > sc->sram_size) { in mxge_adopt_running_firmware()
896 (int)hdr_offset); in mxge_adopt_running_firmware()
909 hdr_offset, (char *)hdr, bytes); in mxge_adopt_running_firmware()
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76_connac_mac.c937 struct sk_buff *skb, u16 hdr_offset) in mt76_connac2_reverse_frag0_hdr_trans() argument
940 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_offset); in mt76_connac2_reverse_frag0_hdr_trans()
982 skb_pull(skb, hdr_offset + sizeof(struct ethhdr) - 2); in mt76_connac2_reverse_frag0_hdr_trans()
H A Dmt76_connac.h417 struct sk_buff *skb, u16 hdr_offset);
/freebsd/contrib/file/magic/Magdir/
H A Dluks96 # hdr_offset; offset from device start [ bytes ] like: 0