| /freebsd-14.2/sys/dev/axgbe/ |
| H A D | xgbe-mdio.c | 321 xgbe_change_mode(pdata, pdata->phy_if.phy_impl.switch_mode(pdata)); in xgbe_switch_mode() 575 state = xgbe_in_kr_mode(pdata) ? &pdata->kr_state : &pdata->kx_state; in xgbe_an73_page_received() 773 pdata->an_result = pdata->an_state; in xgbe_an37_state_machine() 784 __func__, pdata->an_state, pdata->an_int, pdata->an_mode, in xgbe_an37_state_machine() 861 pdata->an_result = pdata->an_state; in xgbe_an73_state_machine() 1025 pdata->an_mode = pdata->phy_if.phy_impl.an_mode(pdata); in xgbe_an_init() 1159 mode = pdata->phy_if.phy_impl.get_mode(pdata, pdata->phy.speed); in xgbe_phy_config_fixed() 1376 pdata->phy.link = pdata->phy_if.phy_impl.link_status(pdata, in xgbe_phy_status() 1436 pdata->phy_if.phy_impl.stop(pdata); in xgbe_phy_stop() 1502 pdata->phy_if.phy_impl.stop(pdata); in xgbe_phy_start() [all …]
|
| H A D | xgbe-dev.c | 411 memcpy(pdata->rss_key, key, sizeof(pdata->rss_key)); in xgbe_set_rss_hash_key() 446 XGMAC_IOWRITE(pdata, MAC_RSSCR, pdata->rss_options); in xgbe_enable_rss() 1353 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_dev_read() local 1521 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_enable_int() local 1570 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_disable_int() local 1710 XGMAC_IOWRITE(pdata, DMA_AXIARCR, pdata->arcr); in xgbe_config_dma_cache() 1711 XGMAC_IOWRITE(pdata, DMA_AXIAWCR, pdata->awcr); in xgbe_config_dma_cache() 1819 pdata->rx_rfa[i], pdata->rx_rfd[i]); in xgbe_config_flow_control_threshold() 2053 xgbe_set_speed(pdata, pdata->phy_speed); in xgbe_config_mac_speed() 2751 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() 487 pdata->pp0 = XP_IOREAD(pdata, XP_PROP_0); in axgbe_if_attach_pre() 622 pdata->tx_ring_count = min(pdata->tx_ring_count, pdata->tx_max_q_count); in axgbe_set_counts() 630 pdata->rx_q_count = min(pdata->hw_feat.rx_q_cnt, pdata->rx_max_q_count); in axgbe_set_counts() 739 channel->pdata = pdata; in axgbe_alloc_channels() 778 pdata->phy_if.phy_status(pdata); in xgbe_service() 781 pdata->phy_link = pdata->phy.link; in xgbe_service() 1489 xgbe_free_intr(pdata, pdata->ecc_irq_res, pdata->ecc_irq_tag, in axgbe_interrupts_free() 1493 xgbe_free_intr(pdata, pdata->i2c_irq_res, pdata->i2c_irq_tag, in axgbe_interrupts_free() 1497 xgbe_free_intr(pdata, pdata->an_irq_res, pdata->an_irq_tag, in axgbe_interrupts_free() [all …]
|
| H A D | xgbe-phy-v2.c | 389 return (pdata->i2c_if.i2c_xfer(pdata, i2c_op)); in xgbe_phy_i2c_xfer() 1478 pdata->phy.duplex, pdata->phy.autoneg, pdata->phy.pause_autoneg); in xgbe_phy_sfp_detect() 2820 pdata->phy.duplex, pdata->phy.link, pdata->phy.autoneg); in xgbe_phy_read_status() 2865 pdata->phy.duplex, pdata->phy.link, pdata->phy.autoneg); in xgbe_phy_link_status() 3317 pdata->i2c_if.i2c_stop(pdata); in xgbe_phy_stop() 3330 ret = pdata->i2c_if.i2c_start(pdata); in xgbe_phy_start() 3374 pdata->i2c_if.i2c_stop(pdata); in xgbe_phy_start() 3417 pdata = &sc->pdata; in axgbe_ifmedia_sts() 3440 pdata = &sc->pdata; in axgbe_ifmedia_upd() 3480 ret = pdata->i2c_if.i2c_init(pdata); in xgbe_phy_init() [all …]
|
| H A D | xgbe-phy-v1.c | 171 pdata->phy.tx_pause = 0; in xgbe_phy_an_outcome() 172 pdata->phy.rx_pause = 0; in xgbe_phy_an_outcome() 175 pdata->phy.tx_pause = 1; in xgbe_phy_an_outcome() 176 pdata->phy.rx_pause = 1; in xgbe_phy_an_outcome() 179 pdata->phy.rx_pause = 1; in xgbe_phy_an_outcome() 181 pdata->phy.tx_pause = 1; in xgbe_phy_an_outcome() 202 switch (pdata->speed_set) { in xgbe_phy_an_outcome() 500 xgbe_phy_kr_mode(pdata); in xgbe_phy_set_mode() 511 switch (pdata->phy.speed) { in xgbe_phy_get_type() 536 cur_mode = xgbe_phy_get_mode(pdata, pdata->phy.speed); in xgbe_phy_check_mode() [all …]
|
| H A D | xgbe-i2c.c | 226 tx_slots = pdata->i2c.tx_fifo_size - XI2C_IOREAD(pdata, IC_TXFLR); in xgbe_i2c_write() 317 xgbe_i2c_read(pdata); in xgbe_i2c_isr() 320 xgbe_i2c_write(pdata); in xgbe_i2c_isr() 381 xgbe_i2c_isr(pdata); in xgbe_i2c_combined_isr() 458 xgbe_i2c_disable(pdata); in xgbe_i2c_xfer() 468 if (!pdata->i2c.started) in xgbe_i2c_stop() 473 pdata->i2c.started = 0; in xgbe_i2c_stop() 476 xgbe_i2c_disable(pdata); in xgbe_i2c_stop() 483 if (pdata->i2c.started) in xgbe_i2c_start() 486 pdata->i2c.started = 1; in xgbe_i2c_start() [all …]
|
| H A D | xgbe-ptp.c | 126 nsec = pdata->hw_if.get_tstamp_time(pdata); in xgbe_cc_read() 146 adjust = pdata->tstamp_addend; in xgbe_adjfreq() 151 pdata->tstamp_addend + diff; in xgbe_adjfreq() 155 pdata->hw_if.update_tstamp_addend(pdata, addend); in xgbe_adjfreq() 208 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, nsec); in xgbe_settime() 230 info->max_adj = pdata->ptpclk_rate; in xgbe_ptp_register() 243 pdata->ptp_clock = clock; in xgbe_ptp_register() 251 pdata->tstamp_addend = div_u64(dividend, pdata->ptpclk_rate); in xgbe_ptp_register() 259 timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, in xgbe_ptp_register() 263 XGMAC_IOWRITE(pdata, MAC_TSCR, 0); in xgbe_ptp_register() [all …]
|
| H A D | xgbe-dcb.c | 126 if (pdata->ets) { 127 ets->cbs = pdata->ets->cbs; 189 if (!pdata->ets) { 193 if (!pdata->ets) 198 memcpy(pdata->ets, ets, sizeof(*pdata->ets)); 200 pdata->hw_if.config_dcb_tc(pdata); 212 if (pdata->pfc) { 236 if (!pdata->pfc) { 240 if (!pdata->pfc) 244 memcpy(pdata->pfc, pfc, sizeof(*pdata->pfc)); [all …]
|
| H A D | xgbe-sysctl.c | 563 pdata->pcie_bus, pdata->pcie_device, pdata->pcie_func); in sysctl_get_drv_info_handler() 843 rc = pdata->phy_if.phy_config_aneg(pdata); in sysctl_pauseparam_handler() 946 if (!pdata->phy_if.phy_valid_speed(pdata, speed)) { in sysctl_link_ksettings_handler() 968 rc = pdata->phy_if.phy_config_aneg(pdata); in sysctl_link_ksettings_handler() 1179 pdata->hw_if.read_mmc_stats(pdata); in sysctl_mac_stats_handler() 1335 value = XMDIO_READ(pdata, pdata->sysctl_xpcs_mmd, in sysctl_xpcs_reg_value_handler() 1348 XMDIO_WRITE(pdata, pdata->sysctl_xpcs_mmd, in sysctl_xpcs_reg_value_handler() 1410 value = XP_IOREAD(pdata, pdata->sysctl_xprop_reg); in sysctl_xprop_reg_value_handler() 1422 XP_IOWRITE(pdata, pdata->sysctl_xprop_reg, value); in sysctl_xprop_reg_value_handler() 1483 value = XI2C_IOREAD(pdata, pdata->sysctl_xi2c_reg); in sysctl_xi2c_reg_value_handler() [all …]
|
| H A D | xgbe-txrx.c | 173 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_txd_encap() local 221 if (!pdata->tx_frames) in axgbe_isc_txd_encap() 372 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_txd_flush() local 390 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_txd_credits_update() local 446 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_rxd_refill() local 537 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_rxd_flush() local 561 struct xgbe_prv_data *pdata = &sc->pdata; in axgbe_isc_rxd_available() local 623 if (pdata->sph_enable) { in xgbe_rx_buf1_len() 656 pdata->rx_buf_size); in xgbe_rx_buf1_len() 658 if (pdata->sph_enable) { in xgbe_rx_buf1_len() [all …]
|
| H A D | xgbe-drv.c | 142 mac_hfr0 = XGMAC_IOREAD(pdata, MAC_HWF0R); in xgbe_get_all_hw_features() 143 mac_hfr1 = XGMAC_IOREAD(pdata, MAC_HWF1R); in xgbe_get_all_hw_features() 144 mac_hfr2 = XGMAC_IOREAD(pdata, MAC_HWF2R); in xgbe_get_all_hw_features() 319 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_init_tx_coalesce() 323 pdata->tx_usecs = XGMAC_INIT_DMA_TX_USECS; in xgbe_init_tx_coalesce() 324 pdata->tx_frames = XGMAC_INIT_DMA_TX_FRAMES; in xgbe_init_tx_coalesce() 326 hw_if->config_tx_coalesce(pdata); in xgbe_init_tx_coalesce() 334 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_init_rx_coalesce() 338 pdata->rx_riwt = hw_if->usec_to_riwt(pdata, XGMAC_INIT_DMA_RX_USECS); in xgbe_init_rx_coalesce() 339 pdata->rx_usecs = XGMAC_INIT_DMA_RX_USECS; in xgbe_init_rx_coalesce() [all …]
|
| H A D | xgbe-desc.c | 119 xgbe_wrapper_tx_descriptor_init(struct xgbe_prv_data *pdata) in xgbe_wrapper_tx_descriptor_init() argument 121 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_wrapper_tx_descriptor_init() 131 for (i = 0; i < pdata->channel_count; i++) { in xgbe_wrapper_tx_descriptor_init() 133 channel = pdata->channel[i]; in xgbe_wrapper_tx_descriptor_init() 163 xgbe_wrapper_rx_descriptor_init(struct xgbe_prv_data *pdata) in xgbe_wrapper_rx_descriptor_init() argument 165 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_wrapper_rx_descriptor_init() 175 for (i = 0; i < pdata->channel_count; i++) { in xgbe_wrapper_rx_descriptor_init() 177 channel = pdata->channel[i]; in xgbe_wrapper_rx_descriptor_init()
|
| /freebsd-14.2/sys/arm64/coresight/ |
| H A D | coresight_fdt.c | 92 pdata->in_ports++; in coresight_fdt_get_ports() 95 pdata->out_ports++; in coresight_fdt_get_ports() 97 mtx_lock(&pdata->mtx_lock); in coresight_fdt_get_ports() 100 mtx_unlock(&pdata->mtx_lock); in coresight_fdt_get_ports() 120 pdata->cpu = cpu_reg; in coresight_fdt_get_cpu() 138 pdata->bus_type = CORESIGHT_BUS_FDT; in coresight_fdt_get_platform_data() 141 TAILQ_INIT(&pdata->endpoints); in coresight_fdt_get_platform_data() 143 coresight_fdt_get_cpu(node, pdata); in coresight_fdt_get_platform_data() 144 coresight_fdt_get_ports(node, pdata); in coresight_fdt_get_platform_data() 148 pdata->in_ports, pdata->out_ports); in coresight_fdt_get_platform_data() [all …]
|
| H A D | coresight_acpi.c | 282 mtx_lock(&pdata->mtx_lock); in cs_acpi_record_endpoint() 284 mtx_unlock(&pdata->mtx_lock); in cs_acpi_record_endpoint() 287 pdata->out_ports++; in cs_acpi_record_endpoint() 290 pdata->in_ports++; in cs_acpi_record_endpoint() 344 pdata->cpu = cpuid; in coresight_acpi_get_cpu() 358 pdata->bus_type = CORESIGHT_BUS_ACPI; in coresight_acpi_get_platform_data() 361 TAILQ_INIT(&pdata->endpoints); in coresight_acpi_get_platform_data() 363 coresight_acpi_get_cpu(dev, pdata); in coresight_acpi_get_platform_data() 364 coresight_acpi_get_ports(dev, pdata); in coresight_acpi_get_platform_data() 368 pdata->in_ports, pdata->out_ports); in coresight_acpi_get_platform_data() [all …]
|
| H A D | coresight.c | 55 cs_dev->pdata = desc->pdata; in coresight_register() 66 coresight_get_output_endpoint(struct coresight_platform_data *pdata) in coresight_get_output_endpoint() argument 70 if (pdata->out_ports != 1) in coresight_get_output_endpoint() 73 TAILQ_FOREACH(endp, &pdata->endpoints, link) { in coresight_get_output_endpoint() 84 struct coresight_platform_data *pdata; in coresight_get_output_device() local 89 pdata = cs_dev->pdata; in coresight_get_output_device() 90 TAILQ_FOREACH(endp2, &cs_dev->pdata->endpoints, link) { in coresight_get_output_device() 91 switch (pdata->bus_type) { in coresight_get_output_device()
|
| H A D | coresight_cpu_debug.c | 67 struct coresight_platform_data *pdata; member 133 sc->pdata = coresight_fdt_get_platform_data(dev); in debug_attach() 134 desc.pdata = sc->pdata; in debug_attach()
|
| /freebsd-14.2/contrib/mandoc/ |
| H A D | dba_read.c | 42 struct dbm_page *pdata; in dba_read() local 52 pdata = dbm_page_get(ip); in dba_read() 53 page = dba_page_new(dba->pages, pdata->arch, in dba_read() 54 pdata->desc, pdata->file + 1, *pdata->file); in dba_read() 55 for (cp = pdata->name; *cp != '\0'; cp = strchr(cp, '\0') + 1) in dba_read() 57 for (cp = pdata->sect; *cp != '\0'; cp = strchr(cp, '\0') + 1) in dba_read() 59 if ((cp = pdata->arch) != NULL) in dba_read() 62 cp = pdata->file; in dba_read()
|
| /freebsd-14.2/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_grzip.c | 39 struct archive_write_program_data *pdata; member 64 data->pdata = __archive_write_program_allocate("grzip"); in archive_write_add_filter_grzip() 65 if (data->pdata == NULL) { in archive_write_add_filter_grzip() 105 return __archive_write_program_open(f, data->pdata, "grzip"); in archive_write_grzip_open() 114 return __archive_write_program_write(f, data->pdata, buff, length); in archive_write_grzip_write() 122 return __archive_write_program_close(f, data->pdata); in archive_write_grzip_close() 130 __archive_write_program_free(data->pdata); in archive_write_grzip_free()
|
| H A D | archive_write_add_filter_lrzip.c | 43 struct archive_write_program_data *pdata; member 70 data->pdata = __archive_write_program_allocate("lrzip"); in archive_write_add_filter_lrzip() 71 if (data->pdata == NULL) { in archive_write_add_filter_lrzip() 165 r = __archive_write_program_open(f, data->pdata, as.s); in archive_write_lrzip_open() 176 return __archive_write_program_write(f, data->pdata, buff, length); in archive_write_lrzip_write() 184 return __archive_write_program_close(f, data->pdata); in archive_write_lrzip_close() 192 __archive_write_program_free(data->pdata); in archive_write_lrzip_free()
|
| H A D | archive_write_add_filter_bzip2.c | 64 struct archive_write_program_data *pdata; member 106 data->pdata = __archive_write_program_allocate("bzip2"); in archive_write_add_filter_bzip2() 107 if (data->pdata == NULL) { in archive_write_add_filter_bzip2() 366 r = __archive_write_program_open(f, data->pdata, as.s); in archive_compressor_bzip2_open() 377 return __archive_write_program_write(f, data->pdata, buff, length); in archive_compressor_bzip2_write() 385 return __archive_write_program_close(f, data->pdata); in archive_compressor_bzip2_close() 393 __archive_write_program_free(data->pdata); in archive_compressor_bzip2_free()
|
| /freebsd-14.2/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-14.2/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-14.2/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-14.2/sys/dev/bxe/ |
| H A D | ecore_init.h | 383 struct cmng_struct_per_port *pdata = &ram_data->port; in ecore_init_max() local 390 pdata->rs_vars.rs_periodic_timeout = in ecore_init_max() 397 pdata->rs_vars.rs_threshold = in ecore_init_max() 437 struct cmng_struct_per_port *pdata = &ram_data->port; in ecore_init_min() local 449 pdata->fair_vars.fair_threshold = QM_ARB_BYTES; in ecore_init_min() 458 pdata->fair_vars.fairness_timeout = in ecore_init_min() 480 pdata->fair_vars.fair_threshold + in ecore_init_min() 483 pdata->fair_vars.fair_threshold + in ecore_init_min() 496 struct cmng_struct_per_port *pdata = &ram_data->port; in ecore_init_fw_wrr() local 518 if (ccd[cos] < pdata->fair_vars.fair_threshold in ecore_init_fw_wrr() [all …]
|
| /freebsd-14.2/libexec/ftpd/ |
| H A D | ftpd.c | 1737 pdata = -1; in retrieve() 1828 pdata = -1; in store() 1940 pdata = s; in dataconn() 1962 pdata = -1; in dataconn() 2859 close(pdata); in passive() 2862 if (pdata < 0) { in passive() 2924 pdata = -1; in passive() 2943 close(pdata); in long_passive() 2973 if (pdata < 0) { in long_passive() 3062 pdata = -1; in long_passive() [all …]
|