| /freebsd-14-stable/sys/dev/mii/ |
| HD | mii.c | 125 struct mii_attach_args *ma; in miibus_attach() local 133 ma = device_get_ivars(children[i]); in miibus_attach() 134 ma->mii_data = mii; in miibus_attach() 181 struct mii_attach_args *ma; in miibus_print_child() local 184 ma = device_get_ivars(child); in miibus_print_child() 186 retval += printf(" PHY %d", ma->mii_phyno); in miibus_print_child() 216 struct mii_attach_args *ma; in miibus_child_pnpinfo() local 218 ma = device_get_ivars(child); in miibus_child_pnpinfo() 220 MII_OUI(ma->mii_id1, ma->mii_id2), in miibus_child_pnpinfo() 221 MII_MODEL(ma->mii_id2), MII_REV(ma->mii_id2)); in miibus_child_pnpinfo() [all …]
|
| HD | mii_fdt.c | 186 struct mii_attach_args *ma; in mii_fdt_get_config() local 191 ma = device_get_ivars(phydev); in mii_fdt_get_config() 210 cfg->phynode = mii_fdt_lookup_phy(cfg->macnode, ma->mii_phyno); in mii_fdt_get_config() 259 struct mii_attach_args *ma; in miibus_fdt_attach() local 271 ma = device_get_ivars(children[i]); in miibus_fdt_attach() 272 bzero(&ma->obd, sizeof(ma->obd)); in miibus_fdt_attach() 274 ma->mii_phyno); in miibus_fdt_attach() 278 ma->mii_phyno); in miibus_fdt_attach() 281 error = ofw_bus_gen_setup_devinfo(&ma->obd, phy_node); in miibus_fdt_attach() 285 ma->mii_phyno); in miibus_fdt_attach() [all …]
|
| HD | mii_physubr.c | 550 mii_phy_match_gen(const struct mii_attach_args *ma, in mii_phy_match_gen() argument 556 if (MII_OUI(ma->mii_id1, ma->mii_id2) == mpd->mpd_oui && in mii_phy_match_gen() 557 MII_MODEL(ma->mii_id2) == mpd->mpd_model) in mii_phy_match_gen() 564 mii_phy_match(const struct mii_attach_args *ma, const struct mii_phydesc *mpd) in mii_phy_match() argument 567 return (mii_phy_match_gen(ma, mpd, sizeof(struct mii_phydesc))); in mii_phy_match() 587 struct mii_attach_args *ma; in mii_phy_dev_attach() local 591 ma = device_get_ivars(dev); in mii_phy_dev_attach() 593 mii = ma->mii_data; in mii_phy_dev_attach() 597 sc->mii_mpd_oui = MII_OUI(ma->mii_id1, ma->mii_id2); in mii_phy_dev_attach() 598 sc->mii_mpd_model = MII_MODEL(ma->mii_id2); in mii_phy_dev_attach() [all …]
|
| HD | mcommphy.c | 103 struct mii_attach_args *ma = device_get_ivars(dev); in mcommphy_probe() local 109 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MCOMMPHY_OUI && in mcommphy_probe() 110 MII_MODEL(ma->mii_id2) == MCOMMPHY_MODEL && in mcommphy_probe() 111 MII_REV(ma->mii_id2) == MCOMMPHY_REV) { in mcommphy_probe()
|
| /freebsd-14-stable/contrib/libedit/ |
| HD | read.c | 86 struct macros *ma; in read_init() local 91 ma = &el->el_read->macros; in read_init() 92 if ((ma->macro = el_calloc(EL_MAXMACRO, sizeof(*ma->macro))) == NULL) in read_init() 94 ma->level = -1; in read_init() 95 ma->offset = 0; in read_init() 211 struct macros *ma = &el->el_read->macros; in el_wpush() local 213 if (str != NULL && ma->level + 1 < EL_MAXMACRO) { in el_wpush() 214 ma->level++; in el_wpush() 215 if ((ma->macro[ma->level] = wcsdup(str)) != NULL) in el_wpush() 217 ma->level--; in el_wpush() [all …]
|
| /freebsd-14-stable/tools/boot/ |
| HD | full-test.sh | 61 local ma=$2 64 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}" 71 local ma=$2 74 local ma_combo=$(ma_combo $m $ma) 76 local url="${URLBASE}/${m}/${ma}/ISO-IMAGES/${v}/${file}.xz" 89 local a m ma 93 ma=${a##*:} 94 fetch_one $m $ma ${FREEBSD_VERSION} bootonly.iso 103 local ma=$2 108 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}" [all …]
|
| /freebsd-14-stable/sys/fs/smbfs/ |
| HD | smbfs_vfsops.c | 91 smbfs_cmount(struct mntarg *ma, void * data, uint64_t flags) in smbfs_cmount() argument 105 ma = mount_argf(ma, "dev", "%d", args.dev); in smbfs_cmount() 106 ma = mount_argb(ma, args.flags & SMBFS_MOUNT_SOFT, "nosoft"); in smbfs_cmount() 107 ma = mount_argb(ma, args.flags & SMBFS_MOUNT_INTR, "nointr"); in smbfs_cmount() 108 ma = mount_argb(ma, args.flags & SMBFS_MOUNT_STRONG, "nostrong"); in smbfs_cmount() 109 ma = mount_argb(ma, args.flags & SMBFS_MOUNT_HAVE_NLS, "nohave_nls"); in smbfs_cmount() 110 ma = mount_argb(ma, !(args.flags & SMBFS_MOUNT_NO_LONG), "nolong"); in smbfs_cmount() 111 ma = mount_arg(ma, "rootpath", args.root_path, -1); in smbfs_cmount() 112 ma = mount_argf(ma, "uid", "%d", args.uid); in smbfs_cmount() 113 ma = mount_argf(ma, "gid", "%d", args.gid); in smbfs_cmount() [all …]
|
| /freebsd-14-stable/lib/libc/iconv/ |
| HD | citrus_mapper.c | 75 struct _citrus_mapper_area *ma; in _citrus_mapper_create_area() local 93 ma = malloc(sizeof(*ma)); in _citrus_mapper_create_area() 94 if (ma == NULL) { in _citrus_mapper_create_area() 98 ma->ma_dir = strdup(area); in _citrus_mapper_create_area() 99 if (ma->ma_dir == NULL) { in _citrus_mapper_create_area() 101 free(ma); in _citrus_mapper_create_area() 104 _CITRUS_HASH_INIT(&ma->ma_cache, CM_HASH_SIZE); in _citrus_mapper_create_area() 106 *rma = ma; in _citrus_mapper_create_area() 202 mapper_open(struct _citrus_mapper_area *__restrict ma, in mapper_open() argument 259 ret = (*cm->cm_ops->mo_init)(ma, cm, ma->ma_dir, in mapper_open() [all …]
|
| /freebsd-14-stable/contrib/bearssl/test/ |
| HD | test_math.c | 247 uint32_t mp[40], ma[40], mb[40], mv[60], mx[100]; in test_modint() local 265 if (impl->decode_mod(ma, ea, alen, mp) != 1) { in test_modint() 288 check_eqz(ma, a); in test_modint() 292 impl->decode_mod(ma, ea, alen, mp); in test_modint() 294 ctl = impl->add(ma, mb, 1); in test_modint() 295 ctl |= impl->sub(ma, mp, 0) ^ (uint32_t)1; in test_modint() 296 impl->sub(ma, mp, ctl); in test_modint() 299 check_eqz(ma, t1); in test_modint() 301 impl->decode_mod(ma, ea, alen, mp); in test_modint() 303 impl->add(ma, mp, impl->sub(ma, mb, 1)); in test_modint() [all …]
|
| /freebsd-14-stable/sys/fs/cd9660/ |
| HD | cd9660_vfsops.c | 99 cd9660_cmount(struct mntarg *ma, void *data, uint64_t flags) in cd9660_cmount() argument 108 ma = mount_argsu(ma, "from", args.fspec, MAXPATHLEN); in cd9660_cmount() 109 ma = mount_arg(ma, "export", &args.export, sizeof(args.export)); in cd9660_cmount() 111 ma = mount_argf(ma, "uid", "%d", args.uid); in cd9660_cmount() 113 ma = mount_argf(ma, "gid", "%d", args.gid); in cd9660_cmount() 114 ma = mount_argf(ma, "mask", "%d", args.fmask); in cd9660_cmount() 115 ma = mount_argf(ma, "dirmask", "%d", args.dmask); in cd9660_cmount() 116 ma = mount_argsu(ma, "cs_disk", args.cs_disk, 64); in cd9660_cmount() 117 ma = mount_argsu(ma, "cs_local", args.cs_local, 64); in cd9660_cmount() 118 ma = mount_argf(ma, "ssector", "%u", args.ssector); in cd9660_cmount() [all …]
|
| /freebsd-14-stable/sys/kern/ |
| HD | vfs_mount.c | 81 static void free_mntarg(struct mntarg *ma); 1056 struct mntarg *ma = NULL; in sys_mount() local 1096 ma = mount_argsu(ma, "fstype", uap->type, MFSNAMELEN); in sys_mount() 1097 ma = mount_argsu(ma, "fspath", uap->path, MNAMELEN); in sys_mount() 1098 ma = mount_argb(ma, flags & MNT_RDONLY, "noro"); in sys_mount() 1099 ma = mount_argb(ma, !(flags & MNT_NOSUID), "nosuid"); in sys_mount() 1100 ma = mount_argb(ma, !(flags & MNT_NOEXEC), "noexec"); in sys_mount() 1103 return (vfsp->vfc_vfsops_sd->vfs_cmount(ma, uap->data, flags)); in sys_mount() 1104 return (vfsp->vfc_vfsops->vfs_cmount(ma, uap->data, flags)); in sys_mount() 2812 mount_argb(struct mntarg *ma, int flag, const char *name) in mount_argb() argument [all …]
|
| HD | vfs_mountroot.c | 738 struct mntarg *ma; in parse_mount() local 785 ma = NULL; in parse_mount() 786 ma = mount_arg(ma, "fstype", fs, -1); in parse_mount() 787 ma = mount_arg(ma, "fspath", "/", -1); in parse_mount() 788 ma = mount_arg(ma, "from", dev, -1); in parse_mount() 789 ma = mount_arg(ma, "errmsg", errmsg, ERRMSGL); in parse_mount() 790 ma = mount_arg(ma, "ro", NULL, 0); in parse_mount() 791 ma = parse_mountroot_options(ma, opts); in parse_mount() 793 error = kernel_mount(ma, MNT_ROOTFS); in parse_mount() 1124 parse_mountroot_options(struct mntarg *ma, const char *options) in parse_mountroot_options() argument [all …]
|
| /freebsd-14-stable/lib/libc/stdlib/ |
| HD | exit.c | 61 pthread_mutexattr_t ma; in exit_mutex_init_once() local 63 _pthread_mutexattr_init(&ma); in exit_mutex_init_once() 64 _pthread_mutexattr_settype(&ma, PTHREAD_MUTEX_RECURSIVE); in exit_mutex_init_once() 65 _pthread_mutex_init(&exit_mutex, &ma); in exit_mutex_init_once() 66 _pthread_mutexattr_destroy(&ma); in exit_mutex_init_once()
|
| /freebsd-14-stable/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| HD | dmu_os.c | 67 vm_page_t *ma, dmu_tx_t *tx) in dmu_write_pages() argument 102 ASSERT3U(ptoa((*ma)->pindex), ==, in dmu_write_pages() 105 va = zfs_map_page(*ma, &sf); in dmu_write_pages() 108 ma += 1; in dmu_write_pages() 123 dmu_read_pages(objset_t *os, uint64_t object, vm_page_t *ma, int count, in dmu_read_pages() argument 137 ASSERT3U(ma[0]->pindex + count - 1, ==, ma[count - 1]->pindex); in dmu_read_pages() 140 err = dmu_buf_hold_array(os, object, IDX_TO_OFF(ma[0]->pindex), in dmu_read_pages() 156 vmobj = ma[0]->object; in dmu_read_pages() 160 m = vm_page_grab_unlocked(vmobj, ma[0]->pindex - 1 - i, in dmu_read_pages() 186 bufoff = IDX_TO_OFF(ma[0]->pindex) % db->db_size; in dmu_read_pages() [all …]
|
| /freebsd-14-stable/usr.bin/bluetooth/rfcomm_sppd/ |
| HD | rfcomm_sppd.c | 195 struct sockaddr_rfcomm ma; in main() local 209 memset(&ma, 0, sizeof(ma)); in main() 210 ma.rfcomm_len = sizeof(ma); in main() 211 ma.rfcomm_family = AF_BLUETOOTH; in main() 212 memcpy(&ma.rfcomm_bdaddr, &bt_addr_any, sizeof(bt_addr_any)); in main() 213 ma.rfcomm_channel = channel; in main() 215 if (bind(acceptsock, (struct sockaddr *)&ma, sizeof(ma)) < 0) in main() 220 aaddrlen = sizeof(ma); in main() 221 if (getsockname(acceptsock, (struct sockaddr *)&ma, &aaddrlen) < 0) in main() 223 channel = ma.rfcomm_channel; in main()
|
| /freebsd-14-stable/sys/dev/iommu/ |
| HD | busdma_iommu.c | 565 struct bus_dmamap_iommu *map, vm_page_t *ma, int offset, bus_size_t buflen, in iommu_bus_dmamap_load_something1() argument 603 offset, e_flags, gas_flags, ma + idx, &entry); in iommu_bus_dmamap_load_something1() 652 struct bus_dmamap_iommu *map, vm_page_t *ma, int offset, bus_size_t buflen, in iommu_bus_dmamap_load_something() argument 665 error = iommu_bus_dmamap_load_something1(tag, map, ma, offset, in iommu_bus_dmamap_load_something() 694 struct vm_page **ma, bus_size_t tlen, int ma_offs, int flags, in iommu_bus_dmamap_load_ma() argument 702 return (iommu_bus_dmamap_load_something(tag, map, ma, ma_offs, tlen, in iommu_bus_dmamap_load_ma() 713 vm_page_t *ma, fma; in iommu_bus_dmamap_load_phys() local 724 ma = malloc(sizeof(vm_page_t) * ma_cnt, M_DEVBUF, mflags); in iommu_bus_dmamap_load_phys() 725 if (ma == NULL) in iommu_bus_dmamap_load_phys() 730 ma[i] = PHYS_TO_VM_PAGE(paddr); in iommu_bus_dmamap_load_phys() [all …]
|
| /freebsd-14-stable/sys/fs/msdosfs/ |
| HD | msdosfs_vfsops.c | 193 msdosfs_cmount(struct mntarg *ma, void *data, uint64_t flags) in msdosfs_cmount() argument 204 ma = mount_argsu(ma, "from", args.fspec, MAXPATHLEN); in msdosfs_cmount() 205 ma = mount_arg(ma, "export", &args.export, sizeof(args.export)); in msdosfs_cmount() 206 ma = mount_argf(ma, "uid", "%d", args.uid); in msdosfs_cmount() 207 ma = mount_argf(ma, "gid", "%d", args.gid); in msdosfs_cmount() 208 ma = mount_argf(ma, "mask", "%d", args.mask); in msdosfs_cmount() 209 ma = mount_argf(ma, "dirmask", "%d", args.dirmask); in msdosfs_cmount() 211 ma = mount_argb(ma, args.flags & MSDOSFSMNT_SHORTNAME, "noshortname"); in msdosfs_cmount() 212 ma = mount_argb(ma, args.flags & MSDOSFSMNT_LONGNAME, "nolongname"); in msdosfs_cmount() 213 ma = mount_argb(ma, !(args.flags & MSDOSFSMNT_NOWIN95), "nowin95"); in msdosfs_cmount() [all …]
|
| /freebsd-14-stable/usr.sbin/mlxcontrol/ |
| HD | interface.c | 81 struct mlxd_foreach_action *ma = (struct mlxd_foreach_action *)arg; in mlxd_foreach_ctrlr() local 100 ma->func(i, ma->arg); in mlxd_foreach_ctrlr() 108 struct mlxd_foreach_action ma; in mlxd_foreach() local 110 ma.func = func; in mlxd_foreach() 111 ma.arg = arg; in mlxd_foreach() 112 mlx_foreach(mlxd_foreach_ctrlr, &ma); in mlxd_foreach()
|
| /freebsd-14-stable/sys/contrib/device-tree/include/dt-bindings/usb/ |
| HD | pd.h | 30 #define PDO_FIXED_CURR(ma) ((((ma) / 10) & PDO_CURR_MASK) << PDO_FIXED_CURR_SHIFT) argument 32 #define PDO_FIXED(mv, ma, flags) \ argument 34 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma)) 56 #define PDO_VAR_MAX_CURR(ma) ((((ma) / 10) & PDO_CURR_MASK) << PDO_VAR_MAX_CURR_SHIFT) argument 80 #define PDO_PPS_APDO_MAX_CURR(ma) \ argument 81 ((((ma) / 50) & PDO_PPS_APDO_CURR_MASK) << PDO_PPS_APDO_MAX_CURR_SHIFT)
|
| /freebsd-14-stable/sys/dev/cxgbe/ |
| HD | t4_iov.c | 341 uint8_t ma[ETHER_ADDR_LEN]; in t4iov_add_vf() local 352 bcopy(mac, ma, ETHER_ADDR_LEN); in t4iov_add_vf() 357 rc = -t4_set_vf_mac(adap, sc->pf, vfnum + 1, 1, ma); in t4iov_add_vf() 363 ma[0], ma[1], ma[2], ma[3], ma[4], ma[5], rc); in t4iov_add_vf()
|
| /freebsd-14-stable/sys/arm64/arm64/ |
| HD | uio_machdep.c | 57 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 95 &ma[offset >> PAGE_SHIFT], &vaddr, 1, true); in uiomove_fromphys() 126 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], in uiomove_fromphys() 140 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], &vaddr, 1, in uiomove_fromphys()
|
| /freebsd-14-stable/sys/riscv/riscv/ |
| HD | uio_machdep.c | 57 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 95 &ma[offset >> PAGE_SHIFT], &vaddr, 1, true); in uiomove_fromphys() 126 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], in uiomove_fromphys() 140 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], &vaddr, 1, in uiomove_fromphys()
|
| /freebsd-14-stable/sys/amd64/amd64/ |
| HD | uio_machdep.c | 59 uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) in uiomove_fromphys() argument 97 &ma[offset >> PAGE_SHIFT], &vaddr, 1, true); in uiomove_fromphys() 128 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], in uiomove_fromphys() 141 pmap_unmap_io_transient(&ma[offset >> PAGE_SHIFT], &vaddr, 1, in uiomove_fromphys()
|
| /freebsd-14-stable/crypto/heimdal/lib/gssapi/mech/ |
| HD | gss_mo.c | 589 struct _gss_oid_name_table *ma = NULL; in gss_display_mech_attr() local 600 for (n = 0; ma == NULL && _gss_ont_ma[n].oid; n++) in gss_display_mech_attr() 602 ma = &_gss_ont_ma[n]; in gss_display_mech_attr() 604 if (ma == NULL) in gss_display_mech_attr() 609 bd.value = rk_UNCONST(ma->name); in gss_display_mech_attr() 610 bd.length = strlen(ma->name); in gss_display_mech_attr() 618 bd.value = rk_UNCONST(ma->short_desc); in gss_display_mech_attr() 619 bd.length = strlen(ma->short_desc); in gss_display_mech_attr() 627 bd.value = rk_UNCONST(ma->long_desc); in gss_display_mech_attr() 628 bd.length = strlen(ma->long_desc); in gss_display_mech_attr()
|
| /freebsd-14-stable/sys/dev/dc/ |
| HD | pnphy.c | 102 struct mii_attach_args *ma; in pnphy_probe() local 104 ma = device_get_ivars(dev); in pnphy_probe() 110 if (ma->mii_id1 != DC_VENDORID_LO || in pnphy_probe() 111 ma->mii_id2 != DC_DEVICEID_82C168) in pnphy_probe()
|