/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_create/ |
H A D | 15-1.c | 120 if (scenarii[sc].bottom != NULL) 136 output("Current stack : %p -> %p\n", scenarii[sc].bottom, sz + (long)scenarii[sc].bottom); 140 if ( (((long)scenarii[sc].bottom) < ((long)child_stack)) 141 && (((long)child_stack) < (((long)scenarii[sc].bottom) + sz))) 148 do { ret = sem_post(&scenarii[sc].sem); }
|
H A D | 3-2.c | 358 do { ret = sem_post(&scenarii[sc].sem); } 388 for (sc=0; sc < NSCENAR; sc++) 392 output("Starting test with scenario (%i): %s\n", sc, scenarii[sc].descr); 399 if ((scenarii[sc].altstack == 0) && (scenarii[sc].altsize == 1)) 405 ret = test_stack(&scenarii[sc].ta, 2*sysconf(_SC_THREAD_STACK_MIN)); 409 if (scenarii[sc] [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/ipro100/dev/fxp/ |
H A D | if_fxpvar.h | 57 #define FXP_TXCB_DMA_ADDR(sc, addr) \ 58 (sc->fxp_desc.cbl_addr + (uintptr_t)addr - \ 59 (uintptr_t)sc->fxp_desc.cbl_list) 243 #define CSR_READ_1(sc, reg) bus_read_1(sc->fxp_res[0], reg) 244 #define CSR_READ_2(sc, reg) bus_read_2(sc->fxp_res[0], reg) 245 #define CSR_READ_4(sc, reg) bus_read_4(sc->fxp_res[0], reg) 246 #define CSR_WRITE_1(sc, re [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/dec21xxx/dev/mii/ |
H A D | amphy.c | 114 amphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 128 mii_phy_setmedia(sc); 132 if (mii_phy_tick(sc) == EJUSTRETURN) 138 PHY_STATUS(sc); 141 mii_phy_update(sc, cmd); 146 amphy_status(struct mii_softc *sc) argument 148 struct mii_data *mii = sc->mii_pdata; 155 bmsr = PHY_READ(sc, MII_BMSR) | 156 PHY_READ(sc, MII_BMSR); 160 bmcr = PHY_READ(sc, MII_BMC [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/dec21xxx/dev/dc/ |
H A D | pnphy.c | 123 struct mii_softc *sc; local 125 sc = device_get_softc(dev); 130 sc->mii_capabilities = 132 sc->mii_capabilities &= sc->mii_capmask; 134 mii_phy_add_media(sc); 137 MIIBUS_MEDIAINIT(sc->mii_dev); 142 pnphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 165 MIIBUS_STATCHG(sc->mii_dev); 171 MIIBUS_STATCHG(sc 197 pnphy_status(struct mii_softc *sc) argument [all...] |
H A D | glue.c | 108 struct dc_softc *sc = device_get_softc(dev); local 114 status = CSR_READ_4(sc, DC_ISR); 121 CSR_WRITE_4(sc, DC_ISR, status); 131 CSR_WRITE_4(sc, DC_IMR, 0); 142 struct dc_softc *sc = device_get_softc(dev); local 143 DC_LOCK(sc); 144 CSR_WRITE_4(sc, DC_IMR, DC_INTRS); 145 DC_UNLOCK(sc);
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_rate/onoe/ |
H A D | onoe.c | 100 ath_rate_node_init(struct ath_softc *sc, struct ath_node *an) argument 106 ath_rate_node_cleanup(struct ath_softc *sc, struct ath_node *an) argument 111 ath_rate_findrate(struct ath_softc *sc, struct ath_node *an, argument 132 ath_rate_getxtxrates(struct ath_softc *sc, struct ath_node *an, argument 149 ath_rate_setupxtxdesc(struct ath_softc *sc, struct ath_node *an, argument 154 ath_hal_setupxtxdesc(sc->sc_ah, ds 162 ath_rate_tx_complete(struct ath_softc *sc, struct ath_node *an, argument 175 ath_rate_ctl(sc, &an->an_node); 181 ath_rate_newassoc(struct ath_softc *sc, struct ath_node *an, int isnew) argument 184 ath_rate_ctl_start(sc, 188 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate) argument 273 ath_rate_ctl_start(struct ath_softc *sc, struct ieee80211_node *ni) argument 325 struct ath_softc *sc = arg; local 390 ath_rate_sysctlattach(struct ath_softc *sc) argument 408 ath_rate_attach(struct ath_softc *sc) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/rdc/dev/mii/ |
H A D | rdcphy.c | 111 rdcphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 116 rsc = (struct rdcphy_softc *)sc; 130 mii_phy_setmedia(sc); 149 mii_phy_update(sc, MII_MEDIACHG); 157 if (mii_phy_tick(sc) == EJUSTRETURN) 181 PHY_STATUS(sc); 184 mii_phy_update(sc, cmd); 189 rdcphy_status(struct mii_softc *sc) argument 195 mii = sc->mii_pdata; 201 bmsr = PHY_READ(sc, MII_BMS [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_join/ |
H A D | 1-2.c | 128 for ( sc = 0; sc < NSCENAR; sc++ ) 132 output( "Starting test with scenario (%i): %s\n", sc, scenarii[ sc ].descr ); 141 ret = pthread_create( &child, &scenarii[ sc ].ta, threaded, &ts_th ); 143 switch ( scenarii[ sc ].result )
|
H A D | 4-1.c | 144 for ( sc = 0; sc < NSCENAR; sc++ ) 148 output( "Starting test with scenario (%i): %s\n", sc, scenarii[ sc ].descr ); 159 ret = pthread_create( &child, &scenarii[ sc ].ta, threaded, NULL ); 161 switch ( scenarii[ sc ].result )
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/3com/dev/xl/ |
H A D | xlphy.c | 147 xlphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) argument 161 mii_phy_setmedia(sc); 179 PHY_STATUS(sc); 182 mii_phy_update(sc, cmd); 187 xlphy_reset(struct mii_softc *sc) argument 190 mii_phy_reset(sc); 196 PHY_WRITE(sc, MII_BMCR, BMCR_S100|BMCR_AUTOEN|BMCR_FDX);
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/iprowifi2200/dev/iwi/ |
H A D | if_iwireg.h | 508 #define CSR_READ_1(sc, reg) \ 509 bus_space_read_1((sc)->sc_st, (sc)->sc_sh, (reg)) 511 #define CSR_READ_2(sc, reg) \ 512 bus_space_read_2((sc)->sc_st, (sc)->sc_sh, (reg)) 514 #define CSR_READ_4(sc, reg) \ 515 bus_space_read_4((sc)->sc_st, (sc)->sc_sh, (reg)) 517 #define CSR_READ_REGION_4(sc, offse [all...] |
H A D | if_iwivar.h | 248 #define IWI_LOCK_INIT(sc) \ 249 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->sc_dev), \ 251 #define IWI_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx) 253 #define IWI_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) 254 #define IWI_LOCK(sc) do { \ 255 if (!(__waslocked = mtx_owned(&(sc)->sc_mtx))) \ 256 mtx_lock(&(sc) [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/broadcom43xx/dev/bwi/ |
H A D | if_bwivar.h | 75 #define CSR_READ_4(sc, reg) \ 76 bus_space_read_4((sc)->sc_mem_bt, (sc)->sc_mem_bh, (reg)) 77 #define CSR_READ_2(sc, reg) \ 78 bus_space_read_2((sc)->sc_mem_bt, (sc)->sc_mem_bh, (reg)) 80 #define CSR_WRITE_4(sc, reg, val) \ 81 bus_space_write_4((sc)->sc_mem_bt, (sc)->sc_mem_bh, (reg), (val)) 82 #define CSR_WRITE_2(sc, re [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/syskonnect/dev/sk/ |
H A D | if_sk.c | 353 #define SK_SETBIT(sc, reg, x) \ 354 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x) 356 #define SK_CLRBIT(sc, reg, x) \ 357 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~x) 359 #define SK_WIN_SETBIT_4(sc, reg, x) \ 360 sk_win_write_4(sc, reg, sk_win_read_4(sc, reg) | x) 362 #define SK_WIN_CLRBIT_4(sc, re 726 struct sk_softc *sc; local 1296 struct sk_softc *sc; local 1328 struct sk_softc *sc; local 1565 struct sk_softc *sc; local 1882 struct sk_softc *sc; local 2505 struct sk_softc *sc; local 2589 struct sk_softc *sc; local 2611 struct sk_softc *sc; local 2640 struct sk_softc *sc; local 2757 struct sk_softc *sc; local 2824 struct sk_softc *sc; local 2892 struct sk_softc *sc; local 3057 struct sk_softc *sc; local 3112 struct sk_softc *sc = xsc; local 3221 struct sk_softc *sc; local 3385 struct sk_softc *sc; local 3530 struct sk_softc *sc; local 3731 struct sk_softc *sc; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/aironetwifi/dev/an/ |
H A D | if_an_pci.c | 122 struct an_softc *sc = device_get_softc(dev); local 124 bzero(sc, sizeof(struct an_softc)); 145 struct an_softc *sc; local 148 sc = device_get_softc(dev); 153 sc->mpi350 = 1; 154 sc->port_rid = PCIR_BAR(0); 169 sc->port_rid = AN_PCI_LOIO; 171 error = an_alloc_port(dev, sc->port_rid, 1); 179 if (sc->mpi350) { 181 sc [all...] |
H A D | if_an_isa.c | 107 struct an_softc *sc = device_get_softc(dev); local 111 an_alloc_port(dev, sc->port_rid, 1); 112 an_alloc_irq(dev, sc->irq_rid, 0); 114 sc->an_dev = dev; 116 error = an_attach(sc, flags); 122 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET, 123 NULL, an_intr, sc, &sc->irq_handle);
|
H A D | if_an_pccard.c | 129 struct an_softc *sc = device_get_softc(dev); local 142 an_alloc_irq(dev, sc->irq_rid, 0); 144 sc->an_dev = dev; 146 error = an_attach(sc, flags); 153 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET, 154 NULL, an_intr, sc, &sc->irq_handle);
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/marvell88w8363/dev/mwl/ |
H A D | if_mwl_pci.c | 150 struct mwl_softc *sc = &psc->sc_sc; local 153 sc->sc_dev = dev; 177 sc->sc_invalid = 1; 191 NULL, mwl_intr, sc, &psc->sc_ih)) { 210 &sc->sc_dmat)) { 218 MWL_LOCK_INIT(sc); 219 sc->sc_io0t = rman_get_bustag(psc->sc_sr0); 220 sc->sc_io0h = rman_get_bushandle(psc->sc_sr0); 221 sc->sc_io1t = rman_get_bustag(psc->sc_sr1); 222 sc 244 struct mwl_softc *sc = &psc->sc_sc; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_rate/sample/ |
H A D | sample.h | 55 #define ATH_SOFTC_SAMPLE(sc) ((struct sample_softc *)sc->sc_rc) 116 static unsigned calc_usecs_unicast_packet(struct ath_softc *sc, argument 121 const HAL_RATE_TABLE *rt = sc->sc_currates; 122 struct ifnet *ifp = sc->sc_ifp; 134 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); 138 rix, rt->rateCount, sc->sc_curmode); 181 cix = rt->info[sc->sc_protrix].controlRate; 195 sc->sc_curmode)); 202 ctsduration += ath_hal_pkt_txtime(sc [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_dfs/null/ |
H A D | dfs_null.c | 81 ath_dfs_attach(struct ath_softc *sc) argument 90 ath_dfs_detach(struct ath_softc *sc) argument 99 ath_dfs_radar_enable(struct ath_softc *sc, struct ieee80211_channel *chan) argument 110 ath_dfs_process_phy_err(struct ath_softc *sc, const char *buf, argument 124 ath_dfs_process_radar_event(struct ath_softc *sc, argument 138 ath_dfs_tasklet_needed(struct ath_softc *sc, struct ieee80211_channel *chan) argument 151 ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad) argument 196 ath_hal_enabledfs(sc->sc_ah, pe); 201 ath_hal_getdfsthresh(sc->sc_ah, &peout); 224 ath_dfs_get_thresholds(struct ath_softc *sc, HAL_PHYERR_PARA argument [all...] |
/haiku-fatelf/headers/private/firewire/ |
H A D | fwglue.h | 50 #define OWRITE(sc, offset, value) (*(volatile uint32 *)((char *)(sc->regAddr) + (offset)) = value) 51 #define OREAD(sc, offset) (*(volatile uint32 *)((char *)(sc->regAddr) + (offset)))
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ |
H A D | if_ath_keycache.h | 40 extern int ath_keyset(struct ath_softc *sc, const struct ieee80211_key *k,
|
H A D | if_ath_pci.c | 94 struct ath_softc *sc = &psc->sc_sc; local 98 sc->sc_dev = dev; 122 sc->sc_st = (HAL_BUS_TAG)(uintptr_t) rman_get_bustag(psc->sc_sr); 123 sc->sc_sh = (HAL_BUS_HANDLE) rman_get_bushandle(psc->sc_sr); 128 sc->sc_invalid = 1; 142 NULL, ath_intr, sc, &psc->sc_ih)) { 161 &sc->sc_dmat)) { 166 ATH_LOCK_INIT(sc); 168 error = ath_attach(pci_get_device(dev), sc); 172 ATH_LOCK_DESTROY(sc); 188 struct ath_softc *sc = &psc->sc_sc; local [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/ |
H A D | if_malo_pci.c | 157 struct malo_softc *sc = &psc->malo_sc; local 159 sc->malo_dev = dev; 176 sc->malo_invalid = 1; 206 INTR_TYPE_NET | INTR_MPSAFE, malo_intr, NULL, sc, 211 INTR_TYPE_NET | INTR_MPSAFE, malo_intr, NULL, sc, 232 &sc->malo_dmat)) { 237 sc->malo_io0t = rman_get_bustag(psc->malo_res_mem[0]); 238 sc->malo_io0h = rman_get_bushandle(psc->malo_res_mem[0]); 239 sc->malo_io1t = rman_get_bustag(psc->malo_res_mem[1]); 240 sc 274 struct malo_softc *sc = &psc->malo_sc; local [all...] |