/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/target/iscsi/ |
D | iscsi_target_tpg.c | 35 struct iscsi_portal_group *tpg; in iscsit_alloc_portal_group() local 37 tpg = kzalloc(sizeof(struct iscsi_portal_group), GFP_KERNEL); in iscsit_alloc_portal_group() 38 if (!tpg) { in iscsit_alloc_portal_group() 43 tpg->tpgt = tpgt; in iscsit_alloc_portal_group() 44 tpg->tpg_state = TPG_STATE_FREE; in iscsit_alloc_portal_group() 45 tpg->tpg_tiqn = tiqn; in iscsit_alloc_portal_group() 46 INIT_LIST_HEAD(&tpg->tpg_gnp_list); in iscsit_alloc_portal_group() 47 INIT_LIST_HEAD(&tpg->tpg_list); in iscsit_alloc_portal_group() 48 mutex_init(&tpg->tpg_access_lock); in iscsit_alloc_portal_group() 49 sema_init(&tpg->np_login_sem, 1); in iscsit_alloc_portal_group() [all …]
|
D | iscsi_target_configfs.c | 69 struct iscsi_portal_group *tpg; in lio_target_np_driver_store() local 88 tpg = tpg_np->tpg; in lio_target_np_driver_store() 89 if (iscsit_get_tpg(tpg) < 0) in lio_target_np_driver_store() 102 tpg_np_new = iscsit_tpg_add_network_portal(tpg, in lio_target_np_driver_store() 111 rc = iscsit_tpg_del_network_portal(tpg, tpg_np_new); in lio_target_np_driver_store() 117 iscsit_put_tpg(tpg); in lio_target_np_driver_store() 120 iscsit_put_tpg(tpg); in lio_target_np_driver_store() 167 struct iscsi_portal_group *tpg; in lio_target_call_addnptotpg() local 222 tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); in lio_target_call_addnptotpg() 223 ret = iscsit_get_tpg(tpg); in lio_target_call_addnptotpg() [all …]
|
D | iscsi_target_login.c | 142 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_check_for_session_reinstatement() local 144 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_check_for_session_reinstatement() 353 sess->tpg = conn->tpg; in iscsi_login_zero_tsih_s2() 359 sess->tsih = ++sess->tpg->ntsih; in iscsi_login_zero_tsih_s2() 361 sess->tsih = ++sess->tpg->ntsih; in iscsi_login_zero_tsih_s2() 367 conn->tpg->param_list, 1) < 0) { in iscsi_login_zero_tsih_s2() 391 if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) in iscsi_login_zero_tsih_s2() 483 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_login_non_zero_tsih_s2() local 485 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2() 531 conn->tpg->param_list, 0) < 0) { in iscsi_login_non_zero_tsih_s2() [all …]
|
D | iscsi_target_nego.c | 590 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_target_do_login_rx() local 613 spin_lock(&tpg->tpg_state_lock); in iscsi_target_do_login_rx() 614 state = (tpg->tpg_state == TPG_STATE_ACTIVE); in iscsi_target_do_login_rx() 615 spin_unlock(&tpg->tpg_state_lock); in iscsi_target_do_login_rx() 656 iscsit_deaccess_np(np, tpg, tpg_np); in iscsi_target_do_login_rx() 663 iscsit_deaccess_np(np, tpg, tpg_np); in iscsi_target_do_login_rx() 876 conn->tpg->tpg_attrib.login_keys_workaround); in iscsi_target_handle_csg_zero() 881 if (conn->tpg->tpg_attrib.authentication && in iscsi_target_handle_csg_zero() 891 if (conn->tpg->tpg_attrib.authentication && in iscsi_target_handle_csg_zero() 947 conn->tpg->tpg_attrib.login_keys_workaround); in iscsi_target_handle_csg_one() [all …]
|
/Linux-v4.19/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 | 1 v4l2-tpg-objs := v4l2-tpg-core.o v4l2-tpg-colors.o 3 obj-$(CONFIG_VIDEO_V4L2_TPG) += v4l2-tpg.o
|
/Linux-v4.19/drivers/target/ |
D | target_core_tpg.c | 56 struct se_portal_group *tpg, in __core_tpg_get_initiator_node_acl() argument 61 list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { in __core_tpg_get_initiator_node_acl() 74 struct se_portal_group *tpg, in core_tpg_get_initiator_node_acl() argument 87 mutex_lock(&tpg->acl_node_mutex); in core_tpg_get_initiator_node_acl() 88 acl = __core_tpg_get_initiator_node_acl(tpg, initiatorname); in core_tpg_get_initiator_node_acl() 93 mutex_unlock(&tpg->acl_node_mutex); in core_tpg_get_initiator_node_acl() 121 struct se_portal_group *tpg, in core_tpg_add_node_to_devs() argument 128 mutex_lock(&tpg->tpg_lun_mutex); in core_tpg_add_node_to_devs() 129 hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { in core_tpg_add_node_to_devs() 134 lockdep_is_held(&tpg->tpg_lun_mutex)); in core_tpg_add_node_to_devs() [all …]
|
D | target_core_device.c | 232 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi() local 240 tpg->se_tpg_tfo->get_fabric_name()); in core_get_se_deve_from_rtpi() 258 struct se_portal_group *tpg) in core_free_device_list_for_node() argument 266 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_free_device_list_for_node() 329 struct se_portal_group *tpg) in core_enable_device_list_for_node() argument 414 struct se_portal_group *tpg) in core_disable_device_list_for_node() argument 467 void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) in core_clear_lun_from_tpg() argument 472 mutex_lock(&tpg->acl_node_mutex); in core_clear_lun_from_tpg() 473 list_for_each_entry(nacl, &tpg->acl_node_list, acl_list) { in core_clear_lun_from_tpg() 483 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_clear_lun_from_tpg() [all …]
|
D | target_core_stat.c | 607 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_name_show() local 615 tpg->se_tpg_tfo->get_fabric_name(), in target_stat_tgt_port_name_show() 625 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_port_index_show() local 633 tpg->se_tpg_tfo->tpg_get_wwn(tpg), "+t+", in target_stat_tgt_port_port_index_show() 634 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_tgt_port_port_index_show() 762 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_device_show() local 770 tpg->se_tpg_tfo->get_fabric_name()); in target_stat_transport_device_show() 781 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_indx_show() local 788 tpg->se_tpg_tfo->tpg_get_inst_index(tpg)); in target_stat_transport_indx_show() 798 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_dev_name_show() local [all …]
|
D | target_core_pr.c | 208 struct se_portal_group *tpg; in target_scsi2_reservation_release() local 235 tpg = sess->se_tpg; in target_scsi2_reservation_release() 238 tpg->se_tpg_tfo->get_fabric_name(), in target_scsi2_reservation_release() 254 struct se_portal_group *tpg; in target_scsi2_reservation_reserve() local 276 tpg = sess->se_tpg; in target_scsi2_reservation_reserve() 281 tpg->se_tpg_tfo->get_fabric_name()); in target_scsi2_reservation_reserve() 300 " for %s\n", tpg->se_tpg_tfo->get_fabric_name(), in target_scsi2_reservation_reserve() 902 struct se_portal_group *tpg, in core_scsi3_aptpl_reserve() argument 917 tpg->se_tpg_tfo->get_fabric_name(), in core_scsi3_aptpl_reserve() 921 tpg->se_tpg_tfo->get_fabric_name(), node_acl->initiatorname, in core_scsi3_aptpl_reserve() [all …]
|
D | target_core_spc.c | 178 struct se_portal_group *tpg = NULL; in spc_emulate_evpd_83() local 270 tpg = lun->lun_tpg; in spc_emulate_evpd_83() 278 buf[off] = tpg->proto_id << 4; in spc_emulate_evpd_83() 309 buf[off] = tpg->proto_id << 4; in spc_emulate_evpd_83() 357 buf[off] = tpg->proto_id << 4; in spc_emulate_evpd_83() 371 tpgt = tpg->se_tpg_tfo->tpg_get_tag(tpg); in spc_emulate_evpd_83() 373 tpg->se_tpg_tfo->tpg_get_wwn(tpg), tpgt); in spc_emulate_evpd_83() 397 buf[off] = tpg->proto_id << 4; in spc_emulate_evpd_83() 412 tpg->se_tpg_tfo->tpg_get_wwn(tpg)); in spc_emulate_evpd_83() 707 struct se_portal_group *tpg = cmd->se_lun->lun_tpg; in spc_emulate_inquiry() local [all …]
|
D | target_core_fabric_lib.c | 407 const char *target_parse_pr_out_transport_id(struct se_portal_group *tpg, in target_parse_pr_out_transport_id() argument 412 switch (tpg->proto_id) { in target_parse_pr_out_transport_id() 426 return iscsi_parse_pr_out_transport_id(tpg, buf, out_tid_len, in target_parse_pr_out_transport_id() 429 pr_err("Unknown proto_id: 0x%02x\n", tpg->proto_id); in target_parse_pr_out_transport_id()
|
/Linux-v4.19/drivers/vhost/ |
D | scsi.c | 282 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn() local 284 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() 291 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt() local 293 return tpg->tport_tpgt; in vhost_scsi_get_tpgt() 298 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_check_prot_fabric_only() local 301 return tpg->tv_fabric_prot_type; in vhost_scsi_check_prot_fabric_only() 560 vhost_scsi_get_tag(struct vhost_virtqueue *vq, struct vhost_scsi_tpg *tpg, in vhost_scsi_get_tag() argument 571 tv_nexus = tpg->tpg_nexus; in vhost_scsi_get_tag() 806 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local 904 tpg = READ_ONCE(vs_tpg[*target]); in vhost_scsi_handle_vq() [all …]
|
/Linux-v4.19/drivers/xen/ |
D | xen-scsiback.c | 81 struct scsiback_tpg *tpg; /* translate to */ member 261 struct scsiback_tpg *tpg = pending_req->v2p->tpg; in scsiback_print_status() local 264 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status() 313 struct scsiback_tpg *tpg = entry->tpg; in scsiback_free_translation_entry() local 315 mutex_lock(&tpg->tv_tpg_mutex); in scsiback_free_translation_entry() 316 tpg->tv_tpg_fe_count--; in scsiback_free_translation_entry() 317 mutex_unlock(&tpg->tv_tpg_mutex); in scsiback_free_translation_entry() 399 struct se_session *sess = pending_req->v2p->tpg->tpg_nexus->tvn_se_sess; in scsiback_cmd_exec() 596 struct scsiback_tpg *tpg = pending_req->v2p->tpg; in scsiback_device_action() local 597 struct scsiback_nexus *nexus = tpg->tpg_nexus; in scsiback_device_action() [all …]
|
/Linux-v4.19/drivers/target/tcm_fc/ |
D | tfc_conf.c | 229 struct ft_tpg *tpg; in ft_add_tpg() local 254 tpg = kzalloc(sizeof(*tpg), GFP_KERNEL); in ft_add_tpg() 255 if (!tpg) in ft_add_tpg() 257 tpg->index = index; in ft_add_tpg() 258 tpg->lport_wwn = ft_wwn; in ft_add_tpg() 259 INIT_LIST_HEAD(&tpg->lun_list); in ft_add_tpg() 263 kfree(tpg); in ft_add_tpg() 267 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in ft_add_tpg() 270 kfree(tpg); in ft_add_tpg() 273 tpg->workqueue = wq; in ft_add_tpg() [all …]
|
D | tfc_sess.c | 55 struct ft_tpg *tpg; in ft_tport_get() local 61 if (tport && tport->tpg) in ft_tport_get() 64 tpg = ft_lport_find_tpg(lport); in ft_tport_get() 65 if (!tpg) in ft_tport_get() 69 tport->tpg = tpg; in ft_tport_get() 70 tpg->tport = tport; in ft_tport_get() 79 tport->tpg = tpg; in ft_tport_get() 80 tpg->tport = tport; in ft_tport_get() 95 struct ft_tpg *tpg; in ft_tport_delete() local 103 tpg = tport->tpg; in ft_tport_delete() [all …]
|
/Linux-v4.19/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 188 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_wwn() local 190 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_get_fabric_wwn() 197 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_tag() local 199 return tpg->lport_tpgt; in tcm_qla2xxx_get_tag() 204 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode() local 207 return tpg->tpg_attrib.generate_node_acls; in tcm_qla2xxx_check_demo_mode() 212 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_cache() local 215 return tpg->tpg_attrib.cache_dynamic_acls; in tcm_qla2xxx_check_demo_mode_cache() 220 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_write_protect() local 223 return tpg->tpg_attrib.demo_mode_write_protect; in tcm_qla2xxx_check_demo_write_protect() [all …]
|
/Linux-v4.19/drivers/media/platform/vivid/ |
D | vivid-kthread-cap.c | 221 static void *plane_vaddr(struct tpg_data *tpg, struct vivid_buffer *buf, in plane_vaddr() argument 227 if (p == 0 || tpg_g_buffers(tpg) > 1) in plane_vaddr() 231 vbuf += bpl[i] * h / tpg->vdownsampling[i]; in plane_vaddr() 239 struct tpg_data *tpg = &dev->tpg; in vivid_copy_buffer() local 242 unsigned twopixsize = tpg_g_twopixelsize(tpg, p); in vivid_copy_buffer() 243 unsigned img_width = tpg_hdiv(tpg, p, dev->compose_cap.width); in vivid_copy_buffer() 245 unsigned stride_cap = tpg->bytesperline[p]; in vivid_copy_buffer() 248 unsigned hmax = (img_height * tpg->perc_fill) / 100; in vivid_copy_buffer() 262 unsigned vid_cap_left = tpg_hdiv(tpg, p, dev->loop_vid_cap.left); in vivid_copy_buffer() 277 voutbuf = plane_vaddr(tpg, vid_out_buf, p, in vivid_copy_buffer() [all …]
|
D | vivid-vid-cap.c | 89 unsigned buffers = tpg_g_buffers(&dev->tpg); in vid_cap_queue_setup() 118 if (sizes[p] < tpg_g_line_width(&dev->tpg, p) * h + in vid_cap_queue_setup() 124 sizes[p] = tpg_g_line_width(&dev->tpg, p) * h + in vid_cap_queue_setup() 144 unsigned buffers = tpg_g_buffers(&dev->tpg); in vid_cap_buf_prepare() 161 size = tpg_g_line_width(&dev->tpg, p) * dev->fmt_cap_rect.height + in vid_cap_buf_prepare() 231 dev->must_blank[i] = tpg_g_perc_fill(&dev->tpg) < 100; in vid_cap_start_streaming() 285 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality() 289 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality() 293 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality() 297 tpg_s_quality(&dev->tpg, TPG_QUAL_COLOR, 0); in vivid_update_quality() [all …]
|
D | vivid-ctrls.c | 311 tpg_s_brightness(&dev->tpg, dev->input_brightness[dev->input]); in vivid_user_vid_s_ctrl() 314 tpg_s_contrast(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 317 tpg_s_saturation(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 320 tpg_s_hue(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 324 tpg_s_hflip(&dev->tpg, dev->sensor_hflip ^ dev->hflip); in vivid_user_vid_s_ctrl() 328 tpg_s_vflip(&dev->tpg, dev->sensor_vflip ^ dev->vflip); in vivid_user_vid_s_ctrl() 331 tpg_s_alpha_component(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 364 tpg_s_pattern(&dev->tpg, ctrl->val); in vivid_vid_cap_s_ctrl() 367 tpg_s_colorspace(&dev->tpg, colorspaces[ctrl->val]); in vivid_vid_cap_s_ctrl() 374 tpg_s_xfer_func(&dev->tpg, ctrl->val); in vivid_vid_cap_s_ctrl() [all …]
|
/Linux-v4.19/drivers/target/sbp/ |
D | sbp_target.c | 91 struct sbp_tpg *tpg, u64 guid) in sbp_session_find_by_guid() argument 96 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid() 97 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid() 102 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid() 123 struct sbp_tpg *tpg, in sbp_login_count_all_by_lun() argument 132 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun() 133 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun() 146 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun() 152 struct sbp_tpg *tpg, int login_id) in sbp_login_find_by_id() argument 158 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id() [all …]
|
/Linux-v4.19/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() 1041 struct usbg_tpg *tpg; in usbg_cmd_work() local 1045 tpg = cmd->fu->tpg; in usbg_cmd_work() 1046 tv_nexus = tpg->tpg_nexus; in usbg_cmd_work() 1097 struct usbg_tpg *tpg = fu->tpg; in usbg_submit_command() local 1107 tv_nexus = tpg->tpg_nexus; in usbg_submit_command() 1158 queue_work(tpg->workqueue, &cmd->work); in usbg_submit_command() 1171 struct usbg_tpg *tpg; in bot_cmd_work() local 1175 tpg = cmd->fu->tpg; in bot_cmd_work() [all …]
|
/Linux-v4.19/drivers/media/platform/vimc/ |
D | vimc-sensor.c | 39 struct tpg_data tpg; member 125 tpg_reset_source(&vsen->tpg, vsen->mbus_format.width, in vimc_sen_tpg_s_format() 127 tpg_s_bytesperline(&vsen->tpg, 0, vsen->mbus_format.width * vpix->bpp); in vimc_sen_tpg_s_format() 128 tpg_s_buf_height(&vsen->tpg, vsen->mbus_format.height); in vimc_sen_tpg_s_format() 129 tpg_s_fourcc(&vsen->tpg, vpix->pixelformat); in vimc_sen_tpg_s_format() 131 tpg_s_field(&vsen->tpg, vsen->mbus_format.field, false); in vimc_sen_tpg_s_format() 132 tpg_s_colorspace(&vsen->tpg, vsen->mbus_format.colorspace); in vimc_sen_tpg_s_format() 133 tpg_s_ycbcr_enc(&vsen->tpg, vsen->mbus_format.ycbcr_enc); in vimc_sen_tpg_s_format() 134 tpg_s_quantization(&vsen->tpg, vsen->mbus_format.quantization); in vimc_sen_tpg_s_format() 135 tpg_s_xfer_func(&vsen->tpg, vsen->mbus_format.xfer_func); in vimc_sen_tpg_s_format() [all …]
|
/Linux-v4.19/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";
|