| /freebsd-13.1/sys/dev/axgbe/ |
| H A D | xgbe-mdio.c | 323 xgbe_change_mode(pdata, pdata->phy_if.phy_impl.switch_mode(pdata)); in xgbe_switch_mode() 577 state = xgbe_in_kr_mode(pdata) ? &pdata->kr_state : &pdata->kx_state; in xgbe_an73_page_received() 775 pdata->an_result = pdata->an_state; in xgbe_an37_state_machine() 786 __func__, pdata->an_state, pdata->an_int, pdata->an_mode, in xgbe_an37_state_machine() 863 pdata->an_result = pdata->an_state; in xgbe_an73_state_machine() 1027 pdata->an_mode = pdata->phy_if.phy_impl.an_mode(pdata); in xgbe_an_init() 1161 mode = pdata->phy_if.phy_impl.get_mode(pdata, pdata->phy.speed); in xgbe_phy_config_fixed() 1378 pdata->phy.link = pdata->phy_if.phy_impl.link_status(pdata, in xgbe_phy_status() 1438 pdata->phy_if.phy_impl.stop(pdata); in xgbe_phy_stop() 1504 pdata->phy_if.phy_impl.stop(pdata); in xgbe_phy_start() [all …]
|
| H A D | xgbe-dev.c | 413 memcpy(pdata->rss_key, key, sizeof(pdata->rss_key)); in xgbe_set_rss_hash_key() 448 XGMAC_IOWRITE(pdata, MAC_RSSCR, pdata->rss_options); in xgbe_enable_rss() 1355 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_dev_read() local 1523 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_enable_int() local 1572 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_disable_int() local 1712 XGMAC_IOWRITE(pdata, DMA_AXIARCR, pdata->arcr); in xgbe_config_dma_cache() 1713 XGMAC_IOWRITE(pdata, DMA_AXIAWCR, pdata->awcr); in xgbe_config_dma_cache() 1821 pdata->rx_rfa[i], pdata->rx_rfd[i]); in xgbe_config_flow_control_threshold() 2055 xgbe_set_speed(pdata, pdata->phy_speed); in xgbe_config_mac_speed() 2753 xgbe_config_tsf_mode(pdata, pdata->tx_sf_mode); in xgbe_init() [all …]
|
| H A D | if_axgbe_pci.c | 405 pdata = &sc->pdata; in axgbe_if_attach_pre() 483 pdata->pp0 = XP_IOREAD(pdata, XP_PROP_0); in axgbe_if_attach_pre() 611 pdata->tx_ring_count = min(pdata->tx_ring_count, pdata->tx_max_q_count); in axgbe_set_counts() 619 pdata->rx_q_count = min(pdata->hw_feat.rx_q_cnt, pdata->rx_max_q_count); in axgbe_set_counts() 728 channel->pdata = pdata; in axgbe_alloc_channels() 752 pdata->phy_if.phy_status(pdata); in xgbe_service() 755 pdata->phy_link = pdata->phy.link; in xgbe_service() 1477 xgbe_free_intr(pdata, pdata->ecc_irq_res, pdata->ecc_irq_tag, in axgbe_interrupts_free() 1481 xgbe_free_intr(pdata, pdata->i2c_irq_res, pdata->i2c_irq_tag, in axgbe_interrupts_free() 1485 xgbe_free_intr(pdata, pdata->an_irq_res, pdata->an_irq_tag, in axgbe_interrupts_free() [all …]
|
| H A D | xgbe-phy-v2.c | 391 return (pdata->i2c_if.i2c_xfer(pdata, i2c_op)); in xgbe_phy_i2c_xfer() 1480 pdata->phy.duplex, pdata->phy.autoneg, pdata->phy.pause_autoneg); in xgbe_phy_sfp_detect() 2822 pdata->phy.duplex, pdata->phy.link, pdata->phy.autoneg); in xgbe_phy_read_status() 2867 pdata->phy.duplex, pdata->phy.link, pdata->phy.autoneg); in xgbe_phy_link_status() 3319 pdata->i2c_if.i2c_stop(pdata); in xgbe_phy_stop() 3332 ret = pdata->i2c_if.i2c_start(pdata); in xgbe_phy_start() 3376 pdata->i2c_if.i2c_stop(pdata); in xgbe_phy_start() 3419 pdata = &sc->pdata; in axgbe_ifmedia_sts() 3442 pdata = &sc->pdata; in axgbe_ifmedia_upd() 3482 ret = pdata->i2c_if.i2c_init(pdata); in xgbe_phy_init() [all …]
|
| H A D | xgbe-phy-v1.c | 173 pdata->phy.tx_pause = 0; in xgbe_phy_an_outcome() 174 pdata->phy.rx_pause = 0; in xgbe_phy_an_outcome() 177 pdata->phy.tx_pause = 1; in xgbe_phy_an_outcome() 178 pdata->phy.rx_pause = 1; in xgbe_phy_an_outcome() 181 pdata->phy.rx_pause = 1; in xgbe_phy_an_outcome() 183 pdata->phy.tx_pause = 1; in xgbe_phy_an_outcome() 204 switch (pdata->speed_set) { in xgbe_phy_an_outcome() 502 xgbe_phy_kr_mode(pdata); in xgbe_phy_set_mode() 513 switch (pdata->phy.speed) { in xgbe_phy_get_type() 538 cur_mode = xgbe_phy_get_mode(pdata, pdata->phy.speed); in xgbe_phy_check_mode() [all …]
|
| H A D | xgbe-i2c.c | 228 tx_slots = pdata->i2c.tx_fifo_size - XI2C_IOREAD(pdata, IC_TXFLR); in xgbe_i2c_write() 319 xgbe_i2c_read(pdata); in xgbe_i2c_isr() 322 xgbe_i2c_write(pdata); in xgbe_i2c_isr() 383 xgbe_i2c_isr(pdata); in xgbe_i2c_combined_isr() 460 xgbe_i2c_disable(pdata); in xgbe_i2c_xfer() 470 if (!pdata->i2c.started) in xgbe_i2c_stop() 475 pdata->i2c.started = 0; in xgbe_i2c_stop() 478 xgbe_i2c_disable(pdata); in xgbe_i2c_stop() 485 if (pdata->i2c.started) in xgbe_i2c_start() 488 pdata->i2c.started = 1; in xgbe_i2c_start() [all …]
|
| H A D | xgbe-ptp.c | 128 nsec = pdata->hw_if.get_tstamp_time(pdata); in xgbe_cc_read() 148 adjust = pdata->tstamp_addend; in xgbe_adjfreq() 153 pdata->tstamp_addend + diff; in xgbe_adjfreq() 157 pdata->hw_if.update_tstamp_addend(pdata, addend); in xgbe_adjfreq() 210 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, nsec); in xgbe_settime() 232 info->max_adj = pdata->ptpclk_rate; in xgbe_ptp_register() 245 pdata->ptp_clock = clock; in xgbe_ptp_register() 253 pdata->tstamp_addend = div_u64(dividend, pdata->ptpclk_rate); in xgbe_ptp_register() 261 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, in xgbe_ptp_register() 265 XGMAC_IOWRITE(pdata, MAC_TSCR, 0); in xgbe_ptp_register() [all …]
|
| H A D | xgbe-dcb.c | 128 if (pdata->ets) { 129 ets->cbs = pdata->ets->cbs; 191 if (!pdata->ets) { 195 if (!pdata->ets) 200 memcpy(pdata->ets, ets, sizeof(*pdata->ets)); 202 pdata->hw_if.config_dcb_tc(pdata); 214 if (pdata->pfc) { 238 if (!pdata->pfc) { 242 if (!pdata->pfc) 246 memcpy(pdata->pfc, pfc, sizeof(*pdata->pfc)); [all …]
|
| H A D | xgbe-sysctl.c | 565 pdata->pcie_bus, pdata->pcie_device, pdata->pcie_func); in sysctl_get_drv_info_handler() 845 rc = pdata->phy_if.phy_config_aneg(pdata); in sysctl_pauseparam_handler() 948 if (!pdata->phy_if.phy_valid_speed(pdata, speed)) { in sysctl_link_ksettings_handler() 970 rc = pdata->phy_if.phy_config_aneg(pdata); in sysctl_link_ksettings_handler() 1181 pdata->hw_if.read_mmc_stats(pdata); in sysctl_mac_stats_handler() 1337 value = XMDIO_READ(pdata, pdata->sysctl_xpcs_mmd, in sysctl_xpcs_reg_value_handler() 1350 XMDIO_WRITE(pdata, pdata->sysctl_xpcs_mmd, in sysctl_xpcs_reg_value_handler() 1412 value = XP_IOREAD(pdata, pdata->sysctl_xprop_reg); in sysctl_xprop_reg_value_handler() 1424 XP_IOWRITE(pdata, pdata->sysctl_xprop_reg, value); in sysctl_xprop_reg_value_handler() 1485 value = XI2C_IOREAD(pdata, pdata->sysctl_xi2c_reg); in sysctl_xi2c_reg_value_handler() [all …]
|
| H A D | xgbe-txrx.c | 175 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_txd_encap() local 223 if (!pdata->tx_frames) in axgbe_isc_txd_encap() 374 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_txd_flush() local 392 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_txd_credits_update() local 448 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_rxd_refill() local 539 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_rxd_flush() local 563 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_rxd_available() local 625 if (pdata->sph_enable) { in xgbe_rx_buf1_len() 658 pdata->rx_buf_size); in xgbe_rx_buf1_len() 660 if (pdata->sph_enable) { in xgbe_rx_buf1_len() [all …]
|
| H A D | xgbe-drv.c | 144 mac_hfr0 = XGMAC_IOREAD(pdata, MAC_HWF0R); in xgbe_get_all_hw_features() 145 mac_hfr1 = XGMAC_IOREAD(pdata, MAC_HWF1R); in xgbe_get_all_hw_features() 146 mac_hfr2 = XGMAC_IOREAD(pdata, MAC_HWF2R); in xgbe_get_all_hw_features() 321 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_init_tx_coalesce() 325 pdata->tx_usecs = XGMAC_INIT_DMA_TX_USECS; in xgbe_init_tx_coalesce() 326 pdata->tx_frames = XGMAC_INIT_DMA_TX_FRAMES; in xgbe_init_tx_coalesce() 328 hw_if->config_tx_coalesce(pdata); in xgbe_init_tx_coalesce() 336 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_init_rx_coalesce() 340 pdata->rx_riwt = hw_if->usec_to_riwt(pdata, XGMAC_INIT_DMA_RX_USECS); in xgbe_init_rx_coalesce() 341 pdata->rx_usecs = XGMAC_INIT_DMA_RX_USECS; in xgbe_init_rx_coalesce() [all …]
|
| H A D | xgbe-desc.c | 121 xgbe_wrapper_tx_descriptor_init(struct xgbe_prv_data *pdata) in xgbe_wrapper_tx_descriptor_init() argument 123 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_wrapper_tx_descriptor_init() 133 for (i = 0; i < pdata->channel_count; i++) { in xgbe_wrapper_tx_descriptor_init() 135 channel = pdata->channel[i]; in xgbe_wrapper_tx_descriptor_init() 165 xgbe_wrapper_rx_descriptor_init(struct xgbe_prv_data *pdata) in xgbe_wrapper_rx_descriptor_init() argument 167 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_wrapper_rx_descriptor_init() 177 for (i = 0; i < pdata->channel_count; i++) { in xgbe_wrapper_rx_descriptor_init() 179 channel = pdata->channel[i]; in xgbe_wrapper_rx_descriptor_init()
|
| /freebsd-13.1/sys/arm64/coresight/ |
| H A D | coresight_fdt.c | 94 pdata->in_ports++; in coresight_fdt_get_ports() 97 pdata->out_ports++; in coresight_fdt_get_ports() 99 mtx_lock(&pdata->mtx_lock); in coresight_fdt_get_ports() 102 mtx_unlock(&pdata->mtx_lock); in coresight_fdt_get_ports() 122 pdata->cpu = cpu_reg; in coresight_fdt_get_cpu() 140 pdata->bus_type = CORESIGHT_BUS_FDT; in coresight_fdt_get_platform_data() 143 TAILQ_INIT(&pdata->endpoints); in coresight_fdt_get_platform_data() 145 coresight_fdt_get_cpu(node, pdata); in coresight_fdt_get_platform_data() 146 coresight_fdt_get_ports(node, pdata); in coresight_fdt_get_platform_data() 150 pdata->in_ports, pdata->out_ports); in coresight_fdt_get_platform_data() [all …]
|
| H A D | coresight_acpi.c | 284 mtx_lock(&pdata->mtx_lock); in cs_acpi_record_endpoint() 286 mtx_unlock(&pdata->mtx_lock); in cs_acpi_record_endpoint() 289 pdata->out_ports++; in cs_acpi_record_endpoint() 292 pdata->in_ports++; in cs_acpi_record_endpoint() 346 pdata->cpu = cpuid; in coresight_acpi_get_cpu() 360 pdata->bus_type = CORESIGHT_BUS_ACPI; in coresight_acpi_get_platform_data() 363 TAILQ_INIT(&pdata->endpoints); in coresight_acpi_get_platform_data() 365 coresight_acpi_get_cpu(dev, pdata); in coresight_acpi_get_platform_data() 366 coresight_acpi_get_ports(dev, pdata); in coresight_acpi_get_platform_data() 370 pdata->in_ports, pdata->out_ports); in coresight_acpi_get_platform_data() [all …]
|
| H A D | coresight.c | 57 cs_dev->pdata = desc->pdata; in coresight_register() 68 coresight_get_output_endpoint(struct coresight_platform_data *pdata) in coresight_get_output_endpoint() argument 72 if (pdata->out_ports != 1) in coresight_get_output_endpoint() 75 TAILQ_FOREACH(endp, &pdata->endpoints, link) { in coresight_get_output_endpoint() 86 struct coresight_platform_data *pdata; in coresight_get_output_device() local 91 pdata = cs_dev->pdata; in coresight_get_output_device() 92 TAILQ_FOREACH(endp2, &cs_dev->pdata->endpoints, link) { in coresight_get_output_device() 93 switch (pdata->bus_type) { in coresight_get_output_device()
|
| H A D | coresight_cpu_debug.c | 69 struct coresight_platform_data *pdata; member 135 sc->pdata = coresight_fdt_get_platform_data(dev); in debug_attach() 136 desc.pdata = sc->pdata; in debug_attach()
|
| /freebsd-13.1/contrib/mandoc/ |
| H A D | dba_read.c | 40 struct dbm_page *pdata; in dba_read() local 50 pdata = dbm_page_get(ip); in dba_read() 51 page = dba_page_new(dba->pages, pdata->arch, in dba_read() 52 pdata->desc, pdata->file + 1, *pdata->file); in dba_read() 53 for (cp = pdata->name; *cp != '\0'; cp = strchr(cp, '\0') + 1) in dba_read() 55 for (cp = pdata->sect; *cp != '\0'; cp = strchr(cp, '\0') + 1) in dba_read() 57 if ((cp = pdata->arch) != NULL) in dba_read() 60 cp = pdata->file; in dba_read()
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_grzip.c | 41 struct archive_write_program_data *pdata; member 66 data->pdata = __archive_write_program_allocate("grzip"); in archive_write_add_filter_grzip() 67 if (data->pdata == NULL) { in archive_write_add_filter_grzip() 107 return __archive_write_program_open(f, data->pdata, "grzip"); in archive_write_grzip_open() 116 return __archive_write_program_write(f, data->pdata, buff, length); in archive_write_grzip_write() 124 return __archive_write_program_close(f, data->pdata); in archive_write_grzip_close() 132 __archive_write_program_free(data->pdata); in archive_write_grzip_free()
|
| H A D | archive_write_add_filter_lrzip.c | 45 struct archive_write_program_data *pdata; member 72 data->pdata = __archive_write_program_allocate("lrzip"); in archive_write_add_filter_lrzip() 73 if (data->pdata == NULL) { in archive_write_add_filter_lrzip() 167 r = __archive_write_program_open(f, data->pdata, as.s); in archive_write_lrzip_open() 178 return __archive_write_program_write(f, data->pdata, buff, length); in archive_write_lrzip_write() 186 return __archive_write_program_close(f, data->pdata); in archive_write_lrzip_close() 194 __archive_write_program_free(data->pdata); in archive_write_lrzip_free()
|
| H A D | archive_write_add_filter_bzip2.c | 66 struct archive_write_program_data *pdata; member 108 data->pdata = __archive_write_program_allocate("bzip2"); in archive_write_add_filter_bzip2() 109 if (data->pdata == NULL) { in archive_write_add_filter_bzip2() 369 r = __archive_write_program_open(f, data->pdata, as.s); in archive_compressor_bzip2_open() 380 return __archive_write_program_write(f, data->pdata, buff, length); in archive_compressor_bzip2_write() 388 return __archive_write_program_close(f, data->pdata); in archive_compressor_bzip2_close() 396 __archive_write_program_free(data->pdata); in archive_compressor_bzip2_free()
|
| /freebsd-13.1/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
| H A D | fasttrap.c | 1860 if (pdata->ftps_noffs == 0) in fasttrap_add_probe() 1863 switch (pdata->ftps_type) { in fasttrap_add_probe() 1909 pdata->ftps_mod, pdata->ftps_func, name_str) != 0) in fasttrap_add_probe() 1931 tp->ftt_pc = pdata->ftps_offs[i] + pdata->ftps_pc; in fasttrap_add_probe() 1939 pdata->ftps_mod, pdata->ftps_func, name_str, in fasttrap_add_probe() 1957 qsort(pdata->ftps_offs, pdata->ftps_noffs, in fasttrap_add_probe() 1960 if (pdata->ftps_offs[i] > pdata->ftps_offs[i - 1]) in fasttrap_add_probe() 1967 ASSERT(pdata->ftps_noffs > 0); in fasttrap_add_probe() 1974 pp->ftp_pid = pdata->ftps_pid; in fasttrap_add_probe() 1982 tp->ftt_pc = pdata->ftps_offs[i] + pdata->ftps_pc; in fasttrap_add_probe() [all …]
|
| /freebsd-13.1/crypto/heimdal/appl/ftp/ftpd/ |
| H A D | ftpd.c | 1065 pdata = -1; in retrieve() 1176 pdata = -1; in do_store() 1269 pdata = -1; in dataconn() 1272 close(pdata); in dataconn() 1273 pdata = s; in dataconn() 2012 close(pdata); in pasv() 2013 pdata = -1; in pasv() 2054 close(pdata); in epsv() 2055 pdata = -1; in epsv() 2197 pdata = -1; in list_file() [all …]
|
| /freebsd-13.1/crypto/heimdal/lib/asn1/ |
| H A D | asn1_gen.c | 75 unsigned char p[6], *pdata; in doit() local 130 pdata = emalloc(sz); in doit() 132 if (hex_decode(data, pdata, datalen) != datalen) in doit() 135 if (fwrite(pdata, datalen, 1, fout) != 1) in doit() 139 free(pdata); in doit()
|
| /freebsd-13.1/sys/dev/bxe/ |
| H A D | ecore_init.h | 385 struct cmng_struct_per_port *pdata = &ram_data->port; in ecore_init_max() local 392 pdata->rs_vars.rs_periodic_timeout = in ecore_init_max() 399 pdata->rs_vars.rs_threshold = in ecore_init_max() 439 struct cmng_struct_per_port *pdata = &ram_data->port; in ecore_init_min() local 451 pdata->fair_vars.fair_threshold = QM_ARB_BYTES; in ecore_init_min() 460 pdata->fair_vars.fairness_timeout = in ecore_init_min() 482 pdata->fair_vars.fair_threshold + in ecore_init_min() 485 pdata->fair_vars.fair_threshold + in ecore_init_min() 498 struct cmng_struct_per_port *pdata = &ram_data->port; in ecore_init_fw_wrr() local 520 if (ccd[cos] < pdata->fair_vars.fair_threshold in ecore_init_fw_wrr() [all …]
|
| /freebsd-13.1/libexec/ftpd/ |
| H A D | ftpd.c | 1765 pdata = -1; in retrieve() 1856 pdata = -1; in store() 1968 pdata = s; in dataconn() 1990 pdata = -1; in dataconn() 2887 close(pdata); in passive() 2890 if (pdata < 0) { in passive() 2952 pdata = -1; in passive() 2971 close(pdata); in long_passive() 3001 if (pdata < 0) { in long_passive() 3090 pdata = -1; in long_passive() [all …]
|