Home
last modified time | relevance | path

Searched refs:hdr_size (Results 1 – 25 of 38) sorted by relevance

12

/drivers/media/pci/cx18/
Dcx18-vbi.c95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument
104 buf += hdr_size; in compress_raw_buf()
116 memcpy(q, p + 4, line_size - 4 - hdr_size); in compress_raw_buf()
117 q += line_size - 4 - hdr_size; in compress_raw_buf()
118 p += line_size - hdr_size - 1; in compress_raw_buf()
119 memset(q, (int) *p, hdr_size); in compress_raw_buf()
129 const u32 hdr_size) in compress_sliced_buf() argument
138 for (i = hdr_size, buf += hdr_size; i < size; i++, buf++) { in compress_sliced_buf()
150 size -= (i - hdr_size); in compress_sliced_buf()
/drivers/infiniband/sw/rxe/
Drxe_icrc.c47 int hdr_size = sizeof(struct udphdr) + in rxe_icrc_hdr() local
63 memcpy(pshdr, ip_hdr(skb), hdr_size); in rxe_icrc_hdr()
71 memcpy(pshdr, ipv6_hdr(skb), hdr_size); in rxe_icrc_hdr()
81 bth_offset += hdr_size; in rxe_icrc_hdr()
89 length = hdr_size + RXE_BTH_BYTES; in rxe_icrc_hdr()
/drivers/net/arcnet/
Drfc1051.c91 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in type_trans() local
95 skb_pull(skb, hdr_size); in type_trans()
164 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in build_header() local
165 struct archdr *pkt = skb_push(skb, hdr_size); in build_header()
199 return hdr_size; in build_header()
204 return hdr_size; /* success */ in build_header()
Darc-rawmode.c87 int hdr_size = ARC_HDR_SIZE; in build_header() local
88 struct archdr *pkt = skb_push(skb, hdr_size); in build_header()
105 return hdr_size; in build_header()
110 return hdr_size; /* success */ in build_header()
Dcapmode.c103 int hdr_size = ARC_HDR_SIZE; in build_header() local
104 struct archdr *pkt = skb_push(skb, hdr_size); in build_header()
124 return hdr_size; in build_header()
129 return hdr_size; /* success */ in build_header()
Drfc1201.c95 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; in type_trans() local
99 skb_pull(skb, hdr_size); in type_trans()
381 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; in build_header() local
382 struct archdr *pkt = skb_push(skb, hdr_size); in build_header()
435 return hdr_size; in build_header()
439 return hdr_size; in build_header()
/drivers/nfc/s3fwrn5/
Di2c.c127 size_t hdr_size; in s3fwrn5_i2c_read() local
132 hdr_size = (phy->mode == S3FWRN5_MODE_NCI) ? in s3fwrn5_i2c_read()
134 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size); in s3fwrn5_i2c_read()
138 if (ret < hdr_size) in s3fwrn5_i2c_read()
145 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL); in s3fwrn5_i2c_read()
149 skb_put_data(skb, hdr, hdr_size); in s3fwrn5_i2c_read()
/drivers/infiniband/core/
Duser_mad.c166 static int hdr_size(struct ib_umad_file *file) in hdr_size() function
246 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler()
304 count < hdr_size(file) + packet->length) || in copy_recv_mad()
306 count < hdr_size(file) + seg_size)) in copy_recv_mad()
309 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_recv_mad()
312 buf += hdr_size(file); in copy_recv_mad()
322 if (count < hdr_size(file) + packet->length) { in copy_recv_mad()
345 return hdr_size(file) + packet->length; in copy_recv_mad()
351 ssize_t size = hdr_size(file) + packet->length; in copy_send_mad()
356 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_send_mad()
[all …]
Dmad_rmpp.c439 int hdr_size, data_size, pad; in get_mad_len() local
445 hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in get_mad_len()
447 data_size = sizeof(struct opa_rmpp_mad) - hdr_size; in get_mad_len()
452 data_size = sizeof(struct ib_rmpp_mad) - hdr_size; in get_mad_len()
458 return hdr_size + rmpp_recv->seg_num * data_size - pad; in get_mad_len()
/drivers/soc/qcom/
Dapr.c104 uint16_t hdr_size, msg_type, ver, svc_id; in apr_do_rx_callback() local
118 hdr_size = APR_HDR_FIELD_SIZE_BYTES(hdr->hdr_field); in apr_do_rx_callback()
119 if (hdr_size < APR_HDR_SIZE) { in apr_do_rx_callback()
120 dev_err(apr->dev, "APR: Wrong hdr size:%d\n", hdr_size); in apr_do_rx_callback()
156 resp.payload_size = hdr->pkt_size - hdr_size; in apr_do_rx_callback()
163 resp.payload = buf + hdr_size; in apr_do_rx_callback()
/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_cm.h68 unsigned short hdr_size = (ipv6 ? in cxgb_best_mtu() local
74 unsigned short data_size = mtu - hdr_size; in cxgb_best_mtu()
76 cxgb4_best_aligned_mtu(mtus, hdr_size, data_size, 8, idx); in cxgb_best_mtu()
/drivers/net/wimax/i2400m/
Dtx.c618 size_t aligned_size, padding, hdr_size; in i2400m_tx_close() local
643 hdr_size = struct_size(tx_msg, pld, le16_to_cpu(tx_msg->num_pls)); in i2400m_tx_close()
644 hdr_size = ALIGN(hdr_size, I2400M_PL_ALIGN); in i2400m_tx_close()
645 tx_msg->offset = I2400M_TX_PLD_SIZE - hdr_size; in i2400m_tx_close()
647 memmove(tx_msg_moved, tx_msg, hdr_size); in i2400m_tx_close()
/drivers/thunderbolt/
Dswitch.c109 unsigned int image_size, hdr_size; in nvm_validate_and_write() local
125 hdr_size = (*(u32 *)buf) & 0xffffff; in nvm_validate_and_write()
126 if (hdr_size + NVM_DEVID + 2 >= image_size) in nvm_validate_and_write()
130 if (!IS_ALIGNED(hdr_size, SZ_4K)) in nvm_validate_and_write()
137 ds_size = *(u16 *)(buf + hdr_size); in nvm_validate_and_write()
148 device_id = *(u16 *)(buf + hdr_size + NVM_DEVID); in nvm_validate_and_write()
162 buf += hdr_size; in nvm_validate_and_write()
163 image_size -= hdr_size; in nvm_validate_and_write()
359 u32 nvm_size, hdr_size; in tb_switch_nvm_add() local
366 hdr_size = sw->generation < 3 ? SZ_8K : SZ_16K; in tb_switch_nvm_add()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/
Dhs_ucode.h53 u32 hdr_size; member
/drivers/net/wireless/intel/iwlwifi/
Diwl-drv.c501 u32 api_ver, hdr_size, build; in iwl_parse_v1_v2_firmware() local
510 hdr_size = 28; in iwl_parse_v1_v2_firmware()
511 if (ucode_raw->size < hdr_size) { in iwl_parse_v1_v2_firmware()
529 hdr_size = 24; in iwl_parse_v1_v2_firmware()
530 if (ucode_raw->size < hdr_size) { in iwl_parse_v1_v2_firmware()
563 if (ucode_raw->size != hdr_size + in iwl_parse_v1_v2_firmware()
/drivers/scsi/qla4xxx/
Dql4_83xx.c812 tmplt_hdr_size = ha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t); in qla4_83xx_read_reset_template()
820 addr = QLA83XX_RESET_TEMPLATE_ADDR + ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template()
821 p_buff = ha->reset_tmplt.buff + ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template()
823 ha->reset_tmplt.hdr->hdr_size) / sizeof(uint32_t); in qla4_83xx_read_reset_template()
854 ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template()
Dql4_83xx.h184 __le16 hdr_size; member
/drivers/net/
Dthunderbolt.c749 unsigned int hdr_size = sizeof(*hdr); in tbnet_poll() local
800 skb_reserve(skb, hdr_size); in tbnet_poll()
806 page, hdr_size, frame_size, in tbnet_poll()
807 TBNET_RX_PAGE_SIZE - hdr_size); in tbnet_poll()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_init.c53 u16 hdr_size; member
63 u16 hdr_size;
1736 addr = QLC_83XX_RESET_TEMPLATE_ADDR + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1737 p_buff = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1738 count = (ahw->reset.hdr->size - ahw->reset.hdr->hdr_size) / sizeof(u32); in qlcnic_83xx_get_reset_instruction_template()
1752 ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
Dqlcnic_sriov_common.c907 u8 i, max = 2, hdr_size, j; in qlcnic_sriov_pull_bc_msg() local
909 hdr_size = (sizeof(struct qlcnic_bc_hdr) / sizeof(u32)); in qlcnic_sriov_pull_bc_msg()
910 max = (size / sizeof(u32)) + hdr_size; in qlcnic_sriov_pull_bc_msg()
912 for (i = 2, j = 0; j < hdr_size; i++, j++) in qlcnic_sriov_pull_bc_msg()
/drivers/scsi/qla2xxx/
Dqla_nx2.h224 uint16_t hdr_size; member
/drivers/crypto/qat/qat_common/
Dqat_uclo.c720 int hdr_size; in qat_uclo_map_str_table() local
724 hdr_size = (char *)&str_table->strings - (char *)str_table; in qat_uclo_map_str_table()
726 chunk_hdr->offset + hdr_size; in qat_uclo_map_str_table()
/drivers/target/iscsi/cxgbit/
Dcxgbit_target.c167 u32 hdr_size = sizeof(*req); in cxgbit_tx_data_wr() local
176 hdr_size += sizeof(struct cpl_tx_data_iso); in cxgbit_tx_data_wr()
183 req = __skb_push(skb, hdr_size); in cxgbit_tx_data_wr()
/drivers/net/wireless/ath/wil6210/
Dwmi.c1490 size_t hdr_size = sizeof(struct wmi_link_stats_record); in wmi_link_stats_parse() local
1494 if (payload_size < hdr_size) { in wmi_link_stats_parse()
1499 while (payload_size >= hdr_size) { in wmi_link_stats_parse()
1502 record_size = hdr_size + stats_size; in wmi_link_stats_parse()
1524 wil_link_stats_store_basic(vif, payload + hdr_size); in wmi_link_stats_parse()
1546 wil_link_stats_store_global(vif, payload + hdr_size); in wmi_link_stats_parse()
/drivers/net/wireless/ath/ath6kl/
Dwmi.c306 u32 meta_size, hdr_size; in ath6kl_wmi_implicit_create_pstream() local
325 hdr_size = sizeof(struct ethhdr); in ath6kl_wmi_implicit_create_pstream()
330 meta_size + hdr_size); in ath6kl_wmi_implicit_create_pstream()
393 u32 hdr_size; in ath6kl_wmi_dot11_hdr_remove() local
409 hdr_size = roundup(sizeof(struct ieee80211_qos_hdr), in ath6kl_wmi_dot11_hdr_remove()
411 skb_pull(skb, hdr_size); in ath6kl_wmi_dot11_hdr_remove()

12