HomeSort by: relevance | last modified time | path
    Searched defs:media (Results 1 - 25 of 32) sorted by relevancy

1 2

  /src/sys/net/agr/
if_agrmonitor.c 46 u_int media; local in function:agrport_monitor
49 media = IFM_ETHER | IFM_NONE;
54 error = agr_port_getmedia(port, &media, &status);
63 media = IFM_ETHER | IFM_NONE; /* XXX ether */
65 if (media == IFM_NONE) {
70 media = IFM_ETHER | IFM_NONE; /* XXX ether */
73 if (port->port_media == media)
76 port->port_media = media;
ieee8023ad_lacp.c 261 u_int media = port->port_media; local in function:ieee8023ad_lacp_portstate
267 LACP_DPRINTF((lp, "media changed 0x%x -> 0x%x\n", lp->lp_media, media));
272 lp->lp_media = media;
273 if ((media & IFM_HDX) != 0) {
600 LACP_DPRINTF((lp, "speed 0? media=0x%x nports=%d\n",
670 u_int media = lp->lp_media; local in function:lacp_compose_key
673 KASSERT(IFM_TYPE(media) == IFM_ETHER);
688 u_int subtype = IFM_SUBTYPE(media);
690 KASSERT((media & IFM_HDX) == 0); /* should be handled above *
    [all...]
  /src/sys/arch/i386/stand/efiboot/
efidisk_ll.c 89 EFI_BLOCK_IO_MEDIA *media; local in function:set_geometry
95 media = edi->bio->Media;
97 d->secsize = media->BlockSize;
102 ed->totsec = media->LastBlock + 1;
103 ed->sbytes = media->BlockSize;
105 if (media->RemovableMedia)
efidisk.c 89 EFI_BLOCK_IO_MEDIA *media; local in function:efi_disk_probe
119 media = bio->Media;
120 if (media->LogicalPartition || !media->MediaPresent)
127 edi->media_id = media->MediaId;
223 EFI_BLOCK_IO_MEDIA *media; local in function:efi_disk_show
230 media = edi->bio->Media;
236 printf(" mediaId %u", media->MediaId)
    [all...]
  /src/sys/dev/mca/
if_ep_mca.c 153 int pos4, pos5, iobase, irq, media; local in function:ep_mca_attach
226 * Set default media to be same as the one selected in POS.
231 media = IFM_10_T;
235 media = IFM_10_5;
239 media = IFM_NONE;
243 media = IFM_10_2;
246 aprint_error_dev(sc->sc_dev, " cannot determine media\n");
249 ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|media);
  /src/sys/dev/ofisa/
if_cs_ofisa.c 99 int i, n, *media, nmedia, defmedia; local in function:cs_ofisa_attach
208 /* Dig media out of the firmware. */
209 media = of_network_decode_media(aa->oba.oba_phandle, &nmedia,
212 media = cs_ofisa_md_media_fixup(parent, self, aux, media, &nmedia,
215 if (media == NULL) {
216 aprint_error(": unable to get media information\n");
225 aprint_error_dev(self, "unable to get default media\n");
226 defmedia = media[0]; /* XXX What to do? */
244 cs_attach(sc, enaddr, media, nmedia, defmedia)
    [all...]
  /src/sys/arch/ews4800mips/sbd/
if_iee_sbdio.c 88 int media[2]; local in function:iee_sbdio_attach
110 media[0] = IFM_ETHER | IFM_MANUAL;
111 media[1] = IFM_ETHER | IFM_10_5;
115 iee_attach(sc, eaddr, media, 2, IFM_ETHER | IFM_10_5);
  /src/sys/arch/hppa/gsc/
if_iee_gsc.c 204 int media[2]; local in function:iee_gsc_attach
260 media[0] = IFM_ETHER | IFM_MANUAL;
261 media[1] = IFM_ETHER | IFM_AUTO;
262 iee_attach(sc, ga->ga_ether_address, media, 2, IFM_ETHER | IFM_AUTO);
  /src/sys/arch/playstation2/dev/
emac3.c 33 * EMAC3 (Ethernet Media Access Controller)
355 int media; local in function:emac3_phy_statchg
358 media = sc->mii.mii_media_active;
364 switch (media & 0x1f) {
366 printf("unknown media type. %08x", media);
370 if (media & IFM_FDX)
376 if (media & IFM_FDX)
  /src/sys/arch/evbppc/pmppc/dev/
if_cs_mainbus.c 242 int media[1] = { IFM_ETHER | IFM_10_T }; local in function:cs_mainbus_attach
285 if (cs_attach(sc, NULL, media, 1, IFM_ETHER | IFM_10_T)) {
  /src/sbin/ifconfig/
media.c 3 __RCSID("$NetBSD: media.c,v 1.14 2022/04/04 19:33:44 andvar Exp $");
25 #include "media.h"
39 * Media stuff. Whenever a media command is first performed, the
40 * currently select media is grabbed for this interface. If `media'
41 * is given, the current media word is modified. `mediaopt' commands
43 * current media word later.
72 static struct pstr media = PSTR_INITIALIZER1(&media, "media", setmedia, "media" variable in typeref:struct:pstr
    [all...]
  /src/sys/arch/sun2/dev/
if_ie_mbmem.c 219 /* Supported media */
220 static int media[] = { variable in typeref:typename:int[]
223 #define NMEDIA __arraycount(media)
495 i82586_attach(sc, "multibus", myaddr, media, NMEDIA, media[0]);
if_ie_obio.c 129 /* Supported media */
130 static int media[] = { variable in typeref:typename:int[]
133 #define NMEDIA __arraycount(media)
391 i82586_attach(sc, "onboard", myaddr, media, NMEDIA, media[0]);
  /src/sys/dev/isa/
if_ef.c 306 /* The currently selected media is always the active media. */
607 uint8_t media = bus_space_read_1(esc->sc_regt, esc->sc_regh, local in function:ef_attach
609 media = (media & EF_MEDIA_MASK) >> EF_MEDIA_SHIFT;
612 ef_media[media]);
if_ix.c 408 /* The currently selected media is always the active media. */
624 int media; local in function:ix_attach
833 /* Figure out which media is being used... */
838 media = IFM_ETHER | IFM_10_T;
840 media = IFM_ETHER | IFM_10_2;
842 media = IFM_ETHER | IFM_10_5;
860 ix_media, NIX_MEDIA, media);
  /src/usr.sbin/fstyp/
hammer2.c 58 warnx("hammer2: failed to seek media end");
64 warnx("hammer2: failed to tell media end");
141 hammer2_media_data_t *media; local in function:read_media
174 warnx("hammer2: failed to get media size");
183 warnx("hammer2: failed to seek media");
186 media = read_buf(fp, (off_t)io_base, io_bytes);
187 if (media == NULL) {
188 warnx("hammer2: failed to read media");
192 memcpy(media, (char *)media + boff, bytes)
200 hammer2_media_data_t *media; local in function:find_pfs
294 hammer2_media_data_t *vols[HAMMER2_NUM_VOLHDRS], *media; local in function:read_label
    [all...]
  /src/sys/arch/sparc/dev/
if_ie_obio.c 128 /* Supported media */
129 static int media[] = { variable in typeref:typename:int[]
132 #define NMEDIA __arraycount(media)
383 i82586_attach(sc, "onboard", myaddr, media, NMEDIA, media[0]);
  /src/sys/dev/vme/
if_ie_vme.c 217 /* Supported media */
218 static int media[] = { variable in typeref:typename:int[]
221 #define NMEDIA __arraycount(media)
561 i82586_attach(sc, "multibus/vme", myaddr, media, NMEDIA, media[0]);
  /src/sys/dev/ic/
lemac.c 501 /* Update the control register to reflect the media choice */
819 * Media status callback
839 * current media choice when auto-port is enabled.
984 int media;
1009 case '3': media = IFM_10_5; break;
1010 case '4': media = IFM_10_T; break;
1011 default: media = IFM_AUTO; break;
1013 ifmedia_set(&sc->sc_ifmedia, IFM_ETHER | media);
966 int media; local in function:lemac_ifattach
smc83c170.c 248 * Initialize our media structures and probe the MII.
267 /* use the next free media instance */
565 * accordingly. Update our idea of the current media;
961 /* Set the current media. */
1385 * Callback from PHY when media changes.
1421 * Callback from ifmedia to request new media setting.
1432 int media = ifm->ifm_cur->ifm_media; local in function:epic_mediachange
1441 if (IFM_INST(media) != sc->sc_serinst) {
1454 if (IFM_INST(media) == sc->sc_serinst) {
1464 mii->mii_media_active = media;
    [all...]
cs89x0.c 327 cs_attach(struct cs_softc *sc, uint8_t *enaddr, int *media,
405 if (media != NULL) {
407 ifmedia_add(&sc->sc_media, media[i], 0, NULL);
478 printf("%s: %s rev. %c, address %s, media %s\n",
595 "WARNING: default media setting may be inaccurate\n");
977 int media = IFM_SUBTYPE(sc->sc_media.ifm_cur->ifm_media); local in function:cs_initChip
998 /* Set the Line Control register to match the media type */
999 if (media == IFM_10_T)
1010 /* If the media type is 10Base2 */
1011 if (media == IFM_10_2)
    [all...]
  /src/usr.sbin/installboot/
installboot.h 75 IB_MEDIA = 1<<25, /* evb*: boot media type */
108 const char *media; /* boot media type */ member in struct:__anon78e59b4b0308
  /src/sys/dev/pci/igc/
if_igc.h 327 struct ifmedia media; member in struct:igc_softc
  /src/sys/dev/pci/
if_ti.c 2545 * Make sure to set media properly. We have to do this
2558 * Set media options.
2628 * Report current media status.
2634 uint32_t media = 0; local in function:ti_ifmedia_sts
2647 media = CSR_READ_4(sc, TI_GCR_GLINK_STAT);
2652 if (media & TI_GLNK_FULL_DUPLEX)
2657 media = CSR_READ_4(sc, TI_GCR_LINK_STAT);
2659 if (media & TI_LNK_100MB)
2661 if (media & TI_LNK_10MB)
2664 if (media & TI_LNK_100MB
    [all...]
  /src/sys/arch/arm/sunxi/
sun4i_emac.c 439 const u_int media = mii->mii_media_active; local in function:sun4i_emac_miibus_statchg
445 switch (IFM_SUBTYPE(media)) {
456 const bool link = (IFM_SUBTYPE(media) & (IFM_10_T | IFM_100_TX)) != 0;
458 if (media & IFM_FDX) {

Completed in 28 milliseconds

1 2