/kernel/linux/linux-5.10/include/media/tpg/ |
D | v4l2-tpg.h | 235 void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h); 236 int tpg_alloc(struct tpg_data *tpg, unsigned max_w); 237 void tpg_free(struct tpg_data *tpg); 238 void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, 240 void tpg_log_status(struct tpg_data *tpg); 243 void tpg_gen_text(const struct tpg_data *tpg, 245 void tpg_calc_text_basep(struct tpg_data *tpg, 247 unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line); 248 void tpg_fill_plane_buffer(struct tpg_data *tpg, v4l2_std_id std, 250 void tpg_fillbuffer(struct tpg_data *tpg, v4l2_std_id std, [all …]
|
/kernel/linux/linux-5.10/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 214 tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); in lio_target_call_addnptotpg() 215 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() 346 sess->tpg = conn->tpg; in iscsi_login_zero_tsih_s2() 352 sess->tsih = ++sess->tpg->ntsih; in iscsi_login_zero_tsih_s2() 354 sess->tsih = ++sess->tpg->ntsih; in iscsi_login_zero_tsih_s2() 360 conn->tpg->param_list, 1) < 0) { in iscsi_login_zero_tsih_s2() 384 if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) in iscsi_login_zero_tsih_s2() 476 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_login_non_zero_tsih_s2() local 478 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2() 525 conn->tpg->param_list, 0) < 0) { in iscsi_login_non_zero_tsih_s2() [all …]
|
D | iscsi_target_nego.c | 570 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_target_do_login_rx() local 593 spin_lock(&tpg->tpg_state_lock); in iscsi_target_do_login_rx() 594 state = (tpg->tpg_state == TPG_STATE_ACTIVE); in iscsi_target_do_login_rx() 595 spin_unlock(&tpg->tpg_state_lock); in iscsi_target_do_login_rx() 660 iscsit_deaccess_np(np, tpg, tpg_np); in iscsi_target_do_login_rx() 668 iscsit_deaccess_np(np, tpg, tpg_np); in iscsi_target_do_login_rx() 882 conn->tpg->tpg_attrib.login_keys_workaround); in iscsi_target_handle_csg_zero() 887 if (conn->tpg->tpg_attrib.authentication && in iscsi_target_handle_csg_zero() 897 if (conn->tpg->tpg_attrib.authentication && in iscsi_target_handle_csg_zero() 953 conn->tpg->tpg_attrib.login_keys_workaround); in iscsi_target_handle_csg_one() [all …]
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/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 | 218 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi() local 226 tpg->se_tpg_tfo->fabric_name); in core_get_se_deve_from_rtpi() 244 struct se_portal_group *tpg) in core_free_device_list_for_node() argument 252 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_free_device_list_for_node() 315 struct se_portal_group *tpg) in core_enable_device_list_for_node() argument 397 struct se_portal_group *tpg) in core_disable_device_list_for_node() argument 453 void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) in core_clear_lun_from_tpg() argument 458 mutex_lock(&tpg->acl_node_mutex); in core_clear_lun_from_tpg() 459 list_for_each_entry(nacl, &tpg->acl_node_list, acl_list) { in core_clear_lun_from_tpg() 469 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_clear_lun_from_tpg() [all …]
|
D | target_core_stat.c | 576 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_name_show() local 584 tpg->se_tpg_tfo->fabric_name, in target_stat_tgt_port_name_show() 594 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_port_index_show() local 602 tpg->se_tpg_tfo->tpg_get_wwn(tpg), "+t+", in target_stat_tgt_port_port_index_show() 603 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_tgt_port_port_index_show() 731 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_device_show() local 739 tpg->se_tpg_tfo->fabric_name); in target_stat_transport_device_show() 750 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_indx_show() local 757 tpg->se_tpg_tfo->tpg_get_inst_index(tpg)); in target_stat_transport_indx_show() 767 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_dev_name_show() local [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/vhost/ |
D | scsi.c | 217 struct vhost_scsi_tpg *tpg; member 314 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn() local 316 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() 323 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt() local 325 return tpg->tport_tpgt; in vhost_scsi_get_tpgt() 330 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_check_prot_fabric_only() local 333 return tpg->tv_fabric_prot_type; in vhost_scsi_check_prot_fabric_only() 365 struct vhost_scsi_tpg *tpg = tmf->tpg; in vhost_scsi_release_tmf_res() local 368 mutex_lock(&tpg->tv_tpg_mutex); in vhost_scsi_release_tmf_res() 369 list_add_tail(&tpg->tmf_queue, &tmf->queue_entry); in vhost_scsi_release_tmf_res() [all …]
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/ |
D | vimc-sensor.c | 26 struct tpg_data tpg; member 114 tpg_reset_source(&vsen->tpg, vsen->mbus_format.width, in vimc_sen_tpg_s_format() 116 tpg_s_bytesperline(&vsen->tpg, 0, vsen->mbus_format.width * vpix->bpp); in vimc_sen_tpg_s_format() 117 tpg_s_buf_height(&vsen->tpg, vsen->mbus_format.height); in vimc_sen_tpg_s_format() 118 tpg_s_fourcc(&vsen->tpg, vpix->pixelformat); in vimc_sen_tpg_s_format() 120 tpg_s_field(&vsen->tpg, vsen->mbus_format.field, false); in vimc_sen_tpg_s_format() 121 tpg_s_colorspace(&vsen->tpg, vsen->mbus_format.colorspace); in vimc_sen_tpg_s_format() 122 tpg_s_ycbcr_enc(&vsen->tpg, vsen->mbus_format.ycbcr_enc); in vimc_sen_tpg_s_format() 123 tpg_s_quantization(&vsen->tpg, vsen->mbus_format.quantization); in vimc_sen_tpg_s_format() 124 tpg_s_xfer_func(&vsen->tpg, vsen->mbus_format.xfer_func); in vimc_sen_tpg_s_format() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
D | atomisp_tpg.h | 35 void atomisp_tpg_unregister_entities(struct atomisp_tpg_device *tpg); 36 int atomisp_tpg_register_entities(struct atomisp_tpg_device *tpg,
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | xen-scsiback.c | 81 struct scsiback_tpg *tpg; /* translate to */ member 223 struct scsiback_tpg *tpg = pending_req->v2p->tpg; in scsiback_print_status() local 226 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status() 276 struct scsiback_tpg *tpg = entry->tpg; in scsiback_free_translation_entry() local 278 mutex_lock(&tpg->tv_tpg_mutex); in scsiback_free_translation_entry() 279 tpg->tv_tpg_fe_count--; in scsiback_free_translation_entry() 280 mutex_unlock(&tpg->tv_tpg_mutex); in scsiback_free_translation_entry() 362 struct se_session *sess = pending_req->v2p->tpg->tpg_nexus->tvn_se_sess; in scsiback_cmd_exec() 559 struct scsiback_tpg *tpg = pending_req->v2p->tpg; in scsiback_device_action() local 560 struct scsiback_nexus *nexus = tpg->tpg_nexus; in scsiback_device_action() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
D | vivid-kthread-cap.c | 222 static void *plane_vaddr(struct tpg_data *tpg, struct vivid_buffer *buf, in plane_vaddr() argument 228 if (p == 0 || tpg_g_buffers(tpg) > 1) in plane_vaddr() 232 vbuf += bpl[i] * h / tpg->vdownsampling[i]; in plane_vaddr() 240 struct tpg_data *tpg = &dev->tpg; in vivid_copy_buffer() local 243 unsigned twopixsize = tpg_g_twopixelsize(tpg, p); in vivid_copy_buffer() 244 unsigned img_width = tpg_hdiv(tpg, p, dev->compose_cap.width); in vivid_copy_buffer() 246 unsigned stride_cap = tpg->bytesperline[p]; in vivid_copy_buffer() 249 unsigned hmax = (img_height * tpg->perc_fill) / 100; in vivid_copy_buffer() 263 unsigned vid_cap_left = tpg_hdiv(tpg, p, dev->loop_vid_cap.left); in vivid_copy_buffer() 278 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 …]
|
D | vivid-ctrls.c | 331 tpg_s_brightness(&dev->tpg, dev->input_brightness[dev->input]); in vivid_user_vid_s_ctrl() 334 tpg_s_contrast(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 337 tpg_s_saturation(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 340 tpg_s_hue(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 344 tpg_s_hflip(&dev->tpg, dev->sensor_hflip ^ dev->hflip); in vivid_user_vid_s_ctrl() 348 tpg_s_vflip(&dev->tpg, dev->sensor_vflip ^ dev->vflip); in vivid_user_vid_s_ctrl() 351 tpg_s_alpha_component(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 384 tpg_s_pattern(&dev->tpg, ctrl->val); in vivid_vid_cap_s_ctrl() 387 tpg_s_colorspace(&dev->tpg, colorspaces[ctrl->val]); in vivid_vid_cap_s_ctrl() 394 tpg_s_xfer_func(&dev->tpg, ctrl->val); in vivid_vid_cap_s_ctrl() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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() 1102 struct usbg_tpg *tpg = fu->tpg; in usbg_submit_command() local 1112 tv_nexus = tpg->tpg_nexus; in usbg_submit_command() 1163 queue_work(tpg->workqueue, &cmd->work); in usbg_submit_command() 1176 struct usbg_tpg *tpg; in bot_cmd_work() local 1180 tpg = cmd->fu->tpg; in bot_cmd_work() [all …]
|
/kernel/linux/linux-5.10/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";
|