Home
last modified time | relevance | path

Searched refs:phdr (Results 1 – 21 of 21) sorted by relevance

/drivers/media/usb/siano/
Dsmsusb.c93 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)surb->cb->p; in smsusb_onresponse() local
95 smsendian_handle_message_header(phdr); in smsusb_onresponse()
96 if (urb->actual_length >= phdr->msg_length) { in smsusb_onresponse()
97 surb->cb->size = phdr->msg_length; in smsusb_onresponse()
100 (phdr->msg_flags & MSG_HDR_FLAG_SPLIT_MSG)) { in smsusb_onresponse()
104 ((phdr->msg_flags >> 8) & 3); in smsusb_onresponse()
107 if (((int) phdr->msg_length + in smsusb_onresponse()
110 phdr->msg_length, in smsusb_onresponse()
118 memcpy((char *) phdr + surb->cb->offset, in smsusb_onresponse()
119 phdr, sizeof(struct sms_msg_hdr)); in smsusb_onresponse()
[all …]
/drivers/soc/qcom/
Dsmem.c248 phdr_to_last_private_entry(struct smem_partition_header *phdr) in phdr_to_last_private_entry() argument
250 void *p = phdr; in phdr_to_last_private_entry()
252 return p + le32_to_cpu(phdr->offset_free_uncached); in phdr_to_last_private_entry()
255 static void *phdr_to_first_cached_entry(struct smem_partition_header *phdr) in phdr_to_first_cached_entry() argument
257 void *p = phdr; in phdr_to_first_cached_entry()
259 return p + le32_to_cpu(phdr->offset_free_cached); in phdr_to_first_cached_entry()
263 phdr_to_first_private_entry(struct smem_partition_header *phdr) in phdr_to_first_private_entry() argument
265 void *p = phdr; in phdr_to_first_private_entry()
267 return p + sizeof(*phdr); in phdr_to_first_private_entry()
297 struct smem_partition_header *phdr; in qcom_smem_alloc_private() local
[all …]
/drivers/staging/lustre/lustre/ptlrpc/
Dsec_plain.c194 struct plain_header *phdr; in plain_ctx_sign() local
198 phdr = lustre_msg_buf(msg, PLAIN_PACK_HDR_OFF, 0); in plain_ctx_sign()
199 phdr->ph_ver = 0; in plain_ctx_sign()
200 phdr->ph_flags = 0; in plain_ctx_sign()
201 phdr->ph_sp = ctx->cc_sec->ps_part; in plain_ctx_sign()
202 phdr->ph_bulk_hash_alg = req->rq_flvr.u_bulk.hash.hash_alg; in plain_ctx_sign()
205 phdr->ph_flags |= PLAIN_FL_USER; in plain_ctx_sign()
207 phdr->ph_flags |= PLAIN_FL_BULK; in plain_ctx_sign()
218 struct plain_header *phdr; in plain_ctx_verify() local
229 phdr = lustre_msg_buf(msg, PLAIN_PACK_HDR_OFF, sizeof(*phdr)); in plain_ctx_verify()
[all …]
/drivers/media/common/siano/
Dsmsendian.c96 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)msg; in smsendian_handle_message_header() local
98 phdr->msg_type = le16_to_cpu((__force __le16)phdr->msg_type); in smsendian_handle_message_header()
99 phdr->msg_length = le16_to_cpu((__force __le16)phdr->msg_length); in smsendian_handle_message_header()
100 phdr->msg_flags = le16_to_cpu((__force __le16)phdr->msg_flags); in smsendian_handle_message_header()
Dsmscoreapi.c1480 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *) ((u8 *) cb->p in smscore_onresponse() local
1502 if ((phdr->msg_type == MSG_SMS_HO_PER_SLICES_IND) || in smscore_onresponse()
1503 (phdr->msg_type == MSG_SMS_TRANSMISSION_IND)) { in smscore_onresponse()
1505 phdr->msg_dst_id = DVBT_BDA_CONTROL_MSG_ID; in smscore_onresponse()
1509 client = smscore_find_client(coredev, phdr->msg_type, phdr->msg_dst_id); in smscore_onresponse()
1517 switch (phdr->msg_type) { in smscore_onresponse()
1535 (struct sms_version_res *) phdr; in smscore_onresponse()
1557 struct sms_msg_data *validity = (struct sms_msg_data *) phdr; in smscore_onresponse()
1583 u32 *msgdata = (u32 *) phdr; in smscore_onresponse()
1596 ((char *)phdr in smscore_onresponse()
[all …]
Dsmsdvb-main.c519 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *) (((u8 *) cb->p) in smsdvb_onresponse() local
521 void *p = phdr + 1; in smsdvb_onresponse()
526 switch (phdr->msg_type) { in smsdvb_onresponse()
/drivers/remoteproc/
Dremoteproc_elf_loader.c150 struct elf32_phdr *phdr; local
155 phdr = (struct elf32_phdr *)(elf_data + ehdr->e_phoff);
158 for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
159 u32 da = phdr->p_paddr;
160 u32 memsz = phdr->p_memsz;
161 u32 filesz = phdr->p_filesz;
162 u32 offset = phdr->p_offset;
165 if (phdr->p_type != PT_LOAD)
169 phdr->p_type, da, memsz, filesz);
194 if (phdr->p_filesz)
[all …]
/drivers/staging/unisys/visorbus/
Dvisorchannel.c572 struct channel_header *phdr = &hdr; in visorchannel_debug() local
582 phdr, sizeof(struct channel_header)); in visorchannel_debug()
588 phdr = &channel->chan_hdr; in visorchannel_debug()
594 nbytes = (ulong)(phdr->size); in visorchannel_debug()
597 seq_printf(seq, "Type = %pUL\n", &phdr->chtype); in visorchannel_debug()
598 seq_printf(seq, "ZoneGuid = %pUL\n", &phdr->zone_uuid); in visorchannel_debug()
600 (long long)phdr->signature); in visorchannel_debug()
601 seq_printf(seq, "LegacyState = %lu\n", (ulong)phdr->legacy_state); in visorchannel_debug()
602 seq_printf(seq, "SrvState = %lu\n", (ulong)phdr->srv_state); in visorchannel_debug()
603 seq_printf(seq, "CliStateBoot = %lu\n", (ulong)phdr->cli_state_boot); in visorchannel_debug()
[all …]
Dvisorchipset.c438 struct spar_controlvm_parameters_header *phdr = NULL; in parser_id_get() local
442 phdr = (struct spar_controlvm_parameters_header *)(ctx->data); in parser_id_get()
443 return phdr->id; in parser_id_get()
461 struct spar_controlvm_parameters_header *phdr = NULL; in parser_param_start() local
465 phdr = (struct spar_controlvm_parameters_header *)(ctx->data); in parser_param_start()
468 ctx->curr = ctx->data + phdr->initiator_offset; in parser_param_start()
469 ctx->bytes_remaining = phdr->initiator_length; in parser_param_start()
472 ctx->curr = ctx->data + phdr->target_offset; in parser_param_start()
473 ctx->bytes_remaining = phdr->target_length; in parser_param_start()
476 ctx->curr = ctx->data + phdr->connection_offset; in parser_param_start()
[all …]
/drivers/media/platform/sti/c8sectpfe/
Dc8sectpfe-core.c1035 static void load_imem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, in load_imem_segment() argument
1039 const u8 *imem_src = fw->data + phdr->p_offset; in load_imem_segment()
1052 phdr->p_paddr, phdr->p_filesz, in load_imem_segment()
1053 dest, phdr->p_memsz + phdr->p_memsz / 3); in load_imem_segment()
1055 for (i = 0; i < phdr->p_filesz; i++) { in load_imem_segment()
1071 static void load_dmem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, in load_dmem_segment() argument
1082 seg_num, phdr->p_paddr, phdr->p_filesz, in load_dmem_segment()
1083 dst, phdr->p_memsz); in load_dmem_segment()
1085 memcpy((void __force *)dst, (void *)fw->data + phdr->p_offset, in load_dmem_segment()
1086 phdr->p_filesz); in load_dmem_segment()
[all …]
/drivers/net/wireless/brcm80211/brcmsmac/
Dd11.h677 #define D11A_PHY_HDR_GRATE(phdr) ((phdr)->rlpt[0] & 0x0f) argument
678 #define D11A_PHY_HDR_GRES(phdr) (((phdr)->rlpt[0] >> 4) & 0x01) argument
679 #define D11A_PHY_HDR_GLENGTH(phdr) (((u32 *)((phdr)->rlpt) >> 5) & 0x0fff) argument
680 #define D11A_PHY_HDR_GPARITY(phdr) (((phdr)->rlpt[3] >> 1) & 0x01) argument
681 #define D11A_PHY_HDR_GTAIL(phdr) (((phdr)->rlpt[3] >> 2) & 0x3f) argument
684 #define D11A_PHY_HDR_SRATE(phdr, rate) \ argument
685 ((phdr)->rlpt[0] = ((phdr)->rlpt[0] & 0xf0) | ((rate) & 0xf))
687 #define D11A_PHY_HDR_SRES(phdr) ((phdr)->rlpt[0] &= 0xef) argument
689 #define D11A_PHY_HDR_SLENGTH(phdr, length) \ argument
690 (*(u32 *)((phdr)->rlpt) = *(u32 *)((phdr)->rlpt) | \
[all …]
/drivers/scsi/qla4xxx/
Dql4_83xx.c604 uint8_t *phdr; in qla4_83xx_dump_reset_seq_hdr() local
612 phdr = ha->reset_tmplt.buff; in qla4_83xx_dump_reset_seq_hdr()
616 *phdr, *(phdr+1), *(phdr+2), *(phdr+3), *(phdr+4), in qla4_83xx_dump_reset_seq_hdr()
617 *(phdr+5), *(phdr+6), *(phdr+7), *(phdr + 8), in qla4_83xx_dump_reset_seq_hdr()
618 *(phdr+9), *(phdr+10), *(phdr+11), *(phdr+12), in qla4_83xx_dump_reset_seq_hdr()
619 *(phdr+13), *(phdr+14), *(phdr+15))); in qla4_83xx_dump_reset_seq_hdr()
/drivers/infiniband/ulp/ipoib/
Dipoib_main.c658 struct ipoib_pseudo_header *phdr; in push_pseudo_header() local
660 phdr = (struct ipoib_pseudo_header *)skb_push(skb, sizeof(*phdr)); in push_pseudo_header()
661 memcpy(phdr->hwaddr, daddr, INFINIBAND_ALEN); in push_pseudo_header()
955 struct ipoib_pseudo_header *phdr) in unicast_arp_send() argument
963 path = __path_find(dev, phdr->hwaddr + 4); in unicast_arp_send()
968 path = path_rec_create(dev, phdr->hwaddr + 4); in unicast_arp_send()
973 push_pseudo_header(skb, phdr->hwaddr); in unicast_arp_send()
1001 ipoib_send(dev, skb, path->ah, IPOIB_QPN(phdr->hwaddr)); in unicast_arp_send()
1005 push_pseudo_header(skb, phdr->hwaddr); in unicast_arp_send()
1019 struct ipoib_pseudo_header *phdr; in ipoib_start_xmit() local
[all …]
/drivers/uwb/i1480/dfu/
Dmac.c108 int fw_hdrs_load(struct i1480 *i1480, struct fw_hdr **phdr, in fw_hdrs_load() argument
114 struct fw_hdr *hdr, **prev_hdr = phdr; in fw_hdrs_load()
122 *phdr = NULL; in fw_hdrs_load()
148 fw_hdrs_free(*phdr); in fw_hdrs_load()
/drivers/infiniband/hw/qib/
Dqib_verbs.c1160 struct qib_pio_header *phdr; in qib_verbs_send_dma() local
1204 phdr = &dev->pio_hdrs[tx->hdr_inx]; in qib_verbs_send_dma()
1205 phdr->pbc[0] = cpu_to_le32(plen); in qib_verbs_send_dma()
1206 phdr->pbc[1] = cpu_to_le32(control); in qib_verbs_send_dma()
1207 memcpy(&phdr->hdr, hdr, hdrwords << 2); in qib_verbs_send_dma()
1219 phdr = kmalloc(tx->hdr_dwords << 2, GFP_ATOMIC); in qib_verbs_send_dma()
1220 if (!phdr) in qib_verbs_send_dma()
1222 phdr->pbc[0] = cpu_to_le32(plen); in qib_verbs_send_dma()
1223 phdr->pbc[1] = cpu_to_le32(control); in qib_verbs_send_dma()
1224 memcpy(&phdr->hdr, hdr, hdrwords << 2); in qib_verbs_send_dma()
[all …]
/drivers/staging/rdma/hfi1/
Dverbs.c835 hdr = &tx->phdr.hdr; in verbs_sdma_complete()
942 struct hfi1_pio_header *phdr; in build_verbs_tx_desc() local
945 phdr = &tx->phdr; in build_verbs_tx_desc()
958 phdr->pbc = cpu_to_le64(pbc); in build_verbs_tx_desc()
959 memcpy(&phdr->hdr, &ahdr->ibh, hdrbytes - sizeof(phdr->pbc)); in build_verbs_tx_desc()
964 &tx->phdr, in build_verbs_tx_desc()
970 struct hfi1_other_headers *dohdr = &phdr->hdr.u.oth; in build_verbs_tx_desc()
973 phdr->hdr.lrh[0] = ahdr->ibh.lrh[0]; in build_verbs_tx_desc()
974 if ((be16_to_cpu(phdr->hdr.lrh[0]) & 3) == HFI1_LRH_GRH) { in build_verbs_tx_desc()
976 dohdr = &phdr->hdr.u.l.oth; in build_verbs_tx_desc()
Dsdma.h380 struct hfi1_pio_header phdr; member
Dverbs.h214 struct hfi1_pio_header phdr; member
/drivers/scsi/qla2xxx/
Dqla_nx2.c1445 u8 *phdr; in qla8044_dump_reset_seq_hdr() local
1453 phdr = vha->reset_tmplt.buff; in qla8044_dump_reset_seq_hdr()
1458 *phdr, *(phdr+1), *(phdr+2), *(phdr+3), *(phdr+4), in qla8044_dump_reset_seq_hdr()
1459 *(phdr+5), *(phdr+6), *(phdr+7), *(phdr + 8), in qla8044_dump_reset_seq_hdr()
1460 *(phdr+9), *(phdr+10), *(phdr+11), *(phdr+12), in qla8044_dump_reset_seq_hdr()
1461 *(phdr+13), *(phdr+14), *(phdr+15)); in qla8044_dump_reset_seq_hdr()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c195 struct ethhdr *phdr = (struct ethhdr *)(skb->data); in qlcnic_add_lb_filter() local
206 memcpy(&src_addr, phdr->h_source, ETH_ALEN); in qlcnic_add_lb_filter()
308 struct ethhdr *phdr = (struct ethhdr *)(skb->data); in qlcnic_send_filter() local
317 if (ether_addr_equal(phdr->h_source, adapter->mac_addr)) in qlcnic_send_filter()
329 memcpy(&src_addr, phdr->h_source, ETH_ALEN); in qlcnic_send_filter()
656 struct ethhdr *phdr; in qlcnic_xmit_frame() local
668 phdr = (struct ethhdr *)skb->data; in qlcnic_xmit_frame()
669 if (!ether_addr_equal(phdr->h_source, adapter->mac_addr)) in qlcnic_xmit_frame()
/drivers/scsi/be2iscsi/
Dbe_main.c1904 void *phdr = NULL; in hwi_fwd_async_msg() local
1914 phdr = pasync_handle->pbuffer; in hwi_fwd_async_msg()
1930 phdr, hdr_len, pfirst_buffer, in hwi_fwd_async_msg()