/drivers/media/pci/cx18/ |
D | cx18-vbi.c | 109 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument 118 buf += hdr_size; in compress_raw_buf() 130 memcpy(q, p + 4, line_size - 4 - hdr_size); in compress_raw_buf() 131 q += line_size - 4 - hdr_size; in compress_raw_buf() 132 p += line_size - hdr_size - 1; in compress_raw_buf() 133 memset(q, (int) *p, hdr_size); in compress_raw_buf() 143 const u32 hdr_size) in compress_sliced_buf() argument 152 for (i = hdr_size, buf += hdr_size; i < size; i++, buf++) { in compress_sliced_buf() 164 size -= (i - hdr_size); in compress_sliced_buf()
|
/drivers/nfc/s3fwrn5/ |
D | i2c.c | 138 size_t hdr_size; in s3fwrn5_i2c_read() local 143 hdr_size = (phy->mode == S3FWRN5_MODE_NCI) ? in s3fwrn5_i2c_read() 145 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size); in s3fwrn5_i2c_read() 149 if (ret < hdr_size) in s3fwrn5_i2c_read() 156 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL); in s3fwrn5_i2c_read() 160 memcpy(skb_put(skb, hdr_size), hdr, hdr_size); in s3fwrn5_i2c_read()
|
/drivers/net/arcnet/ |
D | rfc1051.c | 91 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 = (struct archdr *)skb_push(skb, hdr_size); in build_header() 199 return hdr_size; in build_header() 204 return hdr_size; /* success */ in build_header()
|
D | arc-rawmode.c | 87 int hdr_size = ARC_HDR_SIZE; in build_header() local 88 struct archdr *pkt = (struct archdr *)skb_push(skb, hdr_size); in build_header() 105 return hdr_size; in build_header() 110 return hdr_size; /* success */ in build_header()
|
D | capmode.c | 103 int hdr_size = ARC_HDR_SIZE; in build_header() local 104 struct archdr *pkt = (struct archdr *)skb_push(skb, hdr_size); in build_header() 124 return hdr_size; in build_header() 129 return hdr_size; /* success */ in build_header()
|
D | rfc1201.c | 95 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 = (struct archdr *)skb_push(skb, hdr_size); in build_header() 435 return hdr_size; in build_header() 439 return hdr_size; in build_header()
|
/drivers/infiniband/core/ |
D | user_mad.c | 151 static int hdr_size(struct ib_umad_file *file) in hdr_size() function 230 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler() 273 count < hdr_size(file) + packet->length) || in copy_recv_mad() 275 count < hdr_size(file) + seg_size)) in copy_recv_mad() 278 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_recv_mad() 281 buf += hdr_size(file); in copy_recv_mad() 291 if (count < hdr_size(file) + packet->length) { in copy_recv_mad() 311 return hdr_size(file) + packet->length; in copy_recv_mad() 317 ssize_t size = hdr_size(file) + packet->length; in copy_send_mad() 322 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_send_mad() [all …]
|
D | mad_rmpp.c | 438 int hdr_size, data_size, pad; in get_mad_len() local 444 hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in get_mad_len() 446 data_size = sizeof(struct opa_rmpp_mad) - hdr_size; in get_mad_len() 451 data_size = sizeof(struct ib_rmpp_mad) - hdr_size; in get_mad_len() 457 return hdr_size + rmpp_recv->seg_num * data_size - pad; in get_mad_len()
|
/drivers/net/wimax/i2400m/ |
D | tx.c | 618 size_t aligned_size, padding, hdr_size; in i2400m_tx_close() local 643 hdr_size = sizeof(*tx_msg) in i2400m_tx_close() 645 hdr_size = ALIGN(hdr_size, I2400M_PL_ALIGN); in i2400m_tx_close() 646 tx_msg->offset = I2400M_TX_PLD_SIZE - hdr_size; in i2400m_tx_close() 648 memmove(tx_msg_moved, tx_msg, hdr_size); in i2400m_tx_close()
|
/drivers/usb/gadget/function/ |
D | f_mtp.c | 722 int xfer, ret, hdr_size; in send_file_work() local 735 hdr_size = sizeof(struct mtp_data_header); in send_file_work() 736 count += hdr_size; in send_file_work() 738 hdr_size = 0; in send_file_work() 771 if (hdr_size) { in send_file_work() 786 ret = vfs_read(filp, req->buf + hdr_size, xfer - hdr_size, in send_file_work() 792 xfer = ret + hdr_size; in send_file_work() 793 hdr_size = 0; in send_file_work()
|
/drivers/scsi/aacraid/ |
D | src.c | 467 u16 hdr_size = le16_to_cpu(fib->hw_fib_va->header.Size); in aac_src_deliver_message() local 484 fibsize = (hdr_size + 127) / 128 - 1; in aac_src_deliver_message() 496 fibsize = (sizeof(struct aac_fib_xporthdr) + hdr_size + 127) / 128 - 1; in aac_src_deliver_message() 504 pFibX->Size = cpu_to_le32(hdr_size); in aac_src_deliver_message()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl.h | 197 u16 hdr_size; member
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40e_virtchnl.h | 197 u16 hdr_size; member
|
/drivers/net/wireless/iwlwifi/ |
D | iwl-drv.c | 494 u32 api_ver, hdr_size, build; in iwl_parse_v1_v2_firmware() local 503 hdr_size = 28; in iwl_parse_v1_v2_firmware() 504 if (ucode_raw->size < hdr_size) { in iwl_parse_v1_v2_firmware() 522 hdr_size = 24; in iwl_parse_v1_v2_firmware() 523 if (ucode_raw->size < hdr_size) { in iwl_parse_v1_v2_firmware() 558 if (ucode_raw->size != hdr_size + in iwl_parse_v1_v2_firmware()
|
/drivers/scsi/qla4xxx/ |
D | ql4_83xx.c | 810 tmplt_hdr_size = ha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t); in qla4_83xx_read_reset_template() 818 addr = QLA83XX_RESET_TEMPLATE_ADDR + ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template() 819 p_buff = ha->reset_tmplt.buff + ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template() 821 ha->reset_tmplt.hdr->hdr_size) / sizeof(uint32_t); in qla4_83xx_read_reset_template() 852 ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template()
|
D | ql4_83xx.h | 184 __le16 hdr_size; member
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd.c | 109 const int hdr_size = offsetof(kib_msg_t, ibm_u); in kiblnd_msgtype2size() local 114 return hdr_size + sizeof(kib_connparams_t); in kiblnd_msgtype2size() 117 return hdr_size; in kiblnd_msgtype2size() 123 return hdr_size + sizeof(kib_putreq_msg_t); in kiblnd_msgtype2size() 126 return hdr_size + sizeof(kib_putack_msg_t); in kiblnd_msgtype2size() 129 return hdr_size + sizeof(kib_get_msg_t); in kiblnd_msgtype2size() 134 return hdr_size + sizeof(kib_completion_msg_t); in kiblnd_msgtype2size() 213 const int hdr_size = offsetof(kib_msg_t, ibm_u); in kiblnd_unpack_msg() local 241 if (nob < hdr_size) { in kiblnd_unpack_msg()
|
/drivers/vhost/ |
D | net.c | 377 size_t hdr_size; in handle_tx() local 394 hdr_size = nvq->vhost_hlen; in handle_tx() 431 iov_iter_advance(&msg.msg_iter, hdr_size); in handle_tx() 436 len, hdr_size); in handle_tx()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_common.c | 904 u8 i, max = 2, hdr_size, j; in qlcnic_sriov_pull_bc_msg() local 906 hdr_size = (sizeof(struct qlcnic_bc_hdr) / sizeof(u32)); in qlcnic_sriov_pull_bc_msg() 907 max = (size / sizeof(u32)) + hdr_size; in qlcnic_sriov_pull_bc_msg() 910 for (i = 2, j = 0; j < hdr_size; i++, j++) in qlcnic_sriov_pull_bc_msg() 935 u32 pay_size, hdr_size; in qlcnic_sriov_issue_bc_post() local 946 hdr_size = (sizeof(struct qlcnic_bc_hdr) / sizeof(u32)); in qlcnic_sriov_issue_bc_post() 953 hdr_size = (sizeof(struct qlcnic_bc_hdr) / sizeof(u32)); in qlcnic_sriov_issue_bc_post()
|
D | qlcnic_83xx_init.c | 53 u16 hdr_size; member 63 u16 hdr_size; 1740 addr = QLC_83XX_RESET_TEMPLATE_ADDR + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template() 1741 p_buff = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template() 1742 count = (ahw->reset.hdr->size - ahw->reset.hdr->hdr_size) / sizeof(u32); in qlcnic_83xx_get_reset_instruction_template() 1756 ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
|
/drivers/crypto/qat/qat_common/ |
D | qat_uclo.c | 699 int hdr_size; in qat_uclo_map_str_table() local 703 hdr_size = (char *)&str_table->strings - (char *)str_table; in qat_uclo_map_str_table() 705 chunk_hdr->offset + hdr_size; in qat_uclo_map_str_table()
|
/drivers/scsi/qla2xxx/ |
D | qla_nx2.h | 228 uint16_t hdr_size; member
|
D | qla_nx2.c | 1536 tmplt_hdr_size = vha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t); in qla8044_read_reset_template() 1546 addr = QLA8044_RESET_TEMPLATE_ADDR + vha->reset_tmplt.hdr->hdr_size; in qla8044_read_reset_template() 1547 p_buff = vha->reset_tmplt.buff + vha->reset_tmplt.hdr->hdr_size; in qla8044_read_reset_template() 1549 vha->reset_tmplt.hdr->hdr_size)/sizeof(uint32_t); in qla8044_read_reset_template() 1581 vha->reset_tmplt.hdr->hdr_size; in qla8044_read_reset_template()
|
/drivers/net/wireless/ath/ath6kl/ |
D | wmi.c | 306 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()
|
/drivers/scsi/lpfc/ |
D | lpfc_sli4.h | 420 uint32_t hdr_size; member
|