/freebsd-11-stable/sys/dev/re/ |
H A D | if_re.c | 351 CSR_WRITE_1(sc, RL_EECMD, \ 352 CSR_READ_1(sc, RL_EECMD) | x) 355 CSR_WRITE_1(sc, RL_EECMD, \ 356 CSR_READ_1(sc, RL_EECMD) & ~x) 362 re_eeprom_putbyte(struct rl_softc *sc, int addr) argument 366 d = addr | (RL_9346_READ << sc->rl_eewidth); 372 for (i = 1 << (sc->rl_eewidth + 3); i; i >>= 1) { 390 re_eeprom_getword(struct rl_softc *sc, int addr, u_int16_t *dest) argument 398 re_eeprom_putbyte(sc, addr); 406 if (CSR_READ_1(sc, RL_EECM 419 re_read_eeprom(struct rl_softc *sc, caddr_t dest, int off, int cnt) argument 442 struct rl_softc *sc; local 480 struct rl_softc *sc; local 512 struct rl_softc *sc; local 566 struct rl_softc *sc; local 612 struct rl_softc *sc; local 650 re_set_rxmode(struct rl_softc *sc) argument 722 re_reset(struct rl_softc *sc) argument 767 re_diag(struct rl_softc *sc) argument 986 re_allocmem(device_t dev, struct rl_softc *sc) argument 1208 struct rl_softc *sc; local 1755 struct rl_softc *sc; local 1908 re_discard_rxbuf(struct rl_softc *sc, int idx) argument 1928 re_newbuf(struct rl_softc *sc, int idx) argument 1992 re_jumbo_newbuf(struct rl_softc *sc, int idx) argument 2062 re_tx_list_init(struct rl_softc *sc) argument 2092 re_rx_list_init(struct rl_softc *sc) argument 2121 re_jrx_list_init(struct rl_softc *sc) argument 2150 re_rxeof(struct rl_softc *sc, int *rx_npktsp) argument 2395 re_txeof(struct rl_softc *sc) argument 2469 struct rl_softc *sc; local 2495 struct rl_softc *sc = ifp->if_softc; local 2508 struct rl_softc *sc = ifp->if_softc; local 2548 struct rl_softc *sc; local 2566 struct rl_softc *sc; local 2636 struct rl_softc *sc; local 2715 re_encap(struct rl_softc *sc, struct mbuf **m_head) argument 2909 struct rl_softc *sc; local 2923 struct rl_softc *sc; local 3007 re_set_jumbo(struct rl_softc *sc, int jumbo) argument 3062 struct rl_softc *sc = xsc; local 3070 re_init_locked(struct rl_softc *sc) argument 3350 struct rl_softc *sc; local 3369 struct rl_softc *sc; local 3385 struct rl_softc *sc = ifp->if_softc; local 3541 re_watchdog(struct rl_softc *sc) argument 3575 re_stop(struct rl_softc *sc) argument 3691 struct rl_softc *sc; local 3712 struct rl_softc *sc; local 3750 struct rl_softc *sc; local 3769 re_set_linkspeed(struct rl_softc *sc) argument 3837 re_setwol(struct rl_softc *sc) argument 3916 re_clrwol(struct rl_softc *sc) argument 3943 re_add_sysctls(struct rl_softc *sc) argument 3979 struct rl_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/gpio/ |
H A D | gpioiic.c | 107 struct gpioiic_softc *sc; local 109 sc = device_get_softc(dev); 110 sc->sc_dev = dev; 111 sc->sc_busdev = device_get_parent(dev); 113 device_get_unit(dev), "scl", &sc->scl_pin)) 114 sc->scl_pin = GPIOIIC_SCL_DFLT; 116 device_get_unit(dev), "sda", &sc->sda_pin)) 117 sc->sda_pin = GPIOIIC_SDA_DFLT; 123 sc->scl_pin = (int)pin; 125 sc 160 struct gpioiic_softc *sc = device_get_softc(dev); local 171 struct gpioiic_softc *sc = device_get_softc(dev); local 186 struct gpioiic_softc *sc = device_get_softc(dev); local 201 struct gpioiic_softc *sc = device_get_softc(dev); local 214 struct gpioiic_softc *sc = device_get_softc(dev); local 227 struct gpioiic_softc *sc; local [all...] |
/freebsd-11-stable/sys/arm/at91/ |
H A D | at91_spi.c | 77 RD4(struct at91_spi_softc *sc, bus_size_t off) argument 80 return (bus_read_4(sc->mem_res, off)); 84 WR4(struct at91_spi_softc *sc, bus_size_t off, uint32_t val) argument 87 bus_write_4(sc->mem_res, off, val); 118 struct at91_spi_softc *sc; local 122 sc = device_get_softc(dev); 124 sc->dev = dev; 125 sx_init(&sc->xfer_mtx, device_get_nameunit(dev)); 147 WR4(sc, SPI_CR, SPI_CR_SWRST); 149 WR4(sc, SPI_C 210 struct at91_spi_softc *sc; local 252 struct at91_spi_softc *sc; local 292 struct at91_spi_softc *sc; local 417 struct at91_spi_softc *sc; local [all...] |
H A D | at91_ohci_fdt.c | 94 struct at91_ohci_softc *sc = device_get_softc(dev); local 99 sc->sc_ohci.sc_bus.parent = dev; 100 sc->sc_ohci.sc_bus.devices = sc->sc_ohci.sc_devices; 101 sc->sc_ohci.sc_bus.devices_max = OHCI_MAX_DEVICES; 102 sc->sc_ohci.sc_bus.dma_bits = 32; 105 if (usb_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, 109 sc->mclk = at91_pmc_clock_ref("mck"); 110 sc->iclk = at91_pmc_clock_ref("ohci_clk"); 111 sc 173 struct at91_ohci_softc *sc = device_get_softc(dev); local [all...] |
/freebsd-11-stable/sys/dev/bxe/ |
H A D | bxe.h | 219 #define BRB_SIZE(sc) (CHIP_IS_E3(sc) ? 1024 : 512) 220 #define MAX_AGG_QS(sc) (CHIP_IS_E1(sc) ? \ 223 #define FW_DROP_LEVEL(sc) (3 + MAX_SPQ_PENDING + MAX_AGG_QS(sc)) 272 #define NUM_SGE_REQ(sc) \ 273 (MAX_AGG_QS(sc) + (BRB_SIZE(sc) - MAX_AGG_QS(sc)) / 499 struct bxe_softc *sc; member in struct:bxe_dma 569 struct bxe_softc *sc; member in struct:bxe_fastpath 2337 reg_poll(struct bxe_softc *sc, uint32_t reg, uint32_t expected, int ms, int wait) argument 2365 bxe_igu_ack_sb_gen(struct bxe_softc *sc, uint8_t igu_sb_id, uint8_t segment, uint16_t index, uint8_t op, uint8_t update, uint32_t igu_addr) argument 2392 bxe_hc_ack_sb(struct bxe_softc *sc, uint8_t sb_id, uint8_t storm, uint16_t index, uint8_t op, uint8_t update) argument 2419 bxe_ack_sb(struct bxe_softc *sc, uint8_t igu_sb_id, uint8_t storm, uint16_t index, uint8_t op, uint8_t update) argument 2444 bxe_hc_ack_int(struct bxe_softc *sc) argument 2455 bxe_igu_ack_int(struct bxe_softc *sc) argument 2468 bxe_ack_int(struct bxe_softc *sc) argument 2479 func_by_vn(struct bxe_softc *sc, int vn) argument 2492 struct bxe_softc *sc = fp->sc; local [all...] |
/freebsd-11-stable/sys/dev/tws/ |
H A D | tws_cam.c | 53 void tws_unmap_request(struct tws_softc *sc, struct tws_request *req); 54 int32_t tws_map_request(struct tws_softc *sc, struct tws_request *req); 55 int tws_bus_scan(struct tws_softc *sc); 56 int tws_cam_attach(struct tws_softc *sc); 57 void tws_cam_detach(struct tws_softc *sc); 62 static int32_t tws_execute_scsi(struct tws_softc *sc, union ccb *ccb); 63 static void tws_freeze_simq(struct tws_softc *sc, struct tws_request *req); 66 static void tws_fill_sg_list(struct tws_softc *sc, void *sgl_src, 68 static void tws_err_complete(struct tws_softc *sc, u_int64_t mfa); 76 static void tws_intr_attn_aen(struct tws_softc *sc); 130 tws_cam_attach(struct tws_softc *sc) argument 199 tws_cam_detach(struct tws_softc *sc) argument 213 tws_bus_scan(struct tws_softc *sc) argument 236 struct tws_softc *sc = (struct tws_softc *)cam_sim_softc(sim); local 338 struct tws_softc *sc = req->sc; local 361 struct tws_softc *sc = req->sc; local 376 struct tws_softc *sc = req->sc; local 455 struct tws_softc *sc = req->sc; local 462 tws_err_complete(struct tws_softc *sc, u_int64_t mfa) argument 521 struct tws_softc *sc = req->sc; local 583 tws_drain_busy_queue(struct tws_softc *sc) argument 618 tws_drain_reserved_reqs(struct tws_softc *sc) argument 650 tws_drain_response_queue(struct tws_softc *sc) argument 659 tws_execute_scsi(struct tws_softc *sc, union ccb *ccb) argument 758 tws_send_scsi_cmd(struct tws_softc *sc, int cmd) argument 796 tws_set_param(struct tws_softc *sc, u_int32_t table_id, u_int32_t param_id, u_int32_t param_size, void *data) argument 843 tws_get_param(struct tws_softc *sc, u_int32_t table_id, u_int32_t param_id, u_int32_t param_size, void *data) argument 904 tws_unmap_request(struct tws_softc *sc, struct tws_request *req) argument 920 tws_map_request(struct tws_softc *sc, struct tws_request *req) argument 962 struct tws_softc *sc = req->sc; local 1010 tws_fill_sg_list(struct tws_softc *sc, void *sgl_src, void *sgl_dest, u_int16_t num_sgl_entries) argument 1062 struct tws_softc *sc = (struct tws_softc *)arg; local 1098 tws_intr_attn_aen(struct tws_softc *sc) argument 1111 tws_intr_attn_error(struct tws_softc *sc) argument 1123 tws_intr_resp(struct tws_softc *sc) argument 1145 struct tws_softc *sc = (struct tws_softc *)cam_sim_softc(sim); local 1154 struct tws_softc *sc = req->sc; local 1199 struct tws_softc *sc = (struct tws_softc *)arg; local 1228 struct tws_softc *sc = (struct tws_softc *)arg; local 1260 struct tws_softc *sc = (struct tws_softc *)arg; local 1302 tws_freeze_simq(struct tws_softc *sc, struct tws_request *req) argument [all...] |
/freebsd-11-stable/sys/mips/beri/ |
H A D | beri_pic.c | 155 bp_read_cfg(struct beripic_softc *sc, int irq) argument 158 KASSERT((irq >= 0 && irq < sc->bp_nsrcs), 159 ("IRQ of of range %d (0-%d)", irq, sc->bp_nsrcs - 1)); 160 return (bus_space_read_8(sc->bp_cfg_bst, sc->bp_cfg_bsh, irq * 8)); 164 bp_write_cfg(struct beripic_softc *sc, int irq, uint64_t config) argument 167 KASSERT((irq >= 0 && irq < sc->bp_nsrcs), 168 ("IRQ of of range %d (0-%d)", irq, sc->bp_nsrcs - 1)); 169 bus_space_write_8(sc->bp_cfg_bst, sc 175 struct beripic_softc *sc; local 221 struct beripic_softc *sc; local 238 struct beripic_softc *sc; local 271 struct beripic_softc *sc; local 458 struct beripic_softc *sc; local 517 struct beripic_softc *sc; local 645 struct beripic_softc *sc; local 660 struct beripic_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/adlink/ |
H A D | adlink.c | 131 struct softc *sc; local 135 sc = arg; 136 u = bus_read_4(sc->res[0], 0x38); 139 bus_write_4(sc->res[0], 0x38, u | 0x003f4000); 141 sc->sample += sc->p0->chunksize / 2; 142 pg = sc->next; 143 *(pg->sample) = sc->sample; 145 u = bus_read_4(sc->res[1], 0x18); 147 sc 167 struct softc *sc; local 195 struct softc *sc; local 367 struct softc *sc; local [all...] |
/freebsd-11-stable/sys/amd64/vmm/amd/ |
H A D | svm_msr.h | 37 void svm_msr_guest_init(struct svm_softc *sc, int vcpu); 38 void svm_msr_guest_enter(struct svm_softc *sc, int vcpu); 39 void svm_msr_guest_exit(struct svm_softc *sc, int vcpu); 41 int svm_wrmsr(struct svm_softc *sc, int vcpu, u_int num, uint64_t val, 43 int svm_rdmsr(struct svm_softc *sc, int vcpu, u_int num, uint64_t *result,
|
/freebsd-11-stable/sys/dev/my/ |
H A D | if_my.c | 142 #define MY_SETBIT(sc, reg, x) CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) 143 #define MY_CLRBIT(sc, reg, x) CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x)) 168 my_send_cmd_to_phy(struct my_softc * sc, int opcode, int regad) argument 174 MY_LOCK_ASSERT(sc); 177 miir = CSR_READ_4(sc, MY_MANAGEMENT); 186 CSR_WRITE_4(sc, MY_MANAGEMEN 221 my_phy_readreg(struct my_softc * sc, int reg) argument 265 my_phy_writereg(struct my_softc * sc, int reg, int data) argument 308 my_setmulti(struct my_softc * sc) argument 364 my_autoneg_xmit(struct my_softc * sc) argument 384 struct my_softc *sc; local 395 my_autoneg_mii(struct my_softc * sc, int flag, int verbose) argument 561 my_getmode_mii(struct my_softc * sc) argument 658 my_setmode_mii(struct my_softc * sc, int media) argument 718 my_setcfg(struct my_softc * sc, int bmcr) argument 752 my_reset(struct my_softc * sc) argument 803 struct my_softc *sc; local 988 struct my_softc *sc; local 1015 my_list_tx_init(struct my_softc * sc) argument 1043 my_list_rx_init(struct my_softc * sc) argument 1077 my_newbuf(struct my_softc * sc, struct my_chain_onefrag * c) argument 1106 my_rxeof(struct my_softc * sc) argument 1189 my_txeof(struct my_softc * sc) argument 1243 my_txeoc(struct my_softc * sc) argument 1268 struct my_softc *sc; local 1331 my_encap(struct my_softc * sc, struct my_chain * c, struct mbuf * m_head) argument 1389 struct my_softc *sc; local 1400 struct my_softc *sc; local 1470 struct my_softc *sc = xsc; local 1478 my_init_locked(struct my_softc *sc) argument 1575 struct my_softc *sc; local 1600 struct my_softc *sc; local 1657 struct my_softc *sc = ifp->if_softc; local 1692 struct my_softc *sc; local 1718 my_stop(struct my_softc * sc) argument 1767 struct my_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/gem/ |
H A D | if_gemvar.h | 136 #define GEM_IS_APPLE(sc) \ 137 ((sc)->sc_variant == GEM_APPLE_GMAC || \ 138 (sc)->sc_variant == GEM_APPLE_K2_GMAC) 182 #define GEM_BANKN_BARRIER(n, sc, offs, len, flags) \ 183 bus_barrier((sc)->sc_res[(n)], (offs), (len), (flags)) 184 #define GEM_BANK1_BARRIER(sc, offs, len, flags) \ 185 GEM_BANKN_BARRIER(GEM_RES_BANK1, (sc), (offs), (len), (flags)) 186 #define GEM_BANK2_BARRIER(sc, offs, len, flags) \ 187 GEM_BANKN_BARRIER(GEM_RES_BANK2, (sc), (offs), (len), (flags)) 189 #define GEM_BANKN_READ_M(n, m, sc, off [all...] |
/freebsd-11-stable/sys/dev/ow/ |
H A D | owc_gpiobus.c | 122 struct owc_gpiobus_softc *sc; local 126 sc = device_get_softc(dev); 127 sc->sc_dev = dev; 128 sc->sc_busdev = device_get_parent(dev); 129 OWC_GPIOBUS_LOCK_INIT(sc); 143 struct owc_gpiobus_softc *sc; local 145 sc = device_get_softc(dev); 146 OWC_GPIOBUS_LOCK_DESTROY(sc); 160 #define GETBUS(sc) GPIOBUS_ACQUIRE_BUS((sc) 188 struct owc_gpiobus_softc *sc; local 229 struct owc_gpiobus_softc *sc; local 273 struct owc_gpiobus_softc *sc; local 334 struct owc_gpiobus_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/bhnd/nvram/ |
H A D | bhnd_sprom.c | 57 #define SPROM_LOCK_INIT(sc) \ 58 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \ 60 #define SPROM_LOCK(sc) mtx_lock(&(sc)->mtx) 61 #define SPROM_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 62 #define SPROM_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what) 63 #define SPROM_LOCK_DESTROY(sc) mtx_destro 102 struct bhnd_sprom_softc *sc; local 156 struct bhnd_sprom_softc *sc; local 174 struct bhnd_sprom_softc *sc; local 193 struct bhnd_sprom_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/nand/ |
H A D | nandsim_log.c | 53 nandsim_log_init(struct nandsim_softc *sc, char *filename) argument 58 error = alq_open(&sc->alq, filename, 62 sc->log_buff = malloc(log_size, M_NANDSIM, M_WAITOK | M_ZERO); 63 if (!sc->log_buff) 71 nandsim_log_close(struct nandsim_softc *sc) argument 76 alq_write(sc->alq, (void *) string, ALQ_NOWAIT); 79 alq_close(sc->alq); 81 free(sc->log_buff, M_NANDSIM); 82 sc->log_buff = NULL; 91 struct nandsim_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/netfpga10g/nf10bmac/ |
H A D | if_nf10bmac_fdt.c | 78 struct nf10bmac_softc *sc; local 81 sc = device_get_softc(dev); 82 sc->nf10bmac_dev = dev; 83 sc->nf10bmac_unit = device_get_unit(dev); 95 sc->nf10bmac_ctrl_rid = 0; 96 sc->nf10bmac_ctrl_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 97 &sc->nf10bmac_ctrl_rid, RF_ACTIVE); 98 if (sc->nf10bmac_ctrl_res == NULL) { 104 device_printf(sc->nf10bmac_dev, "CTRL region at mem %p-%p\n", 105 (void *)rman_get_start(sc [all...] |
/freebsd-11-stable/sys/dev/stg/ |
H A D | tmc18c30_subr.c | 67 struct stg_softc * sc = device_get_softc(dev); local 71 mtx_init(&sc->sc_sclow.sl_lock, "stg", NULL, MTX_DEF); 72 sc->port_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 73 &sc->port_rid, RF_ACTIVE); 74 if (sc->port_res == NULL) { 79 sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irq_rid, 81 if (sc->irq_res == NULL) { 95 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc 108 struct stg_softc *sc = device_get_softc(dev); local 128 struct stg_softc *sc = device_get_softc(dev); local 139 struct stg_softc *sc; local 159 struct stg_softc *sc = device_get_softc(dev); local 170 struct stg_softc *sc; local [all...] |
/freebsd-11-stable/sys/arm/freescale/imx/ |
H A D | imx6_snvs.c | 82 RD4(struct snvs_softc *sc, bus_size_t offset) argument 85 return (bus_read_4(sc->memres, offset)); 89 WR4(struct snvs_softc *sc, bus_size_t offset, uint32_t value) argument 92 bus_write_4(sc->memres, offset, value); 96 snvs_rtc_enable(struct snvs_softc *sc, bool enable) argument 101 sc->lpcr |= LPCR_SRTC_ENV; 103 sc->lpcr &= ~LPCR_SRTC_ENV; 104 WR4(sc, SNVS_LPCR, sc->lpcr); 107 enbit = sc 115 struct snvs_softc *sc; local 149 struct snvs_softc *sc; local 189 struct snvs_softc *sc; local 211 struct snvs_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/nge/ |
H A D | if_nge.c | 246 #define NGE_SETBIT(sc, reg, x) \ 247 CSR_WRITE_4(sc, reg, \ 248 CSR_READ_4(sc, reg) | (x)) 250 #define NGE_CLRBIT(sc, reg, x) \ 251 CSR_WRITE_4(sc, reg, \ 252 CSR_READ_4(sc, reg) & ~(x)) 255 CSR_WRITE_4(sc, NGE_MEAR, CSR_READ_4(sc, NGE_MEAR) | (x)) 258 CSR_WRITE_4(sc, NGE_MEAR, CSR_READ_4(sc, NGE_MEA 261 nge_delay(struct nge_softc *sc) argument 270 nge_eeprom_idle(struct nge_softc *sc) argument 297 nge_eeprom_putbyte(struct nge_softc *sc, int addr) argument 324 nge_eeprom_getword(struct nge_softc *sc, int addr, uint16_t *dest) argument 367 nge_read_eeprom(struct nge_softc *sc, caddr_t dest, int off, int cnt) argument 385 struct nge_softc *sc; local 403 struct nge_softc *sc; local 415 struct nge_softc *sc; local 465 struct nge_softc *sc; local 513 struct nge_softc *sc; local 663 nge_rxfilter(struct nge_softc *sc) argument 750 nge_reset(struct nge_softc *sc) argument 821 struct nge_softc *sc; local 988 struct nge_softc *sc; local 1047 nge_dma_alloc(struct nge_softc *sc) argument 1220 nge_dma_free(struct nge_softc *sc) argument 1296 nge_list_tx_init(struct nge_softc *sc) argument 1332 nge_list_rx_init(struct nge_softc *sc) argument 1361 nge_discard_rxbuf(struct nge_softc *sc, int idx) argument 1374 nge_newbuf(struct nge_softc *sc, int idx) argument 1438 nge_rxeof(struct nge_softc *sc) argument 1614 nge_txeof(struct nge_softc *sc) argument 1676 struct nge_softc *sc; local 1698 nge_stats_update(struct nge_softc *sc) argument 1757 struct nge_softc *sc; local 1806 struct nge_softc *sc; local 1878 nge_encap(struct nge_softc *sc, struct mbuf **m_head) argument 1985 struct nge_softc *sc; local 1996 struct nge_softc *sc; local 2049 struct nge_softc *sc = xsc; local 2057 nge_init_locked(struct nge_softc *sc) argument 2230 struct nge_softc *sc; local 2252 struct nge_softc *sc; local 2267 struct nge_softc *sc = ifp->if_softc; local 2408 nge_watchdog(struct nge_softc *sc) argument 2429 nge_stop_mac(struct nge_softc *sc) argument 2459 nge_stop(struct nge_softc *sc) argument 2520 nge_wol(struct nge_softc *sc) argument 2591 struct nge_softc *sc; local 2607 struct nge_softc *sc; local 2641 nge_sysctl_node(struct nge_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/altera/jtag_uart/ |
H A D | altera_jtag_uart_fdt.c | 80 struct altera_jtag_uart_softc *sc; local 84 sc = device_get_softc(dev); 85 sc->ajus_dev = dev; 86 sc->ajus_unit = device_get_unit(dev); 87 sc->ajus_mem_rid = 0; 88 sc->ajus_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 89 &sc->ajus_mem_rid, RF_ACTIVE); 90 if (sc->ajus_mem_res == NULL) { 100 sc->ajus_irq_rid = 0; 101 sc 122 struct altera_jtag_uart_softc *sc; local [all...] |
H A D | altera_jtag_uart_nexus.c | 71 struct altera_jtag_uart_softc *sc; local 75 sc = device_get_softc(dev); 76 sc->ajus_dev = dev; 77 sc->ajus_unit = device_get_unit(dev); 78 sc->ajus_mem_rid = 0; 79 sc->ajus_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 80 &sc->ajus_mem_rid, RF_ACTIVE); 81 if (sc->ajus_mem_res == NULL) { 91 sc->ajus_irq_rid = 0; 92 sc 113 struct altera_jtag_uart_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/altera/sdcard/ |
H A D | altera_sdcard.h | 69 #define ALTERA_SDCARD_LOCK(sc) mtx_lock(&(sc)->as_lock) 70 #define ALTERA_SDCARD_LOCK_ASSERT(sc) mtx_assert(&(sc)->as_lock, MA_OWNED) 71 #define ALTERA_SDCARD_LOCK_DESTROY(sc) mtx_destroy(&(sc)->as_lock) 72 #define ALTERA_SDCARD_LOCK_INIT(sc) mtx_init(&(sc)->as_lock, \ 74 #define ALTERA_SDCARD_UNLOCK(sc) mtx_unlock(&(sc) [all...] |
/freebsd-11-stable/sys/dev/smbus/ |
H A D | smbconf.c | 48 struct smbus_softc *sc = device_get_softc(bus); local 51 mtx_lock(&sc->lock); 52 if (sc->owner) 53 SMBUS_INTR(sc->owner, devaddr, low, high, error); 54 mtx_unlock(&sc->lock); 87 smbus_poll(struct smbus_softc *sc, int how) argument 93 error = msleep(sc, &sc->lock, SMBPRI|PCATCH, "smbreq", 0); 97 error = msleep(sc, &sc 118 struct smbus_softc *sc = device_get_softc(bus); local 162 struct smbus_softc *sc = device_get_softc(bus); local [all...] |
/freebsd-11-stable/sys/arm/nvidia/tegra124/ |
H A D | tegra124_cpufreq.c | 226 freq_to_voltage(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 234 for (i = 0; i < sc->cpu_def->speedo_nitems; i++) { 235 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { 236 ent = &sc->cpu_def->speedo_tbl[i]; 241 ent = &sc->cpu_def->speedo_tbl[sc->cpu_def->speedo_nitems - 1]; 242 scale = sc->cpu_def->speedo_scale; 246 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); 247 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + 249 step_uvolt = sc 265 build_speed_points(struct tegra124_cpufreq_softc *sc) argument 279 get_speed_point(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 297 struct tegra124_cpufreq_softc *sc; local 322 set_cpu_freq(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 374 struct tegra124_cpufreq_softc *sc; local 397 struct tegra124_cpufreq_softc *sc; local 428 get_fdt_resources(struct tegra124_cpufreq_softc *sc, phandle_t node) argument 503 struct tegra124_cpufreq_softc *sc; local 557 struct tegra124_cpufreq_softc *sc; local [all...] |
/freebsd-11-stable/sys/dev/urtwn/ |
H A D | if_urtwn.c | 110 #define URTWN_DPRINTF(_sc, _m, ...) do { (void) sc; } while (0) 278 static int urtwn_tx_beacon(struct urtwn_softc *sc, 502 struct urtwn_softc *sc = device_get_softc(self); local 503 struct ieee80211com *ic = &sc->sc_ic; 507 sc->sc_udev = uaa->device; 508 sc->sc_dev = self; 510 sc->chip |= URTWN_CHIP_88E; 514 if (resource_int_value(device_get_name(sc->sc_dev), 515 device_get_unit(sc->sc_dev), "debug", &debug) == 0) 516 sc 667 urtwn_sysctlattach(struct urtwn_softc *sc) argument 682 struct urtwn_softc *sc = device_get_softc(self); local 711 urtwn_drain_mbufq(struct urtwn_softc *sc) argument 725 urtwn_do_request(struct urtwn_softc *sc, struct usb_device_request *req, void *data) argument 753 struct urtwn_softc *sc = ic->ic_softc; local 805 struct urtwn_softc *sc = ic->ic_softc; local 827 urtwn_vap_clear_tx(struct urtwn_softc *sc, struct ieee80211vap *vap) argument 837 urtwn_vap_clear_tx_queue(struct urtwn_softc *sc, urtwn_datahead *head, struct ieee80211vap *vap) argument 862 urtwn_rx_copy_to_mbuf(struct urtwn_softc *sc, struct r92c_rx_stat *stat, int totlen) argument 916 struct urtwn_softc *sc = data->sc; local 963 urtwn_rxeof(struct urtwn_softc *sc, uint8_t *buf, int len) argument 1014 urtwn_r88e_ratectl_tx_complete(struct urtwn_softc *sc, void *arg) argument 1049 urtwn_rx_frame(struct urtwn_softc *sc, struct mbuf *m, int8_t *rssi_p) argument 1128 struct urtwn_softc *sc = usbd_xfer_softc(xfer); local 1225 urtwn_txeof(struct urtwn_softc *sc, struct urtwn_data *data, int status) argument 1245 urtwn_alloc_list(struct urtwn_softc *sc, struct urtwn_data data[], int ndata, int maxsz) argument 1271 urtwn_alloc_rx_list(struct urtwn_softc *sc) argument 1290 urtwn_alloc_tx_list(struct urtwn_softc *sc) argument 1310 urtwn_free_list(struct urtwn_softc *sc, struct urtwn_data data[], int ndata) argument 1329 urtwn_free_rx_list(struct urtwn_softc *sc) argument 1338 urtwn_free_tx_list(struct urtwn_softc *sc) argument 1350 struct urtwn_softc *sc = usbd_xfer_softc(xfer); local 1428 _urtwn_getbuf(struct urtwn_softc *sc) argument 1443 urtwn_getbuf(struct urtwn_softc *sc) argument 1458 urtwn_write_region_1(struct urtwn_softc *sc, uint16_t addr, uint8_t *buf, int len) argument 1472 urtwn_write_1(struct urtwn_softc *sc, uint16_t addr, uint8_t val) argument 1478 urtwn_write_2(struct urtwn_softc *sc, uint16_t addr, uint16_t val) argument 1485 urtwn_write_4(struct urtwn_softc *sc, uint16_t addr, uint32_t val) argument 1492 urtwn_read_region_1(struct urtwn_softc *sc, uint16_t addr, uint8_t *buf, int len) argument 1506 urtwn_read_1(struct urtwn_softc *sc, uint16_t addr) argument 1516 urtwn_read_2(struct urtwn_softc *sc, uint16_t addr) argument 1526 urtwn_read_4(struct urtwn_softc *sc, uint16_t addr) argument 1536 urtwn_fw_cmd(struct urtwn_softc *sc, uint8_t id, const void *buf, int len) argument 1584 struct urtwn_softc *sc = arg; local 1613 urtwn_cmd_sleepable(struct urtwn_softc *sc, const void *ptr, size_t len, CMD_FUNC_PROTO) argument 1640 urtwn_rf_write(struct urtwn_softc *sc, int chain, uint8_t addr, uint32_t val) argument 1647 urtwn_r92c_rf_write(struct urtwn_softc *sc, int chain, uint8_t addr, uint32_t val) argument 1656 urtwn_r88e_rf_write(struct urtwn_softc *sc, int chain, uint8_t addr, uint32_t val) argument 1665 urtwn_rf_read(struct urtwn_softc *sc, int chain, uint8_t addr) argument 1694 urtwn_llt_write(struct urtwn_softc *sc, uint32_t addr, uint32_t data) argument 1716 urtwn_efuse_read_next(struct urtwn_softc *sc, uint8_t *val) argument 1753 urtwn_efuse_read_data(struct urtwn_softc *sc, uint8_t *rom, uint8_t off, uint8_t msk) argument 1782 urtwn_dump_rom_contents(struct urtwn_softc *sc, uint8_t *rom, uint16_t size) argument 1801 urtwn_efuse_read(struct urtwn_softc *sc, uint8_t *rom, uint16_t size) argument 1854 urtwn_efuse_switch_power(struct urtwn_softc *sc) argument 1890 urtwn_read_chipid(struct urtwn_softc *sc) argument 1918 urtwn_read_rom(struct urtwn_softc *sc) argument 1951 urtwn_r88e_read_rom(struct urtwn_softc *sc) argument 2008 urtwn_ra_init(struct urtwn_softc *sc) argument 2122 urtwn_init_beacon(struct urtwn_softc *sc, struct urtwn_vap *uvp) argument 2146 urtwn_setup_beacon(struct urtwn_softc *sc, struct ieee80211_node *ni) argument 2187 struct urtwn_softc *sc = vap->iv_ic->ic_softc; local 2221 urtwn_tx_beacon(struct urtwn_softc *sc, struct urtwn_vap *uvp) argument 2245 struct urtwn_softc *sc = vap->iv_ic->ic_softc; local 2282 urtwn_key_set_cb(struct urtwn_softc *sc, union sec_param *data) argument 2351 urtwn_key_del_cb(struct urtwn_softc *sc, union sec_param *data) argument 2372 struct urtwn_softc *sc = vap->iv_ic->ic_softc; local 2401 struct urtwn_softc *sc = vap->iv_ic->ic_softc; local 2428 struct urtwn_softc *sc = vap->iv_ic->ic_softc; local 2464 urtwn_tsf_sync_enable(struct urtwn_softc *sc, struct ieee80211vap *vap) argument 2497 urtwn_get_tsf(struct urtwn_softc *sc, uint64_t *buf) argument 2503 urtwn_set_led(struct urtwn_softc *sc, int led, int on) argument 2530 urtwn_set_mode(struct urtwn_softc *sc, uint8_t mode) argument 2545 struct urtwn_softc *sc = vap->iv_ic->ic_softc; local 2570 struct urtwn_softc *sc = ic->ic_softc; local 2747 struct urtwn_softc *sc = arg; local 2754 urtwn_calib_cb(struct urtwn_softc *sc, union sec_param *data) argument 2766 struct urtwn_softc *sc = arg; local 2779 urtwn_update_avgrssi(struct urtwn_softc *sc, int rate, int8_t rssi) argument 2817 urtwn_get_rssi(struct urtwn_softc *sc, int rate, void *physt) argument 2843 urtwn_r88e_get_rssi(struct urtwn_softc *sc, int rate, void *physt) argument 2894 urtwn_tx_data(struct urtwn_softc *sc, struct ieee80211_node *ni, struct mbuf *m, struct urtwn_data *data) argument 3129 urtwn_tx_raw(struct urtwn_softc *sc, struct ieee80211_node *ni, struct mbuf *m, struct urtwn_data *data, const struct ieee80211_bpf_params *params) argument 3237 urtwn_tx_start(struct urtwn_softc *sc, struct mbuf *m, uint8_t type, struct urtwn_data *data) argument 3281 struct urtwn_softc *sc = ic->ic_softc; local 3301 urtwn_start(struct urtwn_softc *sc) argument 3337 struct urtwn_softc *sc = ic->ic_softc; local 3358 urtwn_power_on(struct urtwn_softc *sc) argument 3365 urtwn_r92c_power_on(struct urtwn_softc *sc) argument 3471 urtwn_r88e_power_on(struct urtwn_softc *sc) argument 3549 urtwn_power_off(struct urtwn_softc *sc) argument 3556 urtwn_r92c_power_off(struct urtwn_softc *sc) argument 3684 urtwn_r88e_power_off(struct urtwn_softc *sc) argument 3812 urtwn_llt_init(struct urtwn_softc *sc) argument 3844 urtwn_fw_reset(struct urtwn_softc *sc) argument 3864 urtwn_r88e_fw_reset(struct urtwn_softc *sc) argument 3874 urtwn_fw_loadpage(struct urtwn_softc *sc, int page, const uint8_t *buf, int len) argument 3905 urtwn_load_firmware(struct urtwn_softc *sc) argument 4028 urtwn_dma_init(struct urtwn_softc *sc) argument 4165 urtwn_mac_init(struct urtwn_softc *sc) argument 4192 urtwn_bb_init(struct urtwn_softc *sc) argument 4310 urtwn_rf_init(struct urtwn_softc *sc) argument 4389 urtwn_cam_init(struct urtwn_softc *sc) argument 4397 urtwn_cam_write(struct urtwn_softc *sc, uint32_t addr, uint32_t data) argument 4414 urtwn_pa_bias_init(struct urtwn_softc *sc) argument 4435 urtwn_rxfilter_init(struct urtwn_softc *sc) argument 4497 urtwn_edca_init(struct urtwn_softc *sc) argument 4510 urtwn_write_txpower(struct urtwn_softc *sc, int chain, uint16_t power[URTWN_RIDX_COUNT]) argument 4570 urtwn_get_txpower(struct urtwn_softc *sc, int chain, struct ieee80211_channel *c, struct ieee80211_channel *extc, uint16_t power[URTWN_RIDX_COUNT]) argument 4669 urtwn_r88e_get_txpower(struct urtwn_softc *sc, int chain, struct ieee80211_channel *c, struct ieee80211_channel *extc, uint16_t power[URTWN_RIDX_COUNT]) argument 4739 urtwn_set_txpower(struct urtwn_softc *sc, struct ieee80211_channel *c, struct ieee80211_channel *extc) argument 4757 urtwn_set_rx_bssid_all(struct urtwn_softc *sc, int enable) argument 4770 urtwn_set_gain(struct urtwn_softc *sc, uint8_t gain) argument 4788 struct urtwn_softc *sc = ic->ic_softc; local 4804 struct urtwn_softc *sc = ic->ic_softc; local 4835 struct urtwn_softc *sc = ic->ic_softc; local 4853 struct urtwn_softc *sc = ic->ic_softc; local 4891 urtwn_update_slot_cb(struct urtwn_softc *sc, union sec_param *data) argument 4906 urtwn_update_aifs(struct urtwn_softc *sc, uint8_t slottime) argument 4937 urtwn_set_multi(struct urtwn_softc *sc) argument 4981 urtwn_set_promisc(struct urtwn_softc *sc) argument 5023 struct urtwn_softc *sc = ic->ic_softc; local 5034 struct urtwn_softc *sc = ic->ic_softc; local 5062 struct urtwn_softc *sc = ni->ni_ic->ic_softc; local 5092 struct urtwn_softc *sc = ni->ni_ic->ic_softc; local 5104 urtwn_set_chan(struct urtwn_softc *sc, struct ieee80211_channel *c, struct ieee80211_channel *extc) argument 5189 urtwn_iq_calib(struct urtwn_softc *sc) argument 5195 urtwn_lc_calib(struct urtwn_softc *sc) argument 5238 urtwn_temp_calib(struct urtwn_softc *sc) argument 5296 urtwn_setup_static_keys(struct urtwn_softc *sc, struct urtwn_vap *uvp) argument 5310 urtwn_init(struct urtwn_softc *sc) argument 5553 urtwn_stop(struct urtwn_softc *sc) argument 5576 urtwn_abort_xfers(struct urtwn_softc *sc) argument 5592 struct urtwn_softc *sc = ic->ic_softc; local 5644 urtwn_ms_delay(struct urtwn_softc *sc) argument [all...] |
/freebsd-11-stable/sys/dev/alc/ |
H A D | if_alc.c | 267 struct alc_softc *sc; local 270 sc = device_get_softc(dev); 271 if ((sc->alc_flags & ALC_FLAG_AR816X_FAMILY) != 0) 272 v = alc_mii_readreg_816x(sc, phy, reg); 274 v = alc_mii_readreg_813x(sc, phy, reg); 279 alc_mii_readreg_813x(struct alc_softc *sc, int phy, int reg) argument 290 if ((sc->alc_flags & ALC_FLAG_FASTETHER) != 0 && 294 CSR_WRITE_4(sc, ALC_MDIO, MDIO_OP_EXECUTE | MDIO_OP_READ | 298 v = CSR_READ_4(sc, ALC_MDIO); 304 device_printf(sc 312 alc_mii_readreg_816x(struct alc_softc *sc, int phy, int reg) argument 341 struct alc_softc *sc; local 353 alc_mii_writereg_813x(struct alc_softc *sc, int phy, int reg, int val) argument 375 alc_mii_writereg_816x(struct alc_softc *sc, int phy, int reg, int val) argument 403 struct alc_softc *sc; local 449 alc_miidbg_readreg(struct alc_softc *sc, int reg) argument 459 alc_miidbg_writereg(struct alc_softc *sc, int reg, int val) argument 469 alc_miiext_readreg(struct alc_softc *sc, int devaddr, int reg) argument 499 alc_miiext_writereg(struct alc_softc *sc, int devaddr, int reg, int val) argument 528 alc_dsp_fixup(struct alc_softc *sc, int media) argument 602 struct alc_softc *sc; local 622 struct alc_softc *sc; local 634 alc_mediachange_locked(struct alc_softc *sc) argument 681 alc_get_macaddr(struct alc_softc *sc) argument 691 alc_get_macaddr_813x(struct alc_softc *sc) argument 792 alc_get_macaddr_816x(struct alc_softc *sc) argument 851 alc_get_macaddr_par(struct alc_softc *sc) argument 866 alc_disable_l0s_l1(struct alc_softc *sc) argument 883 alc_phy_reset(struct alc_softc *sc) argument 893 alc_phy_reset_813x(struct alc_softc *sc) argument 1007 alc_phy_reset_816x(struct alc_softc *sc) argument 1080 alc_phy_down(struct alc_softc *sc) argument 1129 alc_aspm(struct alc_softc *sc, int init, int media) argument 1139 alc_aspm_813x(struct alc_softc *sc, int media) argument 1227 alc_aspm_816x(struct alc_softc *sc, int init) argument 1262 alc_init_pcie(struct alc_softc *sc) argument 1337 alc_config_msi(struct alc_softc *sc) argument 1369 struct alc_softc *sc; local 1662 struct alc_softc *sc; local 1726 alc_sysctl_node(struct alc_softc *sc) argument 1929 alc_check_boundary(struct alc_softc *sc) argument 1960 alc_dma_alloc(struct alc_softc *sc) argument 2299 alc_dma_free(struct alc_softc *sc) argument 2440 alc_setlinkspeed(struct alc_softc *sc) argument 2503 alc_setwol(struct alc_softc *sc) argument 2513 alc_setwol_813x(struct alc_softc *sc) argument 2576 alc_setwol_816x(struct alc_softc *sc) argument 2644 struct alc_softc *sc; local 2659 struct alc_softc *sc; local 2689 alc_encap(struct alc_softc *sc, struct mbuf **m_head) argument 2923 struct alc_softc *sc; local 2934 struct alc_softc *sc; local 2994 alc_watchdog(struct alc_softc *sc) argument 3022 struct alc_softc *sc; local 3133 alc_mac_config(struct alc_softc *sc) argument 3170 alc_stats_clear(struct alc_softc *sc) argument 3202 alc_stats_update(struct alc_softc *sc) argument 3320 struct alc_softc *sc; local 3338 struct alc_softc *sc; local 3408 alc_txeof(struct alc_softc *sc) argument 3474 alc_newbuf(struct alc_softc *sc, struct alc_rxdesc *rxd) argument 3512 alc_rxintr(struct alc_softc *sc, int count) argument 3623 alc_rxeof(struct alc_softc *sc, struct rx_rdesc *rrd) argument 3746 struct alc_softc *sc; local 3769 alc_osc_reset(struct alc_softc *sc) argument 3807 alc_reset(struct alc_softc *sc) argument 3894 struct alc_softc *sc; local 3903 alc_init_locked(struct alc_softc *sc) argument 4296 alc_stop(struct alc_softc *sc) argument 4361 alc_stop_mac(struct alc_softc *sc) argument 4385 alc_start_queue(struct alc_softc *sc) argument 4413 alc_stop_queue(struct alc_softc *sc) argument 4450 alc_init_tx_ring(struct alc_softc *sc) argument 4474 alc_init_rx_ring(struct alc_softc *sc) argument 4508 alc_init_rr_ring(struct alc_softc *sc) argument 4525 alc_init_cmb(struct alc_softc *sc) argument 4538 alc_init_smb(struct alc_softc *sc) argument 4551 alc_rxvlan(struct alc_softc *sc) argument 4568 alc_rxfilter(struct alc_softc *sc) argument [all...] |