/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/ |
D | dp_aux.c | 55 static u32 dp_aux_write(struct dp_aux_private *aux, in dp_aux_write() argument 63 if (aux->read) in dp_aux_write() 79 if (aux->read) in dp_aux_write() 93 aux->catalog->aux_data = reg; in dp_aux_write() 94 dp_catalog_aux_write_data(aux->catalog); in dp_aux_write() 97 dp_catalog_aux_clear_trans(aux->catalog, false); in dp_aux_write() 98 dp_catalog_aux_clear_hw_interrupts(aux->catalog); in dp_aux_write() 101 if (!aux->native) { /* i2c */ in dp_aux_write() 104 if (aux->no_send_addr) in dp_aux_write() 107 if (aux->no_send_stop) in dp_aux_write() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | aux.c | 30 struct nvkm_i2c_aux *aux = container_of(adap, typeof(*aux), i2c); in nvkm_i2c_aux_i2c_xfer() local 34 ret = nvkm_i2c_aux_acquire(aux); in nvkm_i2c_aux_i2c_xfer() 57 ret = aux->func->xfer(aux, true, cmd, in nvkm_i2c_aux_i2c_xfer() 63 AUX_TRACE(aux, "no data after 32 retries"); in nvkm_i2c_aux_i2c_xfer() 77 nvkm_i2c_aux_release(aux); in nvkm_i2c_aux_i2c_xfer() 94 nvkm_i2c_aux_monitor(struct nvkm_i2c_aux *aux, bool monitor) in nvkm_i2c_aux_monitor() argument 96 struct nvkm_i2c_pad *pad = aux->pad; in nvkm_i2c_aux_monitor() 97 AUX_TRACE(aux, "monitor: %s", monitor ? "yes" : "no"); in nvkm_i2c_aux_monitor() 105 nvkm_i2c_aux_release(struct nvkm_i2c_aux *aux) in nvkm_i2c_aux_release() argument 107 struct nvkm_i2c_pad *pad = aux->pad; in nvkm_i2c_aux_release() [all …]
|
D | auxgm200.c | 33 gm200_i2c_aux_fini(struct gm200_i2c_aux *aux) in gm200_i2c_aux_fini() argument 35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm200_i2c_aux_fini() 36 nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00710000, 0x00000000); in gm200_i2c_aux_fini() 40 gm200_i2c_aux_init(struct gm200_i2c_aux *aux) in gm200_i2c_aux_init() argument 42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in gm200_i2c_aux_init() 51 ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50)); in gm200_i2c_aux_init() 54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in gm200_i2c_aux_init() 60 nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00700000, ureq); in gm200_i2c_aux_init() 63 ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50)); in gm200_i2c_aux_init() 66 AUX_ERR(&aux->base, "magic wait %08x", ctrl); in gm200_i2c_aux_init() [all …]
|
D | auxg94.c | 33 g94_i2c_aux_fini(struct g94_i2c_aux *aux) in g94_i2c_aux_fini() argument 35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_fini() 36 nvkm_mask(device, 0x00e4e4 + (aux->ch * 0x50), 0x00310000, 0x00000000); in g94_i2c_aux_fini() 40 g94_i2c_aux_init(struct g94_i2c_aux *aux) in g94_i2c_aux_init() argument 42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_init() 51 ctrl = nvkm_rd32(device, 0x00e4e4 + (aux->ch * 0x50)); in g94_i2c_aux_init() 54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in g94_i2c_aux_init() 60 nvkm_mask(device, 0x00e4e4 + (aux->ch * 0x50), 0x00300000, ureq); in g94_i2c_aux_init() 63 ctrl = nvkm_rd32(device, 0x00e4e4 + (aux->ch * 0x50)); in g94_i2c_aux_init() 66 AUX_ERR(&aux->base, "magic wait %08x", ctrl); in g94_i2c_aux_init() [all …]
|
D | anx9805.c | 139 struct anx9805_aux *aux = anx9805_aux(base); in anx9805_aux_xfer() local 140 struct anx9805_pad *pad = aux->pad; in anx9805_aux_xfer() 146 AUX_DBG(&aux->base, "%02x %05x %d", type, addr, *size); in anx9805_aux_xfer() 153 nvkm_wri2cr(adap, aux->addr, 0xe4, 0x80); in anx9805_aux_xfer() 156 AUX_DBG(&aux->base, "%16ph", buf); in anx9805_aux_xfer() 158 nvkm_wri2cr(adap, aux->addr, 0xf0 + i, buf[i]); in anx9805_aux_xfer() 160 nvkm_wri2cr(adap, aux->addr, 0xe5, ((*size - 1) << 4) | type); in anx9805_aux_xfer() 161 nvkm_wri2cr(adap, aux->addr, 0xe6, (addr & 0x000ff) >> 0); in anx9805_aux_xfer() 162 nvkm_wri2cr(adap, aux->addr, 0xe7, (addr & 0x0ff00) >> 8); in anx9805_aux_xfer() 163 nvkm_wri2cr(adap, aux->addr, 0xe8, (addr & 0xf0000) >> 16); in anx9805_aux_xfer() [all …]
|
D | base.c | 79 struct nvkm_i2c_aux *aux; in nvkm_i2c_aux_find() local 81 list_for_each_entry(aux, &i2c->aux, head) { in nvkm_i2c_aux_find() 82 if (aux->id == id) in nvkm_i2c_aux_find() 83 return aux; in nvkm_i2c_aux_find() 93 struct nvkm_i2c_aux *aux = nvkm_i2c_aux_find(i2c, id); in nvkm_i2c_intr_fini() local 94 if (aux) in nvkm_i2c_intr_fini() 95 i2c->func->aux_mask(i2c, type, aux->intr, 0); in nvkm_i2c_intr_fini() 102 struct nvkm_i2c_aux *aux = nvkm_i2c_aux_find(i2c, id); in nvkm_i2c_intr_init() local 103 if (aux) in nvkm_i2c_intr_init() 104 i2c->func->aux_mask(i2c, type, aux->intr, aux->intr); in nvkm_i2c_intr_init() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_dp_cec.c | 94 struct drm_dp_aux *aux = cec_get_drvdata(adap); in drm_dp_cec_adap_enable() local 98 err = drm_dp_dpcd_writeb(aux, DP_CEC_TUNNELING_CONTROL, val); in drm_dp_cec_adap_enable() 104 struct drm_dp_aux *aux = cec_get_drvdata(adap); in drm_dp_cec_adap_log_addr() local 114 err = drm_dp_dpcd_write(aux, DP_CEC_LOGICAL_ADDRESS_MASK, mask, 2); in drm_dp_cec_adap_log_addr() 121 struct drm_dp_aux *aux = cec_get_drvdata(adap); in drm_dp_cec_adap_transmit() local 125 err = drm_dp_dpcd_write(aux, DP_CEC_TX_MESSAGE_BUFFER, in drm_dp_cec_adap_transmit() 130 err = drm_dp_dpcd_writeb(aux, DP_CEC_TX_MESSAGE_INFO, in drm_dp_cec_adap_transmit() 139 struct drm_dp_aux *aux = cec_get_drvdata(adap); in drm_dp_cec_adap_monitor_all_enable() local 146 err = drm_dp_dpcd_readb(aux, DP_CEC_TUNNELING_CONTROL, &val); in drm_dp_cec_adap_monitor_all_enable() 152 err = drm_dp_dpcd_writeb(aux, DP_CEC_TUNNELING_CONTROL, val); in drm_dp_cec_adap_monitor_all_enable() [all …]
|
D | drm_dp_helper.c | 188 drm_dp_dump_access(const struct drm_dp_aux *aux, in drm_dp_dump_access() argument 195 aux->name, offset, arrow, ret, min(ret, 20), buffer); in drm_dp_dump_access() 198 aux->name, offset, arrow, ret); in drm_dp_dump_access() 213 static int drm_dp_dpcd_access(struct drm_dp_aux *aux, u8 request, in drm_dp_dpcd_access() argument 226 mutex_lock(&aux->hw_mutex); in drm_dp_dpcd_access() 240 ret = aux->transfer(aux, &msg); in drm_dp_dpcd_access() 262 aux->name, err); in drm_dp_dpcd_access() 266 mutex_unlock(&aux->hw_mutex); in drm_dp_dpcd_access() 284 ssize_t drm_dp_dpcd_read(struct drm_dp_aux *aux, unsigned int offset, in drm_dp_dpcd_read() argument 301 if (!aux->is_remote) { in drm_dp_dpcd_read() [all …]
|
D | drm_dp_aux_dev.c | 47 struct drm_dp_aux *aux; member 73 static struct drm_dp_aux_dev *alloc_drm_dp_aux_dev(struct drm_dp_aux *aux) in alloc_drm_dp_aux_dev() argument 81 aux_dev->aux = aux; in alloc_drm_dp_aux_dev() 115 res = sprintf(buf, "%s\n", aux_dev->aux->name); in name_show() 166 res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo); in auxdev_read_iter() 214 res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo); in auxdev_write_iter() 249 #define to_auxdev(d) container_of(d, struct drm_dp_aux_dev, aux) 251 static struct drm_dp_aux_dev *drm_dp_aux_dev_get_by_aux(struct drm_dp_aux *aux) in drm_dp_aux_dev_get_by_aux() argument 263 if (iter->aux == aux) { in drm_dp_aux_dev_get_by_aux() 272 void drm_dp_aux_unregister_devnode(struct drm_dp_aux *aux) in drm_dp_aux_unregister_devnode() argument [all …]
|
/kernel/linux/linux-5.10/drivers/clk/spear/ |
D | clk-aux-synth.c | 47 struct clk_aux *aux = to_clk_aux(hw); in aux_calc_rate() local 48 struct aux_rate_tbl *rtbl = aux->rtbl; in aux_calc_rate() 58 struct clk_aux *aux = to_clk_aux(hw); in clk_aux_round_rate() local 62 aux->rtbl_cnt, &unused); in clk_aux_round_rate() 68 struct clk_aux *aux = to_clk_aux(hw); in clk_aux_recalc_rate() local 72 if (aux->lock) in clk_aux_recalc_rate() 73 spin_lock_irqsave(aux->lock, flags); in clk_aux_recalc_rate() 75 val = readl_relaxed(aux->reg); in clk_aux_recalc_rate() 77 if (aux->lock) in clk_aux_recalc_rate() 78 spin_unlock_irqrestore(aux->lock, flags); in clk_aux_recalc_rate() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/edp/ |
D | edp_aux.c | 33 static int edp_msg_fifo_tx(struct edp_aux *aux, struct drm_dp_aux_msg *msg) in edp_msg_fifo_tx() argument 67 edp_write(aux->base + REG_EDP_AUX_DATA, reg); in edp_msg_fifo_tx() 75 edp_write(aux->base + REG_EDP_AUX_TRANS_CTRL, reg); in edp_msg_fifo_tx() 80 static int edp_msg_fifo_rx(struct edp_aux *aux, struct drm_dp_aux_msg *msg) in edp_msg_fifo_rx() argument 87 edp_write(aux->base + REG_EDP_AUX_DATA, in edp_msg_fifo_rx() 93 data = edp_read(aux->base + REG_EDP_AUX_DATA); in edp_msg_fifo_rx() 95 data = edp_read(aux->base + REG_EDP_AUX_DATA); in edp_msg_fifo_rx() 113 struct edp_aux *aux = to_edp_aux(drm_aux); in edp_aux_transfer() local 134 mutex_lock(&aux->msg_mutex); in edp_aux_transfer() 136 aux->msg_err = false; in edp_aux_transfer() [all …]
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | perf_cpum_sf.c | 1363 #define AUX_SDB_INDEX(aux, i) ((i) % aux->sfb.num_sdb) argument 1364 #define AUX_SDB_NUM(aux, start, end) (end >= start ? end - start + 1 : 0) argument 1365 #define AUX_SDB_NUM_ALERT(aux) AUX_SDB_NUM(aux, aux->head, aux->alert_mark) argument 1366 #define AUX_SDB_NUM_EMPTY(aux) AUX_SDB_NUM(aux, aux->head, aux->empty_mark) argument 1371 static struct hws_trailer_entry *aux_sdb_trailer(struct aux_buffer *aux, in aux_sdb_trailer() argument 1376 index = AUX_SDB_INDEX(aux, index); in aux_sdb_trailer() 1377 sdb = aux->sdb_index[index]; in aux_sdb_trailer() 1393 struct aux_buffer *aux; in aux_output_end() local 1396 aux = perf_get_aux(handle); in aux_output_end() 1397 if (!aux) in aux_output_end() [all …]
|
/kernel/linux/linux-5.10/drivers/md/persistent-data/ |
D | dm-block-manager.c | 356 struct buffer_aux *aux = dm_bufio_get_aux_data(buf); in dm_block_manager_alloc_callback() local 357 aux->validator = NULL; in dm_block_manager_alloc_callback() 358 bl_init(&aux->lock); in dm_block_manager_alloc_callback() 363 struct buffer_aux *aux = dm_bufio_get_aux_data(buf); in dm_block_manager_write_callback() local 364 if (aux->validator) { in dm_block_manager_write_callback() 365 aux->validator->prepare_for_write(aux->validator, (struct dm_block *) buf, in dm_block_manager_write_callback() 430 struct buffer_aux *aux, in dm_bm_validate_buffer() argument 433 if (unlikely(!aux->validator)) { in dm_bm_validate_buffer() 443 aux->validator = v; in dm_bm_validate_buffer() 445 if (unlikely(aux->validator != v)) { in dm_bm_validate_buffer() [all …]
|
/kernel/linux/linux-5.10/tools/perf/arch/s390/util/ |
D | auxtrace.c | 90 struct auxtrace_record *aux; in auxtrace_record__init() local 109 aux = zalloc(sizeof(*aux)); in auxtrace_record__init() 110 if (aux == NULL) { in auxtrace_record__init() 115 aux->parse_snapshot_options = cpumsf_parse_snapshot_options; in auxtrace_record__init() 116 aux->recording_options = cpumsf_recording_options; in auxtrace_record__init() 117 aux->info_priv_size = cpumsf_info_priv_size; in auxtrace_record__init() 118 aux->info_fill = cpumsf_info_fill; in auxtrace_record__init() 119 aux->free = cpumsf_free; in auxtrace_record__init() 120 aux->reference = cpumsf_reference; in auxtrace_record__init() 122 return aux; in auxtrace_record__init()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | core.c | 86 struct bpf_prog_aux *aux; in bpf_prog_alloc_no_stats() local 94 aux = kzalloc(sizeof(*aux), GFP_KERNEL | gfp_extra_flags); in bpf_prog_alloc_no_stats() 95 if (aux == NULL) { in bpf_prog_alloc_no_stats() 101 fp->aux = aux; in bpf_prog_alloc_no_stats() 102 fp->aux->prog = fp; in bpf_prog_alloc_no_stats() 105 INIT_LIST_HEAD_RCU(&fp->aux->ksym.lnode); in bpf_prog_alloc_no_stats() 106 mutex_init(&fp->aux->used_maps_mutex); in bpf_prog_alloc_no_stats() 107 mutex_init(&fp->aux->dst_mutex); in bpf_prog_alloc_no_stats() 122 prog->aux->stats = alloc_percpu_gfp(struct bpf_prog_stats, gfp_flags); in bpf_prog_alloc() 123 if (!prog->aux->stats) { in bpf_prog_alloc() [all …]
|
D | arraymap.c | 603 struct bpf_iter_aux_info *aux) in bpf_iter_init_array_map() argument 606 struct bpf_map *map = aux->map; in bpf_iter_init_array_map() 758 mutex_lock(&array->aux->poke_mutex); in bpf_fd_array_map_update_elem() 761 mutex_unlock(&array->aux->poke_mutex); in bpf_fd_array_map_update_elem() 781 mutex_lock(&array->aux->poke_mutex); in fd_array_map_delete_elem() 784 mutex_unlock(&array->aux->poke_mutex); in fd_array_map_delete_elem() 821 return ((struct bpf_prog *)ptr)->aux->id; in prog_fd_array_sys_lookup_elem() 859 struct bpf_prog_aux *aux; member 866 struct bpf_array_aux *aux; in prog_array_map_poke_track() local 869 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_track() [all …]
|
/kernel/linux/linux-5.10/kernel/bpf/preload/iterators/ |
D | iterators.bpf.c | 51 struct bpf_prog_aux *aux; member 100 struct bpf_prog_aux *aux; in dump_bpf_prog() local 105 aux = prog->aux; in dump_bpf_prog() 109 BPF_SEQ_PRINTF(seq, "%4u %-16s %s %s\n", aux->id, in dump_bpf_prog() 110 get_name(aux->btf, aux->func_info[0].type_id, aux->name), in dump_bpf_prog() 111 aux->attach_func_name, aux->dst_prog->aux->name); in dump_bpf_prog()
|
/kernel/linux/linux-5.10/scripts/basic/ |
D | fixdep.c | 184 struct item *aux; in is_defined_config() local 186 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { in is_defined_config() 187 if (aux->hash == hash && aux->len == len && in is_defined_config() 188 memcmp(aux->name, name, len) == 0) in is_defined_config() 199 struct item *aux = malloc(sizeof(*aux) + len); in define_config() local 201 if (!aux) { in define_config() 205 memcpy(aux->name, name, len); in define_config() 206 aux->len = len; in define_config() 207 aux->hash = hash; in define_config() 208 aux->next = hashtab[hash % HASHSZ]; in define_config() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_lspcon.c | 79 if (drm_dp_read_desc(&dp->aux, &dp->desc, drm_dp_is_branch(dp->dpcd))) { in lspcon_detect_vendor() 110 struct i2c_adapter *adapter = &lspcon_to_intel_dp(lspcon)->aux.ddc; in lspcon_get_current_mode() 147 struct i2c_adapter *adapter = &lspcon_to_intel_dp(lspcon)->aux.ddc; in lspcon_change_mode() 175 if (drm_dp_dpcd_readb(&lspcon_to_intel_dp(lspcon)->aux, DP_DPCD_REV, in lspcon_wake_native_aux_ch() 206 struct i2c_adapter *adapter = &lspcon_to_intel_dp(lspcon)->aux.ddc; in lspcon_probe() 268 static bool lspcon_parade_fw_ready(struct drm_dp_aux *aux) in lspcon_parade_fw_ready() argument 279 ret = drm_dp_dpcd_read(aux, LSPCON_PARADE_AVI_IF_CTRL, in lspcon_parade_fw_ready() 294 static bool _lspcon_parade_write_infoframe_blocks(struct drm_dp_aux *aux, in _lspcon_parade_write_infoframe_blocks() argument 304 if (!lspcon_parade_fw_ready(aux)) { in _lspcon_parade_write_infoframe_blocks() 312 ret = drm_dp_dpcd_write(aux, reg, data, 8); in _lspcon_parade_write_infoframe_blocks() [all …]
|
/kernel/linux/linux-5.10/fs/afs/ |
D | cache.c | 46 struct afs_vnode_cache_aux aux; in afs_vnode_cache_check_aux() local 52 memcpy(&aux, buffer, sizeof(aux)); in afs_vnode_cache_check_aux() 55 if (buflen != sizeof(aux)) { in afs_vnode_cache_check_aux() 56 _leave(" = OBSOLETE [len %hx != %zx]", buflen, sizeof(aux)); in afs_vnode_cache_check_aux() 60 if (vnode->status.data_version != aux.data_version) { in afs_vnode_cache_check_aux() 62 aux.data_version, vnode->status.data_version); in afs_vnode_cache_check_aux()
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | cache.c | 112 struct ceph_aux_inode aux; in ceph_fscache_inode_check_aux() local 116 if (dlen != sizeof(aux) || in ceph_fscache_inode_check_aux() 120 memset(&aux, 0, sizeof(aux)); in ceph_fscache_inode_check_aux() 121 aux.version = ci->i_version; in ceph_fscache_inode_check_aux() 122 aux.mtime_sec = inode->i_mtime.tv_sec; in ceph_fscache_inode_check_aux() 123 aux.mtime_nsec = inode->i_mtime.tv_nsec; in ceph_fscache_inode_check_aux() 125 if (memcmp(data, &aux, sizeof(aux)) != 0) in ceph_fscache_inode_check_aux() 142 struct ceph_aux_inode aux; in ceph_fscache_register_inode_cookie() local 154 memset(&aux, 0, sizeof(aux)); in ceph_fscache_register_inode_cookie() 155 aux.version = ci->i_version; in ceph_fscache_register_inode_cookie() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | atombios_dp.c | 127 amdgpu_atombios_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg) in amdgpu_atombios_dp_aux_transfer() argument 130 container_of(aux, struct amdgpu_i2c_chan, aux); in amdgpu_atombios_dp_aux_transfer() 190 amdgpu_connector->ddc_bus->aux.transfer = amdgpu_atombios_dp_aux_transfer; in amdgpu_atombios_dp_aux_init() 191 drm_dp_aux_init(&amdgpu_connector->ddc_bus->aux); in amdgpu_atombios_dp_aux_init() 322 if (drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, DP_SINK_OUI, buf, 3) == 3) in amdgpu_atombios_dp_probe_oui() 326 if (drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, DP_BRANCH_OUI, buf, 3) == 3) in amdgpu_atombios_dp_probe_oui() 337 ret = drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, in amdgpu_atombios_dp_ds_ports() 353 ret = drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, DP_DPCD_REV, in amdgpu_atombios_dp_get_dpcd() 383 if (drm_dp_dpcd_readb(&amdgpu_connector->ddc_bus->aux, in amdgpu_atombios_dp_get_panel_mode() 395 if (drm_dp_dpcd_readb(&amdgpu_connector->ddc_bus->aux, in amdgpu_atombios_dp_get_panel_mode() [all …]
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | ulist.h | 29 u64 aux; /* auxiliary value saved along with the val */ member 50 int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask); 51 int ulist_add_merge(struct ulist *ulist, u64 val, u64 aux, 53 int ulist_del(struct ulist *ulist, u64 val, u64 aux); 56 static inline int ulist_add_merge_ptr(struct ulist *ulist, u64 val, void *aux, in ulist_add_merge_ptr() argument 61 int ret = ulist_add_merge(ulist, val, (uintptr_t)aux, &old64, gfp_mask); in ulist_add_merge_ptr() 65 return ulist_add_merge(ulist, val, (u64)aux, (u64 *)old_aux, gfp_mask); in ulist_add_merge_ptr()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | atombios_dp.c | 159 radeon_dp_aux_transfer_atom(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg) in radeon_dp_aux_transfer_atom() argument 162 container_of(aux, struct radeon_i2c_chan, aux); in radeon_dp_aux_transfer_atom() 234 radeon_connector->ddc_bus->aux.dev = radeon_connector->base.kdev; in radeon_dp_aux_init() 237 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_native; in radeon_dp_aux_init() 239 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_atom; in radeon_dp_aux_init() 241 radeon_connector->ddc_bus->aux.transfer = radeon_dp_aux_transfer_atom; in radeon_dp_aux_init() 244 ret = drm_dp_aux_register(&radeon_connector->ddc_bus->aux); in radeon_dp_aux_init() 377 if (drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_SINK_OUI, buf, 3) == 3) in radeon_dp_probe_oui() 381 if (drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_BRANCH_OUI, buf, 3) == 3) in radeon_dp_probe_oui() 392 ret = drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_DPCD_REV, msg, in radeon_dp_getdpcd() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
D | dp.c | 170 int drm_dp_link_probe(struct drm_dp_aux *aux, struct drm_dp_link *link) in drm_dp_link_probe() argument 178 err = drm_dp_dpcd_read(aux, DP_DPCD_REV, dpcd, sizeof(dpcd)); in drm_dp_link_probe() 194 err = drm_dp_dpcd_readb(aux, DP_EDP_DPCD_REV, &value); in drm_dp_link_probe() 241 err = drm_dp_dpcd_read(aux, DP_SUPPORTED_LINK_RATES, in drm_dp_link_probe() 265 int drm_dp_link_power_up(struct drm_dp_aux *aux, struct drm_dp_link *link) in drm_dp_link_power_up() argument 274 err = drm_dp_dpcd_readb(aux, DP_SET_POWER, &value); in drm_dp_link_power_up() 281 err = drm_dp_dpcd_writeb(aux, DP_SET_POWER, value); in drm_dp_link_power_up() 302 int drm_dp_link_power_down(struct drm_dp_aux *aux, struct drm_dp_link *link) in drm_dp_link_power_down() argument 311 err = drm_dp_dpcd_readb(aux, DP_SET_POWER, &value); in drm_dp_link_power_down() 318 err = drm_dp_dpcd_writeb(aux, DP_SET_POWER, value); in drm_dp_link_power_down() [all …]
|