/openbmc/linux/drivers/gpu/drm/bridge/analogix/ |
H A D | analogix_dp_core.c | 1345 dp->plat_data->power_on_start(dp->plat_data); in analogix_dp_set_bridge() 1371 dp->plat_data->power_on_end(dp->plat_data); in analogix_dp_set_bridge() 1379 dp->plat_data->power_off(dp->plat_data); in analogix_dp_set_bridge() 1445 dp->plat_data->power_off(dp->plat_data); in analogix_dp_bridge_disable() 1699 if (!dp) in analogix_dp_probe() 1719 dp->phy = devm_phy_get(dp->dev, "dp"); in analogix_dp_probe() 1773 dp->irq = gpiod_to_irq(dp->hpd_gpiod); in analogix_dp_probe() 1796 return dp; in analogix_dp_probe() 1809 dp->encoder = dp->plat_data->encoder; in analogix_dp_bind() 1813 dp->aux.dev = dp->dev; in analogix_dp_bind() [all …]
|
H A D | analogix_dp_reg.c | 74 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) { in analogix_dp_init_analog_param() 125 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_reset() 237 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) { in analogix_dp_set_pll_power_down() 258 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_set_analog_power_down() 263 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_set_analog_power_down() 321 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_set_analog_power_down() 333 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_set_analog_power_down() 396 if (dp->hpd_gpiod) in analogix_dp_clear_hotplug_interrupts() 410 if (dp->hpd_gpiod) in analogix_dp_init_hpd() 481 if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) in analogix_dp_init_aux() [all …]
|
H A D | analogix_dp_core.h | 185 void analogix_dp_stop_video(struct analogix_dp_device *dp); 189 void analogix_dp_reset(struct analogix_dp_device *dp); 190 void analogix_dp_swreset(struct analogix_dp_device *dp); 200 void analogix_dp_init_hpd(struct analogix_dp_device *dp); 201 void analogix_dp_force_hpd(struct analogix_dp_device *dp); 204 void analogix_dp_reset_aux(struct analogix_dp_device *dp); 205 void analogix_dp_init_aux(struct analogix_dp_device *dp); 236 void analogix_dp_reset_macro(struct analogix_dp_device *dp); 237 void analogix_dp_init_video(struct analogix_dp_device *dp); 254 int analogix_dp_send_psr_spd(struct analogix_dp_device *dp, [all …]
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | cdn-dp-core.c | 207 if (dp->active_port < 0 || dp->active_port >= dp->ports) { in cdn_dp_check_sink_connection() 212 port = dp->port[dp->active_port]; in cdn_dp_check_sink_connection() 377 ret = cdn_dp_dpcd_read(dp, DP_DPCD_REV, dp->dpcd, in cdn_dp_get_sink_capability() 385 dp->edid = drm_do_get_edid(&dp->connector, in cdn_dp_get_sink_capability() 476 cdn_dp_disable_phy(dp, dp->port[i]); in cdn_dp_disable() 582 if (!port || !dp->max_rate || !dp->max_lanes) in cdn_dp_check_link_status() 599 dp->plugged_cb(dp->codec_dev, plugged); in cdn_dp_audio_handle_plugged_change() 831 ret = cdn_dp_audio_stop(dp, &dp->audio_info); in cdn_dp_audio_shutdown() 1026 struct cdn_dp_device *dp = port->dp; in cdn_dp_pd_event() local 1208 port->dp = dp; in cdn_dp_probe() [all …]
|
H A D | cdn-dp-reg.c | 289 dp->regs + APB_CTRL); in cdn_dp_load_firmware() 310 dp->fw_version = reg; in cdn_dp_load_firmware() 312 dp->fw_version |= reg << 8; in cdn_dp_load_firmware() 314 dp->fw_version |= reg << 16; in cdn_dp_load_firmware() 316 dp->fw_version |= reg << 24; in cdn_dp_load_firmware() 318 DRM_DEV_DEBUG(dp->dev, "firmware version: %x\n", dp->fw_version); in cdn_dp_load_firmware() 539 dp->max_lanes = status[1]; in cdn_dp_get_training_status() 563 DRM_DEV_DEBUG_KMS(dp->dev, "rate:0x%x, lanes:%d\n", dp->max_rate, in cdn_dp_train_link() 564 dp->max_lanes); in cdn_dp_train_link() 666 DRM_DEV_ERROR(dp->dev, in cdn_dp_config_video() [all …]
|
H A D | analogix_dp-rockchip.c | 212 ret = regmap_write(dp->grf, dp->data->lcdsel_grf_reg, val); in rockchip_dp_drm_encoder_enable() 286 dp->grfclk = NULL; in rockchip_dp_of_probe() 347 dp->plat_data.encoder = &dp->encoder.encoder; in rockchip_dp_bind() 355 dp->encoder.encoder.funcs->destroy(&dp->encoder.encoder); in rockchip_dp_bind() 365 dp->encoder.encoder.funcs->destroy(&dp->encoder.encoder); in rockchip_dp_unbind() 389 dp = devm_kzalloc(dev, sizeof(*dp), GFP_KERNEL); in rockchip_dp_probe() 390 if (!dp) in rockchip_dp_probe() 393 dp->dev = dev; in rockchip_dp_probe() 395 dp->data = dp_data; in rockchip_dp_probe() 397 dp->plat_data.dev_type = dp->data->chip_type; in rockchip_dp_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_display.c | 283 priv->dp[dp->id] = &dp->dp_display; in dp_display_bind() 285 rc = dp->parser->parse(dp->parser); in dp_display_bind() 342 priv->dp[dp->id] = NULL; in dp_display_unbind() 751 dp->parser = dp_parser_get(dp->pdev); in dp_init_sub_modules() 775 dp->aux = dp_aux_get(dev, dp->catalog, dp->dp_display.is_edp); in dp_init_sub_modules() 783 dp->link = dp_link_get(dev, dp->aux); in dp_init_sub_modules() 803 dp->ctrl = dp_ctrl_get(dev, dp->link, dp->panel, dp->aux, in dp_init_sub_modules() 804 dp->power, dp->catalog, dp->parser); in dp_init_sub_modules() 812 dp->audio = dp_audio_get(dp->pdev, dp->panel, dp->catalog); in dp_init_sub_modules() 821 dp->ctrl->wide_bus_en = dp->wide_bus_en; in dp_init_sub_modules() [all …]
|
/openbmc/linux/net/dsa/ |
H A D | port.c | 489 .dp = dp, in dsa_port_bridge_join() 559 .dp = dp, in dsa_port_bridge_leave() 589 .dp = dp, in dsa_port_lag_change() 658 .dp = dp, in dsa_port_lag_join() 704 .dp = dp, in dsa_port_lag_leave() 973 .dp = dp, in dsa_port_mtu_change() 984 .dp = dp, in dsa_port_fdb_add() 1007 .dp = dp, in dsa_port_fdb_del() 1027 .dp = dp, in dsa_port_host_fdb_add() 1041 .dp = dp, in dsa_port_standalone_host_fdb_add() [all …]
|
H A D | port.h | 18 bool dsa_port_supports_hwtstamp(struct dsa_port *dp); 22 int dsa_port_set_mst_state(struct dsa_port *dp, 27 void dsa_port_disable_rt(struct dsa_port *dp); 28 void dsa_port_disable(struct dsa_port *dp); 33 int dsa_port_lag_change(struct dsa_port *dp, 46 int dsa_port_vlan_msti(struct dsa_port *dp, 66 int dsa_port_mdb_add(const struct dsa_port *dp, 68 int dsa_port_mdb_del(const struct dsa_port *dp, 81 int dsa_port_bridge_flags(struct dsa_port *dp, 84 int dsa_port_vlan_add(struct dsa_port *dp, [all …]
|
H A D | switch.c | 29 if (dp->ageing_time && dp->ageing_time < ageing_time) in dsa_switch_fastest_ageing_time() 58 return dp == info->dp || dsa_port_is_dsa(dp) || dsa_port_is_cpu(dp); in dsa_port_mtu_match() 168 if (!(dsa_port_is_cpu(dp) || dsa_port_is_dsa(dp))) { in dsa_port_do_mdb_add() 220 if (!(dsa_port_is_cpu(dp) || dsa_port_is_dsa(dp))) { in dsa_port_do_mdb_del() 444 if (dsa_port_host_address_match(dp, info->dp)) { in dsa_switch_host_fdb_add() 472 if (dsa_port_host_address_match(dp, info->dp)) { in dsa_switch_host_fdb_del() 625 if (dsa_port_host_address_match(dp, info->dp)) { in dsa_switch_host_mdb_add() 659 return dsa_port_is_dsa(dp) || dp == info->dp; in dsa_port_vlan_match() 671 return dsa_port_is_dsa(dp) || dp == cpu_dp; in dsa_port_host_vlan_match() 842 if (dsa_port_host_vlan_match(dp, info->dp)) { in dsa_switch_host_vlan_add() [all …]
|
H A D | dsa.c | 298 if (dl->dp == dp && dl->link_dp == link_dp) in dsa_link_touch() 305 dl->dp = dp; in dsa_link_touch() 399 if (dsa_port_is_user(dp) || dsa_port_is_dsa(dp)) in dsa_tree_setup_default_cpu() 447 if (dsa_port_is_user(dp) || dsa_port_is_dsa(dp)) in dsa_tree_setup_cpu_ports() 460 if (dsa_port_is_user(dp) || dsa_port_is_dsa(dp)) in dsa_tree_teardown_cpu_ports() 519 of_get_mac_address(dp->dn, dp->mac); in dsa_port_setup() 735 if (dsa_port_is_dsa(dp) || dsa_port_is_cpu(dp)) in dsa_tree_teardown_ports() 754 if (dsa_port_is_dsa(dp) || dsa_port_is_cpu(dp)) { in dsa_tree_setup_ports() 1098 dp = kzalloc(sizeof(*dp), GFP_KERNEL); in dsa_port_touch() 1099 if (!dp) in dsa_port_touch() [all …]
|
/openbmc/linux/drivers/gpu/drm/xlnx/ |
H A D | zynqmp_dp.c | 856 memset(dp->train_set, 0, sizeof(dp->train_set)); in zynqmp_dp_train() 1058 dp->aux.dev = dp->dev; in zynqmp_dp_aux_init() 1059 dp->aux.drm_dev = dp->bridge.dev; in zynqmp_dp_aux_init() 1382 dp->link_config.max_lanes, dp->config.bpp); in zynqmp_dp_bridge_mode_valid() 1428 dp->link_config.max_lanes, dp->config.bpp); in zynqmp_dp_bridge_atomic_enable() 1540 ret = drm_dp_dpcd_read(&dp->aux, 0x0, dp->dpcd, in zynqmp_dp_bridge_detect() 1677 dp = kzalloc(sizeof(*dp), GFP_KERNEL); in zynqmp_dp_probe() 1678 if (!dp) in zynqmp_dp_probe() 1758 dev_name(dp->dev), dp); in zynqmp_dp_probe() 1762 dpsub->dp = dp; in zynqmp_dp_probe() [all …]
|
/openbmc/linux/drivers/usb/typec/ucsi/ |
H A D | displayport.c | 59 if (!dp->override && dp->initialized) { in ucsi_displayport_enter() 178 dp->vdo_data = &dp->data.status; in ucsi_displayport_status_update() 207 if (!dp->override && dp->initialized) { in ucsi_displayport_vdm() 278 ret = typec_altmode_vdm(dp->alt, dp->header, in ucsi_displayport_work() 279 dp->vdo_data, dp->vdo_size); in ucsi_displayport_work() 281 dev_err(&dp->alt->dev, "VDM 0x%x failed\n", dp->header); in ucsi_displayport_work() 296 if (!dp) in ucsi_displayport_remove_partner() 324 dp = devm_kzalloc(&alt->dev, sizeof(*dp), GFP_KERNEL); in ucsi_register_displayport() 325 if (!dp) { in ucsi_register_displayport() 333 dp->con = con; in ucsi_register_displayport() [all …]
|
/openbmc/linux/drivers/usb/typec/altmodes/ |
H A D | displayport.c | 84 return typec_altmode_notify(dp->alt, conf, &dp->data); in dp_altmode_notify() 151 dp->hpd = hpd; in dp_altmode_status_update() 158 dp->hpd = hpd; in dp_altmode_status_update() 194 ret = typec_altmode_notify(dp->alt, TYPEC_STATE_SAFE, &dp->data); in dp_altmode_configure_vdm() 237 ret = dp_altmode_configure_vdm(dp, dp->data.conf); in dp_altmode_work() 307 if (dp->hpd) { in dp_altmode_vdm() 498 if (dp->alt->active && DP_CONF_CURRENTLY(dp->data.conf)) { in pin_assignment_store() 589 dp = devm_kzalloc(&alt->dev, sizeof(*dp), GFP_KERNEL); in dp_altmode_probe() 590 if (!dp) in dp_altmode_probe() 596 dp->alt = alt; in dp_altmode_probe() [all …]
|
/openbmc/linux/sound/core/seq/oss/ |
H A D | seq_oss_init.c | 176 dp = kzalloc(sizeof(*dp), GFP_KERNEL); in snd_seq_oss_open() 177 if (!dp) in snd_seq_oss_open() 200 if (dp->synth_opened == 0 && dp->max_mididev == 0) { in snd_seq_oss_open() 219 dp->addr.client = dp->cseq; in snd_seq_oss_open() 220 dp->addr.port = dp->port; in snd_seq_oss_open() 231 dp->readq = snd_seq_oss_readq_new(dp, maxqlen); in snd_seq_oss_open() 240 dp->writeq = snd_seq_oss_writeq_new(dp, maxqlen); in snd_seq_oss_open() 248 dp->timer = snd_seq_oss_timer_new(dp); in snd_seq_oss_open() 264 client_table[dp->index] = dp; in snd_seq_oss_open() 397 kfree(dp); in free_devinfo() [all …]
|
H A D | seq_oss_ioctl.c | 52 snd_seq_oss_fill_addr(dp, &tmpev, dp->addr.client, dp->addr.port); in snd_seq_oss_oob_user() 80 snd_seq_oss_reset(dp); in snd_seq_oss_ioctl() 84 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_ioctl() 93 snd_seq_oss_reset(dp); in snd_seq_oss_ioctl() 99 return snd_seq_oss_midi_open(dp, dev, dp->file_mode); in snd_seq_oss_ioctl() 102 if (dp->readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_ioctl() 107 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_ioctl() 148 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_ioctl() 154 if (val >= dp->writeq->maxlen) in snd_seq_oss_ioctl() 155 val = dp->writeq->maxlen - 1; in snd_seq_oss_ioctl() [all …]
|
H A D | seq_oss_event.c | 46 return extended_event(dp, q, ev); in snd_seq_oss_process_event() 49 return chn_voice_event(dp, q, ev); in snd_seq_oss_process_event() 55 return timing_event(dp, q, ev); in snd_seq_oss_process_event() 58 return local_event(dp, q, ev); in snd_seq_oss_process_event() 78 return set_echo_event(dp, q, ev); in snd_seq_oss_process_event() 88 return old_event(dp, q, ev); in snd_seq_oss_process_event() 238 if (dp->seq_mode) in timing_event() 243 if (dp->seq_mode) in timing_event() 248 if (dp->seq_mode) in timing_event() 412 snd_seq_oss_fill_addr(dp, ev, dp->addr.client, dp->addr.port); in set_echo_event() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_dp.c | 65 tx_ring->txrwb = dp->txrwb ? &dp->txrwb[idx] : NULL; in nfp_net_tx_ring_init() 187 dp->tx_rings = kcalloc(dp->num_tx_rings, sizeof(*dp->tx_rings), in nfp_net_tx_rings_prepare() 193 dp->txrwb = dma_alloc_coherent(dp->dev, in nfp_net_tx_rings_prepare() 206 nfp_net_tx_ring_init(&dp->tx_rings[r], dp, in nfp_net_tx_rings_prepare() 209 if (nfp_net_tx_ring_alloc(dp, &dp->tx_rings[r])) in nfp_net_tx_rings_prepare() 222 nfp_net_tx_ring_free(dp, &dp->tx_rings[r]); in nfp_net_tx_rings_prepare() 226 dp->txrwb, dp->txrwb_dma); in nfp_net_tx_rings_prepare() 238 nfp_net_tx_ring_free(dp, &dp->tx_rings[r]); in nfp_net_tx_rings_free() 243 dp->txrwb, dp->txrwb_dma); in nfp_net_tx_rings_free() 254 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_net_rx_ring_free() local [all …]
|
H A D | nfp_net_dp.h | 12 dp->fl_bufsz - NFP_NET_RX_BUF_NON_DATA, in nfp_net_dma_map_rx() 19 dma_sync_single_for_device(dp->dev, dma_addr, in nfp_net_dma_sync_dev_rx() 21 dp->rx_dma_dir); in nfp_net_dma_sync_dev_rx() 27 dma_unmap_single_attrs(dp->dev, dma_addr, in nfp_net_dma_unmap_rx() 37 len, dp->rx_dma_dir); in nfp_net_dma_sync_cpu_rx() 169 return dp->ops->tx_ring_reset(dp, tx_ring); in nfp_net_tx_ring_reset() 176 dp->ops->rx_ring_fill_freelist(dp, rx_ring); in nfp_net_rx_ring_fill_freelist() 182 return dp->ops->tx_ring_alloc(dp, tx_ring); in nfp_net_tx_ring_alloc() 188 dp->ops->tx_ring_free(tx_ring); in nfp_net_tx_ring_free() 195 return dp->ops->tx_ring_bufs_alloc(dp, tx_ring); in nfp_net_tx_ring_bufs_alloc() [all …]
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_dp.c | 110 if (dp->ptn_bridge) { in exynos_dp_bridge_attach() 111 ret = drm_bridge_attach(&dp->encoder, dp->ptn_bridge, bridge, in exynos_dp_bridge_attach() 141 ret = of_get_videomode(dp->dev->of_node, &dp->vm, OF_USE_NATIVE_MODE); in exynos_dp_dt_parse_panel() 159 if (!dp->plat_data.panel && !dp->ptn_bridge) { in exynos_dp_bind() 175 ret = analogix_dp_bind(dp->adp, dp->drm_dev); in exynos_dp_bind() 177 dp->encoder.funcs->destroy(&dp->encoder); in exynos_dp_bind() 188 dp->encoder.funcs->destroy(&dp->encoder); in exynos_dp_unbind() 207 if (!dp) in exynos_dp_probe() 210 dp->dev = dev; in exynos_dp_probe() 246 dp->adp = analogix_dp_probe(dev, &dp->plat_data); in exynos_dp_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | dp.c | 395 ret = ior->func->dp->links(ior, outp->dp.aux); in nvkm_dp_train_links() 404 ior->func->dp->power(ior, ior->dp.nr); in nvkm_dp_train_links() 475 ior->dp.mst = outp->dp.lt.mst; in nvkm_dp_train() 488 ior->dp.bw = outp->dp.rate[rate].rate / 27000; in nvkm_dp_train() 501 ior->dp.bw = outp->dp.rate[rate].rate / 27000; in nvkm_dp_train() 559 linkKBps = ior->dp.bw * 27000 * ior->dp.nr; in nvkm_dp_acquire() 623 outp->dp.rate[k] = outp->dp.rate[k - 1]; in nvkm_dp_enable_supported_link_rates() 746 if (outp->dp.lttprs && outp->dp.lttpr[4]) in nvkm_dp_enable() 747 outp->dp.links = min_t(int, outp->dp.links, outp->dp.lttpr[4]); in nvkm_dp_enable() 751 if (outp->dp.lttprs && outp->dp.lttpr[1]) in nvkm_dp_enable() [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | prom_64.c | 78 if (!of_node_is_root(dp->parent)) { in sun4v_path_component() 119 if (!of_node_is_root(dp->parent)) { in sun4u_path_component() 316 pci_path_component(dp, tmp_buf); in __build_path_component() 324 upa_path_component(dp, tmp_buf); in __build_path_component() 436 struct device_node *dp; in of_iterate_over_cpus() local 462 ret = func(dp, cpuid, arg); in of_iterate_over_cpus() 472 return dp; in check_cpu_node() 510 portid_parent = dp; in fill_in_one_cpu() 602 struct device_node *dp; in of_console_init() local 626 if (!of_node_is_type(dp, "display") && !of_node_is_type(dp, "serial")) { in of_console_init() [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_device_path.c | 27 .dp = { 77 dp = ((void *)dp) + dp->length; in efi_dp_next() 137 dp = efi_dp_next(dp); in shorten_path() 223 dp = efi_dp_next(dp); in efi_dp_last_node() 237 dp = efi_dp_next(dp); in efi_dp_instance_size() 384 if (!dp || !*dp) in efi_dp_get_next_instance() 391 *dp = (void *)*dp + sz; in efi_dp_get_next_instance() 393 *dp = (void *)*dp + sizeof(END); in efi_dp_get_next_instance() 494 dp->dp.length = sizeof(*dp); in dp_fill() 514 dp->dp.length = sizeof(*dp); in dp_fill() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ne2000_base.c | 131 dp->esa[0], in dp83902a_init() 132 dp->esa[1], in dp83902a_init() 133 dp->esa[2], in dp83902a_init() 182 dp->tx1 = dp->tx2 = 0; in dp83902a_start() 183 dp->tx_next = dp->tx_buf1; in dp83902a_start() 189 dp->rx_next = dp->rx_buf_start - 1; in dp83902a_start() 260 if (dp->tx_next == dp->tx_buf1) { in dp83902a_send() 264 dp->tx_next = dp->tx_buf2; in dp83902a_send() 269 dp->tx_next = dp->tx_buf1; in dp83902a_send() 531 dp83902a_start_xmit(dp->tx1, dp->tx1_len); in dp83902a_TxEvent() [all …]
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | unwind_decoder.c | 99 return dp; in unw_decode_x1() 108 byte1 = *dp++; byte2 = *dp++; in unw_decode_x2() 117 return dp; in unw_decode_x2() 126 byte1 = *dp++; byte2 = *dp++; in unw_decode_x3() 137 return dp; in unw_decode_x3() 146 byte1 = *dp++; byte2 = *dp++; byte3 = *dp++; in unw_decode_x4() 158 return dp; in unw_decode_x4() 245 byte1 = *dp++; byte2 = *dp++; byte3 = *dp++; in unw_decode_p2_p5() 338 byte1 = *dp++; byte2 = *dp++; in unw_decode_p7_p10() 343 byte1 = *dp++; byte2 = *dp++; in unw_decode_p7_p10() [all …]
|