/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/infiniband/sw/rxe/ |
D | rxe_icrc.c | 47 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/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 | 150 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/ethernet/chelsio/libcxgb/ |
D | libcxgb_cm.h | 68 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/ |
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 | 468 u16 hdr_size = le16_to_cpu(fib->hw_fib_va->header.Size); in aac_src_deliver_message() local 485 fibsize = (hdr_size + 127) / 128 - 1; in aac_src_deliver_message() 497 fibsize = (sizeof(struct aac_fib_xporthdr) + hdr_size + 127) / 128 - 1; in aac_src_deliver_message() 505 pFibX->Size = cpu_to_le32(hdr_size); in aac_src_deliver_message()
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-drv.c | 475 u32 api_ver, hdr_size, build; in iwl_parse_v1_v2_firmware() local 484 hdr_size = 28; in iwl_parse_v1_v2_firmware() 485 if (ucode_raw->size < hdr_size) { in iwl_parse_v1_v2_firmware() 503 hdr_size = 24; in iwl_parse_v1_v2_firmware() 504 if (ucode_raw->size < hdr_size) { in iwl_parse_v1_v2_firmware() 537 if (ucode_raw->size != hdr_size + in iwl_parse_v1_v2_firmware()
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40e_virtchnl.h | 205 u16 hdr_size; member
|
/drivers/scsi/qla4xxx/ |
D | ql4_83xx.c | 812 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()
|
D | ql4_83xx.h | 184 __le16 hdr_size; member
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl.h | 208 u16 hdr_size; member
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd.c | 97 const int hdr_size = offsetof(struct kib_msg, ibm_u); in kiblnd_msgtype2size() local 102 return hdr_size + sizeof(struct kib_connparams); in kiblnd_msgtype2size() 105 return hdr_size; in kiblnd_msgtype2size() 111 return hdr_size + sizeof(struct kib_putreq_msg); in kiblnd_msgtype2size() 114 return hdr_size + sizeof(struct kib_putack_msg); in kiblnd_msgtype2size() 117 return hdr_size + sizeof(struct kib_get_msg); in kiblnd_msgtype2size() 122 return hdr_size + sizeof(struct kib_completion_msg); in kiblnd_msgtype2size() 205 const int hdr_size = offsetof(struct kib_msg, ibm_u); in kiblnd_unpack_msg() local 233 if (nob < hdr_size) { in kiblnd_unpack_msg()
|
/drivers/vhost/ |
D | net.c | 371 size_t hdr_size; in handle_tx() local 386 hdr_size = nvq->vhost_hlen; in handle_tx() 423 iov_iter_advance(&msg.msg_iter, hdr_size); in handle_tx() 428 len, hdr_size); in handle_tx()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_common.c | 906 u8 i, max = 2, hdr_size, j; in qlcnic_sriov_pull_bc_msg() local 908 hdr_size = (sizeof(struct qlcnic_bc_hdr) / sizeof(u32)); in qlcnic_sriov_pull_bc_msg() 909 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() 937 u32 pay_size, hdr_size; in qlcnic_sriov_issue_bc_post() local 948 hdr_size = (sizeof(struct qlcnic_bc_hdr) / sizeof(u32)); in qlcnic_sriov_issue_bc_post() 955 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; 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()
|
/drivers/scsi/qla2xxx/ |
D | qla_nx2.h | 228 uint16_t hdr_size; member
|
/drivers/target/iscsi/cxgbit/ |
D | cxgbit_target.c | 166 u32 hdr_size = sizeof(*req); in cxgbit_tx_data_wr() local 174 hdr_size += sizeof(struct cpl_tx_data_iso); in cxgbit_tx_data_wr() 182 hdr_size); in cxgbit_tx_data_wr()
|
/drivers/crypto/qat/qat_common/ |
D | qat_uclo.c | 720 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()
|