| /f-stack/dpdk/drivers/net/bnx2x/ |
| H A D | bnx2x.c | 145 dma->sc = sc; in bnx2x_dma_alloc() 2169 sc = txq->sc; in bnx2x_tx_encap() 2963 storm_memset_cmng(sc, &sc->cmng, SC_PORT(sc)); in bnx2x_link_attn() 3579 storm_memset_cmng(sc, &sc->cmng, SC_PORT(sc)); in bnx2x_config_mf_bw() 4955 fp->sc = sc; in bnx2x_init_eth_fp() 5528 storm_memset_cmng(sc, &sc->cmng, SC_PORT(sc)); in bnx2x_pf_init() 5796 sc->fp->index, SC_FUNC(sc), SC_FUNC(sc), in bnx2x_init_objs() 7047 sc->link_params.sc = sc; in bnx2x_link_status_update() 8076 sc->link_params.sc = sc; in bnx2x_get_shmem_info() 8983 fp->sc = sc; in bnx2x_alloc_hsi_mem() [all …]
|
| H A D | bnx2x.h | 569 #define bnx2x_fcoe_fp(sc) (&sc->fp[FCOE_IDX(sc)]) argument 571 #define bnx2x_fcoe_inner_sp_obj(sc) (&sc->sp_objs[FCOE_IDX(sc)]) argument 576 #define bnx2x_ooo_fp(sc) (&sc->fp[OOO_IDX(sc)]) argument 578 #define bnx2x_ooo_inner_sp_obj(sc) (&sc->sp_objs[OOO_IDX(sc)]) argument 582 #define bnx2x_fwd_fp(sc) (&sc->fp[FWD_IDX(sc)]) argument 584 #define bnx2x_fwd_inner_sp_obj(sc) (&sc->sp_objs[FWD_IDX(sc)]) argument 1113 #define VNIC_ID(sc) SC_VN(sc) argument 1119 #define SC_FW_MB_IDX(sc) SC_FW_MB_IDX_VN(sc, SC_VN(sc)) argument 1592 #define SHMEM_RD(sc, field) REG_RD(sc, SHMEM_ADDR(sc, field)) argument 1606 #define MFCFG_RD(sc, field) REG_RD(sc, MFCFG_ADDR(sc, field)) argument [all …]
|
| /f-stack/freebsd/arm/broadcom/bcm2835/ |
| H A D | bcm2835_bsc.c | 252 sc, sizeof(*sc), in bcm_bsc_sysctl_init() 256 sc, sizeof(*sc), in bcm_bsc_sysctl_init() 260 sc, sizeof(*sc), in bcm_bsc_sysctl_init() 264 sc, sizeof(*sc), in bcm_bsc_sysctl_init() 386 sc->sc_data = sc->sc_curmsg->buf; in bcm_bsc_empty_rx_fifo() 387 sc->sc_dlen = sc->sc_curmsg->len; in bcm_bsc_empty_rx_fifo() 388 sc->sc_resid = sc->sc_dlen; in bcm_bsc_empty_rx_fifo() 410 sc->sc_data = sc->sc_curmsg->buf; in bcm_bsc_fill_tx_fifo() 412 sc->sc_resid = sc->sc_dlen; in bcm_bsc_fill_tx_fifo() 432 sc->sc_replen -= sc->sc_dlen; in bcm_bsc_fill_tx_fifo() [all …]
|
| /f-stack/freebsd/arm/ti/ |
| H A D | ti_adc.c | 96 evdev_push_event(sc->sc_evdev, EV_ABS, ABS_X, sc->sc_x); in ti_adc_ev_report() 97 evdev_push_event(sc->sc_evdev, EV_ABS, ABS_Y, sc->sc_y); in ti_adc_ev_report() 306 sc = input->sc; in ti_adc_enable_proc() 338 sc = input->sc; in ti_adc_open_delay_proc() 366 sc = input->sc; in ti_adc_samples_avg_proc() 475 if ((sc->sc_x != x) || (sc->sc_y != y)) { in ti_adc_tsc_read_data() 607 input->sc = sc; in ti_adc_inputs_init() 632 sc->sc_xn_bit | sc->sc_yn_bit | sc->sc_yp_bit; in ti_adc_tsc_init() 651 sc->sc_xp_bit | sc->sc_xn_bit | sc->sc_yp_bit; in ti_adc_tsc_init() 671 sc->sc_xn_bit | ADC_STEP_INP(sc->sc_xp_inp) | in ti_adc_tsc_init() [all …]
|
| H A D | ti_sdma.c | 326 if (sc == NULL) in ti_sdma_activate_channel() 409 if (sc == NULL) in ti_sdma_deactivate_channel() 464 if (sc == NULL) in ti_sdma_disable_channel_irq() 522 if (sc == NULL) in ti_sdma_enable_channel_irq() 588 if (sc == NULL) in ti_sdma_get_channel_status() 634 if (sc == NULL) in ti_sdma_start_xfer() 728 if (sc == NULL) in ti_sdma_start_xfer_packet() 806 if (sc == NULL) in ti_sdma_stop_xfer() 855 if (sc == NULL) in ti_sdma_set_xfer_endianess() 900 if (sc == NULL) in ti_sdma_set_xfer_burst() [all …]
|
| H A D | ti_i2c.c | 242 amount = sc->sc_buffer->len - sc->sc_buffer_pos; in ti_i2c_transfer_intr() 251 sc->sc_buffer->len - sc->sc_buffer_pos); in ti_i2c_transfer_intr() 256 sc->sc_buffer->buf[sc->sc_buffer_pos++] = in ti_i2c_transfer_intr() 278 amount = sc->sc_buffer->len - sc->sc_buffer_pos; in ti_i2c_transfer_intr() 287 sc->sc_buffer->len - sc->sc_buffer_pos); in ti_i2c_transfer_intr() 293 sc->sc_buffer->buf[sc->sc_buffer_pos++]); in ti_i2c_transfer_intr() 382 mtx_sleep(sc, &sc->sc_mtx, 0, "i2cbuswait", 0); in ti_i2c_transfer() 441 err = mtx_sleep(sc, &sc->sc_mtx, 0, "i2ciowait", sc->sc_timeout); in ti_i2c_transfer() 520 ti_i2c_write_2(sc, I2C_REG_CON, sc->sc_con_reg); in ti_i2c_reset() 544 ti_i2c_write_2(sc, I2C_REG_CON, sc->sc_con_reg); in ti_i2c_reset() [all …]
|
| H A D | ti_spi.c | 184 &sc->sc_numcs, sizeof(sc->sc_numcs))) <= 0) { in ti_spi_attach() 196 sc->sc_bst = rman_get_bustag(sc->sc_mem_res); in ti_spi_attach() 197 sc->sc_bsh = rman_get_bushandle(sc->sc_mem_res); in ti_spi_attach() 210 NULL, ti_spi_intr, sc, &sc->sc_intrhand)) { in ti_spi_attach() 309 bytes = min(sc->sc_len - sc->sc_written, sc->sc_fifolvl); in ti_spi_fill_fifo() 342 bytes = min(sc->sc_len - sc->sc_read, sc->sc_fifolvl); in ti_spi_drain_fifo() 396 if (sc->sc_written == sc->sc_len && sc->sc_read == sc->sc_len) { in ti_spi_intr() 408 while (sc->sc_len - sc->sc_written > 0) { in ti_spi_pio_transfer() 481 if (sc->sc_fifolvl < 2 || sc->sc_len > 0xffff) in ti_spi_transfer() 487 ti_spi_set_clock(sc, sc->sc_cs, clockhz); in ti_spi_transfer() [all …]
|
| /f-stack/freebsd/arm/freescale/imx/ |
| H A D | imx_spi.c | 242 WR4(sc, ECSPI_CTLREG, sc->ctlreg); in spi_hw_setup() 279 sc->rxbuf[sc->rxidx++] = (uint8_t)RD4(sc, ECSPI_RXDATA); in spi_empty_rxfifo() 288 while (sc->txidx < sc->txlen && sc->fifocnt < FIFO_SIZE) { in spi_fill_txfifo() 289 WR4(sc, ECSPI_TXDATA, sc->txbuf[sc->txidx++]); in spi_fill_txfifo() 297 if (sc->txidx == sc->txlen) in spi_fill_txfifo() 322 sc->rxidx, sc->txidx); in spi_intr() 344 if (sc->txidx == sc->txlen) { in spi_intr() 360 WR4(sc, ECSPI_INTREG, sc->intreg); in spi_intr() 397 WR4(sc, ECSPI_INTREG, sc->intreg); in spi_xfer_buf() 403 if (sc->rxidx != sc->rxlen || sc->txidx != sc->txlen) in spi_xfer_buf() [all …]
|
| H A D | imx6_anatop.c | 353 if (sc->cpu_minmhz > sc->cpu_curmhz) { in cpufreq_sysctl_minmhz() 441 sc->cpu_maxmhz = sc->cpu_maxmhz_hw; in cpufreq_initialize() 525 sc->temp_throttle_trigger_cnt = temp_to_count(sc, sc->temp_throttle_val); in temp_throttle_sysctl_handler() 526 sc->temp_throttle_reset_cnt = temp_to_count(sc, sc->temp_throttle_val - 100); in temp_throttle_sysctl_handler() 539 if (sc->cpu_curmhz < sc->cpu_maxmhz) { in tempmon_gofast() 540 cpufreq_set_clock(sc, cpufreq_nearest_oppt(sc, sc->cpu_maxmhz)); in tempmon_gofast() 548 if (sc->cpu_curmhz > sc->cpu_minmhz) { in tempmon_goslow() 549 cpufreq_set_clock(sc, cpufreq_nearest_oppt(sc, sc->cpu_minmhz)); in tempmon_goslow() 653 bus_setup_intr(sc->dev, sc->res[IRQRES], in intr_setup() 681 sc->cpu_curmhz, sc->cpu_curmv); in imx6_anatop_new_pass() [all …]
|
| /f-stack/freebsd/netgraph/bluetooth/drivers/h4/ |
| H A D | ng_h4.c | 191 bzero(sc, sizeof(*sc)); in ng_h4_open() 208 bzero(sc, sizeof(*sc)); in ng_h4_open() 215 NG_NODE_SET_PRIVATE(sc->node, sc); in ng_h4_open() 341 if (sc == NULL || tp != sc->tp || in ng_h4_input() 381 if (sc->got >= sizeof(sc->ibuf)) { in ng_h4_input() 400 NG_NODE_NAME(sc->node), c, sc->want, sc->got); in ng_h4_input() 402 if (sc->got < sc->want) { in ng_h4_input() 474 NG_NODE_NAME(sc->node), sc->ibuf[0], sc->got, c); in ng_h4_input() 500 sc->got, sc->want, c); in ng_h4_input() 525 NG_NODE_NAME(sc->node), sc->ibuf[0], sc->got); in ng_h4_input() [all …]
|
| /f-stack/freebsd/arm/xilinx/ |
| H A D | zy7_qspi.c | 100 #define QSPI_SC_LOCK(sc) mtx_lock(&(sc)->sc_mtx) argument 234 if (sc->tx_bytes_sent < sc->cmd->tx_cmd_sz) { in zy7_qspi_write_fifo() 308 } while (sc->rx_bytes_rcvd < sc->rx_bytes && in zy7_qspi_read_fifo() 358 if (sc->rx_bytes_rcvd < sc->rx_bytes && in zy7_qspi_intr() 361 if (sc->rx_bytes_rcvd == sc->rx_bytes) in zy7_qspi_intr() 382 if (sc->tx_bytes_sent < sc->tx_bytes && in zy7_qspi_intr() 387 if (sc->tx_bytes_sent == sc->tx_bytes) { in zy7_qspi_intr() 400 if (sc->tx_bytes_sent == sc->tx_bytes && in zy7_qspi_intr() 401 sc->rx_bytes_rcvd == sc->rx_bytes) { in zy7_qspi_intr() 691 sc->tx_bytes = sc->cmd->tx_cmd_sz + sc->cmd->tx_data_sz; in zy7_qspi_transfer() [all …]
|
| H A D | zy7_spi.c | 159 if (sc->tx_bytes_sent < sc->cmd->tx_cmd_sz) in zy7_spi_write_fifo() 184 if (sc->rx_bytes_rcvd < sc->cmd->rx_cmd_sz) in zy7_spi_read_fifo() 196 } while (sc->rx_bytes_rcvd < sc->rx_bytes && in zy7_spi_read_fifo() 246 if (sc->rx_bytes_rcvd < sc->rx_bytes && in zy7_spi_intr() 249 if (sc->rx_bytes_rcvd == sc->rx_bytes) in zy7_spi_intr() 266 if (sc->tx_bytes_sent < sc->tx_bytes && in zy7_spi_intr() 271 if (sc->tx_bytes_sent == sc->tx_bytes) { in zy7_spi_intr() 283 if (sc->tx_bytes_sent == sc->tx_bytes && in zy7_spi_intr() 284 sc->rx_bytes_rcvd == sc->rx_bytes) { in zy7_spi_intr() 536 sc->tx_bytes = sc->cmd->tx_cmd_sz + sc->cmd->tx_data_sz; in zy7_spi_transfer() [all …]
|
| /f-stack/freebsd/mips/ingenic/ |
| H A D | jz4780_mmc.c | 173 sc->sc_bst = rman_get_bustag(sc->sc_res[JZ_MSC_MEMRES]); in jz4780_mmc_attach() 189 callout_init_mtx(&sc->sc_timeoutc, &sc->sc_mtx, 0); in jz4780_mmc_attach() 210 sc->sc_host.f_min = sc->sc_host.f_max / 128; in jz4780_mmc_attach() 271 err = clk_set_freq(sc->sc_clk, sc->sc_host.f_max, 0); in jz4780_mmc_enable_clock() 307 error = bus_dmamap_load(sc->sc_dma_tag, sc->sc_dma_map, in jz4780_mmc_setup_dma() 408 JZ_MMC_WRITE_4(sc, JZ_MSC_DMAC, sc->sc_dma_ctl); in jz4780_mmc_start_dma() 481 bus_dmamap_sync(sc->sc_dma_tag, sc->sc_dma_map, in jz4780_mmc_req_done() 632 if ((sc->sc_intr_seen & sc->sc_intr_wait) == sc->sc_intr_wait) in jz4780_mmc_intr() 730 callout_reset(&sc->sc_timeoutc, sc->sc_timeout * hz, in jz4780_mmc_request() 948 error = msleep(sc, &sc->sc_mtx, PCATCH, "mmchw", 0); in jz4780_mmc_acquire_host() [all …]
|
| /f-stack/freebsd/arm64/rockchip/ |
| H A D | rk_spi.c | 182 clk_get_freq(sc->clk_spi, &sc->max_freq); in rk_spi_hw_setup() 216 while (sc->rxidx < sc->rxlen && in rk_spi_empty_rxfifo() 218 sc->rxbuf[sc->rxidx++] = (uint8_t)RK_SPI_READ_4(sc, RK_SPI_RXDR); in rk_spi_empty_rxfifo() 229 while (sc->txidx < sc->txlen && txlevel < sc->fifo_size) { in rk_spi_fill_txfifo() 230 RK_SPI_WRITE_4(sc, RK_SPI_TXDR, sc->txbuf[sc->txidx++]); in rk_spi_fill_txfifo() 235 if (sc->txidx != sc->txlen) in rk_spi_fill_txfifo() 267 if (sc->rxidx != sc->rxlen || sc->txidx != sc->txlen) in rk_spi_xfer_buf() 332 clk_get_freq(sc->clk_spi, &sc->max_freq); in rk_spi_attach() 334 sc->fifo_size = rk_spi_fifo_size(sc); in rk_spi_attach() 370 bus_teardown_intr(sc->dev, sc->res[1], sc->intrhand); in rk_spi_detach() [all …]
|
| H A D | rk_i2c.c | 218 if (sc->msg == NULL || sc->msg->len == sc->cnt) in rk_i2c_fill_tx() 221 len = sc->msg->len - sc->cnt; in rk_i2c_fill_tx() 228 if (sc->cnt == sc->msg->len) in rk_i2c_fill_tx() 236 buf = sc->msg->buf[sc->cnt]; in rk_i2c_fill_tx() 243 if (sc->cnt == sc->msg->len) in rk_i2c_fill_tx() 263 len = sc->msg->len - sc->cnt; in rk_i2c_drain_rx() 272 sc->msg->buf[sc->cnt++] = buf8; in rk_i2c_drain_rx() 345 if (sc->cnt == sc->msg->len) in rk_i2c_intr_locked() 350 if (sc->cnt == sc->msg->len && in rk_i2c_intr_locked() 397 sc->msg_len = sc->msg->len; in rk_i2c_start_xfer() [all …]
|
| H A D | rk_pcie.c | 354 APB_WR4(sc, PCIE_CORE_OB_DESC1(idx), sc->root_bus); in rk_pcie_map_out_atu() 375 APB_WR4(sc, PCIE_CORE_OB_DESC1(idx), sc->root_bus); in rk_pcie_map_cfg_atu() 1016 PRIV_CFG_WR1(sc, PCIR_PRIBUS_1, sc->root_bus); in rk_pcie_setup_sw() 1017 PRIV_CFG_WR1(sc, PCIR_SECBUS_1, sc->sub_bus); in rk_pcie_setup_sw() 1018 PRIV_CFG_WR1(sc, PCIR_SUBBUS_1, sc->bus_end); in rk_pcie_setup_sw() 1159 sc->root_bus = sc->bus_start; in rk_pcie_attach() 1167 sc->coherent = OF_hasprop(sc->node, "dma-coherent"); in rk_pcie_attach() 1168 sc->no_l0s = OF_hasprop(sc->node, "aspm-no-l0s"); in rk_pcie_attach() 1173 if (sc->num_lanes != 1 && sc->num_lanes != 2 && sc->num_lanes != 4) { in rk_pcie_attach() 1283 rv = rk_pcie_decode_ranges(sc, sc->ofw_pci.sc_range, in rk_pcie_attach() [all …]
|
| /f-stack/freebsd/mips/mediatek/ |
| H A D | mtk_gpio_v2.c | 181 regval = MTK_READ_4(sc, GPIO_PIODIR(sc)); in mtk_gpio_pin_set_direction() 186 MTK_WRITE_4(sc, GPIO_PIODIR(sc), regval); in mtk_gpio_pin_set_direction() 199 regval = MTK_READ_4(sc, GPIO_PIOPOL(sc)); in mtk_gpio_pin_set_invert() 204 MTK_WRITE_4(sc, GPIO_PIOPOL(sc), regval); in mtk_gpio_pin_set_invert() 220 val = MTK_READ_4(sc, GPIO_PIORENA(sc)) | in mtk_gpio_pin_probe() 221 MTK_READ_4(sc, GPIO_PIOFENA(sc)); in mtk_gpio_pin_probe() 225 val = MTK_READ_4(sc, GPIO_PIORENA(sc)); in mtk_gpio_pin_probe() 232 val = MTK_READ_4(sc, GPIO_PIODIR(sc)); in mtk_gpio_pin_probe() 238 val = MTK_READ_4(sc, GPIO_PIOPOL(sc)); in mtk_gpio_pin_probe() 486 val = MTK_READ_4(sc, GPIO_PIODATA(sc)); in mtk_gpio_pin_toggle() [all …]
|
| /f-stack/freebsd/arm/allwinner/ |
| H A D | aw_mmc.c | 399 sc->child = device_add_child(sc->aw_dev, "mmc", -1); in aw_mmc_helper_cd_handler() 402 device_set_ivars(sc->child, sc); in aw_mmc_helper_cd_handler() 414 device_delete_child(sc->aw_dev, sc->child); in aw_mmc_helper_cd_handler() 465 callout_init_mtx(&sc->aw_timeoutc, &sc->aw_mtx, 0); in aw_mmc_attach() 526 mmc_fdt_parse(dev, 0, &sc->mmc_helper, &sc->aw_host); in aw_mmc_attach() 538 &sc->sim_mtx, 1, 1, sc->devq); in aw_mmc_attach() 547 if (xpt_bus_register(sc->sim, sc->aw_dev, 0) != 0) { in aw_mmc_attach() 700 bus_dmamap_unload(sc->aw_dma_tag, sc->aw_dma_map); in aw_mmc_teardown_dma() 701 bus_dmamem_free(sc->aw_dma_tag, sc->aw_dma_desc, sc->aw_dma_map); in aw_mmc_teardown_dma() 1077 bus_dmamap_sync(sc->aw_dma_tag, sc->aw_dma_map, [all …]
|
| H A D | if_emac.c | 141 bus_space_read_4(sc->emac_tag, sc->emac_handle, reg) 405 bus_space_read_multi_4(sc->emac_tag, sc->emac_handle, in emac_rxeof() 489 callout_reset(&sc->emac_tick_ch, hz, emac_tick, sc); in emac_tick() 602 callout_reset(&sc->emac_tick_ch, hz, emac_tick, sc); in emac_init_locked() 668 EMAC_WRITE_REG(sc, reg, EMAC_READ_REG(sc, reg) | 1); in emac_start_locked() 722 emac_rxeof(sc, sc->emac_rx_process_limit); in emac_intr() 817 bus_teardown_intr(sc->emac_dev, sc->emac_irq, in emac_detach() 821 device_delete_child(sc->emac_dev, sc->emac_miibus); in emac_detach() 911 sc->emac_tag = rman_get_bustag(sc->emac_res); in emac_attach() 912 sc->emac_handle = rman_get_bushandle(sc->emac_res); in emac_attach() [all …]
|
| /f-stack/freebsd/mips/atheros/ |
| H A D | if_arge.c | 561 div = arge_mdio_get_divider(sc, sc->arge_mdiofreq); in arge_fetch_mdiobus_clock_rate() 825 TASK_INIT(&sc->arge_link_task, 0, arge_link_task, sc); in arge_attach() 926 | (sc->arge_eaddr[3] << 16) | (sc->arge_eaddr[4] << 8) in arge_attach() 966 sc->arge_miiproxy = mii_attach_proxy(sc->arge_dev); in arge_attach() 975 sc->arge_miiproxy : sc->arge_dev, in arge_attach() 976 &sc->arge_miibus, sc->arge_ifp, in arge_attach() 997 arge_set_pll(sc, sc->arge_media_type, sc->arge_duplex_mode); in arge_attach() 1001 ether_ifattach(sc->arge_ifp, sc->arge_eaddr); in arge_attach() 1005 arge_intr_filter, arge_intr, sc, &sc->arge_intrhand); in arge_attach() 1056 bus_teardown_intr(dev, sc->arge_irq, sc->arge_intrhand); in arge_detach() [all …]
|
| /f-stack/freebsd/arm/allwinner/clkng/ |
| H A D | aw_ccung.c | 78 #define CCU_READ4(sc, reg) bus_read_4((sc)->res, (reg)) argument 130 if (id >= sc->nresets || sc->resets[id].offset == 0) in aw_ccung_reset_assert() 134 val = CCU_READ4(sc, sc->resets[id].offset); in aw_ccung_reset_assert() 141 CCU_WRITE4(sc, sc->resets[id].offset, val); in aw_ccung_reset_assert() 155 if (id >= sc->nresets || sc->resets[id].offset == 0) in aw_ccung_reset_is_asserted() 159 val = CCU_READ4(sc, sc->resets[id].offset); in aw_ccung_reset_is_asserted() 292 clknode_mux_register(sc->clkdom, sc->clks[i].clk.mux); in aw_ccung_attach() 305 aw_clk_nm_register(sc->clkdom, sc->clks[i].clk.nm); in aw_ccung_attach() 308 aw_clk_m_register(sc->clkdom, sc->clks[i].clk.m); in aw_ccung_attach() 321 aw_clk_np_register(sc->clkdom, sc->clks[i].clk.np); in aw_ccung_attach() [all …]
|
| /f-stack/freebsd/mips/nlm/dev/net/ |
| H A D | xlpge.c | 677 nlm_setup_rx_buf_config(sc->base, sc->max_ports, sc->portcfg); in nlm_xlpnae_attach() 732 sc->block, sc->port, sc->type, 1 /* broadcast */, in nlm_xlpge_mac_set_rx_mode() 736 sc->block, sc->port, sc->type, 1 /* broadcast */, in nlm_xlpge_mac_set_rx_mode() 741 sc->block, sc->port, sc->type, 1 /* broadcast */, in nlm_xlpge_mac_set_rx_mode() 745 sc->block, sc->port, sc->type, 1 /* broadcast */, in nlm_xlpge_mac_set_rx_mode() 931 nlm_mac_disable(sc->base_addr, sc->block, sc->type, sc->port); in nlm_xlpge_port_disable() 957 nlm_mac_enable(sc->base_addr, sc->block, sc->type, sc->port); in nlm_xlpge_port_enable() 997 sc->dev_addr[5] += (sc->block * 4) + sc->port; in xlpge_read_mac_addr() 1001 sc->port, sc->type, sc->dev_addr); in xlpge_read_mac_addr() 1004 sc->port, sc->type, sc->dev_addr); in xlpge_read_mac_addr() [all …]
|
| /f-stack/freebsd/arm/nvidia/ |
| H A D | tegra_i2c.c | 339 tegra_i2c_setup_clk(sc, sc->bus_freq); in tegra_i2c_hw_init() 363 if (sc->msg_idx >= sc->msg->len) in tegra_i2c_tx() 366 while(sc->msg_idx < sc->msg->len) { in tegra_i2c_tx() 370 cnt = min(4, sc->msg->len - sc->msg_idx); in tegra_i2c_tx() 378 if (sc->msg_idx >= sc->msg->len) in tegra_i2c_tx() 380 return (sc->msg->len - sc->msg_idx - 1); in tegra_i2c_tx() 389 if (sc->msg_idx >= sc->msg->len) in tegra_i2c_rx() 392 while(sc->msg_idx < sc->msg->len) { in tegra_i2c_rx() 404 if (sc->msg_idx >= sc->msg->len) in tegra_i2c_rx() 406 return (sc->msg->len - sc->msg_idx - 1); in tegra_i2c_rx() [all …]
|
| /f-stack/freebsd/arm/ti/cpsw/ |
| H A D | if_cpsw.c | 885 cpsw_add_slots(sc, &sc->rx, -1)) { in cpsw_attach() 950 cpsw_free_slot(sc, &sc->_slots[i]); in cpsw_detach() 1014 sc->swsc = device_get_softc(sc->pdev); in cpswp_attach() 1016 sc->phy = sc->swsc->port[sc->unit].phy; in cpswp_attach() 1017 sc->vlan = sc->swsc->port[sc->unit].vlan; in cpswp_attach() 1019 sc->vlan = sc->unit + 1; in cpswp_attach() 1094 cpsw_write_4(sc->swsc, sc->physel, in cpswp_attach() 1705 cpsw_write_hdp_slot(sc, &sc->rx, in cpsw_rx_dequeue() 2146 cpsw_dump_queue(sc, &sc->tx.active); in cpsw_intr_misc_host_error() 2168 cpsw_dump_queue(sc, &sc->rx.active); in cpsw_intr_misc_host_error() [all …]
|
| /f-stack/freebsd/mips/atheros/ar531x/ |
| H A D | if_are.c | 259 TASK_INIT(&sc->are_link_task, 0, are_link_task, sc); in are_attach() 272 sc->are_btag = rman_get_bustag(sc->are_res); in are_attach() 273 sc->are_bhandle = rman_get_bushandle(sc->are_res); in are_attach() 323 sc->are_miiproxy = mii_attach_proxy(sc->are_dev); in are_attach() 363 NULL, are_intr, sc, &sc->are_intrhand); in are_attach() 619 sc->sc_rxint_mask &= sc->sc_inten; in are_init_locked() 620 sc->sc_txint_mask &= sc->sc_inten; in are_init_locked() 622 CSR_WRITE_4(sc, CSR_INTEN, sc->sc_inten); in are_init_locked() 634 CSR_WRITE_4(sc, CSR_MACHI, sc->are_eaddr[5] << 16 | sc->are_eaddr[4]); in are_init_locked() 636 sc->are_eaddr[2] << 16 | sc->are_eaddr[1] << 8 | sc->are_eaddr[0]); in are_init_locked() [all …]
|