/linux-6.1.9/include/media/tpg/ |
D | v4l2-tpg.h | 236 void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h); 237 int tpg_alloc(struct tpg_data *tpg, unsigned max_w); 238 void tpg_free(struct tpg_data *tpg); 239 void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, 241 void tpg_log_status(struct tpg_data *tpg); 244 void tpg_gen_text(const struct tpg_data *tpg, 246 void tpg_calc_text_basep(struct tpg_data *tpg, 248 unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line); 249 void tpg_fill_plane_buffer(struct tpg_data *tpg, v4l2_std_id std, 251 void tpg_fillbuffer(struct tpg_data *tpg, v4l2_std_id std, [all …]
|
/linux-6.1.9/drivers/target/iscsi/ |
D | iscsi_target_tpg.c | 27 struct iscsi_portal_group *tpg; in iscsit_alloc_portal_group() local 29 tpg = kzalloc(sizeof(struct iscsi_portal_group), GFP_KERNEL); in iscsit_alloc_portal_group() 30 if (!tpg) { in iscsit_alloc_portal_group() 35 tpg->tpgt = tpgt; in iscsit_alloc_portal_group() 36 tpg->tpg_state = TPG_STATE_FREE; in iscsit_alloc_portal_group() 37 tpg->tpg_tiqn = tiqn; in iscsit_alloc_portal_group() 38 INIT_LIST_HEAD(&tpg->tpg_gnp_list); in iscsit_alloc_portal_group() 39 INIT_LIST_HEAD(&tpg->tpg_list); in iscsit_alloc_portal_group() 40 mutex_init(&tpg->tpg_access_lock); in iscsit_alloc_portal_group() 41 sema_init(&tpg->np_login_sem, 1); in iscsit_alloc_portal_group() [all …]
|
D | iscsi_target_configfs.c | 61 struct iscsi_portal_group *tpg; in lio_target_np_driver_store() local 80 tpg = tpg_np->tpg; in lio_target_np_driver_store() 81 if (iscsit_get_tpg(tpg) < 0) in lio_target_np_driver_store() 94 tpg_np_new = iscsit_tpg_add_network_portal(tpg, in lio_target_np_driver_store() 103 rc = iscsit_tpg_del_network_portal(tpg, tpg_np_new); in lio_target_np_driver_store() 109 iscsit_put_tpg(tpg); in lio_target_np_driver_store() 112 iscsit_put_tpg(tpg); in lio_target_np_driver_store() 159 struct iscsi_portal_group *tpg; in lio_target_call_addnptotpg() local 213 tpg = to_iscsi_tpg(se_tpg); in lio_target_call_addnptotpg() 214 ret = iscsit_get_tpg(tpg); in lio_target_call_addnptotpg() [all …]
|
D | iscsi_target_login.c | 135 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_check_for_session_reinstatement() local 137 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_check_for_session_reinstatement() 347 sess->tpg = conn->tpg; in iscsi_login_zero_tsih_s2() 353 sess->tsih = ++sess->tpg->ntsih; in iscsi_login_zero_tsih_s2() 355 sess->tsih = ++sess->tpg->ntsih; in iscsi_login_zero_tsih_s2() 361 conn->tpg->param_list, 1) < 0) { in iscsi_login_zero_tsih_s2() 397 if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) in iscsi_login_zero_tsih_s2() 489 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_login_non_zero_tsih_s2() local 491 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2() 538 conn->tpg->param_list, 0) < 0) { in iscsi_login_non_zero_tsih_s2() [all …]
|
D | iscsi_target_nego.c | 102 struct iscsi_portal_group *tpg; in iscsi_get_node_auth() local 116 tpg = to_iscsi_tpg(se_nacl->se_tpg); in iscsi_get_node_auth() 117 return &tpg->tpg_demo_auth; in iscsi_get_node_auth() 561 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_target_do_login_rx() local 584 spin_lock(&tpg->tpg_state_lock); in iscsi_target_do_login_rx() 585 state = (tpg->tpg_state == TPG_STATE_ACTIVE); in iscsi_target_do_login_rx() 586 spin_unlock(&tpg->tpg_state_lock); in iscsi_target_do_login_rx() 651 iscsit_deaccess_np(np, tpg, tpg_np); in iscsi_target_do_login_rx() 659 iscsit_deaccess_np(np, tpg, tpg_np); in iscsi_target_do_login_rx() 826 return conn->tpg->tpg_attrib.authentication; in iscsi_conn_auth_required() [all …]
|
/linux-6.1.9/drivers/media/common/v4l2-tpg/ |
D | v4l2-tpg-core.c | 89 void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h) in tpg_init() argument 91 memset(tpg, 0, sizeof(*tpg)); in tpg_init() 92 tpg->scaled_width = tpg->src_width = w; in tpg_init() 93 tpg->src_height = tpg->buf_height = h; in tpg_init() 94 tpg->crop.width = tpg->compose.width = w; in tpg_init() 95 tpg->crop.height = tpg->compose.height = h; in tpg_init() 96 tpg->recalc_colors = true; in tpg_init() 97 tpg->recalc_square_border = true; in tpg_init() 98 tpg->brightness = 128; in tpg_init() 99 tpg->contrast = 128; in tpg_init() [all …]
|
D | Makefile | 2 v4l2-tpg-objs := v4l2-tpg-core.o v4l2-tpg-colors.o 4 obj-$(CONFIG_VIDEO_V4L2_TPG) += v4l2-tpg.o
|
/linux-6.1.9/drivers/target/ |
D | target_core_tpg.c | 40 struct se_portal_group *tpg, in __core_tpg_get_initiator_node_acl() argument 45 list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { in __core_tpg_get_initiator_node_acl() 58 struct se_portal_group *tpg, in core_tpg_get_initiator_node_acl() argument 71 mutex_lock(&tpg->acl_node_mutex); in core_tpg_get_initiator_node_acl() 72 acl = __core_tpg_get_initiator_node_acl(tpg, initiatorname); in core_tpg_get_initiator_node_acl() 77 mutex_unlock(&tpg->acl_node_mutex); in core_tpg_get_initiator_node_acl() 105 struct se_portal_group *tpg, in core_tpg_add_node_to_devs() argument 112 mutex_lock(&tpg->tpg_lun_mutex); in core_tpg_add_node_to_devs() 113 hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { in core_tpg_add_node_to_devs() 118 lockdep_is_held(&tpg->tpg_lun_mutex)); in core_tpg_add_node_to_devs() [all …]
|
D | target_core_device.c | 215 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi() local 223 tpg->se_tpg_tfo->fabric_name); in core_get_se_deve_from_rtpi() 241 struct se_portal_group *tpg) in core_free_device_list_for_node() argument 247 core_disable_device_list_for_node(deve->se_lun, deve, nacl, tpg); in core_free_device_list_for_node() 328 struct se_portal_group *tpg) in core_enable_device_list_for_node() argument 409 struct se_portal_group *tpg) in core_disable_device_list_for_node() argument 462 void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) in core_clear_lun_from_tpg() argument 467 mutex_lock(&tpg->acl_node_mutex); in core_clear_lun_from_tpg() 468 list_for_each_entry(nacl, &tpg->acl_node_list, acl_list) { in core_clear_lun_from_tpg() 475 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_clear_lun_from_tpg() [all …]
|
D | target_core_stat.c | 573 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_name_show() local 581 tpg->se_tpg_tfo->fabric_name, in target_stat_tgt_port_name_show() 591 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_port_index_show() local 599 tpg->se_tpg_tfo->tpg_get_wwn(tpg), "+t+", in target_stat_tgt_port_port_index_show() 600 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_tgt_port_port_index_show() 728 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_device_show() local 736 tpg->se_tpg_tfo->fabric_name); in target_stat_transport_device_show() 747 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_indx_show() local 754 tpg->se_tpg_tfo->tpg_get_inst_index(tpg)); in target_stat_transport_indx_show() 764 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_dev_name_show() local [all …]
|
/linux-6.1.9/drivers/gpu/drm/panel/ |
D | panel-tpo-tpg110.c | 189 static u8 tpg110_readwrite_reg(struct tpg110 *tpg, bool write, in tpg110_readwrite_reg() argument 238 ret = spi_sync(tpg->spi, &m); in tpg110_readwrite_reg() 240 dev_err(tpg->dev, "SPI message error %d\n", ret); in tpg110_readwrite_reg() 249 static u8 tpg110_read_reg(struct tpg110 *tpg, u8 address) in tpg110_read_reg() argument 251 return tpg110_readwrite_reg(tpg, false, address, 0); in tpg110_read_reg() 254 static void tpg110_write_reg(struct tpg110 *tpg, u8 address, u8 outval) in tpg110_write_reg() argument 256 tpg110_readwrite_reg(tpg, true, address, outval); in tpg110_write_reg() 259 static int tpg110_startup(struct tpg110 *tpg) in tpg110_startup() argument 265 gpiod_set_value_cansleep(tpg->grestb, 0); in tpg110_startup() 267 dev_dbg(tpg->dev, "de-asserted GRESTB\n"); in tpg110_startup() [all …]
|
/linux-6.1.9/drivers/scsi/elx/efct/ |
D | efct_lio.c | 82 struct efct_lio_tpg *tpg = in efct_lio_tpg_enable_show() local 83 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_tpg_enable_show() 85 return snprintf(page, PAGE_SIZE, "%d\n", tpg->enabled); in efct_lio_tpg_enable_show() 93 struct efct_lio_tpg *tpg = in efct_lio_tpg_enable_store() local 94 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_tpg_enable_store() 99 if (!tpg->nport || !tpg->nport->efct) { in efct_lio_tpg_enable_store() 104 efct = tpg->nport->efct; in efct_lio_tpg_enable_store() 113 tpg->enabled = true; in efct_lio_tpg_enable_store() 114 efc_log_debug(efct, "enable portal group %d\n", tpg->tpgt); in efct_lio_tpg_enable_store() 123 efc_log_debug(efct, "disable portal group %d\n", tpg->tpgt); in efct_lio_tpg_enable_store() [all …]
|
D | efct_lio.h | 55 struct efct_lio_tpg *tpg; member 140 struct efct_lio_tpg *tpg; member 151 struct efct_lio_tpg *tpg; member 166 struct se_portal_group tpg; member
|
/linux-6.1.9/drivers/vhost/ |
D | scsi.c | 209 struct vhost_scsi_tpg *tpg; member 304 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn() local 306 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() 313 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt() local 315 return tpg->tport_tpgt; in vhost_scsi_get_tpgt() 320 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_check_prot_fabric_only() local 323 return tpg->tv_fabric_prot_type; in vhost_scsi_check_prot_fabric_only() 355 struct vhost_scsi_tpg *tpg = tmf->tpg; in vhost_scsi_release_tmf_res() local 358 mutex_lock(&tpg->tv_tpg_mutex); in vhost_scsi_release_tmf_res() 359 list_add_tail(&tpg->tmf_queue, &tmf->queue_entry); in vhost_scsi_release_tmf_res() [all …]
|
/linux-6.1.9/drivers/media/test-drivers/vimc/ |
D | vimc-sensor.c | 26 struct tpg_data tpg; member 114 tpg_reset_source(&vsensor->tpg, vsensor->mbus_format.width, in vimc_sensor_tpg_s_format() 116 tpg_s_bytesperline(&vsensor->tpg, 0, vsensor->mbus_format.width * vpix->bpp); in vimc_sensor_tpg_s_format() 117 tpg_s_buf_height(&vsensor->tpg, vsensor->mbus_format.height); in vimc_sensor_tpg_s_format() 118 tpg_s_fourcc(&vsensor->tpg, vpix->pixelformat); in vimc_sensor_tpg_s_format() 120 tpg_s_field(&vsensor->tpg, vsensor->mbus_format.field, false); in vimc_sensor_tpg_s_format() 121 tpg_s_colorspace(&vsensor->tpg, vsensor->mbus_format.colorspace); in vimc_sensor_tpg_s_format() 122 tpg_s_ycbcr_enc(&vsensor->tpg, vsensor->mbus_format.ycbcr_enc); in vimc_sensor_tpg_s_format() 123 tpg_s_quantization(&vsensor->tpg, vsensor->mbus_format.quantization); in vimc_sensor_tpg_s_format() 124 tpg_s_xfer_func(&vsensor->tpg, vsensor->mbus_format.xfer_func); in vimc_sensor_tpg_s_format() [all …]
|
/linux-6.1.9/drivers/xen/ |
D | xen-scsiback.c | 79 struct scsiback_tpg *tpg; /* translate to */ member 221 struct scsiback_tpg *tpg = pending_req->v2p->tpg; in scsiback_print_status() local 224 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status() 274 struct scsiback_tpg *tpg = entry->tpg; in scsiback_free_translation_entry() local 276 mutex_lock(&tpg->tv_tpg_mutex); in scsiback_free_translation_entry() 277 tpg->tv_tpg_fe_count--; in scsiback_free_translation_entry() 278 mutex_unlock(&tpg->tv_tpg_mutex); in scsiback_free_translation_entry() 424 struct se_session *sess = pending_req->v2p->tpg->tpg_nexus->tvn_se_sess; in scsiback_cmd_exec() 618 struct scsiback_tpg *tpg = pending_req->v2p->tpg; in scsiback_device_action() local 619 struct scsiback_nexus *nexus = tpg->tpg_nexus; in scsiback_device_action() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/ |
D | atomisp_tpg.c | 114 void atomisp_tpg_unregister_entities(struct atomisp_tpg_device *tpg) in atomisp_tpg_unregister_entities() argument 116 media_entity_cleanup(&tpg->sd.entity); in atomisp_tpg_unregister_entities() 117 v4l2_device_unregister_subdev(&tpg->sd); in atomisp_tpg_unregister_entities() 120 int atomisp_tpg_register_entities(struct atomisp_tpg_device *tpg, in atomisp_tpg_register_entities() argument 125 ret = v4l2_device_register_subdev(vdev, &tpg->sd); in atomisp_tpg_register_entities() 132 atomisp_tpg_unregister_entities(tpg); in atomisp_tpg_register_entities() 142 struct atomisp_tpg_device *tpg = &isp->tpg; in atomisp_tpg_init() local 143 struct v4l2_subdev *sd = &tpg->sd; in atomisp_tpg_init() 144 struct media_pad *pads = tpg->pads; in atomisp_tpg_init() 148 tpg->isp = isp; in atomisp_tpg_init() [all …]
|
/linux-6.1.9/drivers/target/tcm_fc/ |
D | tfc_conf.c | 221 struct ft_tpg *tpg; in ft_add_tpg() local 246 tpg = kzalloc(sizeof(*tpg), GFP_KERNEL); in ft_add_tpg() 247 if (!tpg) in ft_add_tpg() 249 tpg->index = index; in ft_add_tpg() 250 tpg->lport_wwn = ft_wwn; in ft_add_tpg() 251 INIT_LIST_HEAD(&tpg->lun_list); in ft_add_tpg() 255 kfree(tpg); in ft_add_tpg() 259 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in ft_add_tpg() 262 kfree(tpg); in ft_add_tpg() 265 tpg->workqueue = wq; in ft_add_tpg() [all …]
|
D | tfc_sess.c | 43 struct ft_tpg *tpg; in ft_tport_get() local 49 if (tport && tport->tpg) in ft_tport_get() 52 tpg = ft_lport_find_tpg(lport); in ft_tport_get() 53 if (!tpg) in ft_tport_get() 57 tport->tpg = tpg; in ft_tport_get() 58 tpg->tport = tport; in ft_tport_get() 67 tport->tpg = tpg; in ft_tport_get() 68 tpg->tport = tport; in ft_tport_get() 83 struct ft_tpg *tpg; in ft_tport_delete() local 91 tpg = tport->tpg; in ft_tport_delete() [all …]
|
/linux-6.1.9/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 164 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_wwn() local 166 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_get_fabric_wwn() 173 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_tag() local 175 return tpg->lport_tpgt; in tcm_qla2xxx_get_tag() 180 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode() local 183 return tpg->tpg_attrib.generate_node_acls; in tcm_qla2xxx_check_demo_mode() 188 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_cache() local 191 return tpg->tpg_attrib.cache_dynamic_acls; in tcm_qla2xxx_check_demo_mode_cache() 196 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_write_protect() local 199 return tpg->tpg_attrib.demo_mode_write_protect; in tcm_qla2xxx_check_demo_write_protect() [all …]
|
/linux-6.1.9/drivers/media/test-drivers/vivid/ |
D | vivid-kthread-cap.c | 223 static void *plane_vaddr(struct tpg_data *tpg, struct vivid_buffer *buf, in plane_vaddr() argument 229 if (p == 0 || tpg_g_buffers(tpg) > 1) in plane_vaddr() 233 vbuf += bpl[i] * h / tpg->vdownsampling[i]; in plane_vaddr() 241 struct tpg_data *tpg = &dev->tpg; in vivid_copy_buffer() local 244 unsigned twopixsize = tpg_g_twopixelsize(tpg, p); in vivid_copy_buffer() 245 unsigned img_width = tpg_hdiv(tpg, p, dev->compose_cap.width); in vivid_copy_buffer() 247 unsigned stride_cap = tpg->bytesperline[p]; in vivid_copy_buffer() 250 unsigned hmax = (img_height * tpg->perc_fill) / 100; in vivid_copy_buffer() 264 unsigned vid_cap_left = tpg_hdiv(tpg, p, dev->loop_vid_cap.left); in vivid_copy_buffer() 279 voutbuf = plane_vaddr(tpg, vid_out_buf, p, in vivid_copy_buffer() [all …]
|
D | vivid-vid-cap.c | 87 unsigned buffers = tpg_g_buffers(&dev->tpg); in vid_cap_queue_setup() 116 if (sizes[p] < tpg_g_line_width(&dev->tpg, p) * h + in vid_cap_queue_setup() 122 sizes[p] = (tpg_g_line_width(&dev->tpg, p) * h) / in vid_cap_queue_setup() 143 unsigned buffers = tpg_g_buffers(&dev->tpg); in vid_cap_buf_prepare() 160 size = (tpg_g_line_width(&dev->tpg, p) * in vid_cap_buf_prepare() 229 dev->must_blank[i] = tpg_g_perc_fill(&dev->tpg) < 100; in vid_cap_start_streaming() 291 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality() 296 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality() 301 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality() 305 tpg_s_quality(&dev->tpg, TPG_QUAL_COLOR, 0); in vivid_update_quality() [all …]
|
/linux-6.1.9/drivers/target/sbp/ |
D | sbp_target.c | 78 struct sbp_tpg *tpg, u64 guid) in sbp_session_find_by_guid() argument 83 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid() 84 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid() 89 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid() 110 struct sbp_tpg *tpg, in sbp_login_count_all_by_lun() argument 119 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun() 120 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun() 133 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun() 139 struct sbp_tpg *tpg, int login_id) in sbp_login_find_by_id() argument 145 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id() [all …]
|
/linux-6.1.9/drivers/usb/gadget/function/ |
D | f_tcm.c | 32 struct usbg_tpg *tpg; member 439 luns = atomic_read(&fu->tpg->tpg_port_count); in usbg_bot_setup() 1045 struct usbg_tpg *tpg; in usbg_cmd_work() local 1049 tpg = cmd->fu->tpg; in usbg_cmd_work() 1050 tv_nexus = tpg->tpg_nexus; in usbg_cmd_work() 1100 struct usbg_tpg *tpg = fu->tpg; in usbg_submit_command() local 1110 tv_nexus = tpg->tpg_nexus; in usbg_submit_command() 1161 queue_work(tpg->workqueue, &cmd->work); in usbg_submit_command() 1174 struct usbg_tpg *tpg; in bot_cmd_work() local 1178 tpg = cmd->fu->tpg; in bot_cmd_work() [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/media/xilinx/ |
D | xlnx,v-tpg.txt | 8 "xlnx,v-tpg-5.0" (TPG version 5.0) 9 "xlnx,v-tpg-6.0" (TPG version 6.0) 38 tpg_0: tpg@40050000 { 39 compatible = "xlnx,v-tpg-6.0", "xlnx,v-tpg-5.0";
|