/drivers/soc/qcom/ |
D | mdt_loader.c | 20 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 …]
|
D | smem.c | 279 phdr_to_last_uncached_entry(struct smem_partition_header *phdr) in phdr_to_last_uncached_entry() argument 281 void *p = phdr; in phdr_to_last_uncached_entry() 283 return p + le32_to_cpu(phdr->offset_free_uncached); in phdr_to_last_uncached_entry() 287 phdr_to_first_cached_entry(struct smem_partition_header *phdr, in phdr_to_first_cached_entry() argument 290 void *p = phdr; in phdr_to_first_cached_entry() 293 return p + le32_to_cpu(phdr->size) - ALIGN(sizeof(*e), cacheline); in phdr_to_first_cached_entry() 297 phdr_to_last_cached_entry(struct smem_partition_header *phdr) in phdr_to_last_cached_entry() argument 299 void *p = phdr; in phdr_to_last_cached_entry() 301 return p + le32_to_cpu(phdr->offset_free_cached); in phdr_to_last_cached_entry() 305 phdr_to_first_uncached_entry(struct smem_partition_header *phdr) in phdr_to_first_uncached_entry() argument [all …]
|
/drivers/media/usb/siano/ |
D | smsusb.c | 98 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/ |
D | smsendian.c | 85 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()
|
D | smscoreapi.c | 1477 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 …]
|
/drivers/remoteproc/ |
D | remoteproc_elf_helpers.h | 70 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)
|
D | remoteproc_coredump.c | 238 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 …]
|
D | qcom_q6v5_mss.c | 904 static bool q6v5_phdr_valid(const struct elf32_phdr *phdr) in q6v5_phdr_valid() argument 906 if (phdr->p_type != PT_LOAD) in q6v5_phdr_valid() 909 if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) in q6v5_phdr_valid() 912 if (!phdr->p_memsz) in q6v5_phdr_valid() 1148 const struct elf32_phdr *phdr; in q6v5_mpss_load() local 1191 phdr = &phdrs[i]; in q6v5_mpss_load() 1193 if (!q6v5_phdr_valid(phdr)) in q6v5_mpss_load() 1196 if (phdr->p_flags & QCOM_MDT_RELOCATABLE) in q6v5_mpss_load() 1199 if (phdr->p_paddr < min_addr) in q6v5_mpss_load() 1200 min_addr = phdr->p_paddr; in q6v5_mpss_load() [all …]
|
D | remoteproc_elf_loader.c | 163 const void *ehdr, *phdr; local 172 phdr = elf_data + elf_hdr_get_e_phoff(class, ehdr); 175 for (i = 0; i < phnum; i++, phdr += elf_phdr_get_size) { 176 u64 da = elf_phdr_get_p_paddr(class, phdr); 177 u64 memsz = elf_phdr_get_p_memsz(class, phdr); 178 u64 filesz = elf_phdr_get_p_filesz(class, phdr); 179 u64 offset = elf_phdr_get_p_offset(class, phdr); 180 u32 type = elf_phdr_get_p_type(class, phdr);
|
D | pru_rproc.c | 584 struct elf32_phdr *phdr; in pru_rproc_load_elf_segments() local 589 phdr = (struct elf32_phdr *)(elf_data + ehdr->e_phoff); in pru_rproc_load_elf_segments() 592 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in pru_rproc_load_elf_segments() 593 u32 da = phdr->p_paddr; in pru_rproc_load_elf_segments() 594 u32 memsz = phdr->p_memsz; in pru_rproc_load_elf_segments() 595 u32 filesz = phdr->p_filesz; in pru_rproc_load_elf_segments() 596 u32 offset = phdr->p_offset; in pru_rproc_load_elf_segments() 600 if (phdr->p_type != PT_LOAD || !filesz) in pru_rproc_load_elf_segments() 604 phdr->p_type, da, memsz, filesz); in pru_rproc_load_elf_segments() 621 is_iram = phdr->p_flags & PF_X; in pru_rproc_load_elf_segments() [all …]
|
D | qcom_common.c | 264 const struct elf32_phdr *phdr; in qcom_register_dump_segments() local 273 phdr = &phdrs[i]; in qcom_register_dump_segments() 275 if (phdr->p_type != PT_LOAD) in qcom_register_dump_segments() 278 if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) in qcom_register_dump_segments() 281 if (!phdr->p_memsz) in qcom_register_dump_segments() 284 ret = rproc_coredump_add_segment(rproc, phdr->p_paddr, in qcom_register_dump_segments() 285 phdr->p_memsz); in qcom_register_dump_segments()
|
D | mtk_scp.c | 237 struct elf32_phdr *phdr; in scp_elf_load_segments() local 242 phdr = (struct elf32_phdr *)(elf_data + ehdr->e_phoff); in scp_elf_load_segments() 245 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in scp_elf_load_segments() 246 u32 da = phdr->p_paddr; in scp_elf_load_segments() 247 u32 memsz = phdr->p_memsz; in scp_elf_load_segments() 248 u32 filesz = phdr->p_filesz; in scp_elf_load_segments() 249 u32 offset = phdr->p_offset; in scp_elf_load_segments() 253 phdr->p_type, da, memsz, filesz); in scp_elf_load_segments() 255 if (phdr->p_type != PT_LOAD) in scp_elf_load_segments() 283 scp_memcpy_aligned(ptr, elf_data + phdr->p_offset, filesz); in scp_elf_load_segments()
|
/drivers/media/platform/sti/c8sectpfe/ |
D | c8sectpfe-core.c | 1023 static void load_imem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, in load_imem_segment() argument 1027 const u8 *imem_src = fw->data + phdr->p_offset; in load_imem_segment() 1039 seg_num, phdr->p_paddr, phdr->p_filesz, dest, in load_imem_segment() 1040 phdr->p_memsz + phdr->p_memsz / 3); in load_imem_segment() 1042 for (i = 0; i < phdr->p_filesz; i++) { in load_imem_segment() 1058 static void load_dmem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, in load_dmem_segment() argument 1068 seg_num, phdr->p_paddr, phdr->p_filesz, in load_dmem_segment() 1069 dst, phdr->p_memsz); in load_dmem_segment() 1071 memcpy((void __force *)dst, (void *)fw->data + phdr->p_offset, in load_dmem_segment() 1072 phdr->p_filesz); in load_dmem_segment() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | d11.h | 677 #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/ |
D | ql4_83xx.c | 604 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/ |
D | ipoib_main.c | 707 struct ipoib_pseudo_header *phdr; in push_pseudo_header() local 709 phdr = skb_push(skb, sizeof(*phdr)); in push_pseudo_header() 710 memcpy(phdr->hwaddr, daddr, INFINIBAND_ALEN); in push_pseudo_header() 1042 struct ipoib_pseudo_header *phdr) in unicast_arp_send() argument 1055 path = __path_find(dev, phdr->hwaddr + 4); in unicast_arp_send() 1058 path = path_rec_create(dev, phdr->hwaddr + 4); in unicast_arp_send() 1067 init_path_rec(priv, path, phdr->hwaddr + 4); in unicast_arp_send() 1074 push_pseudo_header(skb, phdr->hwaddr); in unicast_arp_send() 1086 IPOIB_QPN(phdr->hwaddr)); in unicast_arp_send() 1101 struct ipoib_pseudo_header *phdr; in ipoib_start_xmit() local [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | verbs_txreq.h | 17 struct hfi1_sdma_header phdr; member 55 tx->phdr.hdr.hdr_type = priv->hdr_type; in get_txreq()
|
D | ud.c | 287 grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh; in hfi1_make_ud_req_9B() 293 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_ud_req_9B() 296 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_ud_req_9B() 327 ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_9B; in hfi1_make_ud_req_9B() 328 hfi1_make_ib_hdr(&ps->s_txreq->phdr.hdr.ibh, in hfi1_make_ud_req_9B() 384 grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh; in hfi1_make_ud_req_16B() 389 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; in hfi1_make_ud_req_16B() 392 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; in hfi1_make_ud_req_16B() 412 hfi1_16B_set_qpn(&ps->s_txreq->phdr.hdr.opah.u.mgmt, in hfi1_make_ud_req_16B() 421 ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_16B; in hfi1_make_ud_req_16B() [all …]
|
D | verbs.c | 599 hdr = &tx->phdr.hdr; in verbs_sdma_complete() 726 struct hfi1_sdma_header *phdr = &tx->phdr; in build_verbs_tx_desc() local 730 if (tx->phdr.hdr.hdr_type) { in build_verbs_tx_desc() 751 phdr->pbc = cpu_to_le64(pbc); in build_verbs_tx_desc() 755 phdr, in build_verbs_tx_desc() 812 if (ps->s_txreq->phdr.hdr.hdr_type) { in hfi1_verbs_send_dma() 829 if (ps->s_txreq->phdr.hdr.hdr_type) in hfi1_verbs_send_dma() 861 &ps->s_txreq->phdr.hdr, ib_is_sc5(sc5)); in hfi1_verbs_send_dma() 957 if (ps->s_txreq->phdr.hdr.hdr_type) { in hfi1_verbs_send_pio() 962 hdr = (u32 *)&ps->s_txreq->phdr.hdr.opah; in hfi1_verbs_send_pio() [all …]
|
D | ruc.c | 261 grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh; in hfi1_make_ruc_header_16B() 297 hfi1_make_16b_hdr(&ps->s_txreq->phdr.hdr.opah, in hfi1_make_ruc_header_16B() 335 struct ib_grh *grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh; in hfi1_make_ruc_header_9B() 367 hfi1_make_ib_hdr(&ps->s_txreq->phdr.hdr.ibh, in hfi1_make_ruc_header_9B()
|
D | uc.c | 58 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth; in hfi1_make_uc_req() 60 ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth; in hfi1_make_uc_req() 66 ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth; in hfi1_make_uc_req() 68 ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth; in hfi1_make_uc_req()
|
/drivers/infiniband/hw/qib/ |
D | qib_verbs.c | 780 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/ |
D | visorchipset.c | 581 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/ |
D | qla_nx2.c | 1458 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/ |
D | qlcnic_io.c | 193 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()
|