Searched refs:hdr_size (Results 1 - 25 of 73) sorted by path

123

/linux-master/drivers/media/pci/cx18/
H A Dcx18-vbi.c95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) argument
104 buf += hdr_size;
115 /* last line is hdr_size bytes short - extrapolate it */
116 memcpy(q, p + 4, line_size - 4 - hdr_size);
117 q += line_size - 4 - hdr_size;
118 p += line_size - hdr_size - 1;
119 memset(q, (int) *p, hdr_size);
129 const u32 hdr_size)
138 for (i = hdr_size, buf += hdr_size;
128 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, const u32 hdr_size) argument
[all...]
/linux-master/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_cm.h68 unsigned short hdr_size = (ipv6 ? local
74 unsigned short data_size = mtu - hdr_size;
76 cxgb4_best_aligned_mtu(mtus, hdr_size, data_size, 8, idx);
/linux-master/arch/powerpc/kernel/
H A Dnvram_64.c502 size_t length, hdr_size; local
507 hdr_size = sizeof(u16);
512 hdr_size = sizeof(*oops_hdr);
517 record->buf = kmemdup(buff + hdr_size, length, GFP_KERNEL);
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-core.c302 u32 hdr_size, cpu_notes_size, count; local
313 hdr_size = (sizeof(Elf64_Ehdr) +
322 oc_conf->opalcorebuf_sz = PAGE_ALIGN(hdr_size + cpu_notes_size);
386 phdr->p_offset = cpu_to_be64(hdr_size);
/linux-master/drivers/bluetooth/
H A Dbtusb.c3712 size_t hdr_size)
3726 size = min_t(size_t, count, hdr_size);
3710 btusb_setup_qca_download_fw(struct hci_dev *hdev, const struct firmware *firmware, size_t hdr_size) argument
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dqat_uclo.c694 int hdr_size; local
698 hdr_size = (char *)&str_table->strings - (char *)str_table;
700 chunk_hdr->offset + hdr_size;
/linux-master/drivers/gpu/drm/mediatek/
H A Dmtk_drm_plane.c170 int hdr_size, hdr_offset; local
176 hdr_size = ALIGN(hdr_pitch * height_in_blocks, AFBC_HEADER_ALIGNMENT);
197 addr = addr + hdr_size + offset;
/linux-master/drivers/gpu/drm/nouveau/include/nvfw/
H A Dhs.h15 u32 hdr_size; member in struct:nvfw_hs_header
/linux-master/drivers/gpu/drm/nouveau/nvkm/nvfw/
H A Dhs.c37 nvkm_debug(subdev, "\thdrSize : 0x%x\n", hdr->hdr_size);
/linux-master/drivers/infiniband/core/
H A Dmad_rmpp.c430 int hdr_size, data_size, pad; local
436 hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class);
438 data_size = sizeof(struct opa_rmpp_mad) - hdr_size;
443 data_size = sizeof(struct ib_rmpp_mad) - hdr_size;
449 return hdr_size + rmpp_recv->seg_num * data_size - pad;
H A Duser_mad.c171 static int hdr_size(struct ib_umad_file *file) function
251 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
309 count < hdr_size(file) + packet->length) ||
311 count < hdr_size(file) + seg_size))
314 if (copy_to_user(buf, &packet->mad, hdr_size(file)))
317 buf += hdr_size(file);
327 if (count < hdr_size(file) + packet->length) {
350 return hdr_size(file) + packet->length;
356 ssize_t size = hdr_size(file) + packet->length;
361 if (copy_to_user(buf, &packet->mad, hdr_size(fil
[all...]
/linux-master/drivers/infiniband/hw/erdma/
H A Derdma_cm.c379 int hdr_size, int *rcvd_out)
385 if (hdr_rcvd < hdr_size) {
386 rcvd = ksock_recv(s, hdr + hdr_rcvd, hdr_size - hdr_rcvd,
397 if (hdr_rcvd < hdr_size)
378 __recv_mpa_hdr(struct erdma_cep *cep, int hdr_rcvd, char *hdr, int hdr_size, int *rcvd_out) argument
/linux-master/drivers/infiniband/hw/hfi1/
H A Dhfi.h2601 static inline int hfi1_get_16b_padding(u32 hdr_size, u32 payload) argument
2603 return -(hdr_size + payload + (SIZE_OF_CRC << 2) +
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c81 int hdr_size = sizeof(struct udphdr) + local
97 memcpy(pshdr, ip_hdr(skb), hdr_size);
105 memcpy(pshdr, ipv6_hdr(skb), hdr_size);
115 bth_offset += hdr_size;
123 length = hdr_size + RXE_BTH_BYTES;
/linux-master/drivers/net/
H A Damt.c2249 int hdr_size; local
2251 hdr_size = sizeof(*amta) + sizeof(struct udphdr);
2252 if (!pskb_may_pull(skb, hdr_size))
2281 int hdr_size, len, err; local
2288 hdr_size = sizeof(*amtmd) + sizeof(struct udphdr);
2289 if (!pskb_may_pull(skb, hdr_size))
2296 if (iptunnel_pull_header(skb, hdr_size, htons(ETH_P_IP), false))
2352 int hdr_size, len; local
2354 hdr_size = sizeof(*amtmq) + sizeof(struct udphdr);
2355 if (!pskb_may_pull(skb, hdr_size))
2452 int len, hdr_size; local
[all...]
/linux-master/drivers/net/arcnet/
H A Darc-rawmode.c87 int hdr_size = ARC_HDR_SIZE; local
88 struct archdr *pkt = skb_push(skb, hdr_size);
105 return hdr_size;
110 return hdr_size; /* success */
H A Dcapmode.c103 int hdr_size = ARC_HDR_SIZE; local
104 struct archdr *pkt = skb_push(skb, hdr_size);
124 return hdr_size;
129 return hdr_size; /* success */
H A Drfc1051.c92 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; local
96 skb_pull(skb, hdr_size);
165 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; local
166 struct archdr *pkt = skb_push(skb, hdr_size);
200 return hdr_size;
205 return hdr_size; /* success */
H A Drfc1201.c96 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; local
100 skb_pull(skb, hdr_size);
382 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; local
383 struct archdr *pkt = skb_push(skb, hdr_size);
436 return hdr_size;
440 return hdr_size;
/linux-master/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c2665 u32 img_offset, u32 img_size, int hdr_size,
2677 crc_offset = hdr_size + img_offset + img_size - 4;
2664 be_check_flash_crc(struct be_adapter *adapter, const u8 *p, u32 img_offset, u32 img_size, int hdr_size, u16 img_optype, bool *crc_match) argument
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.c727 if (info->hdr_size > ((2 * 1024) - 64)) {
731 rx_ctx.hbuff = info->hdr_size >> I40E_RXQ_CTX_HBUFF_SHIFT;
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_common.c3683 u32 hdr_size = sizeof(struct ixgbe_hic_hdr); local
3707 dword_len = hdr_size >> 2;
3720 if (length < round_up(buf_len, 4) + hdr_size) {
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.c2368 u32 hdr_size; local
2443 hdr_size = ((cm_info.ip_version == QED_TCP_IPV4) ? 40 : 60);
2444 ep->mss = p_hwfn->p_rdma_info->iwarp.max_mtu - hdr_size;
/linux-master/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_83xx_hw.c3958 u32 mbx_cmd, fw_hal_version, hdr_size, total_size, tmp; local
3969 hdr_size = sizeof(struct qlcnic_bc_hdr) / sizeof(u32);
3970 total_size = cmd->pay_size + hdr_size;
3983 for (i = 2, j = 0; j < hdr_size; i++, j++)
H A Dqlcnic_83xx_init.c52 u16 hdr_size; member in struct:qlc_83xx_reset_hdr
62 u16 hdr_size;
1716 addr = QLC_83XX_RESET_TEMPLATE_ADDR + ahw->reset.hdr->hdr_size;
1717 p_buff = ahw->reset.buff + ahw->reset.hdr->hdr_size;
1718 count = (ahw->reset.hdr->size - ahw->reset.hdr->hdr_size) / sizeof(u32);
1732 ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size;

Completed in 567 milliseconds

123