/freebsd/sys/kern/ |
H A D | subr_mchain.c | 306 md_init(struct mdchain *mdp) in md_init() argument 312 md_initm(mdp, m); in md_init() 317 md_initm(struct mdchain *mdp, struct mbuf *m) in md_initm() argument 319 bzero(mdp, sizeof(*mdp)); in md_initm() 320 mdp->md_top = mdp->md_cur = m; in md_initm() 321 mdp->md_pos = mtod(m, u_char*); in md_initm() 325 md_done(struct mdchain *mdp) in md_done() argument 327 if (mdp->md_top) { in md_done() 328 m_freem(mdp->md_top); in md_done() 329 mdp->md_top = NULL; in md_done() [all …]
|
H A D | kern_dump.c | 78 dumpsys_gen_pa_next(struct dump_pa *mdp) in dumpsys_gen_pa_next() argument 81 if (mdp == NULL) in dumpsys_gen_pa_next() 84 mdp++; in dumpsys_gen_pa_next() 85 if (mdp->pa_size == 0) in dumpsys_gen_pa_next() 86 mdp = NULL; in dumpsys_gen_pa_next() 87 return (mdp); in dumpsys_gen_pa_next() 172 dumpsys_cb_dumpdata(struct dump_pa *mdp, int seqnr, void *arg) in dumpsys_cb_dumpdata() argument 185 pgs = mdp->pa_size / PAGE_SIZE; in dumpsys_cb_dumpdata() 186 pa = mdp->pa_start; in dumpsys_cb_dumpdata() 230 struct dump_pa *mdp; in dumpsys_foreach_chunk() local [all …]
|
H A D | subr_module.c | 257 caddr_t *mdp; in preload_fetch_addr() local 259 mdp = (caddr_t *)preload_search_info(mod, MODINFO_ADDR); in preload_fetch_addr() 260 if (mdp == NULL) in preload_fetch_addr() 262 return (*mdp + preload_addr_relocate); in preload_fetch_addr() 268 size_t *mdp; in preload_fetch_size() local 270 mdp = (size_t *)preload_search_info(mod, MODINFO_SIZE); in preload_fetch_size() 271 if (mdp == NULL) in preload_fetch_size() 273 return (*mdp); in preload_fetch_size()
|
H A D | kern_linker.c | 397 struct mod_metadata **start, **stop, **mdp; in linker_file_register_modules() local 419 for (mdp = start; mdp < stop; mdp++) { in linker_file_register_modules() 420 if ((*mdp)->md_type != MDT_MODULE) in linker_file_register_modules() 422 moddata = (*mdp)->md_data; in linker_file_register_modules() 1624 struct mod_metadata *mp, **mdp; in linker_addmodules() local 1628 for (mdp = start; mdp < stop; mdp++) { in linker_addmodules() 1629 mp = *mdp; in linker_addmodules() 1655 struct mod_metadata **start, **stop, **mdp, **nmdp; in linker_preload() local 1717 for (mdp = start; mdp < stop; mdp++) { in linker_preload() 1718 mp = *mdp; in linker_preload() [all …]
|
/freebsd/sys/sys/ |
H A D | mchain.h | 82 int md_init(struct mdchain *mdp); 84 void md_done(struct mdchain *mdp); 85 void md_append_record(struct mdchain *mdp, struct mbuf *top); 86 int md_next_record(struct mdchain *mdp); 87 int md_get_uint8(struct mdchain *mdp, u_int8_t *x); 88 int md_get_uint16(struct mdchain *mdp, u_int16_t *x); 89 int md_get_uint16le(struct mdchain *mdp, u_int16_t *x); 90 int md_get_uint16be(struct mdchain *mdp, u_int16_t *x); 91 int md_get_uint32(struct mdchain *mdp, u_int32_t *x); 92 int md_get_uint32be(struct mdchain *mdp, u_int32_t *x); [all …]
|
/freebsd/sys/netsmb/ |
H A D | smb_smb.c | 117 struct mdchain *mdp; in smb_smb_negotiate() local 153 smb_rq_getreply(rqp, &mdp); in smb_smb_negotiate() 155 error = md_get_uint8(mdp, &wc); in smb_smb_negotiate() 158 error = md_get_uint16le(mdp, &dindex); in smb_smb_negotiate() 173 md_get_uint8(mdp, &sp->sv_sm); in smb_smb_negotiate() 174 md_get_uint16le(mdp, &sp->sv_maxmux); in smb_smb_negotiate() 175 md_get_uint16le(mdp, &sp->sv_maxvcs); in smb_smb_negotiate() 176 md_get_uint32le(mdp, &sp->sv_maxtx); in smb_smb_negotiate() 177 md_get_uint32le(mdp, &sp->sv_maxraw); in smb_smb_negotiate() 178 md_get_uint32le(mdp, &sp->sv_skey); in smb_smb_negotiate() [all …]
|
H A D | smb_rq.c | 321 struct mdchain *mdp = &rqp->sr_rp; in smb_rq_reply() local 329 error = md_get_uint32(mdp, &tdw); in smb_rq_reply() 332 error = md_get_uint8(mdp, &tb); in smb_rq_reply() 334 error = md_get_uint32le(mdp, &rqp->sr_error); in smb_rq_reply() 336 error = md_get_uint8(mdp, &rqp->sr_errclass); in smb_rq_reply() 337 error = md_get_uint8(mdp, &tb); in smb_rq_reply() 338 error = md_get_uint16le(mdp, &rqp->sr_serror); in smb_rq_reply() 342 error = md_get_uint8(mdp, &rqp->sr_rpflags); in smb_rq_reply() 343 error = md_get_uint16le(mdp, &rqp->sr_rpflags2); in smb_rq_reply() 345 error = md_get_uint32(mdp, &tdw); in smb_rq_reply() [all …]
|
H A D | smb_usr.c | 216 struct mdchain *mdp; in smb_usr_simplerequest() local 253 mdp = &rqp->sr_rp; in smb_usr_simplerequest() 254 md_get_uint8(mdp, &wc); in smb_usr_simplerequest() 261 error = md_get_mem(mdp, dp->ioc_rpbuf, wc, MB_MUSER); in smb_usr_simplerequest() 264 md_get_uint16le(mdp, &bc); in smb_usr_simplerequest() 270 error = md_get_mem(mdp, dp->ioc_rpbuf + wc, bc, MB_MUSER); in smb_usr_simplerequest() 299 struct mdchain *mdp; in smb_usr_t2request() local 332 mdp = &t2p->t2_rparam; in smb_usr_t2request() 333 if (mdp->md_top) { in smb_usr_t2request() 334 len = m_fixhdr(mdp->md_top); in smb_usr_t2request() [all …]
|
H A D | smb_trantcp.c | 200 struct mdchain *mdp; in nbssn_rq_request() local 209 mdp = malloc(sizeof(struct mbchain), M_NBDATA, M_WAITOK); in nbssn_rq_request() 213 free(mdp, M_NBDATA); in nbssn_rq_request() 228 free(mdp, M_NBDATA); in nbssn_rq_request() 235 free(mdp, M_NBDATA); in nbssn_rq_request() 239 free(mdp, M_NBDATA); in nbssn_rq_request() 245 free(mdp, M_NBDATA); in nbssn_rq_request() 252 md_initm(mdp, m0); in nbssn_rq_request() 268 md_get_mem(mdp, (caddr_t)&sin.sin_addr, 4, MB_MSYSTEM); in nbssn_rq_request() 269 md_get_uint16(mdp, &port); in nbssn_rq_request() [all …]
|
H A D | smb_crypt.c | 266 struct mdchain *mdp; in smb_rq_verify() local 285 smb_rq_getreply(rqp, &mdp); in smb_rq_verify() 286 mb = mdp->md_top; in smb_rq_verify() 302 if (bcmp(mtod(mdp->md_top, u_char *) + 14, digest, 8) != 0) in smb_rq_verify()
|
/freebsd/sys/contrib/device-tree/Bindings/media/ |
H A D | mediatek-mdp.txt | 6 - compatible: "mediatek,mt8173-mdp" 12 "mediatek,mt8173-mdp-rdma" - read DMA 13 "mediatek,mt8173-mdp-rsz" - resizer 14 "mediatek,mt8173-mdp-wdma" - write DMA 15 "mediatek,mt8173-mdp-wrot" - write DMA with rotation 24 "mediatek,mt8173-mdp-rdma" 25 "mediatek,mt8173-mdp-wdma" 26 "mediatek,mt8173-mdp-wrot" 33 compatible = "mediatek,mt8173-mdp-rdma"; 34 "mediatek,mt8173-mdp"; [all …]
|
/freebsd/stand/common/ |
H A D | module.c | 69 static void moduledir_readhints(struct moduledir *mdp); 1128 struct moduledir *mdp; in file_search() 1149 STAILQ_FOREACH(mdp, &moduledir_list, d_link) { in file_search() 1150 result = file_lookup(mdp->d_path, name, namelen, extlist); in file_search() 1161 mod_search_hints(struct moduledir *mdp, const char *modname, in mod_search_hints() 1168 moduledir_readhints(mdp); in mod_search_hints() 1173 if (mdp->d_hints == NULL) in mod_search_hints() 1175 recptr = mdp->d_hints; in mod_search_hints() 1176 bufend = recptr + mdp->d_hintsz; in mod_search_hints() 1190 INT_ALIGN(mdp in mod_search_hints() 1127 struct moduledir *mdp; file_search() local 1160 mod_search_hints(struct moduledir * mdp,const char * modname,struct mod_depend * verinfo) mod_search_hints() argument 1330 devmatch_search_hints(struct moduledir * mdp,const char * bus,const char * dev,const char * pnpinfo) devmatch_search_hints() argument 1511 struct moduledir *mdp; mod_searchmodule() local 1531 struct moduledir *mdp; mod_searchmodule_pnpinfo() local 1660 moduledir_fullpath(struct moduledir * mdp,const char * fname) moduledir_fullpath() argument 1677 moduledir_readhints(struct moduledir * mdp) moduledir_readhints() argument 1720 struct moduledir *mdp, *mtmp; moduledir_rebuild() local [all...] |
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_smb.c | 144 struct mdchain *mdp; in smbfs_query_info_fs() local 163 mdp = &t2p->t2_rdata; in smbfs_query_info_fs() 164 md_get_int64le(mdp, &units); in smbfs_query_info_fs() 165 md_get_int64le(mdp, &funits); in smbfs_query_info_fs() 166 md_get_uint32le(mdp, &bpu); in smbfs_query_info_fs() 167 md_get_uint32le(mdp, &bsize); in smbfs_query_info_fs() 184 struct mdchain *mdp; in smbfs_query_info_alloc() local 203 mdp = &t2p->t2_rdata; in smbfs_query_info_alloc() 204 md_get_uint32(mdp, NULL); /* fs id */ in smbfs_query_info_alloc() 205 md_get_uint32le(mdp, &bpu); in smbfs_query_info_alloc() [all …]
|
/freebsd/sys/x86/x86/ |
H A D | fdt_machdep.c | 46 void *dtbp, *mdp; in x86_init_fdt() local 54 mdp = preload_search_by_type("elf kernel"); in x86_init_fdt() 55 if (mdp == NULL) in x86_init_fdt() 56 mdp = preload_search_by_type("elf32 kernel"); in x86_init_fdt() 57 dtbp = MD_FETCH(mdp, MODINFOMD_DTBP, void *); in x86_init_fdt()
|
/freebsd/sys/i386/i386/ |
H A D | sys_machdep.c | 404 set_user_ldt_locked(struct mdproc *mdp) in set_user_ldt_locked() argument 411 pldt = mdp->md_ldt; in set_user_ldt_locked() 420 set_user_ldt(struct mdproc *mdp) in set_user_ldt() argument 424 set_user_ldt_locked(mdp); in set_user_ldt() 444 user_ldt_alloc(struct mdproc *mdp, int len) in user_ldt_alloc() argument 463 if ((pldt = mdp->md_ldt) != NULL) { in user_ldt_alloc() 480 struct mdproc *mdp; in user_ldt_free() local 484 mdp = &td->td_proc->p_md; in user_ldt_free() 485 if ((pldt = mdp->md_ldt) == NULL) { in user_ldt_free() 495 mdp->md_ldt = NULL; in user_ldt_free() [all …]
|
/freebsd/stand/kboot/kboot/arch/powerpc64/ |
H A D | ppc64_elf_freebsd.c | 53 uint32_t mdp; member 74 vm_offset_t mdp, dtb; in ppc64_elf_exec() local 132 if ((error = md_load64(fp->f_args, &mdp, &dtb)) != 0) in ppc64_elf_exec() 136 trampoline_data->mdp = htobe32(mdp); in ppc64_elf_exec() 142 be32toh(trampoline_data->dtb), be32toh(trampoline_data->mdp)); in ppc64_elf_exec()
|
/freebsd/sys/amd64/amd64/ |
H A D | sys_machdep.c | 479 set_user_ldt(struct mdproc *mdp) in set_user_ldt() argument 482 *PCPU_GET(ldt) = mdp->md_ldt_sd; in set_user_ldt() 506 struct mdproc *mdp; in user_ldt_alloc() local 512 mdp = &p->p_md; in user_ldt_alloc() 513 if (!force && mdp->md_ldt != NULL) in user_ldt_alloc() 514 return (mdp->md_ldt); in user_ldt_alloc() 531 pldt = mdp->md_ldt; in user_ldt_alloc() 547 mdp->md_ldt = new_ldt; in user_ldt_alloc() 551 return (mdp->md_ldt); in user_ldt_alloc() 558 struct mdproc *mdp = &p->p_md; in user_ldt_free() local [all …]
|
/freebsd/sys/powerpc/booke/ |
H A D | booke_machdep.c | 204 uintptr_t powerpc_init(vm_offset_t fdt, vm_offset_t, vm_offset_t, void *mdp, 329 void *mdp; in booke_init() local 361 mdp = (void *)arg2; in booke_init() 368 mdp = NULL; in booke_init() 370 mdp = (void *)arg1; in booke_init() 372 mdp = NULL; in booke_init() 387 ret = powerpc_init(dtbp, 0, 0, mdp, (mdp == NULL) ? 0 : 0xfb5d104d); in booke_init()
|
/freebsd/stand/powerpc/ofw/ |
H A D | elf_freebsd.c | 71 vm_offset_t mdp, dtbp; in __elfN() local 82 if ((error = md_load(fp->f_args, &mdp, &dtbp)) != 0) in __elfN() 91 0, 0, (void *)mdp, 0xfb5d104d); in __elfN() 94 (void *)mdp, 0xfb5d104d); in __elfN()
|
H A D | ppc64_elf_freebsd.c | 69 vm_offset_t mdp, dtbp; in ppc64_ofw_elf_exec() local 85 if ((error = md_load64(fp->f_args, &mdp, &dtbp)) != 0) in ppc64_ofw_elf_exec() 95 0, 0, (void *)mdp, 0xfb5d104d); in ppc64_ofw_elf_exec() 98 (void *)mdp, 0xfb5d104d); in ppc64_ofw_elf_exec()
|
/freebsd/stand/uboot/ |
H A D | elf_freebsd.c | 66 vm_offset_t mdp; in __elfN() local 76 if ((error = md_load(fp->f_args, &mdp, NULL)) != 0) in __elfN() 85 (*entry)((void *)mdp); in __elfN()
|
/freebsd/stand/uboot/arch/powerpc/ |
H A D | ppc64_elf_freebsd.c | 65 vm_offset_t mdp, dtbp; in ppc64_uboot_elf_exec() local 81 if ((error = md_load64(fp->f_args, &mdp, &dtbp)) != 0) in ppc64_uboot_elf_exec() 87 (*entry)((void *)mdp); in ppc64_uboot_elf_exec()
|
/freebsd/sys/dev/syscons/ |
H A D | scvgarndr.c | 388 const struct mousedata *mdp; in vga_setmdp() local 437 mdp = mdpp[best_i]; in vga_setmdp() 438 scp->mouse_data = mdp; in vga_setmdp() 602 const struct mousedata *mdp; in draw_txtmouse() local 612 mdp = scp->mouse_data; in draw_txtmouse() 635 border = mdp->md_border[i] << 8; /* avoid right shifting out */ in draw_txtmouse() 636 interior = mdp->md_interior[i] << 8; in draw_txtmouse() 1182 const struct mousedata *mdp; in draw_pxlmouse_planar() local 1191 mdp = scp->mouse_data; in draw_pxlmouse_planar() 1194 ymax = imin(y + mdp->md_height, scp->ypixel); in draw_pxlmouse_planar() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/iommu/ |
H A D | msm,iommu-v0.txt | 41 Example: mdp iommu and its bus master 59 mdp: qcom,mdp@5100000 { 60 compatible = "qcom,mdp";
|
/freebsd/sys/powerpc/powerpc/ |
H A D | machdep.c | 251 void *mdp, uint32_t mdp_cookie); 260 powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp, in powerpc_init() argument 284 mdp = NULL; in powerpc_init() 298 aim_early_init(fdt, toc, ofentry, mdp, mdp_cookie); in powerpc_init() 315 if (mdp != NULL) { in powerpc_init() 333 preload_metadata = mdp; in powerpc_init()
|