/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 = container_of(se_tpg, struct iscsi_portal_group, 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() 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 | 562 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_target_do_login_rx() local 585 spin_lock(&tpg->tpg_state_lock); in iscsi_target_do_login_rx() 586 state = (tpg->tpg_state == TPG_STATE_ACTIVE); in iscsi_target_do_login_rx() 587 spin_unlock(&tpg->tpg_state_lock); in iscsi_target_do_login_rx() 652 iscsit_deaccess_np(np, tpg, tpg_np); in iscsi_target_do_login_rx() 660 iscsit_deaccess_np(np, tpg, tpg_np); in iscsi_target_do_login_rx() 874 conn->tpg->tpg_attrib.login_keys_workaround); in iscsi_target_handle_csg_zero() 879 if (conn->tpg->tpg_attrib.authentication && in iscsi_target_handle_csg_zero() 889 if (conn->tpg->tpg_attrib.authentication && in iscsi_target_handle_csg_zero() 945 conn->tpg->tpg_attrib.login_keys_workaround); in iscsi_target_handle_csg_one() [all …]
|
/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
|
/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 249 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_free_device_list_for_node() 312 struct se_portal_group *tpg) in core_enable_device_list_for_node() argument 394 struct se_portal_group *tpg) in core_disable_device_list_for_node() argument 450 void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) in core_clear_lun_from_tpg() argument 455 mutex_lock(&tpg->acl_node_mutex); in core_clear_lun_from_tpg() 456 list_for_each_entry(nacl, &tpg->acl_node_list, acl_list) { in core_clear_lun_from_tpg() 466 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 …]
|
D | target_core_pr.c | 205 struct se_portal_group *tpg; in target_scsi2_reservation_release() local 227 tpg = sess->se_tpg; in target_scsi2_reservation_release() 230 tpg->se_tpg_tfo->fabric_name, in target_scsi2_reservation_release() 246 struct se_portal_group *tpg; in target_scsi2_reservation_reserve() local 268 tpg = sess->se_tpg; in target_scsi2_reservation_reserve() 273 tpg->se_tpg_tfo->fabric_name); in target_scsi2_reservation_reserve() 292 " for %s\n", tpg->se_tpg_tfo->fabric_name, in target_scsi2_reservation_reserve() 895 struct se_portal_group *tpg, in core_scsi3_aptpl_reserve() argument 909 tpg->se_tpg_tfo->fabric_name, in core_scsi3_aptpl_reserve() 913 tpg->se_tpg_tfo->fabric_name, node_acl->initiatorname, in core_scsi3_aptpl_reserve() [all …]
|
/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 …]
|
/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
|
/drivers/vhost/ |
D | scsi.c | 203 struct vhost_scsi_tpg *tpg; member 298 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn() local 300 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() 307 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt() local 309 return tpg->tport_tpgt; in vhost_scsi_get_tpgt() 314 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_check_prot_fabric_only() local 317 return tpg->tv_fabric_prot_type; in vhost_scsi_check_prot_fabric_only() 349 struct vhost_scsi_tpg *tpg = tmf->tpg; in vhost_scsi_release_tmf_res() local 352 mutex_lock(&tpg->tv_tpg_mutex); in vhost_scsi_release_tmf_res() 353 list_add_tail(&tpg->tmf_queue, &tmf->queue_entry); in vhost_scsi_release_tmf_res() [all …]
|
/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 …]
|
/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() 360 struct se_session *sess = pending_req->v2p->tpg->tpg_nexus->tvn_se_sess; in scsiback_cmd_exec() 554 struct scsiback_tpg *tpg = pending_req->v2p->tpg; in scsiback_device_action() local 555 struct scsiback_nexus *nexus = tpg->tpg_nexus; in scsiback_device_action() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 | 354 tpg_s_brightness(&dev->tpg, dev->input_brightness[dev->input]); in vivid_user_vid_s_ctrl() 357 tpg_s_contrast(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 360 tpg_s_saturation(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 363 tpg_s_hue(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 367 tpg_s_hflip(&dev->tpg, dev->sensor_hflip ^ dev->hflip); in vivid_user_vid_s_ctrl() 371 tpg_s_vflip(&dev->tpg, dev->sensor_vflip ^ dev->vflip); in vivid_user_vid_s_ctrl() 374 tpg_s_alpha_component(&dev->tpg, ctrl->val); in vivid_user_vid_s_ctrl() 407 tpg_s_pattern(&dev->tpg, ctrl->val); in vivid_vid_cap_s_ctrl() 410 tpg_s_colorspace(&dev->tpg, colorspaces[ctrl->val]); in vivid_vid_cap_s_ctrl() 417 tpg_s_xfer_func(&dev->tpg, ctrl->val); in vivid_vid_cap_s_ctrl() [all …]
|
/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 …]
|
/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 …]
|