Home
last modified time | relevance | path

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

12

/drivers/soc/qcom/
Dmdt_loader.c20 static bool mdt_phdr_valid(const struct elf32_phdr *phdr) in mdt_phdr_valid() argument
22 if (phdr->p_type != PT_LOAD) in mdt_phdr_valid()
25 if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) in mdt_phdr_valid()
28 if (!phdr->p_memsz) in mdt_phdr_valid()
43 const struct elf32_phdr *phdr; in qcom_mdt_get_size() local
53 phdr = &phdrs[i]; in qcom_mdt_get_size()
55 if (!mdt_phdr_valid(phdr)) in qcom_mdt_get_size()
58 if (phdr->p_paddr < min_addr) in qcom_mdt_get_size()
59 min_addr = phdr->p_paddr; in qcom_mdt_get_size()
61 if (phdr->p_paddr + phdr->p_memsz > max_addr) in qcom_mdt_get_size()
[all …]
Dsmem.c278 phdr_to_last_uncached_entry(struct smem_partition_header *phdr) in phdr_to_last_uncached_entry() argument
280 void *p = phdr; in phdr_to_last_uncached_entry()
282 return p + le32_to_cpu(phdr->offset_free_uncached); in phdr_to_last_uncached_entry()
286 phdr_to_first_cached_entry(struct smem_partition_header *phdr, in phdr_to_first_cached_entry() argument
289 void *p = phdr; in phdr_to_first_cached_entry()
292 return p + le32_to_cpu(phdr->size) - ALIGN(sizeof(*e), cacheline); in phdr_to_first_cached_entry()
296 phdr_to_last_cached_entry(struct smem_partition_header *phdr) in phdr_to_last_cached_entry() argument
298 void *p = phdr; in phdr_to_last_cached_entry()
300 return p + le32_to_cpu(phdr->offset_free_cached); in phdr_to_last_cached_entry()
304 phdr_to_first_uncached_entry(struct smem_partition_header *phdr) in phdr_to_first_uncached_entry() argument
[all …]
/drivers/media/usb/siano/
Dsmsusb.c98 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)surb->cb->p; in smsusb_onresponse() local
100 smsendian_handle_message_header(phdr); in smsusb_onresponse()
101 if (urb->actual_length >= phdr->msg_length) { in smsusb_onresponse()
102 surb->cb->size = phdr->msg_length; in smsusb_onresponse()
105 (phdr->msg_flags & MSG_HDR_FLAG_SPLIT_MSG)) { in smsusb_onresponse()
109 ((phdr->msg_flags >> 8) & 3); in smsusb_onresponse()
112 if (((int) phdr->msg_length + in smsusb_onresponse()
115 phdr->msg_length, in smsusb_onresponse()
123 memcpy((char *) phdr + surb->cb->offset, in smsusb_onresponse()
124 phdr, sizeof(struct sms_msg_hdr)); in smsusb_onresponse()
[all …]
/drivers/media/common/siano/
Dsmsendian.c85 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)msg; in smsendian_handle_message_header() local
87 phdr->msg_type = le16_to_cpu((__force __le16)phdr->msg_type); in smsendian_handle_message_header()
88 phdr->msg_length = le16_to_cpu((__force __le16)phdr->msg_length); in smsendian_handle_message_header()
89 phdr->msg_flags = le16_to_cpu((__force __le16)phdr->msg_flags); in smsendian_handle_message_header()
Dsmscoreapi.c1477 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *) ((u8 *) cb->p in smscore_onresponse() local
1499 if ((phdr->msg_type == MSG_SMS_HO_PER_SLICES_IND) || in smscore_onresponse()
1500 (phdr->msg_type == MSG_SMS_TRANSMISSION_IND)) { in smscore_onresponse()
1502 phdr->msg_dst_id = DVBT_BDA_CONTROL_MSG_ID; in smscore_onresponse()
1506 client = smscore_find_client(coredev, phdr->msg_type, phdr->msg_dst_id); in smscore_onresponse()
1514 switch (phdr->msg_type) { in smscore_onresponse()
1532 (struct sms_version_res *) phdr; in smscore_onresponse()
1554 struct sms_msg_data *validity = (struct sms_msg_data *) phdr; in smscore_onresponse()
1580 u32 *msgdata = (u32 *) phdr; in smscore_onresponse()
1593 ((char *)phdr in smscore_onresponse()
[all …]
Dsmsdvb-main.c508 struct sms_msg_hdr *phdr = (struct sms_msg_hdr *) (((u8 *) cb->p) in smsdvb_onresponse() local
510 void *p = phdr + 1; in smsdvb_onresponse()
515 switch (phdr->msg_type) { in smsdvb_onresponse()
/drivers/remoteproc/
Dremoteproc_elf_helpers.h70 ELF_GEN_FIELD_GET_SET(phdr, p_paddr, u64) in ELF_GEN_FIELD_GET_SET()
71 ELF_GEN_FIELD_GET_SET(phdr, p_vaddr, u64) in ELF_GEN_FIELD_GET_SET()
72 ELF_GEN_FIELD_GET_SET(phdr, p_filesz, u64) in ELF_GEN_FIELD_GET_SET()
73 ELF_GEN_FIELD_GET_SET(phdr, p_memsz, u64) in ELF_GEN_FIELD_GET_SET()
74 ELF_GEN_FIELD_GET_SET(phdr, p_type, u32) in ELF_GEN_FIELD_GET_SET()
75 ELF_GEN_FIELD_GET_SET(phdr, p_offset, u64) in ELF_GEN_FIELD_GET_SET()
76 ELF_GEN_FIELD_GET_SET(phdr, p_flags, u32) in ELF_GEN_FIELD_GET_SET()
77 ELF_GEN_FIELD_GET_SET(phdr, p_align, u64) in ELF_GEN_FIELD_GET_SET()
97 ELF_STRUCT_SIZE(phdr)
Dremoteproc_coredump.c238 void *phdr; in rproc_coredump() local
290 phdr = data + elf_hdr_get_e_phoff(class, ehdr); in rproc_coredump()
295 memset(phdr, 0, elf_size_of_phdr(class)); in rproc_coredump()
296 elf_phdr_set_p_type(class, phdr, PT_LOAD); in rproc_coredump()
297 elf_phdr_set_p_offset(class, phdr, offset); in rproc_coredump()
298 elf_phdr_set_p_vaddr(class, phdr, segment->da); in rproc_coredump()
299 elf_phdr_set_p_paddr(class, phdr, segment->da); in rproc_coredump()
300 elf_phdr_set_p_filesz(class, phdr, segment->size); in rproc_coredump()
301 elf_phdr_set_p_memsz(class, phdr, segment->size); in rproc_coredump()
302 elf_phdr_set_p_flags(class, phdr, PF_R | PF_W | PF_X); in rproc_coredump()
[all …]
Dqcom_q6v5_mss.c888 static bool q6v5_phdr_valid(const struct elf32_phdr *phdr) in q6v5_phdr_valid() argument
890 if (phdr->p_type != PT_LOAD) in q6v5_phdr_valid()
893 if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) in q6v5_phdr_valid()
896 if (!phdr->p_memsz) in q6v5_phdr_valid()
1120 const struct elf32_phdr *phdr; in q6v5_mpss_load() local
1163 phdr = &phdrs[i]; in q6v5_mpss_load()
1165 if (!q6v5_phdr_valid(phdr)) in q6v5_mpss_load()
1168 if (phdr->p_flags & QCOM_MDT_RELOCATABLE) in q6v5_mpss_load()
1171 if (phdr->p_paddr < min_addr) in q6v5_mpss_load()
1172 min_addr = phdr->p_paddr; in q6v5_mpss_load()
[all …]
Dremoteproc_elf_loader.c159 const void *ehdr, *phdr; local
168 phdr = elf_data + elf_hdr_get_e_phoff(class, ehdr);
171 for (i = 0; i < phnum; i++, phdr += elf_phdr_get_size) {
172 u64 da = elf_phdr_get_p_paddr(class, phdr);
173 u64 memsz = elf_phdr_get_p_memsz(class, phdr);
174 u64 filesz = elf_phdr_get_p_filesz(class, phdr);
175 u64 offset = elf_phdr_get_p_offset(class, phdr);
176 u32 type = elf_phdr_get_p_type(class, phdr);
Dqcom_common.c118 const struct elf32_phdr *phdr; in qcom_register_dump_segments() local
127 phdr = &phdrs[i]; in qcom_register_dump_segments()
129 if (phdr->p_type != PT_LOAD) in qcom_register_dump_segments()
132 if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) in qcom_register_dump_segments()
135 if (!phdr->p_memsz) in qcom_register_dump_segments()
138 ret = rproc_coredump_add_segment(rproc, phdr->p_paddr, in qcom_register_dump_segments()
139 phdr->p_memsz); in qcom_register_dump_segments()
Dmtk_scp.c224 struct elf32_phdr *phdr; in scp_elf_load_segments() local
229 phdr = (struct elf32_phdr *)(elf_data + ehdr->e_phoff); in scp_elf_load_segments()
232 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in scp_elf_load_segments()
233 u32 da = phdr->p_paddr; in scp_elf_load_segments()
234 u32 memsz = phdr->p_memsz; in scp_elf_load_segments()
235 u32 filesz = phdr->p_filesz; in scp_elf_load_segments()
236 u32 offset = phdr->p_offset; in scp_elf_load_segments()
239 if (phdr->p_type != PT_LOAD) in scp_elf_load_segments()
243 phdr->p_type, da, memsz, filesz); in scp_elf_load_segments()
268 if (phdr->p_filesz) in scp_elf_load_segments()
[all …]
/drivers/media/platform/sti/c8sectpfe/
Dc8sectpfe-core.c1020 static void load_imem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, in load_imem_segment() argument
1024 const u8 *imem_src = fw->data + phdr->p_offset; in load_imem_segment()
1037 phdr->p_paddr, phdr->p_filesz, in load_imem_segment()
1038 dest, phdr->p_memsz + phdr->p_memsz / 3); in load_imem_segment()
1040 for (i = 0; i < phdr->p_filesz; i++) { in load_imem_segment()
1056 static void load_dmem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, in load_dmem_segment() argument
1066 seg_num, phdr->p_paddr, phdr->p_filesz, in load_dmem_segment()
1067 dst, phdr->p_memsz); in load_dmem_segment()
1069 memcpy((void __force *)dst, (void *)fw->data + phdr->p_offset, in load_dmem_segment()
1070 phdr->p_filesz); in load_dmem_segment()
[all …]
/drivers/net/wireless/broadcom/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.c605 uint8_t *phdr; in qla4_83xx_dump_reset_seq_hdr() local
613 phdr = ha->reset_tmplt.buff; in qla4_83xx_dump_reset_seq_hdr()
617 *phdr, *(phdr+1), *(phdr+2), *(phdr+3), *(phdr+4), in qla4_83xx_dump_reset_seq_hdr()
618 *(phdr+5), *(phdr+6), *(phdr+7), *(phdr + 8), in qla4_83xx_dump_reset_seq_hdr()
619 *(phdr+9), *(phdr+10), *(phdr+11), *(phdr+12), in qla4_83xx_dump_reset_seq_hdr()
620 *(phdr+13), *(phdr+14), *(phdr+15))); in qla4_83xx_dump_reset_seq_hdr()
/drivers/infiniband/ulp/ipoib/
Dipoib_main.c703 struct ipoib_pseudo_header *phdr; in push_pseudo_header() local
705 phdr = skb_push(skb, sizeof(*phdr)); in push_pseudo_header()
706 memcpy(phdr->hwaddr, daddr, INFINIBAND_ALEN); in push_pseudo_header()
1038 struct ipoib_pseudo_header *phdr) in unicast_arp_send() argument
1051 path = __path_find(dev, phdr->hwaddr + 4); in unicast_arp_send()
1054 path = path_rec_create(dev, phdr->hwaddr + 4); in unicast_arp_send()
1063 init_path_rec(priv, path, phdr->hwaddr + 4); in unicast_arp_send()
1070 push_pseudo_header(skb, phdr->hwaddr); in unicast_arp_send()
1082 IPOIB_QPN(phdr->hwaddr)); in unicast_arp_send()
1097 struct ipoib_pseudo_header *phdr; in ipoib_start_xmit() local
[all …]
/drivers/infiniband/hw/hfi1/
Dud.c329 grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh; in hfi1_make_ud_req_9B()
335 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_ud_req_9B()
338 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_ud_req_9B()
369 ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_9B; in hfi1_make_ud_req_9B()
370 hfi1_make_ib_hdr(&ps->s_txreq->phdr.hdr.ibh, in hfi1_make_ud_req_9B()
426 grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh; in hfi1_make_ud_req_16B()
431 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; in hfi1_make_ud_req_16B()
434 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; in hfi1_make_ud_req_16B()
454 hfi1_16B_set_qpn(&ps->s_txreq->phdr.hdr.opah.u.mgmt, in hfi1_make_ud_req_16B()
463 ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_16B; in hfi1_make_ud_req_16B()
[all …]
Dverbs.c641 hdr = &tx->phdr.hdr; in verbs_sdma_complete()
768 struct hfi1_sdma_header *phdr = &tx->phdr; in build_verbs_tx_desc() local
772 if (tx->phdr.hdr.hdr_type) { in build_verbs_tx_desc()
793 phdr->pbc = cpu_to_le64(pbc); in build_verbs_tx_desc()
797 phdr, in build_verbs_tx_desc()
854 if (ps->s_txreq->phdr.hdr.hdr_type) { in hfi1_verbs_send_dma()
871 if (ps->s_txreq->phdr.hdr.hdr_type) in hfi1_verbs_send_dma()
903 &ps->s_txreq->phdr.hdr, ib_is_sc5(sc5)); in hfi1_verbs_send_dma()
999 if (ps->s_txreq->phdr.hdr.hdr_type) { in hfi1_verbs_send_pio()
1004 hdr = (u32 *)&ps->s_txreq->phdr.hdr.opah; in hfi1_verbs_send_pio()
[all …]
Dverbs_txreq.h59 struct hfi1_sdma_header phdr; member
97 tx->phdr.hdr.hdr_type = priv->hdr_type; in get_txreq()
Druc.c302 grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh; in hfi1_make_ruc_header_16B()
338 hfi1_make_16b_hdr(&ps->s_txreq->phdr.hdr.opah, in hfi1_make_ruc_header_16B()
375 struct ib_grh *grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh; in hfi1_make_ruc_header_9B()
407 hfi1_make_ib_hdr(&ps->s_txreq->phdr.hdr.ibh, in hfi1_make_ruc_header_9B()
Duc.c99 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_uc_req()
101 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_uc_req()
107 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; in hfi1_make_uc_req()
109 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; in hfi1_make_uc_req()
/drivers/infiniband/hw/qib/
Dqib_verbs.c780 struct qib_pio_header *phdr; in qib_verbs_send_dma() local
823 phdr = &dev->pio_hdrs[tx->hdr_inx]; in qib_verbs_send_dma()
824 phdr->pbc[0] = cpu_to_le32(plen); in qib_verbs_send_dma()
825 phdr->pbc[1] = cpu_to_le32(control); in qib_verbs_send_dma()
826 memcpy(&phdr->hdr, hdr, hdrwords << 2); in qib_verbs_send_dma()
838 phdr = kmalloc(tx->hdr_dwords << 2, GFP_ATOMIC); in qib_verbs_send_dma()
839 if (!phdr) in qib_verbs_send_dma()
841 phdr->pbc[0] = cpu_to_le32(plen); in qib_verbs_send_dma()
842 phdr->pbc[1] = cpu_to_le32(control); in qib_verbs_send_dma()
843 memcpy(&phdr->hdr, hdr, hdrwords << 2); in qib_verbs_send_dma()
[all …]
/drivers/visorbus/
Dvisorchipset.c581 struct visor_controlvm_parameters_header *phdr; in parser_name_get() local
583 phdr = &ctx->data; in parser_name_get()
584 if ((unsigned long)phdr->name_offset + in parser_name_get()
585 (unsigned long)phdr->name_length > ctx->param_bytes) in parser_name_get()
587 ctx->curr = (char *)&phdr + phdr->name_offset; in parser_name_get()
588 ctx->bytes_remaining = phdr->name_length; in parser_name_get()
589 return parser_string_get(ctx->curr, phdr->name_length); in parser_name_get()
/drivers/scsi/qla2xxx/
Dqla_nx2.c1458 u8 *phdr; in qla8044_dump_reset_seq_hdr() local
1466 phdr = vha->reset_tmplt.buff; in qla8044_dump_reset_seq_hdr()
1471 *phdr, *(phdr+1), *(phdr+2), *(phdr+3), *(phdr+4), in qla8044_dump_reset_seq_hdr()
1472 *(phdr+5), *(phdr+6), *(phdr+7), *(phdr + 8), in qla8044_dump_reset_seq_hdr()
1473 *(phdr+9), *(phdr+10), *(phdr+11), *(phdr+12), in qla8044_dump_reset_seq_hdr()
1474 *(phdr+13), *(phdr+14), *(phdr+15)); in qla8044_dump_reset_seq_hdr()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c193 struct ethhdr *phdr = (struct ethhdr *)(skb->data); in qlcnic_add_lb_filter() local
204 memcpy(&src_addr, phdr->h_source, ETH_ALEN); in qlcnic_add_lb_filter()
306 struct ethhdr *phdr = (struct ethhdr *)(skb->data); in qlcnic_send_filter() local
315 if (ether_addr_equal(phdr->h_source, adapter->mac_addr)) in qlcnic_send_filter()
327 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()

12