tpg 199 drivers/gpu/drm/panel/panel-tpo-tpg110.c static u8 tpg110_readwrite_reg(struct tpg110 *tpg, bool write, tpg 248 drivers/gpu/drm/panel/panel-tpo-tpg110.c ret = spi_sync(tpg->spi, &m); tpg 250 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_ERROR(tpg->dev, "SPI message error %d\n", ret); tpg 259 drivers/gpu/drm/panel/panel-tpo-tpg110.c static u8 tpg110_read_reg(struct tpg110 *tpg, u8 address) tpg 261 drivers/gpu/drm/panel/panel-tpo-tpg110.c return tpg110_readwrite_reg(tpg, false, address, 0); tpg 264 drivers/gpu/drm/panel/panel-tpo-tpg110.c static void tpg110_write_reg(struct tpg110 *tpg, u8 address, u8 outval) tpg 266 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg110_readwrite_reg(tpg, true, address, outval); tpg 269 drivers/gpu/drm/panel/panel-tpo-tpg110.c static int tpg110_startup(struct tpg110 *tpg) tpg 275 drivers/gpu/drm/panel/panel-tpo-tpg110.c gpiod_set_value_cansleep(tpg->grestb, 0); tpg 277 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_DEBUG(tpg->dev, "de-asserted GRESTB\n"); tpg 280 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg110_write_reg(tpg, TPG110_TEST, 0x55); tpg 281 drivers/gpu/drm/panel/panel-tpo-tpg110.c val = tpg110_read_reg(tpg, TPG110_TEST); tpg 283 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_ERROR(tpg->dev, "failed communication test\n"); tpg 287 drivers/gpu/drm/panel/panel-tpo-tpg110.c val = tpg110_read_reg(tpg, TPG110_CHIPID); tpg 288 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_INFO(tpg->dev, "TPG110 chip ID: %d version: %d\n", tpg 292 drivers/gpu/drm/panel/panel-tpo-tpg110.c val = tpg110_read_reg(tpg, TPG110_CTRL1); tpg 296 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_INFO(tpg->dev, tpg 300 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_INFO(tpg->dev, tpg 304 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_INFO(tpg->dev, "480x640 RGB\n"); tpg 307 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_INFO(tpg->dev, "480x272 RGB\n"); tpg 310 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_INFO(tpg->dev, "640x480 RGB\n"); tpg 313 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_INFO(tpg->dev, "800x480 RGB\n"); tpg 316 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_ERROR(tpg->dev, "ILLEGAL RESOLUTION 0x%02x\n", val); tpg 329 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg->panel_mode = pm; tpg 334 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_ERROR(tpg->dev, "unsupported mode (%02x) detected\n", tpg 339 drivers/gpu/drm/panel/panel-tpo-tpg110.c val = tpg110_read_reg(tpg, TPG110_CTRL2); tpg 340 drivers/gpu/drm/panel/panel-tpo-tpg110.c DRM_DEV_INFO(tpg->dev, "resolution and standby is controlled by %s\n", tpg 344 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg110_write_reg(tpg, TPG110_CTRL2, val); tpg 351 drivers/gpu/drm/panel/panel-tpo-tpg110.c struct tpg110 *tpg = to_tpg110(panel); tpg 355 drivers/gpu/drm/panel/panel-tpo-tpg110.c val = tpg110_read_reg(tpg, TPG110_CTRL2_PM); tpg 357 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg110_write_reg(tpg, TPG110_CTRL2_PM, val); tpg 359 drivers/gpu/drm/panel/panel-tpo-tpg110.c backlight_disable(tpg->backlight); tpg 366 drivers/gpu/drm/panel/panel-tpo-tpg110.c struct tpg110 *tpg = to_tpg110(panel); tpg 369 drivers/gpu/drm/panel/panel-tpo-tpg110.c backlight_enable(tpg->backlight); tpg 372 drivers/gpu/drm/panel/panel-tpo-tpg110.c val = tpg110_read_reg(tpg, TPG110_CTRL2_PM); tpg 374 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg110_write_reg(tpg, TPG110_CTRL2_PM, val); tpg 390 drivers/gpu/drm/panel/panel-tpo-tpg110.c struct tpg110 *tpg = to_tpg110(panel); tpg 393 drivers/gpu/drm/panel/panel-tpo-tpg110.c connector->display_info.width_mm = tpg->width; tpg 394 drivers/gpu/drm/panel/panel-tpo-tpg110.c connector->display_info.height_mm = tpg->height; tpg 395 drivers/gpu/drm/panel/panel-tpo-tpg110.c connector->display_info.bus_flags = tpg->panel_mode->bus_flags; tpg 397 drivers/gpu/drm/panel/panel-tpo-tpg110.c mode = drm_mode_duplicate(panel->drm, &tpg->panel_mode->mode); tpg 401 drivers/gpu/drm/panel/panel-tpo-tpg110.c mode->width_mm = tpg->width; tpg 402 drivers/gpu/drm/panel/panel-tpo-tpg110.c mode->height_mm = tpg->height; tpg 419 drivers/gpu/drm/panel/panel-tpo-tpg110.c struct tpg110 *tpg; tpg 422 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg = devm_kzalloc(dev, sizeof(*tpg), GFP_KERNEL); tpg 423 drivers/gpu/drm/panel/panel-tpo-tpg110.c if (!tpg) tpg 425 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg->dev = dev; tpg 428 drivers/gpu/drm/panel/panel-tpo-tpg110.c ret = of_property_read_u32(np, "width-mm", &tpg->width); tpg 431 drivers/gpu/drm/panel/panel-tpo-tpg110.c ret = of_property_read_u32(np, "height-mm", &tpg->height); tpg 436 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg->backlight = devm_of_find_backlight(dev); tpg 437 drivers/gpu/drm/panel/panel-tpo-tpg110.c if (IS_ERR(tpg->backlight)) tpg 438 drivers/gpu/drm/panel/panel-tpo-tpg110.c return PTR_ERR(tpg->backlight); tpg 441 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg->grestb = devm_gpiod_get(dev, "grestb", GPIOD_OUT_HIGH); tpg 442 drivers/gpu/drm/panel/panel-tpo-tpg110.c if (IS_ERR(tpg->grestb)) { tpg 454 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg->spi = spi; tpg 456 drivers/gpu/drm/panel/panel-tpo-tpg110.c ret = tpg110_startup(tpg); tpg 460 drivers/gpu/drm/panel/panel-tpo-tpg110.c drm_panel_init(&tpg->panel); tpg 461 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg->panel.dev = dev; tpg 462 drivers/gpu/drm/panel/panel-tpo-tpg110.c tpg->panel.funcs = &tpg110_drm_funcs; tpg 463 drivers/gpu/drm/panel/panel-tpo-tpg110.c spi_set_drvdata(spi, tpg); tpg 465 drivers/gpu/drm/panel/panel-tpo-tpg110.c return drm_panel_add(&tpg->panel); tpg 470 drivers/gpu/drm/panel/panel-tpo-tpg110.c struct tpg110 *tpg = spi_get_drvdata(spi); tpg 472 drivers/gpu/drm/panel/panel-tpo-tpg110.c drm_panel_remove(&tpg->panel); tpg 1913 drivers/infiniband/ulp/isert/ib_isert.c if (conn->tpg->tpg_attrib.t10_pi) { tpg 3280 drivers/infiniband/ulp/srpt/ib_srpt.c static struct srpt_port *srpt_tpg_to_sport(struct se_portal_group *tpg) tpg 3282 drivers/infiniband/ulp/srpt/ib_srpt.c return tpg->se_tpg_wwn->priv; tpg 3285 drivers/infiniband/ulp/srpt/ib_srpt.c static char *srpt_get_fabric_wwn(struct se_portal_group *tpg) tpg 3287 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(tpg); tpg 3289 drivers/infiniband/ulp/srpt/ib_srpt.c WARN_ON_ONCE(tpg != &sport->port_guid_tpg && tpg 3290 drivers/infiniband/ulp/srpt/ib_srpt.c tpg != &sport->port_gid_tpg); tpg 3291 drivers/infiniband/ulp/srpt/ib_srpt.c return tpg == &sport->port_guid_tpg ? sport->port_guid : tpg 3295 drivers/infiniband/ulp/srpt/ib_srpt.c static u16 srpt_get_tag(struct se_portal_group *tpg) tpg 3749 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *tpg; tpg 3754 drivers/infiniband/ulp/srpt/ib_srpt.c tpg = wwn == &sport->port_guid_wwn ? &sport->port_guid_tpg : tpg 3756 drivers/infiniband/ulp/srpt/ib_srpt.c res = core_tpg_register(wwn, tpg, SCSI_PROTOCOL_SRP); tpg 3760 drivers/infiniband/ulp/srpt/ib_srpt.c return tpg; tpg 3767 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_drop_tpg(struct se_portal_group *tpg) tpg 3769 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(tpg); tpg 3772 drivers/infiniband/ulp/srpt/ib_srpt.c core_tpg_deregister(tpg); tpg 89 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h) tpg 91 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memset(tpg, 0, sizeof(*tpg)); tpg 92 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->scaled_width = tpg->src_width = w; tpg 93 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->src_height = tpg->buf_height = h; tpg 94 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->crop.width = tpg->compose.width = w; tpg 95 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->crop.height = tpg->compose.height = h; tpg 96 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_colors = true; tpg 97 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_square_border = true; tpg 98 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->brightness = 128; tpg 99 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->contrast = 128; tpg 100 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->saturation = 128; tpg 101 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hue = 0; tpg 102 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_hor_mode = TPG_MOVE_NONE; tpg 103 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_vert_mode = TPG_MOVE_NONE; tpg 104 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->field = V4L2_FIELD_NONE; tpg 105 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_s_fourcc(tpg, V4L2_PIX_FMT_RGB24); tpg 106 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colorspace = V4L2_COLORSPACE_SRGB; tpg 107 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->perc_fill = 100; tpg 108 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hsv_enc = V4L2_HSV_ENC_180; tpg 112 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c int tpg_alloc(struct tpg_data *tpg, unsigned max_w) tpg 117 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->max_line_width = max_w; tpg 122 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->lines[pat][plane] = tpg 124 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (!tpg->lines[pat][plane]) tpg 128 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->downsampled_lines[pat][plane] = tpg 130 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (!tpg->downsampled_lines[pat][plane]) tpg 137 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->contrast_line[plane] = tpg 139 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (!tpg->contrast_line[plane]) tpg 141 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->black_line[plane] = tpg 143 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (!tpg->black_line[plane]) tpg 145 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->random_line[plane] = tpg 147 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (!tpg->random_line[plane]) tpg 154 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_free(struct tpg_data *tpg) tpg 161 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c vfree(tpg->lines[pat][plane]); tpg 162 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->lines[pat][plane] = NULL; tpg 165 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c vfree(tpg->downsampled_lines[pat][plane]); tpg 166 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->downsampled_lines[pat][plane] = NULL; tpg 169 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c vfree(tpg->contrast_line[plane]); tpg 170 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c vfree(tpg->black_line[plane]); tpg 171 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c vfree(tpg->random_line[plane]); tpg 172 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->contrast_line[plane] = NULL; tpg 173 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->black_line[plane] = NULL; tpg 174 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->random_line[plane] = NULL; tpg 179 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc) tpg 181 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->fourcc = fourcc; tpg 182 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->planes = 1; tpg 183 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->buffers = 1; tpg 184 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_colors = true; tpg 185 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->interleaved = false; tpg 186 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[0] = 1; tpg 187 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[0] = 1; tpg 188 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hmask[0] = ~0; tpg 189 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hmask[1] = ~0; tpg 190 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hmask[2] = ~0; tpg 209 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->interleaved = true; tpg 210 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[1] = 1; tpg 211 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[1] = 1; tpg 212 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->planes = 2; tpg 251 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_RGB; tpg 259 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_LUMA; tpg 269 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_YCBCR; tpg 273 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->buffers = 3; tpg 277 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[1] = 2; tpg 278 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[2] = 2; tpg 279 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[1] = 2; tpg 280 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[2] = 2; tpg 281 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->planes = 3; tpg 282 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_YCBCR; tpg 286 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->buffers = 3; tpg 289 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[1] = 1; tpg 290 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[2] = 1; tpg 291 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[1] = 2; tpg 292 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[2] = 2; tpg 293 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->planes = 3; tpg 294 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_YCBCR; tpg 298 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->buffers = 2; tpg 302 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[1] = 1; tpg 303 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[1] = 1; tpg 304 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hmask[1] = ~1; tpg 305 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->planes = 2; tpg 306 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_YCBCR; tpg 310 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->buffers = 2; tpg 314 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[1] = 2; tpg 315 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[1] = 1; tpg 316 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hmask[1] = ~1; tpg 317 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->planes = 2; tpg 318 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_YCBCR; tpg 322 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->buffers = 3; tpg 323 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->planes = 3; tpg 324 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[1] = 1; tpg 325 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[2] = 1; tpg 326 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[1] = 1; tpg 327 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[2] = 1; tpg 328 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_YCBCR; tpg 332 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->vdownsampling[1] = 1; tpg 333 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hdownsampling[1] = 1; tpg 334 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->planes = 2; tpg 335 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_YCBCR; tpg 341 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hmask[0] = ~1; tpg 342 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_YCBCR; tpg 346 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc = TGP_COLOR_ENC_HSV; tpg 355 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[0] = 2; tpg 392 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[0] = 2 * 2; tpg 397 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[0] = 2 * 3; tpg 416 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[0] = 2 * 4; tpg 430 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[0] = 2; tpg 431 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[1] = 2; tpg 445 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[0] = 4; tpg 446 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[1] = 4; tpg 457 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[0] = 2; tpg 458 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[1] = 2; tpg 459 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[2] = 2; tpg 463 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[0] = 2; tpg 464 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->twopixelsize[1] = 4; tpg 471 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop, tpg 474 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->crop = *crop; tpg 475 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->compose = *compose; tpg 476 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->scaled_width = (tpg->src_width * tpg->compose.width + tpg 477 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->crop.width - 1) / tpg->crop.width; tpg 478 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->scaled_width &= ~1; tpg 479 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->scaled_width > tpg->max_line_width) tpg 480 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->scaled_width = tpg->max_line_width; tpg 481 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->scaled_width < 2) tpg 482 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->scaled_width = 2; tpg 483 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_lines = true; tpg 487 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, tpg 492 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->src_width = width; tpg 493 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->src_height = height; tpg 494 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->field = field; tpg 495 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->buf_height = height; tpg 497 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->buf_height /= 2; tpg 498 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->scaled_width = width; tpg 499 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->crop.top = tpg->crop.left = 0; tpg 500 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->crop.width = width; tpg 501 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->crop.height = height; tpg 502 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->compose.top = tpg->compose.left = 0; tpg 503 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->compose.width = width; tpg 504 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->compose.height = tpg->buf_height; tpg 505 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (p = 0; p < tpg->planes; p++) tpg 506 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->bytesperline[p] = (width * tpg->twopixelsize[p]) / tpg 507 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c (2 * tpg->hdownsampling[p]); tpg 508 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_square_border = true; tpg 512 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static enum tpg_color tpg_get_textbg_color(struct tpg_data *tpg) tpg 514 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->pattern) { tpg 524 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static enum tpg_color tpg_get_textfg_color(struct tpg_data *tpg) tpg 526 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->pattern) { tpg 549 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void color_to_hsv(struct tpg_data *tpg, int r, int g, int b, tpg 582 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c third_size = (tpg->real_hsv_enc == V4L2_HSV_ENC_180) ? 60 : 85; tpg 602 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->real_hsv_enc == V4L2_HSV_ENC_180) { tpg 622 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void color_to_ycbcr(struct tpg_data *tpg, int r, int g, int b, tpg 676 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c bool full = tpg->real_quantization == V4L2_QUANTIZATION_FULL_RANGE; tpg 680 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->real_ycbcr_enc) { tpg 736 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void ycbcr_to_color(struct tpg_data *tpg, int y, int cb, int cr, tpg 790 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c bool full = tpg->real_quantization == V4L2_QUANTIZATION_FULL_RANGE; tpg 795 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->real_ycbcr_enc) { tpg 847 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void precalculate_color(struct tpg_data *tpg, int k) tpg 857 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c col = tpg_get_textbg_color(tpg); tpg 863 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c col = tpg_get_textfg_color(tpg); tpg 868 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c } else if (tpg->pattern == TPG_PAT_NOISE) { tpg 871 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c r = g = b = tpg->qual_offset + prandom_u32_max(196); tpg 876 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->pattern == TPG_PAT_CSC_COLORBAR && col <= TPG_COLOR_CSC_BLACK) { tpg 877 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c r = tpg_csc_colors[tpg->colorspace][tpg->real_xfer_func][col].r; tpg 878 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c g = tpg_csc_colors[tpg->colorspace][tpg->real_xfer_func][col].g; tpg 879 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c b = tpg_csc_colors[tpg->colorspace][tpg->real_xfer_func][col].b; tpg 886 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->qual == TPG_QUAL_GRAY || tpg 887 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc == TGP_COLOR_ENC_LUMA) { tpg 900 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->real_rgb_range == V4L2_DV_RGB_RANGE_LIMITED && tpg 901 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->rgb_range == V4L2_DV_RGB_RANGE_FULL && tpg 902 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc == TGP_COLOR_ENC_RGB) { tpg 911 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c } else if (tpg->real_rgb_range != V4L2_DV_RGB_RANGE_LIMITED && tpg 912 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->rgb_range == V4L2_DV_RGB_RANGE_LIMITED && tpg 913 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc == TGP_COLOR_ENC_RGB) { tpg 927 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if ((tpg->brightness != 128 || tpg->contrast != 128 || tpg 928 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->saturation != 128 || tpg->hue) && tpg 929 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc != TGP_COLOR_ENC_LUMA) { tpg 935 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c color_to_ycbcr(tpg, r, g, b, &y, &cb, &cr); tpg 937 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c y = (16 << 4) + ((y - (16 << 4)) * tpg->contrast) / 128; tpg 938 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c y += (tpg->brightness << 4) - (128 << 4); tpg 942 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tmp_cb = (cb * cos(128 + tpg->hue)) / 127 + (cr * sin[128 + tpg->hue]) / 127; tpg 943 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tmp_cr = (cr * cos(128 + tpg->hue)) / 127 - (cb * sin[128 + tpg->hue]) / 127; tpg 945 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c cb = (128 << 4) + (tmp_cb * tpg->contrast * tpg->saturation) / (128 * 128); tpg 946 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c cr = (128 << 4) + (tmp_cr * tpg->contrast * tpg->saturation) / (128 * 128); tpg 947 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->color_enc == TGP_COLOR_ENC_YCBCR) tpg 950 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c ycbcr_to_color(tpg, y, cb, cr, &r, &g, &b); tpg 951 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c } else if ((tpg->brightness != 128 || tpg->contrast != 128) && tpg 952 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc == TGP_COLOR_ENC_LUMA) { tpg 953 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c r = (16 << 4) + ((r - (16 << 4)) * tpg->contrast) / 128; tpg 954 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c r += (tpg->brightness << 4) - (128 << 4); tpg 957 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->color_enc) { tpg 962 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c color_to_hsv(tpg, r, g, b, &h, &s, &v); tpg 963 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][0] = h; tpg 964 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][1] = s; tpg 965 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][2] = v; tpg 972 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c color_to_ycbcr(tpg, r, g, b, &y, &cb, &cr); tpg 982 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->real_quantization == V4L2_QUANTIZATION_LIM_RANGE && tpg 983 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_ycbcr_enc != V4L2_YCBCR_ENC_XV601 && tpg 984 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_ycbcr_enc != V4L2_YCBCR_ENC_XV709) { tpg 993 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->fourcc) { tpg 1010 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][0] = y; tpg 1011 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][1] = cb; tpg 1012 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][2] = cr; tpg 1017 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][0] = r >> 4; tpg 1022 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->real_quantization == V4L2_QUANTIZATION_LIM_RANGE) { tpg 1027 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->fourcc) { tpg 1080 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][0] = r; tpg 1081 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][1] = g; tpg 1082 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colors[k][2] = b; tpg 1088 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void tpg_precalculate_colors(struct tpg_data *tpg) tpg 1093 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c precalculate_color(tpg, k); tpg 1097 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void gen_twopix(struct tpg_data *tpg, tpg 1100 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned offset = odd * tpg->twopixelsize[0] / 2; tpg 1101 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 alpha = tpg->alpha_component; tpg 1104 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->alpha_red_only && color != TPG_COLOR_CSC_RED && tpg 1109 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c precalculate_color(tpg, color); tpg 1110 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c r_y_h = tpg->colors[color][0]; /* R or precalculated Y, H */ tpg 1111 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c g_u_s = tpg->colors[color][1]; /* G or precalculated U, V */ tpg 1112 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c b_v = tpg->colors[color][2]; /* B or precalculated V */ tpg 1114 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->fourcc) { tpg 1507 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line) tpg 1509 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->fourcc) { tpg 1534 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static unsigned tpg_get_pat_lines(const struct tpg_data *tpg) tpg 1536 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->pattern) { tpg 1556 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static unsigned tpg_get_pat_line(const struct tpg_data *tpg, unsigned line) tpg 1558 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->pattern) { tpg 1570 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return (line * 8) / tpg->src_height; tpg 1572 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return line == tpg->src_height / 2; tpg 1574 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return (line + 1) / 2 == tpg->src_height / 4; tpg 1576 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return (line + 10) / 20 == tpg->src_height / 40; tpg 1586 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static enum tpg_color tpg_get_color(const struct tpg_data *tpg, tpg 1609 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->pattern) { tpg 1613 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return bars[tpg->pattern][((x * 8) / tpg->src_width) % 8]; tpg 1615 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return bars[1][(pat_line + (x * 8) / tpg->src_width) % 8]; tpg 1648 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (pat_line || (x % tpg->src_width) == tpg->src_width / 2) tpg 1652 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (pat_line || ((x % tpg->src_width) + 1) / 2 == tpg->src_width / 4) tpg 1656 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (pat_line || ((x % tpg->src_width) + 10) / 20 == tpg->src_width / 40) tpg 1660 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return TPG_COLOR_RAMP + ((x % tpg->src_width) * 256) / tpg->src_width; tpg 1672 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void tpg_calculate_square_border(struct tpg_data *tpg) tpg 1674 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned w = tpg->src_width; tpg 1675 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned h = tpg->src_height; tpg 1682 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->square.width = sq_w; tpg 1683 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->vid_aspect == TPG_VIDEO_ASPECT_16X9_ANAMORPHIC) { tpg 1688 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->square.width = ana_sq_w; tpg 1690 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->square.left = (w - tpg->square.width) / 2; tpg 1691 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->pix_aspect == TPG_PIXEL_ASPECT_NTSC) tpg 1693 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c else if (tpg->pix_aspect == TPG_PIXEL_ASPECT_PAL) tpg 1695 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->square.height = sq_h; tpg 1696 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->square.top = (h - sq_h) / 2; tpg 1697 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.left = 0; tpg 1698 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.width = w; tpg 1699 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.top = 0; tpg 1700 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.height = h; tpg 1701 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->vid_aspect) { tpg 1703 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->pix_aspect) tpg 1706 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.width = ((4 * h) / 3) & ~1; tpg 1707 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (((w - tpg->border.width) / 2) & ~1) tpg 1708 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.width -= 2; tpg 1709 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.left = (w - tpg->border.width) / 2; tpg 1712 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.height = ((3 * w) / 4) & ~1; tpg 1713 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.top = (h - tpg->border.height) / 2; tpg 1716 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->pix_aspect) { tpg 1717 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.height = tpg->pix_aspect == TPG_PIXEL_ASPECT_NTSC ? 420 : 506; tpg 1718 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.top = (h - tpg->border.height) / 2; tpg 1722 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.width = ((14 * h) / 9) & ~1; tpg 1723 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (((w - tpg->border.width) / 2) & ~1) tpg 1724 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.width -= 2; tpg 1725 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.left = (w - tpg->border.width) / 2; tpg 1728 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.height = ((9 * w) / 14) & ~1; tpg 1729 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.top = (h - tpg->border.height) / 2; tpg 1732 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->pix_aspect) { tpg 1733 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.height = tpg->pix_aspect == TPG_PIXEL_ASPECT_NTSC ? 368 : 442; tpg 1734 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.top = (h - tpg->border.height) / 2; tpg 1738 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.width = ((16 * h) / 9) & ~1; tpg 1739 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (((w - tpg->border.width) / 2) & ~1) tpg 1740 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.width -= 2; tpg 1741 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.left = (w - tpg->border.width) / 2; tpg 1744 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.height = ((9 * w) / 16) & ~1; tpg 1745 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.top = (h - tpg->border.height) / 2; tpg 1752 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void tpg_precalculate_line(struct tpg_data *tpg) tpg 1760 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->pattern) { tpg 1772 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (pat = 0; pat < tpg_get_pat_lines(tpg); pat++) { tpg 1774 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned int_part = tpg->src_width / tpg->scaled_width; tpg 1775 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned fract_part = tpg->src_width % tpg->scaled_width; tpg 1779 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (x = 0; x < tpg->scaled_width * 2; x += 2) { tpg 1783 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c real_x = tpg->hflip ? tpg->src_width * 2 - real_x - 2 : real_x; tpg 1784 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c color1 = tpg_get_color(tpg, pat, real_x); tpg 1788 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (error >= tpg->scaled_width) { tpg 1789 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c error -= tpg->scaled_width; tpg 1794 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c real_x = tpg->hflip ? tpg->src_width * 2 - real_x - 2 : real_x; tpg 1795 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c color2 = tpg_get_color(tpg, pat, real_x); tpg 1799 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (error >= tpg->scaled_width) { tpg 1800 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c error -= tpg->scaled_width; tpg 1804 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, tpg->hflip ? color2 : color1, 0); tpg 1805 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, tpg->hflip ? color1 : color2, 1); tpg 1806 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (p = 0; p < tpg->planes; p++) { tpg 1807 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned twopixsize = tpg->twopixelsize[p]; tpg 1808 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned hdiv = tpg->hdownsampling[p]; tpg 1809 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 *pos = tpg->lines[pat][p] + tpg_hdiv(tpg, p, x); tpg 1816 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->vdownsampling[tpg->planes - 1] > 1) { tpg 1817 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned pat_lines = tpg_get_pat_lines(tpg); tpg 1822 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (p = 1; p < tpg->planes; p++) { tpg 1823 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned w = tpg_hdiv(tpg, p, tpg->scaled_width * 2); tpg 1824 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 *pos1 = tpg->lines[pat][p]; tpg 1825 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 *pos2 = tpg->lines[next_pat][p]; tpg 1826 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 *dest = tpg->downsampled_lines[pat][p]; tpg 1834 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, contrast, 0); tpg 1835 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, contrast, 1); tpg 1836 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (p = 0; p < tpg->planes; p++) { tpg 1837 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned twopixsize = tpg->twopixelsize[p]; tpg 1838 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 *pos = tpg->contrast_line[p]; tpg 1840 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (x = 0; x < tpg->scaled_width; x += 2, pos += twopixsize) tpg 1844 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, TPG_COLOR_100_BLACK, 0); tpg 1845 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, TPG_COLOR_100_BLACK, 1); tpg 1846 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (p = 0; p < tpg->planes; p++) { tpg 1847 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned twopixsize = tpg->twopixelsize[p]; tpg 1848 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 *pos = tpg->black_line[p]; tpg 1850 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (x = 0; x < tpg->scaled_width; x += 2, pos += twopixsize) tpg 1854 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (x = 0; x < tpg->scaled_width * 2; x += 2) { tpg 1855 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, TPG_COLOR_RANDOM, 0); tpg 1856 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, TPG_COLOR_RANDOM, 1); tpg 1857 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (p = 0; p < tpg->planes; p++) { tpg 1858 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned twopixsize = tpg->twopixelsize[p]; tpg 1859 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 *pos = tpg->random_line[p] + x * twopixsize / 2; tpg 1865 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, tpg->textbg, TPG_COLOR_TEXTBG, 0); tpg 1866 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, tpg->textbg, TPG_COLOR_TEXTBG, 1); tpg 1867 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, tpg->textfg, TPG_COLOR_TEXTFG, 0); tpg 1868 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, tpg->textfg, TPG_COLOR_TEXTFG, 1); tpg 1875 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned vdiv = tpg->vdownsampling[p]; \ tpg 1876 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned hdiv = tpg->hdownsampling[p]; \ tpg 1880 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(&fg, tpg->textfg[p], sizeof(PIXTYPE)); \ tpg 1881 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(&bg, tpg->textbg[p], sizeof(PIXTYPE)); \ tpg 1884 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c int l = tpg->vflip ? 15 - line : line; \ tpg 1886 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c ((y * step + l) / (vdiv * div)) * tpg->bytesperline[p] + \ tpg 1893 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (hdiv == 2 && tpg->hflip) { \ tpg 1903 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c } else if (tpg->hflip) { \ tpg 1923 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pos += (tpg->hflip ? -8 : 8) / (int)hdiv; \ tpg 1928 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static noinline void tpg_print_str_2(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], tpg 1935 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static noinline void tpg_print_str_4(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], tpg 1942 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static noinline void tpg_print_str_6(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], tpg 1949 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static noinline void tpg_print_str_8(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], tpg 1956 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_gen_text(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], tpg 1959 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned step = V4L2_FIELD_HAS_T_OR_B(tpg->field) ? 2 : 1; tpg 1969 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (y + 16 >= tpg->compose.height || x + 8 >= tpg->compose.width) tpg 1972 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (len > (tpg->compose.width - x) / 8) tpg 1973 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c len = (tpg->compose.width - x) / 8; tpg 1974 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->vflip) tpg 1975 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c y = tpg->compose.height - y - 16; tpg 1976 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->hflip) tpg 1977 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c x = tpg->compose.width - x - 8; tpg 1978 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c y += tpg->compose.top; tpg 1979 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c x += tpg->compose.left; tpg 1980 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->field == V4L2_FIELD_BOTTOM) tpg 1982 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c else if (tpg->field == V4L2_FIELD_SEQ_TB || tpg->field == V4L2_FIELD_SEQ_BT) tpg 1985 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (p = 0; p < tpg->planes; p++) { tpg 1987 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->twopixelsize[p]) { tpg 1989 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_print_str_2(tpg, basep, p, first, div, step, y, x, tpg 1993 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_print_str_4(tpg, basep, p, first, div, step, y, x, tpg 1997 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_print_str_6(tpg, basep, p, first, div, step, y, x, tpg 2001 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_print_str_8(tpg, basep, p, first, div, step, y, x, tpg 2009 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_update_mv_step(struct tpg_data *tpg) tpg 2011 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c int factor = tpg->mv_hor_mode > TPG_MOVE_NONE ? -1 : 1; tpg 2013 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->hflip) tpg 2015 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->mv_hor_mode) { tpg 2018 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_hor_step = ((tpg->src_width + 319) / 320) * 4; tpg 2022 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_hor_step = ((tpg->src_width + 639) / 640) * 4; tpg 2026 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_hor_step = 2; tpg 2029 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_hor_step = 0; tpg 2033 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_hor_step = tpg->src_width - tpg->mv_hor_step; tpg 2035 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c factor = tpg->mv_vert_mode > TPG_MOVE_NONE ? -1 : 1; tpg 2036 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->mv_vert_mode) { tpg 2039 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_vert_step = ((tpg->src_width + 319) / 320) * 4; tpg 2043 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_vert_step = ((tpg->src_width + 639) / 640) * 4; tpg 2047 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_vert_step = 1; tpg 2050 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_vert_step = 0; tpg 2054 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->mv_vert_step = tpg->src_height - tpg->mv_vert_step; tpg 2059 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static unsigned tpg_calc_frameline(const struct tpg_data *tpg, unsigned src_y, tpg 2064 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return tpg->crop.top + src_y * 2; tpg 2066 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return tpg->crop.top + src_y * 2 + 1; tpg 2068 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return src_y + tpg->crop.top; tpg 2076 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static unsigned tpg_calc_buffer_line(const struct tpg_data *tpg, unsigned y, tpg 2079 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c y += tpg->compose.top; tpg 2083 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return tpg->buf_height / 2 + y / 2; tpg 2088 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c return tpg->buf_height / 2 + y / 2; tpg 2094 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void tpg_recalc(struct tpg_data *tpg) tpg 2096 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->recalc_colors) { tpg 2097 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_colors = false; tpg 2098 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_lines = true; tpg 2099 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_xfer_func = tpg->xfer_func; tpg 2100 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_ycbcr_enc = tpg->ycbcr_enc; tpg 2101 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_hsv_enc = tpg->hsv_enc; tpg 2102 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_quantization = tpg->quantization; tpg 2104 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->xfer_func == V4L2_XFER_FUNC_DEFAULT) tpg 2105 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_xfer_func = tpg 2106 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c V4L2_MAP_XFER_FUNC_DEFAULT(tpg->colorspace); tpg 2108 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->ycbcr_enc == V4L2_YCBCR_ENC_DEFAULT) tpg 2109 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_ycbcr_enc = tpg 2110 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c V4L2_MAP_YCBCR_ENC_DEFAULT(tpg->colorspace); tpg 2112 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->quantization == V4L2_QUANTIZATION_DEFAULT) tpg 2113 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->real_quantization = tpg 2115 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->color_enc != TGP_COLOR_ENC_YCBCR, tpg 2116 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->colorspace, tpg->real_ycbcr_enc); tpg 2118 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_precalculate_colors(tpg); tpg 2120 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->recalc_square_border) { tpg 2121 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_square_border = false; tpg 2122 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_calculate_square_border(tpg); tpg 2124 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->recalc_lines) { tpg 2125 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->recalc_lines = false; tpg 2126 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_precalculate_line(tpg); tpg 2130 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_calc_text_basep(struct tpg_data *tpg, tpg 2133 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned stride = tpg->bytesperline[p]; tpg 2134 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned h = tpg->buf_height; tpg 2136 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_recalc(tpg); tpg 2140 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c h /= tpg->vdownsampling[p]; tpg 2141 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->field == V4L2_FIELD_SEQ_TB) tpg 2143 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c else if (tpg->field == V4L2_FIELD_SEQ_BT) tpg 2145 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (p == 0 && tpg->interleaved) tpg 2146 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_calc_text_basep(tpg, basep, 1, vbuf); tpg 2150 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static int tpg_pattern_avg(const struct tpg_data *tpg, tpg 2153 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned pat_lines = tpg_get_pat_lines(tpg); tpg 2179 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_log_status(struct tpg_data *tpg) tpg 2182 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->src_width, tpg->src_height, tpg 2183 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_color_enc_str(tpg->color_enc)); tpg 2184 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pr_info("tpg field: %u\n", tpg->field); tpg 2185 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pr_info("tpg crop: %ux%u@%dx%d\n", tpg->crop.width, tpg->crop.height, tpg 2186 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->crop.left, tpg->crop.top); tpg 2187 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pr_info("tpg compose: %ux%u@%dx%d\n", tpg->compose.width, tpg->compose.height, tpg 2188 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->compose.left, tpg->compose.top); tpg 2189 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pr_info("tpg colorspace: %d\n", tpg->colorspace); tpg 2190 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pr_info("tpg transfer function: %d/%d\n", tpg->xfer_func, tpg->real_xfer_func); tpg 2191 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->color_enc == TGP_COLOR_ENC_HSV) tpg 2193 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->hsv_enc, tpg->real_hsv_enc); tpg 2194 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c else if (tpg->color_enc == TGP_COLOR_ENC_YCBCR) tpg 2196 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->ycbcr_enc, tpg->real_ycbcr_enc); tpg 2197 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pr_info("tpg quantization: %d/%d\n", tpg->quantization, tpg->real_quantization); tpg 2198 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pr_info("tpg RGB range: %d/%d\n", tpg->rgb_range, tpg->real_rgb_range); tpg 2231 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void tpg_fill_params_pattern(const struct tpg_data *tpg, unsigned p, tpg 2235 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_hscale_div(tpg, p, tpg->mv_hor_count % tpg->src_width); tpg 2237 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_hscale_div(tpg, p, (tpg->mv_hor_count + tpg->mv_hor_step) % tpg 2238 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->src_width); tpg 2239 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params->mv_vert_old = tpg->mv_vert_count % tpg->src_height; tpg 2241 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c (tpg->mv_vert_count + tpg->mv_vert_step) % tpg->src_height; tpg 2244 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void tpg_fill_params_extras(const struct tpg_data *tpg, tpg 2251 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params->wss_width = tpg->crop.left < tpg->src_width / 2 ? tpg 2252 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->src_width / 2 - tpg->crop.left : 0; tpg 2253 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (params->wss_width > tpg->crop.width) tpg 2254 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params->wss_width = tpg->crop.width; tpg 2255 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params->wss_width = tpg_hscale_div(tpg, p, params->wss_width); tpg 2257 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params->twopixsize * prandom_u32_max(tpg->src_width / 2); tpg 2259 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->crop.left < tpg->border.left) { tpg 2260 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c left_pillar_width = tpg->border.left - tpg->crop.left; tpg 2261 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (left_pillar_width > tpg->crop.width) tpg 2262 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c left_pillar_width = tpg->crop.width; tpg 2263 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c left_pillar_width = tpg_hscale_div(tpg, p, left_pillar_width); tpg 2267 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->crop.left + tpg->crop.width > tpg 2268 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.left + tpg->border.width) { tpg 2270 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->border.left + tpg->border.width - tpg->crop.left; tpg 2272 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_hscale_div(tpg, p, right_pillar_start); tpg 2278 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params->sav_eav_f = tpg->field == tpg 2282 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void tpg_fill_plane_extras(const struct tpg_data *tpg, tpg 2289 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c const struct v4l2_rect *sq = &tpg->square; tpg 2290 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c const struct v4l2_rect *b = &tpg->border; tpg 2291 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c const struct v4l2_rect *c = &tpg->crop; tpg 2299 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 *wss = tpg->random_line[p] + params->wss_random_offset; tpg 2304 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->show_border && frame_line >= b->top && tpg 2312 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(vbuf + left, tpg->contrast_line[p], tpg 2318 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->contrast_line[p], twopixsize); tpg 2322 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->contrast_line[p], twopixsize); tpg 2325 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->qual != TPG_QUAL_NOISE && frame_line >= b->top && tpg 2327 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(vbuf, tpg->black_line[p], params->left_pillar_width); tpg 2328 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(vbuf + params->right_pillar_start, tpg->black_line[p], tpg 2331 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->show_square && frame_line >= sq->top && tpg 2345 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c left = tpg_hscale_div(tpg, p, left); tpg 2346 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c width = tpg_hscale_div(tpg, p, width); tpg 2347 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(vbuf + left, tpg->contrast_line[p], width); tpg 2349 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->insert_sav) { tpg 2350 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned offset = tpg_hdiv(tpg, p, tpg->compose.width / 3); tpg 2364 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->insert_eav) { tpg 2365 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned offset = tpg_hdiv(tpg, p, tpg->compose.width * 2 / 3); tpg 2381 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void tpg_fill_plane_pattern(const struct tpg_data *tpg, tpg 2393 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned line_offset = tpg_hscale_div(tpg, p, tpg->crop.left); tpg 2406 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (params->hmax == tpg->compose.height) tpg 2408 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (!tpg->perc_fill_blank) tpg 2413 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->vflip) { tpg 2414 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c frame_line = tpg->src_height - frame_line - 1; tpg 2415 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c frame_line_next = tpg->src_height - frame_line_next - 1; tpg 2419 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_older = tpg->contrast_line[p]; tpg 2420 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_newer = tpg->contrast_line[p]; tpg 2421 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c } else if (tpg->qual != TPG_QUAL_NOISE && tpg 2422 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c (frame_line < tpg->border.top || tpg 2423 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c frame_line >= tpg->border.top + tpg->border.height)) { tpg 2424 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_older = tpg->black_line[p]; tpg 2425 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_newer = tpg->black_line[p]; tpg 2426 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c } else if (tpg->pattern == TPG_PAT_NOISE || tpg->qual == TPG_QUAL_NOISE) { tpg 2427 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_older = tpg->random_line[p] + tpg 2428 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c twopixsize * prandom_u32_max(tpg->src_width / 2); tpg 2429 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_newer = tpg->random_line[p] + tpg 2430 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c twopixsize * prandom_u32_max(tpg->src_width / 2); tpg 2433 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c (frame_line + mv_vert_old) % tpg->src_height; tpg 2435 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c (frame_line + mv_vert_new) % tpg->src_height; tpg 2439 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pat_line_old = tpg_get_pat_line(tpg, frame_line_old); tpg 2440 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pat_line_new = tpg_get_pat_line(tpg, frame_line_new); tpg 2441 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_older = tpg->lines[pat_line_old][p] + mv_hor_old; tpg 2442 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_newer = tpg->lines[pat_line_new][p] + mv_hor_new; tpg 2444 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->vdownsampling[p] > 1 && frame_line != frame_line_next) { tpg 2451 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pat_line_next_old = tpg_get_pat_line(tpg, tpg 2452 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c (frame_line_next + mv_vert_old) % tpg->src_height); tpg 2453 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c pat_line_next_new = tpg_get_pat_line(tpg, tpg 2454 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c (frame_line_next + mv_vert_new) % tpg->src_height); tpg 2456 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->field) { tpg 2460 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c avg_pat = tpg_pattern_avg(tpg, pat_line_old, pat_line_new); tpg 2463 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_older = tpg->downsampled_lines[avg_pat][p] + mv_hor_old; tpg 2471 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c avg_pat = tpg_pattern_avg(tpg, pat_line_old, pat_line_next_old); tpg 2473 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_older = tpg->downsampled_lines[avg_pat][p] + tpg 2475 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c avg_pat = tpg_pattern_avg(tpg, pat_line_new, pat_line_next_new); tpg 2477 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c linestart_newer = tpg->downsampled_lines[avg_pat][p] + tpg 2485 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->field_alternate) { tpg 2495 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c switch (tpg->field) { tpg 2524 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_fill_plane_buffer(struct tpg_data *tpg, v4l2_std_id std, tpg 2528 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned factor = V4L2_FIELD_HAS_T_OR_B(tpg->field) ? 2 : 1; tpg 2531 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned int_part = (tpg->crop.height / factor) / tpg->compose.height; tpg 2532 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c unsigned fract_part = (tpg->crop.height / factor) % tpg->compose.height; tpg 2537 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_recalc(tpg); tpg 2541 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params.twopixsize = tpg->twopixelsize[p]; tpg 2542 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params.img_width = tpg_hdiv(tpg, p, tpg->compose.width); tpg 2543 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params.stride = tpg->bytesperline[p]; tpg 2544 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params.hmax = (tpg->compose.height * tpg->perc_fill) / 100; tpg 2546 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_fill_params_pattern(tpg, p, ¶ms); tpg 2547 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_fill_params_extras(tpg, p, ¶ms); tpg 2549 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c vbuf += tpg_hdiv(tpg, p, tpg->compose.left); tpg 2551 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (h = 0; h < tpg->compose.height; h++) { tpg 2554 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c params.frame_line = tpg_calc_frameline(tpg, src_y, tpg->field); tpg 2556 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c buf_line = tpg_calc_buffer_line(tpg, h, tpg->field); tpg 2559 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (error >= tpg->compose.height) { tpg 2560 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c error -= tpg->compose.height; tpg 2568 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg_g_interleaved(tpg)) tpg 2569 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c p = tpg_g_interleaved_plane(tpg, buf_line); tpg 2571 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->vdownsampling[p] > 1) { tpg 2580 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->field == V4L2_FIELD_SEQ_BT || tpg 2581 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg->field == V4L2_FIELD_SEQ_TB) { tpg 2587 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (error + fract_part >= tpg->compose.height) tpg 2590 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_calc_frameline(tpg, next_src_y, tpg->field); tpg 2595 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_calc_frameline(tpg, src_y, tpg->field); tpg 2598 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c buf_line /= tpg->vdownsampling[p]; tpg 2600 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_fill_plane_pattern(tpg, ¶ms, p, h, tpg 2602 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_fill_plane_extras(tpg, ¶ms, p, h, tpg 2608 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_fillbuffer(struct tpg_data *tpg, v4l2_std_id std, unsigned p, u8 *vbuf) tpg 2613 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c if (tpg->buffers > 1) { tpg 2614 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_fill_plane_buffer(tpg, std, p, vbuf); tpg 2618 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c for (i = 0; i < tpg_g_planes(tpg); i++) { tpg 2619 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c tpg_fill_plane_buffer(tpg, std, i, vbuf + offset); tpg 2620 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c offset += tpg_calc_plane_size(tpg, i); tpg 27 drivers/media/platform/vimc/vimc-sensor.c struct tpg_data tpg; tpg 112 drivers/media/platform/vimc/vimc-sensor.c tpg_reset_source(&vsen->tpg, vsen->mbus_format.width, tpg 114 drivers/media/platform/vimc/vimc-sensor.c tpg_s_bytesperline(&vsen->tpg, 0, vsen->mbus_format.width * vpix->bpp); tpg 115 drivers/media/platform/vimc/vimc-sensor.c tpg_s_buf_height(&vsen->tpg, vsen->mbus_format.height); tpg 116 drivers/media/platform/vimc/vimc-sensor.c tpg_s_fourcc(&vsen->tpg, vpix->pixelformat); tpg 118 drivers/media/platform/vimc/vimc-sensor.c tpg_s_field(&vsen->tpg, vsen->mbus_format.field, false); tpg 119 drivers/media/platform/vimc/vimc-sensor.c tpg_s_colorspace(&vsen->tpg, vsen->mbus_format.colorspace); tpg 120 drivers/media/platform/vimc/vimc-sensor.c tpg_s_ycbcr_enc(&vsen->tpg, vsen->mbus_format.ycbcr_enc); tpg 121 drivers/media/platform/vimc/vimc-sensor.c tpg_s_quantization(&vsen->tpg, vsen->mbus_format.quantization); tpg 122 drivers/media/platform/vimc/vimc-sensor.c tpg_s_xfer_func(&vsen->tpg, vsen->mbus_format.xfer_func); tpg 197 drivers/media/platform/vimc/vimc-sensor.c tpg_fill_plane_buffer(&vsen->tpg, 0, 0, vsen->frame); tpg 258 drivers/media/platform/vimc/vimc-sensor.c tpg_s_pattern(&vsen->tpg, ctrl->val); tpg 261 drivers/media/platform/vimc/vimc-sensor.c tpg_s_hflip(&vsen->tpg, ctrl->val); tpg 264 drivers/media/platform/vimc/vimc-sensor.c tpg_s_vflip(&vsen->tpg, ctrl->val); tpg 267 drivers/media/platform/vimc/vimc-sensor.c tpg_s_brightness(&vsen->tpg, ctrl->val); tpg 270 drivers/media/platform/vimc/vimc-sensor.c tpg_s_contrast(&vsen->tpg, ctrl->val); tpg 273 drivers/media/platform/vimc/vimc-sensor.c tpg_s_hue(&vsen->tpg, ctrl->val); tpg 276 drivers/media/platform/vimc/vimc-sensor.c tpg_s_saturation(&vsen->tpg, ctrl->val); tpg 294 drivers/media/platform/vimc/vimc-sensor.c tpg_free(&vsen->tpg); tpg 382 drivers/media/platform/vimc/vimc-sensor.c tpg_init(&vsen->tpg, vsen->mbus_format.width, tpg 384 drivers/media/platform/vimc/vimc-sensor.c ret = tpg_alloc(&vsen->tpg, VIMC_FRAME_MAX_WIDTH); tpg 384 drivers/media/platform/vivid/vivid-core.c tpg_log_status(&dev->tpg); tpg 627 drivers/media/platform/vivid/vivid-core.c tpg_free(&dev->tpg); tpg 883 drivers/media/platform/vivid/vivid-core.c tpg_init(&dev->tpg, 640, 360); tpg 884 drivers/media/platform/vivid/vivid-core.c if (tpg_alloc(&dev->tpg, MAX_ZOOM * MAX_WIDTH)) tpg 1010 drivers/media/platform/vivid/vivid-core.c tpg_s_fourcc(&dev->tpg, dev->fmt_cap->fourcc); tpg 1071 drivers/media/platform/vivid/vivid-core.c dev->fb_cap.fmt.bytesperline = dev->src_rect.width * tpg_g_twopixelsize(&dev->tpg, 0) / 2; tpg 377 drivers/media/platform/vivid/vivid-core.h struct tpg_data tpg; tpg 314 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_brightness(&dev->tpg, dev->input_brightness[dev->input]); tpg 317 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_contrast(&dev->tpg, ctrl->val); tpg 320 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_saturation(&dev->tpg, ctrl->val); tpg 323 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_hue(&dev->tpg, ctrl->val); tpg 327 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_hflip(&dev->tpg, dev->sensor_hflip ^ dev->hflip); tpg 331 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_vflip(&dev->tpg, dev->sensor_vflip ^ dev->vflip); tpg 334 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_alpha_component(&dev->tpg, ctrl->val); tpg 367 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_pattern(&dev->tpg, ctrl->val); tpg 370 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_colorspace(&dev->tpg, colorspaces[ctrl->val]); tpg 377 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_xfer_func(&dev->tpg, ctrl->val); tpg 384 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_ycbcr_enc(&dev->tpg, ctrl->val); tpg 391 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_hsv_enc(&dev->tpg, ctrl->val ? V4L2_HSV_ENC_256 : tpg 399 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_quantization(&dev->tpg, ctrl->val); tpg 408 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_rgb_range(&dev->tpg, ctrl->val); tpg 411 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_real_rgb_range(&dev->tpg, ctrl->val ? tpg 415 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_alpha_mode(&dev->tpg, ctrl->val); tpg 418 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_mv_hor_mode(&dev->tpg, ctrl->val); tpg 421 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_mv_vert_mode(&dev->tpg, ctrl->val); tpg 427 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_perc_fill(&dev->tpg, ctrl->val); tpg 432 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_insert_sav(&dev->tpg, ctrl->val); tpg 435 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_insert_eav(&dev->tpg, ctrl->val); tpg 439 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_hflip(&dev->tpg, dev->sensor_hflip ^ dev->hflip); tpg 443 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_vflip(&dev->tpg, dev->sensor_vflip ^ dev->vflip); tpg 462 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_show_border(&dev->tpg, ctrl->val); tpg 465 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_show_square(&dev->tpg, ctrl->val); tpg 469 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_video_aspect(&dev->tpg, vivid_get_video_aspect(dev)); tpg 497 drivers/media/platform/vivid/vivid-ctrls.c tpg_s_video_aspect(&dev->tpg, vivid_get_video_aspect(dev)); tpg 221 drivers/media/platform/vivid/vivid-kthread-cap.c static void *plane_vaddr(struct tpg_data *tpg, struct vivid_buffer *buf, tpg 227 drivers/media/platform/vivid/vivid-kthread-cap.c if (p == 0 || tpg_g_buffers(tpg) > 1) tpg 231 drivers/media/platform/vivid/vivid-kthread-cap.c vbuf += bpl[i] * h / tpg->vdownsampling[i]; tpg 239 drivers/media/platform/vivid/vivid-kthread-cap.c struct tpg_data *tpg = &dev->tpg; tpg 242 drivers/media/platform/vivid/vivid-kthread-cap.c unsigned twopixsize = tpg_g_twopixelsize(tpg, p); tpg 243 drivers/media/platform/vivid/vivid-kthread-cap.c unsigned img_width = tpg_hdiv(tpg, p, dev->compose_cap.width); tpg 245 drivers/media/platform/vivid/vivid-kthread-cap.c unsigned stride_cap = tpg->bytesperline[p]; tpg 248 drivers/media/platform/vivid/vivid-kthread-cap.c unsigned hmax = (img_height * tpg->perc_fill) / 100; tpg 262 drivers/media/platform/vivid/vivid-kthread-cap.c unsigned vid_cap_left = tpg_hdiv(tpg, p, dev->loop_vid_cap.left); tpg 277 drivers/media/platform/vivid/vivid-kthread-cap.c voutbuf = plane_vaddr(tpg, vid_out_buf, p, tpg 281 drivers/media/platform/vivid/vivid-kthread-cap.c voutbuf += tpg_hdiv(tpg, p, dev->loop_vid_out.left) + tpg 283 drivers/media/platform/vivid/vivid-kthread-cap.c vcapbuf += tpg_hdiv(tpg, p, dev->compose_cap.left) + tpg 292 drivers/media/platform/vivid/vivid-kthread-cap.c memcpy(vcapbuf, tpg->black_line[p], img_width); tpg 307 drivers/media/platform/vivid/vivid-kthread-cap.c vid_cap_right = tpg_hdiv(tpg, p, dev->loop_vid_cap.left + dev->loop_vid_cap.width); tpg 323 drivers/media/platform/vivid/vivid-kthread-cap.c memcpy(vcapbuf, tpg->black_line[p], img_width); tpg 329 drivers/media/platform/vivid/vivid-kthread-cap.c memcpy(vcapbuf, tpg->black_line[p], vid_cap_left); tpg 333 drivers/media/platform/vivid/vivid-kthread-cap.c memcpy(vcapbuf + vid_cap_right, tpg->black_line[p], tpg 339 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_hdiv(tpg, p, dev->loop_vid_cap.width)); tpg 344 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_hdiv(tpg, p, dev->loop_vid_cap.width)); tpg 349 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_hdiv(tpg, p, dev->loop_vid_out.width), tpg 350 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_hdiv(tpg, p, dev->loop_vid_cap.width), tpg 351 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_g_twopixelsize(tpg, p)); tpg 364 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_g_twopixelsize(tpg, p)); tpg 375 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_g_twopixelsize(tpg, p)); tpg 379 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_hdiv(tpg, p, dev->loop_vid_cap.width)); tpg 401 drivers/media/platform/vivid/vivid-kthread-cap.c memcpy(vcapbuf, tpg->contrast_line[p], img_width); tpg 407 drivers/media/platform/vivid/vivid-kthread-cap.c struct tpg_data *tpg = &dev->tpg; tpg 445 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_s_field(tpg, buf->vb.field, tpg 447 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_s_perc_fill_blank(tpg, dev->must_blank[buf->vb.vb2_buf.index]); tpg 451 drivers/media/platform/vivid/vivid-kthread-cap.c for (p = 0; p < tpg_g_planes(tpg); p++) { tpg 452 drivers/media/platform/vivid/vivid-kthread-cap.c void *vbuf = plane_vaddr(tpg, buf, p, tpg 453 drivers/media/platform/vivid/vivid-kthread-cap.c tpg->bytesperline, tpg->buf_height); tpg 460 drivers/media/platform/vivid/vivid-kthread-cap.c if (p < tpg_g_buffers(tpg) && dev->fmt_cap->data_offset[p]) { tpg 465 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_calc_text_basep(tpg, basep, p, vbuf); tpg 467 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_fill_plane_buffer(tpg, vivid_get_std_cap(dev), tpg 489 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 494 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 504 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 509 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 515 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 521 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 526 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 531 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 535 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, 16, str); tpg 541 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_gen_text(tpg, basep, line++ * line_height, tpg 593 drivers/media/platform/vivid/vivid-kthread-cap.c struct tpg_data *tpg = &dev->tpg; tpg 594 drivers/media/platform/vivid/vivid-kthread-cap.c unsigned pixsize = tpg_g_twopixelsize(tpg, 0) / 2; tpg 599 drivers/media/platform/vivid/vivid-kthread-cap.c unsigned stride = tpg->bytesperline[0]; tpg 685 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_update_mv_count(&dev->tpg, tpg 765 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_update_mv_count(&dev->tpg, dev->field_cap == V4L2_FIELD_NONE || tpg 897 drivers/media/platform/vivid/vivid-kthread-cap.c tpg_init_mv_count(&dev->tpg); tpg 34 drivers/media/platform/vivid/vivid-vbi-cap.c switch (tpg_g_video_aspect(&dev->tpg)) { tpg 87 drivers/media/platform/vivid/vivid-vid-cap.c unsigned buffers = tpg_g_buffers(&dev->tpg); tpg 116 drivers/media/platform/vivid/vivid-vid-cap.c if (sizes[p] < tpg_g_line_width(&dev->tpg, p) * h + tpg 122 drivers/media/platform/vivid/vivid-vid-cap.c sizes[p] = (tpg_g_line_width(&dev->tpg, p) * h) / tpg 143 drivers/media/platform/vivid/vivid-vid-cap.c unsigned buffers = tpg_g_buffers(&dev->tpg); tpg 160 drivers/media/platform/vivid/vivid-vid-cap.c size = (tpg_g_line_width(&dev->tpg, p) * tpg 229 drivers/media/platform/vivid/vivid-vid-cap.c dev->must_blank[i] = tpg_g_perc_fill(&dev->tpg) < 100; tpg 291 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); tpg 296 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); tpg 301 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); tpg 305 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_quality(&dev->tpg, TPG_QUAL_COLOR, 0); tpg 317 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, tpg 322 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_quality(&dev->tpg, TPG_QUAL_GRAY, 0); tpg 324 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_quality(&dev->tpg, TPG_QUAL_COLOR, 0); tpg 336 drivers/media/platform/vivid/vivid-vid-cap.c if (tpg_g_quality(&dev->tpg) == TPG_QUAL_COLOR || tpg 337 drivers/media/platform/vivid/vivid-vid-cap.c tpg_g_quality(&dev->tpg) == TPG_QUAL_NOISE) tpg 338 drivers/media/platform/vivid/vivid-vid-cap.c return tpg_g_quality(&dev->tpg); tpg 394 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_rgb_range(&dev->tpg, V4L2_DV_RGB_RANGE_AUTO); tpg 409 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_rgb_range(&dev->tpg, V4L2_DV_RGB_RANGE_AUTO); tpg 446 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_rgb_range(&dev->tpg, v4l2_ctrl_g_ctrl(dev->rgb_range_cap)); tpg 452 drivers/media/platform/vivid/vivid-vid-cap.c tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); tpg 459 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_video_aspect(&dev->tpg, vivid_get_video_aspect(dev)); tpg 460 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_pixel_aspect(&dev->tpg, vivid_get_pixel_aspect(dev)); tpg 461 drivers/media/platform/vivid/vivid-vid-cap.c tpg_update_mv_step(&dev->tpg); tpg 491 drivers/media/platform/vivid/vivid-vid-cap.c return tpg_g_colorspace(&dev->tpg); tpg 498 drivers/media/platform/vivid/vivid-vid-cap.c return tpg_g_xfer_func(&dev->tpg); tpg 505 drivers/media/platform/vivid/vivid-vid-cap.c return tpg_g_ycbcr_enc(&dev->tpg); tpg 512 drivers/media/platform/vivid/vivid-vid-cap.c return tpg_g_hsv_enc(&dev->tpg); tpg 519 drivers/media/platform/vivid/vivid-vid-cap.c return tpg_g_quantization(&dev->tpg); tpg 543 drivers/media/platform/vivid/vivid-vid-cap.c mp->plane_fmt[p].bytesperline = tpg_g_bytesperline(&dev->tpg, p); tpg 545 drivers/media/platform/vivid/vivid-vid-cap.c (tpg_g_line_width(&dev->tpg, p) * mp->height) / tpg 759 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_buf_height(&dev->tpg, mp->height); tpg 760 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_fourcc(&dev->tpg, dev->fmt_cap->fourcc); tpg 761 drivers/media/platform/vivid/vivid-vid-cap.c for (p = 0; p < tpg_g_buffers(&dev->tpg); p++) tpg 762 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_bytesperline(&dev->tpg, p, mp->plane_fmt[p].bytesperline); tpg 765 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_field(&dev->tpg, V4L2_FIELD_TOP, true); tpg 767 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_field(&dev->tpg, dev->field_cap, false); tpg 768 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_crop_compose(&dev->tpg, &dev->crop_cap, &dev->compose_cap); tpg 771 drivers/media/platform/vivid/vivid-vid-cap.c tpg_update_mv_step(&dev->tpg); tpg 932 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_buf_height(&dev->tpg, fmt.height); tpg 941 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_buf_height(&dev->tpg, fmt.height); tpg 951 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_buf_height(&dev->tpg, dev->fmt_cap_rect.height); tpg 1013 drivers/media/platform/vivid/vivid-vid-cap.c tpg_s_crop_compose(&dev->tpg, crop, compose); tpg 1324 drivers/media/platform/vivid/vivid-vid-cap.c switch (tpg_g_quality(&dev->tpg)) { tpg 1597 drivers/media/platform/vivid/vivid-vid-cap.c if (vivid_is_tv_cap(dev) && tpg_g_quality(&dev->tpg) == TPG_QUAL_NOISE) { tpg 164 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 166 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_lport *lport = tpg->lport; tpg 173 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 175 drivers/scsi/qla2xxx/tcm_qla2xxx.c return tpg->lport_tpgt; tpg 180 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 183 drivers/scsi/qla2xxx/tcm_qla2xxx.c return tpg->tpg_attrib.generate_node_acls; tpg 188 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 191 drivers/scsi/qla2xxx/tcm_qla2xxx.c return tpg->tpg_attrib.cache_dynamic_acls; tpg 196 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 199 drivers/scsi/qla2xxx/tcm_qla2xxx.c return tpg->tpg_attrib.demo_mode_write_protect; tpg 204 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 207 drivers/scsi/qla2xxx/tcm_qla2xxx.c return tpg->tpg_attrib.prod_mode_write_protect; tpg 212 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 215 drivers/scsi/qla2xxx/tcm_qla2xxx.c return tpg->tpg_attrib.demo_mode_login_only; tpg 220 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 223 drivers/scsi/qla2xxx/tcm_qla2xxx.c return tpg->tpg_attrib.fabric_prot_type; tpg 228 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 231 drivers/scsi/qla2xxx/tcm_qla2xxx.c return tpg->lport_tpgt; tpg 429 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg; tpg 453 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg = container_of(se_tpg, struct tcm_qla2xxx_tpg, se_tpg); tpg 454 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (unlikely(tpg->tpg_attrib.jam_host)) { tpg 827 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \ tpg 830 drivers/scsi/qla2xxx/tcm_qla2xxx.c return sprintf(page, "%u\n", tpg->tpg_attrib.name); \ tpg 837 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \ tpg 839 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg_attrib *a = &tpg->tpg_attrib; \ tpg 888 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 892 drivers/scsi/qla2xxx/tcm_qla2xxx.c atomic_read(&tpg->lport_tpg_enabled)); tpg 903 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 918 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (atomic_read(&tpg->lport_tpg_enabled)) tpg 921 drivers/scsi/qla2xxx/tcm_qla2xxx.c atomic_set(&tpg->lport_tpg_enabled, 1); tpg 924 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!atomic_read(&tpg->lport_tpg_enabled)) tpg 927 drivers/scsi/qla2xxx/tcm_qla2xxx.c atomic_set(&tpg->lport_tpg_enabled, 0); tpg 944 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 957 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.fabric_prot_type = val; tpg 966 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 969 drivers/scsi/qla2xxx/tcm_qla2xxx.c return sprintf(page, "%d\n", tpg->tpg_attrib.fabric_prot_type); tpg 988 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg; tpg 1002 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg = kzalloc(sizeof(struct tcm_qla2xxx_tpg), GFP_KERNEL); tpg 1003 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!tpg) { tpg 1007 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->lport = lport; tpg 1008 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->lport_tpgt = tpgt; tpg 1013 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.generate_node_acls = 1; tpg 1014 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.demo_mode_write_protect = 1; tpg 1015 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.cache_dynamic_acls = 1; tpg 1016 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.demo_mode_login_only = 1; tpg 1017 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.jam_host = 0; tpg 1019 drivers/scsi/qla2xxx/tcm_qla2xxx.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); tpg 1021 drivers/scsi/qla2xxx/tcm_qla2xxx.c kfree(tpg); tpg 1025 drivers/scsi/qla2xxx/tcm_qla2xxx.c lport->tpg_1 = tpg; tpg 1027 drivers/scsi/qla2xxx/tcm_qla2xxx.c return &tpg->se_tpg; tpg 1032 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 1034 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_lport *lport = tpg->lport; tpg 1048 drivers/scsi/qla2xxx/tcm_qla2xxx.c kfree(tpg); tpg 1065 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 1080 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (atomic_read(&tpg->lport_tpg_enabled)) tpg 1083 drivers/scsi/qla2xxx/tcm_qla2xxx.c atomic_set(&tpg->lport_tpg_enabled, 1); tpg 1086 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!atomic_read(&tpg->lport_tpg_enabled)) tpg 1089 drivers/scsi/qla2xxx/tcm_qla2xxx.c atomic_set(&tpg->lport_tpg_enabled, 0); tpg 1108 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg; tpg 1117 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg = kzalloc(sizeof(struct tcm_qla2xxx_tpg), GFP_KERNEL); tpg 1118 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!tpg) { tpg 1122 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->lport = lport; tpg 1123 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->lport_tpgt = tpgt; tpg 1129 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.generate_node_acls = 1; tpg 1130 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.demo_mode_write_protect = 1; tpg 1131 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.cache_dynamic_acls = 1; tpg 1132 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg->tpg_attrib.demo_mode_login_only = 1; tpg 1134 drivers/scsi/qla2xxx/tcm_qla2xxx.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); tpg 1136 drivers/scsi/qla2xxx/tcm_qla2xxx.c kfree(tpg); tpg 1139 drivers/scsi/qla2xxx/tcm_qla2xxx.c lport->tpg_1 = tpg; tpg 1140 drivers/scsi/qla2xxx/tcm_qla2xxx.c return &tpg->se_tpg; tpg 1395 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, tpg 1397 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_lport *lport = tpg->lport; tpg 1431 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg; tpg 1446 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg = lport->tpg_1; tpg 1447 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!tpg) { tpg 1461 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_sess = target_setup_session(&tpg->se_tpg, num_tags, tpg 200 drivers/target/iscsi/iscsi_target.c int iscsit_access_np(struct iscsi_np *np, struct iscsi_portal_group *tpg) tpg 215 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&tpg->tpg_state_lock); tpg 216 drivers/target/iscsi/iscsi_target.c if (tpg->tpg_state != TPG_STATE_ACTIVE) { tpg 217 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&tpg->tpg_state_lock); tpg 220 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&tpg->tpg_state_lock); tpg 225 drivers/target/iscsi/iscsi_target.c ret = down_interruptible(&tpg->np_login_sem); tpg 229 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&tpg->tpg_state_lock); tpg 230 drivers/target/iscsi/iscsi_target.c if (tpg->tpg_state != TPG_STATE_ACTIVE) { tpg 231 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&tpg->tpg_state_lock); tpg 232 drivers/target/iscsi/iscsi_target.c up(&tpg->np_login_sem); tpg 235 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&tpg->tpg_state_lock); tpg 248 drivers/target/iscsi/iscsi_target.c int iscsit_deaccess_np(struct iscsi_np *np, struct iscsi_portal_group *tpg, tpg 251 drivers/target/iscsi/iscsi_target.c struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; tpg 253 drivers/target/iscsi/iscsi_target.c up(&tpg->np_login_sem); tpg 405 drivers/target/iscsi/iscsi_target.c struct iscsi_portal_group *tpg, tpg 3330 drivers/target/iscsi/iscsi_target.c struct iscsi_portal_group *tpg; tpg 3374 drivers/target/iscsi/iscsi_target.c list_for_each_entry(tpg, &tiqn->tiqn_tpg_list, tpg_list) { tpg 3381 drivers/target/iscsi/iscsi_target.c if ((tpg->tpg_attrib.generate_node_acls == 0) && tpg 3382 drivers/target/iscsi/iscsi_target.c (tpg->tpg_attrib.demo_mode_discovery == 0) && tpg 3383 drivers/target/iscsi/iscsi_target.c (!target_tpg_has_node_acl(&tpg->tpg_se_tpg, tpg 3388 drivers/target/iscsi/iscsi_target.c spin_lock(&tpg->tpg_state_lock); tpg 3389 drivers/target/iscsi/iscsi_target.c active = (tpg->tpg_state == TPG_STATE_ACTIVE); tpg 3390 drivers/target/iscsi/iscsi_target.c spin_unlock(&tpg->tpg_state_lock); tpg 3392 drivers/target/iscsi/iscsi_target.c if (!active && tpg->tpg_attrib.tpg_enabled_sendtargets) tpg 3395 drivers/target/iscsi/iscsi_target.c spin_lock(&tpg->tpg_np_lock); tpg 3396 drivers/target/iscsi/iscsi_target.c list_for_each_entry(tpg_np, &tpg->tpg_gnp_list, tpg 3410 drivers/target/iscsi/iscsi_target.c spin_unlock(&tpg->tpg_np_lock); tpg 3435 drivers/target/iscsi/iscsi_target.c tpg->tpgt); tpg 3439 drivers/target/iscsi/iscsi_target.c spin_unlock(&tpg->tpg_np_lock); tpg 3454 drivers/target/iscsi/iscsi_target.c spin_unlock(&tpg->tpg_np_lock); tpg 4348 drivers/target/iscsi/iscsi_target.c struct iscsi_portal_group *tpg = sess->tpg; tpg 4349 drivers/target/iscsi/iscsi_target.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; tpg 4402 drivers/target/iscsi/iscsi_target.c tpg->nsessions--; tpg 4403 drivers/target/iscsi/iscsi_target.c if (tpg->tpg_tiqn) tpg 4404 drivers/target/iscsi/iscsi_target.c tpg->tpg_tiqn->tiqn_nsessions--; tpg 4407 drivers/target/iscsi/iscsi_target.c " iSCSI TPG: %hu to %u\n", tpg->tpgt, tpg->nsessions); tpg 4625 drivers/target/iscsi/iscsi_target.c int iscsit_release_sessions_for_tpg(struct iscsi_portal_group *tpg, int force) tpg 4628 drivers/target/iscsi/iscsi_target.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; tpg 4634 drivers/target/iscsi/iscsi_target.c if (tpg->nsessions && !force) { tpg 4671 drivers/target/iscsi/iscsi_target.c " Group: %hu\n", session_count, tpg->tpgt); tpg 134 drivers/target/iscsi/iscsi_target_auth.c chap->id = conn->tpg->tpg_chap_id++; tpg 61 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg; tpg 80 drivers/target/iscsi/iscsi_target_configfs.c tpg = tpg_np->tpg; tpg 81 drivers/target/iscsi/iscsi_target_configfs.c if (iscsit_get_tpg(tpg) < 0) tpg 94 drivers/target/iscsi/iscsi_target_configfs.c tpg_np_new = iscsit_tpg_add_network_portal(tpg, tpg 103 drivers/target/iscsi/iscsi_target_configfs.c rc = iscsit_tpg_del_network_portal(tpg, tpg_np_new); tpg 109 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); tpg 112 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); tpg 159 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg; tpg 214 drivers/target/iscsi/iscsi_target_configfs.c tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); tpg 215 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsit_get_tpg(tpg); tpg 222 drivers/target/iscsi/iscsi_target_configfs.c tpg->tpgt, name); tpg 236 drivers/target/iscsi/iscsi_target_configfs.c tpg_np = iscsit_tpg_add_network_portal(tpg, &sockaddr, NULL, tpg 239 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); tpg 244 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); tpg 251 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg; tpg 257 drivers/target/iscsi/iscsi_target_configfs.c tpg = tpg_np->tpg; tpg 258 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsit_get_tpg(tpg); tpg 262 drivers/target/iscsi/iscsi_target_configfs.c se_tpg = &tpg->tpg_se_tpg; tpg 265 drivers/target/iscsi/iscsi_target_configfs.c tpg->tpgt, &tpg_np->tpg_np->np_sockaddr); tpg 267 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsit_tpg_del_network_portal(tpg, tpg_np); tpg 273 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); tpg 627 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, tpg 658 drivers/target/iscsi/iscsi_target_configfs.c if (iscsit_get_tpg(tpg) < 0) tpg 668 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); tpg 724 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ tpg 728 drivers/target/iscsi/iscsi_target_configfs.c if (iscsit_get_tpg(tpg) < 0) \ tpg 731 drivers/target/iscsi/iscsi_target_configfs.c rb = sprintf(page, "%u\n", tpg->tpg_attrib.name); \ tpg 732 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); \ tpg 740 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ tpg 745 drivers/target/iscsi/iscsi_target_configfs.c if (iscsit_get_tpg(tpg) < 0) \ tpg 751 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsit_ta_##name(tpg, val); \ tpg 755 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); \ tpg 758 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); \ tpg 804 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ tpg 806 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \ tpg 817 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ tpg 819 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \ tpg 865 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ tpg 867 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \ tpg 904 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ tpg 909 drivers/target/iscsi/iscsi_target_configfs.c if (iscsit_get_tpg(tpg) < 0) \ tpg 913 drivers/target/iscsi/iscsi_target_configfs.c tpg->param_list); \ tpg 915 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); \ tpg 920 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); \ tpg 927 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ tpg 939 drivers/target/iscsi/iscsi_target_configfs.c if (iscsit_get_tpg(tpg) < 0) { \ tpg 944 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsi_change_param_value(buf, tpg->param_list, 1); \ tpg 949 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); \ tpg 953 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); \ tpg 1012 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, tpg 1016 drivers/target/iscsi/iscsi_target_configfs.c spin_lock(&tpg->tpg_state_lock); tpg 1018 drivers/target/iscsi/iscsi_target_configfs.c (tpg->tpg_state == TPG_STATE_ACTIVE) ? 1 : 0); tpg 1019 drivers/target/iscsi/iscsi_target_configfs.c spin_unlock(&tpg->tpg_state_lock); tpg 1028 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, tpg 1041 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsit_get_tpg(tpg); tpg 1046 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsit_tpg_enable_portal_group(tpg); tpg 1053 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsit_tpg_disable_portal_group(tpg, 1); tpg 1058 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); tpg 1061 drivers/target/iscsi/iscsi_target_configfs.c iscsit_put_tpg(tpg); tpg 1088 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg; tpg 1110 drivers/target/iscsi/iscsi_target_configfs.c tpg = iscsit_alloc_portal_group(tiqn, tpgt); tpg 1111 drivers/target/iscsi/iscsi_target_configfs.c if (!tpg) tpg 1114 drivers/target/iscsi/iscsi_target_configfs.c ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); tpg 1118 drivers/target/iscsi/iscsi_target_configfs.c ret = iscsit_tpg_add_portal_group(tiqn, tpg); tpg 1125 drivers/target/iscsi/iscsi_target_configfs.c return &tpg->tpg_se_tpg; tpg 1127 drivers/target/iscsi/iscsi_target_configfs.c core_tpg_deregister(&tpg->tpg_se_tpg); tpg 1129 drivers/target/iscsi/iscsi_target_configfs.c kfree(tpg); tpg 1135 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg; tpg 1138 drivers/target/iscsi/iscsi_target_configfs.c tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); tpg 1139 drivers/target/iscsi/iscsi_target_configfs.c tiqn = tpg->tpg_tiqn; tpg 1144 drivers/target/iscsi/iscsi_target_configfs.c iscsit_tpg_del_portal_group(tiqn, tpg, 1); tpg 1473 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = &sess->tpg->tpg_se_tpg; tpg 1508 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, tpg 1512 drivers/target/iscsi/iscsi_target_configfs.c iscsit_set_default_node_attribues(acl, tpg); tpg 747 drivers/target/iscsi/iscsi_target_erl0.c struct iscsi_portal_group *tpg = sess->tpg; tpg 748 drivers/target/iscsi/iscsi_target_erl0.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; tpg 778 drivers/target/iscsi/iscsi_target_erl0.c spin_lock(&sess->tpg->tpg_state_lock); tpg 779 drivers/target/iscsi/iscsi_target_erl0.c tpg_active = (sess->tpg->tpg_state == TPG_STATE_ACTIVE); tpg 780 drivers/target/iscsi/iscsi_target_erl0.c spin_unlock(&sess->tpg->tpg_state_lock); tpg 799 drivers/target/iscsi/iscsi_target_erl0.c struct iscsi_portal_group *tpg = sess->tpg; tpg 800 drivers/target/iscsi/iscsi_target_erl0.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; tpg 1122 drivers/target/iscsi/iscsi_target_erl1.c sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); tpg 1132 drivers/target/iscsi/iscsi_target_erl1.c sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); tpg 134 drivers/target/iscsi/iscsi_target_login.c struct iscsi_portal_group *tpg = conn->tpg; tpg 136 drivers/target/iscsi/iscsi_target_login.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; tpg 345 drivers/target/iscsi/iscsi_target_login.c sess->tpg = conn->tpg; tpg 351 drivers/target/iscsi/iscsi_target_login.c sess->tsih = ++sess->tpg->ntsih; tpg 353 drivers/target/iscsi/iscsi_target_login.c sess->tsih = ++sess->tpg->ntsih; tpg 359 drivers/target/iscsi/iscsi_target_login.c conn->tpg->param_list, 1) < 0) { tpg 383 drivers/target/iscsi/iscsi_target_login.c if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) tpg 475 drivers/target/iscsi/iscsi_target_login.c struct iscsi_portal_group *tpg = conn->tpg; tpg 477 drivers/target/iscsi/iscsi_target_login.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; tpg 524 drivers/target/iscsi/iscsi_target_login.c conn->tpg->param_list, 0) < 0) { tpg 541 drivers/target/iscsi/iscsi_target_login.c if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) tpg 681 drivers/target/iscsi/iscsi_target_login.c struct iscsi_portal_group *tpg = sess->tpg; tpg 682 drivers/target/iscsi/iscsi_target_login.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; tpg 713 drivers/target/iscsi/iscsi_target_login.c &conn->local_sockaddr, tpg->tpgt); tpg 753 drivers/target/iscsi/iscsi_target_login.c __transport_register_session(&sess->tpg->tpg_se_tpg, tpg 760 drivers/target/iscsi/iscsi_target_login.c tpg->tpgt); tpg 770 drivers/target/iscsi/iscsi_target_login.c sess->sid = tpg->sid++; tpg 772 drivers/target/iscsi/iscsi_target_login.c sess->sid = tpg->sid++; tpg 776 drivers/target/iscsi/iscsi_target_login.c tpg->nsessions++; tpg 777 drivers/target/iscsi/iscsi_target_login.c if (tpg->tpg_tiqn) tpg 778 drivers/target/iscsi/iscsi_target_login.c tpg->tpg_tiqn->tiqn_nsessions++; tpg 781 drivers/target/iscsi/iscsi_target_login.c " iSCSI Target Portal Group: %hu\n", tpg->nsessions, tpg->tpgt); tpg 1202 drivers/target/iscsi/iscsi_target_login.c &conn->tpg->tpg_se_tpg; tpg 1249 drivers/target/iscsi/iscsi_target_login.c struct iscsi_portal_group *tpg = NULL; tpg 1379 drivers/target/iscsi/iscsi_target_login.c tpg = conn->tpg; tpg 1388 drivers/target/iscsi/iscsi_target_login.c tpg = conn->tpg; tpg 1389 drivers/target/iscsi/iscsi_target_login.c if (!tpg) { tpg 1422 drivers/target/iscsi/iscsi_target_login.c iscsit_deaccess_np(np, tpg, tpg_np); tpg 1425 drivers/target/iscsi/iscsi_target_login.c tpg = NULL; tpg 1437 drivers/target/iscsi/iscsi_target_login.c if (tpg) { tpg 1438 drivers/target/iscsi/iscsi_target_login.c iscsit_deaccess_np(np, tpg, tpg_np); tpg 1439 drivers/target/iscsi/iscsi_target_login.c tpg = NULL; tpg 571 drivers/target/iscsi/iscsi_target_nego.c struct iscsi_portal_group *tpg = conn->tpg; tpg 594 drivers/target/iscsi/iscsi_target_nego.c spin_lock(&tpg->tpg_state_lock); tpg 595 drivers/target/iscsi/iscsi_target_nego.c state = (tpg->tpg_state == TPG_STATE_ACTIVE); tpg 596 drivers/target/iscsi/iscsi_target_nego.c spin_unlock(&tpg->tpg_state_lock); tpg 637 drivers/target/iscsi/iscsi_target_nego.c iscsit_deaccess_np(np, tpg, tpg_np); tpg 644 drivers/target/iscsi/iscsi_target_nego.c iscsit_deaccess_np(np, tpg, tpg_np); tpg 857 drivers/target/iscsi/iscsi_target_nego.c conn->tpg->tpg_attrib.login_keys_workaround); tpg 862 drivers/target/iscsi/iscsi_target_nego.c if (conn->tpg->tpg_attrib.authentication && tpg 872 drivers/target/iscsi/iscsi_target_nego.c if (conn->tpg->tpg_attrib.authentication && tpg 928 drivers/target/iscsi/iscsi_target_nego.c conn->tpg->tpg_attrib.login_keys_workaround); tpg 936 drivers/target/iscsi/iscsi_target_nego.c conn->tpg->tpg_attrib.authentication) { tpg 1126 drivers/target/iscsi/iscsi_target_nego.c conn->tpg = iscsit_global->discovery_tpg; tpg 1143 drivers/target/iscsi/iscsi_target_nego.c if (iscsit_access_np(np, conn->tpg) < 0) { tpg 1181 drivers/target/iscsi/iscsi_target_nego.c conn->tpg = iscsit_get_tpg_from_np(tiqn, np, &tpg_np); tpg 1182 drivers/target/iscsi/iscsi_target_nego.c if (!conn->tpg) { tpg 1192 drivers/target/iscsi/iscsi_target_nego.c pr_debug("Located Portal Group Object: %hu\n", conn->tpg->tpgt); tpg 1200 drivers/target/iscsi/iscsi_target_nego.c conn->tpg = NULL; tpg 1208 drivers/target/iscsi/iscsi_target_nego.c if (iscsit_access_np(np, conn->tpg) < 0) { tpg 1213 drivers/target/iscsi/iscsi_target_nego.c conn->tpg = NULL; tpg 1237 drivers/target/iscsi/iscsi_target_nego.c &conn->tpg->tpg_se_tpg, i_buf); tpg 1241 drivers/target/iscsi/iscsi_target_nego.c i_buf, conn->tpg->tpgt); tpg 29 drivers/target/iscsi/iscsi_target_nodeattrib.c struct iscsi_portal_group *tpg) tpg 40 drivers/target/iscsi/iscsi_target_nodeattrib.c a->default_erl = tpg->tpg_attrib.default_erl; tpg 27 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg; tpg 29 drivers/target/iscsi/iscsi_target_tpg.c tpg = kzalloc(sizeof(struct iscsi_portal_group), GFP_KERNEL); tpg 30 drivers/target/iscsi/iscsi_target_tpg.c if (!tpg) { tpg 35 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt = tpgt; tpg 36 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = TPG_STATE_FREE; tpg 37 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_tiqn = tiqn; tpg 38 drivers/target/iscsi/iscsi_target_tpg.c INIT_LIST_HEAD(&tpg->tpg_gnp_list); tpg 39 drivers/target/iscsi/iscsi_target_tpg.c INIT_LIST_HEAD(&tpg->tpg_list); tpg 40 drivers/target/iscsi/iscsi_target_tpg.c mutex_init(&tpg->tpg_access_lock); tpg 41 drivers/target/iscsi/iscsi_target_tpg.c sema_init(&tpg->np_login_sem, 1); tpg 42 drivers/target/iscsi/iscsi_target_tpg.c spin_lock_init(&tpg->tpg_state_lock); tpg 43 drivers/target/iscsi/iscsi_target_tpg.c spin_lock_init(&tpg->tpg_np_lock); tpg 45 drivers/target/iscsi/iscsi_target_tpg.c return tpg; tpg 53 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg; tpg 56 drivers/target/iscsi/iscsi_target_tpg.c tpg = iscsit_alloc_portal_group(NULL, 1); tpg 57 drivers/target/iscsi/iscsi_target_tpg.c if (!tpg) { tpg 65 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_se_tpg.se_tpg_tfo = &iscsi_ops; tpg 66 drivers/target/iscsi/iscsi_target_tpg.c ret = core_tpg_register(NULL, &tpg->tpg_se_tpg, -1); tpg 68 drivers/target/iscsi/iscsi_target_tpg.c kfree(tpg); tpg 72 drivers/target/iscsi/iscsi_target_tpg.c tpg->sid = 1; /* First Assigned LIO Session ID */ tpg 73 drivers/target/iscsi/iscsi_target_tpg.c iscsit_set_default_tpg_attribs(tpg); tpg 75 drivers/target/iscsi/iscsi_target_tpg.c if (iscsi_create_default_params(&tpg->param_list) < 0) tpg 83 drivers/target/iscsi/iscsi_target_tpg.c param = iscsi_find_param_from_key(AUTHMETHOD, tpg->param_list); tpg 90 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_attrib.authentication = 0; tpg 92 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_state_lock); tpg 93 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = TPG_STATE_ACTIVE; tpg 94 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 96 drivers/target/iscsi/iscsi_target_tpg.c iscsit_global->discovery_tpg = tpg; tpg 101 drivers/target/iscsi/iscsi_target_tpg.c iscsi_release_param_list(tpg->param_list); tpg 103 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->sid == 1) tpg 104 drivers/target/iscsi/iscsi_target_tpg.c core_tpg_deregister(&tpg->tpg_se_tpg); tpg 105 drivers/target/iscsi/iscsi_target_tpg.c kfree(tpg); tpg 111 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg = iscsit_global->discovery_tpg; tpg 113 drivers/target/iscsi/iscsi_target_tpg.c if (!tpg) tpg 116 drivers/target/iscsi/iscsi_target_tpg.c iscsi_release_param_list(tpg->param_list); tpg 117 drivers/target/iscsi/iscsi_target_tpg.c core_tpg_deregister(&tpg->tpg_se_tpg); tpg 119 drivers/target/iscsi/iscsi_target_tpg.c kfree(tpg); tpg 128 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg = NULL; tpg 132 drivers/target/iscsi/iscsi_target_tpg.c list_for_each_entry(tpg, &tiqn->tiqn_tpg_list, tpg_list) { tpg 134 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_state_lock); tpg 135 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->tpg_state != TPG_STATE_ACTIVE) { tpg 136 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 139 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 141 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_np_lock); tpg 142 drivers/target/iscsi/iscsi_target_tpg.c list_for_each_entry(tpg_np, &tpg->tpg_gnp_list, tpg_np_list) { tpg 146 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_np_lock); tpg 148 drivers/target/iscsi/iscsi_target_tpg.c return tpg; tpg 151 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_np_lock); tpg 159 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg) tpg 161 drivers/target/iscsi/iscsi_target_tpg.c return mutex_lock_interruptible(&tpg->tpg_access_lock); tpg 164 drivers/target/iscsi/iscsi_target_tpg.c void iscsit_put_tpg(struct iscsi_portal_group *tpg) tpg 166 drivers/target/iscsi/iscsi_target_tpg.c mutex_unlock(&tpg->tpg_access_lock); tpg 171 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 181 drivers/target/iscsi/iscsi_target_tpg.c iscsit_reset_np_thread(tpg_np->tpg_np, tpg_np, tpg, shutdown); tpg 185 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 190 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_np_lock); tpg 191 drivers/target/iscsi/iscsi_target_tpg.c list_for_each_entry(tpg_np, &tpg->tpg_gnp_list, tpg_np_list) { tpg 196 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_np_lock); tpg 197 drivers/target/iscsi/iscsi_target_tpg.c iscsit_clear_tpg_np_login_thread(tpg_np, tpg, shutdown); tpg 198 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_np_lock); tpg 200 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_np_lock); tpg 203 drivers/target/iscsi/iscsi_target_tpg.c void iscsit_tpg_dump_params(struct iscsi_portal_group *tpg) tpg 205 drivers/target/iscsi/iscsi_target_tpg.c iscsi_print_params(tpg->param_list); tpg 208 drivers/target/iscsi/iscsi_target_tpg.c static void iscsit_set_default_tpg_attribs(struct iscsi_portal_group *tpg) tpg 210 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 228 drivers/target/iscsi/iscsi_target_tpg.c int iscsit_tpg_add_portal_group(struct iscsi_tiqn *tiqn, struct iscsi_portal_group *tpg) tpg 230 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->tpg_state != TPG_STATE_FREE) { tpg 232 drivers/target/iscsi/iscsi_target_tpg.c " while not in TPG_STATE_FREE state.\n", tpg->tpgt); tpg 235 drivers/target/iscsi/iscsi_target_tpg.c iscsit_set_default_tpg_attribs(tpg); tpg 237 drivers/target/iscsi/iscsi_target_tpg.c if (iscsi_create_default_params(&tpg->param_list) < 0) tpg 240 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_attrib.tpg = tpg; tpg 242 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_state_lock); tpg 243 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = TPG_STATE_INACTIVE; tpg 244 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 247 drivers/target/iscsi/iscsi_target_tpg.c list_add_tail(&tpg->tpg_list, &tiqn->tiqn_tpg_list); tpg 250 drivers/target/iscsi/iscsi_target_tpg.c tiqn->tiqn, tpg->tpgt); tpg 255 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->param_list) { tpg 256 drivers/target/iscsi/iscsi_target_tpg.c iscsi_release_param_list(tpg->param_list); tpg 257 drivers/target/iscsi/iscsi_target_tpg.c tpg->param_list = NULL; tpg 264 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 267 drivers/target/iscsi/iscsi_target_tpg.c u8 old_state = tpg->tpg_state; tpg 269 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_state_lock); tpg 270 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = TPG_STATE_INACTIVE; tpg 271 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 273 drivers/target/iscsi/iscsi_target_tpg.c if (iscsit_release_sessions_for_tpg(tpg, force) < 0) { tpg 276 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt); tpg 277 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = old_state; tpg 281 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->param_list) { tpg 282 drivers/target/iscsi/iscsi_target_tpg.c iscsi_release_param_list(tpg->param_list); tpg 283 drivers/target/iscsi/iscsi_target_tpg.c tpg->param_list = NULL; tpg 286 drivers/target/iscsi/iscsi_target_tpg.c core_tpg_deregister(&tpg->tpg_se_tpg); tpg 288 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_state_lock); tpg 289 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = TPG_STATE_FREE; tpg 290 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 294 drivers/target/iscsi/iscsi_target_tpg.c list_del(&tpg->tpg_list); tpg 298 drivers/target/iscsi/iscsi_target_tpg.c tiqn->tiqn, tpg->tpgt); tpg 300 drivers/target/iscsi/iscsi_target_tpg.c kfree(tpg); tpg 304 drivers/target/iscsi/iscsi_target_tpg.c int iscsit_tpg_enable_portal_group(struct iscsi_portal_group *tpg) tpg 307 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; tpg 310 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->tpg_state == TPG_STATE_ACTIVE) { tpg 312 drivers/target/iscsi/iscsi_target_tpg.c " active, ignoring request.\n", tpg->tpgt); tpg 320 drivers/target/iscsi/iscsi_target_tpg.c param = iscsi_find_param_from_key(AUTHMETHOD, tpg->param_list); tpg 324 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->tpg_attrib.authentication) { tpg 331 drivers/target/iscsi/iscsi_target_tpg.c ret = iscsit_ta_authentication(tpg, 1); tpg 336 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_state_lock); tpg 337 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = TPG_STATE_ACTIVE; tpg 338 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 343 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt); tpg 352 drivers/target/iscsi/iscsi_target_tpg.c int iscsit_tpg_disable_portal_group(struct iscsi_portal_group *tpg, int force) tpg 355 drivers/target/iscsi/iscsi_target_tpg.c u8 old_state = tpg->tpg_state; tpg 357 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_state_lock); tpg 358 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->tpg_state == TPG_STATE_INACTIVE) { tpg 360 drivers/target/iscsi/iscsi_target_tpg.c " inactive, ignoring request.\n", tpg->tpgt); tpg 361 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 364 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = TPG_STATE_INACTIVE; tpg 365 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 367 drivers/target/iscsi/iscsi_target_tpg.c iscsit_clear_tpg_np_login_threads(tpg, false); tpg 369 drivers/target/iscsi/iscsi_target_tpg.c if (iscsit_release_sessions_for_tpg(tpg, force) < 0) { tpg 370 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_state_lock); tpg 371 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_state = old_state; tpg 372 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_state_lock); tpg 375 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt); tpg 379 drivers/target/iscsi/iscsi_target_tpg.c tiqn = tpg->tpg_tiqn; tpg 380 drivers/target/iscsi/iscsi_target_tpg.c if (!tiqn || (tpg == iscsit_global->discovery_tpg)) tpg 386 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt); tpg 428 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg; tpg 434 drivers/target/iscsi/iscsi_target_tpg.c list_for_each_entry(tpg, &tiqn->tiqn_tpg_list, tpg_list) { tpg 436 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_np_lock); tpg 437 drivers/target/iscsi/iscsi_target_tpg.c list_for_each_entry(tpg_np, &tpg->tpg_gnp_list, tpg_np_list) { tpg 445 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_np_lock); tpg 453 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 462 drivers/target/iscsi/iscsi_target_tpg.c if (iscsit_tpg_check_network_portal(tpg->tpg_tiqn, sockaddr, tpg 466 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_tiqn->tiqn); tpg 491 drivers/target/iscsi/iscsi_target_tpg.c tpg_np->tpg = tpg; tpg 493 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_np_lock); tpg 494 drivers/target/iscsi/iscsi_target_tpg.c list_add_tail(&tpg_np->tpg_np_list, &tpg->tpg_gnp_list); tpg 495 drivers/target/iscsi/iscsi_target_tpg.c tpg->num_tpg_nps++; tpg 496 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->tpg_tiqn) tpg 497 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_tiqn->tiqn_num_tpg_nps++; tpg 498 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_np_lock); tpg 509 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_tiqn->tiqn, &np->np_sockaddr, tpg->tpgt, tpg 517 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 520 drivers/target/iscsi/iscsi_target_tpg.c iscsit_clear_tpg_np_login_thread(tpg_np, tpg, true); tpg 523 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_tiqn->tiqn, &np->np_sockaddr, tpg->tpgt, tpg 527 drivers/target/iscsi/iscsi_target_tpg.c tpg_np->tpg = NULL; tpg 536 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 559 drivers/target/iscsi/iscsi_target_tpg.c ret = iscsit_tpg_del_network_portal(tpg, tpg_np_child); tpg 574 drivers/target/iscsi/iscsi_target_tpg.c spin_lock(&tpg->tpg_np_lock); tpg 576 drivers/target/iscsi/iscsi_target_tpg.c tpg->num_tpg_nps--; tpg 577 drivers/target/iscsi/iscsi_target_tpg.c if (tpg->tpg_tiqn) tpg 578 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpg_tiqn->tiqn_num_tpg_nps--; tpg 579 drivers/target/iscsi/iscsi_target_tpg.c spin_unlock(&tpg->tpg_np_lock); tpg 581 drivers/target/iscsi/iscsi_target_tpg.c return iscsit_tpg_release_np(tpg_np, tpg, np); tpg 584 drivers/target/iscsi/iscsi_target_tpg.c int iscsit_ta_authentication(struct iscsi_portal_group *tpg, u32 authentication) tpg 589 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 600 drivers/target/iscsi/iscsi_target_tpg.c param = iscsi_find_param_from_key(AUTHMETHOD, tpg->param_list); tpg 639 drivers/target/iscsi/iscsi_target_tpg.c a->authentication ? "Enforcing" : "Disabling", tpg->tpgt); tpg 645 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 648 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 662 drivers/target/iscsi/iscsi_target_tpg.c " %hu\n", a->login_timeout, tpg->tpgt); tpg 668 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 671 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 687 drivers/target/iscsi/iscsi_target_tpg.c " Target Portal Group %hu\n", a->netif_timeout, tpg->tpgt); tpg 693 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 696 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 705 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt, (a->generate_node_acls) ? "Enabled" : "Disabled"); tpg 717 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 720 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 736 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt, a->default_cmdsn_depth); tpg 742 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 745 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 760 drivers/target/iscsi/iscsi_target_tpg.c " ACLs %s\n", tpg->tpgt, (a->cache_dynamic_acls) ? tpg 767 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 770 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 779 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt, (a->demo_mode_write_protect) ? "ON" : "OFF"); tpg 785 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 788 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 797 drivers/target/iscsi/iscsi_target_tpg.c " %s\n", tpg->tpgt, (a->prod_mode_write_protect) ? tpg 804 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 807 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 816 drivers/target/iscsi/iscsi_target_tpg.c " %s\n", tpg->tpgt, (a->demo_mode_discovery) ? tpg 823 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 826 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 834 drivers/target/iscsi/iscsi_target_tpg.c pr_debug("iSCSI_TPG[%hu] - DefaultERL: %u\n", tpg->tpgt, a->default_erl); tpg 840 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 843 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 852 drivers/target/iscsi/iscsi_target_tpg.c " %s\n", tpg->tpgt, (a->t10_pi) ? tpg 859 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 862 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 871 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt, prot_type); tpg 877 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 880 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 889 drivers/target/iscsi/iscsi_target_tpg.c " %s\n", tpg->tpgt, (a->tpg_enabled_sendtargets) ? "ON" : "OFF"); tpg 895 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_portal_group *tpg, tpg 898 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_tpg_attrib *a = &tpg->tpg_attrib; tpg 907 drivers/target/iscsi/iscsi_target_tpg.c tpg->tpgt, (a->login_keys_workaround) ? "ON" : "OFF"); tpg 929 drivers/target/iscsi/iscsi_target_util.c sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); tpg 1373 drivers/target/iscsi/iscsi_target_util.c struct iscsi_portal_group *tpg; tpg 1378 drivers/target/iscsi/iscsi_target_util.c tpg = conn->tpg; tpg 1379 drivers/target/iscsi/iscsi_target_util.c if (!tpg) tpg 1382 drivers/target/iscsi/iscsi_target_util.c if (!tpg->tpg_tiqn) tpg 1385 drivers/target/iscsi/iscsi_target_util.c return tpg->tpg_tiqn; tpg 1390 drivers/target/iscsi/iscsi_target_util.c struct iscsi_portal_group *tpg = sess->tpg; tpg 1391 drivers/target/iscsi/iscsi_target_util.c struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; tpg 758 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tpg) tpg 763 drivers/target/loopback/tcm_loop.c tl_nexus = tpg->tl_nexus; tpg 771 drivers/target/loopback/tcm_loop.c if (atomic_read(&tpg->tl_tpg_port_count)) { tpg 773 drivers/target/loopback/tcm_loop.c atomic_read(&tpg->tl_tpg_port_count)); tpg 778 drivers/target/loopback/tcm_loop.c tcm_loop_dump_proto_id(tpg->tl_hba), tpg 784 drivers/target/loopback/tcm_loop.c tpg->tl_nexus = NULL; tpg 78 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg, u64 guid) tpg 83 drivers/target/sbp/sbp_target.c spin_lock_bh(&tpg->se_tpg.session_lock); tpg 84 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { tpg 89 drivers/target/sbp/sbp_target.c spin_unlock_bh(&tpg->se_tpg.session_lock); tpg 110 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg, tpg 119 drivers/target/sbp/sbp_target.c spin_lock_bh(&tpg->se_tpg.session_lock); tpg 120 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { tpg 133 drivers/target/sbp/sbp_target.c spin_unlock_bh(&tpg->se_tpg.session_lock); tpg 139 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg, int login_id) tpg 145 drivers/target/sbp/sbp_target.c spin_lock_bh(&tpg->se_tpg.session_lock); tpg 146 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { tpg 156 drivers/target/sbp/sbp_target.c spin_unlock_bh(&tpg->se_tpg.session_lock); tpg 161 drivers/target/sbp/sbp_target.c static u32 sbp_get_lun_from_tpg(struct sbp_tpg *tpg, u32 login_lun, int *err) tpg 163 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = &tpg->se_tpg; tpg 181 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg, tpg 199 drivers/target/sbp/sbp_target.c sess->se_sess = target_setup_session(&tpg->se_tpg, 128, tpg 263 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = tport->tpg; tpg 271 drivers/target/sbp/sbp_target.c unpacked_lun = sbp_get_lun_from_tpg(tpg, tpg 296 drivers/target/sbp/sbp_target.c sess = sbp_session_find_by_guid(tpg, guid); tpg 326 drivers/target/sbp/sbp_target.c sbp_login_count_all_by_lun(tpg, unpacked_lun, 0)) { tpg 339 drivers/target/sbp/sbp_target.c if (sbp_login_count_all_by_lun(tpg, unpacked_lun, 1)) { tpg 352 drivers/target/sbp/sbp_target.c if (sbp_login_count_all_by_lun(tpg, unpacked_lun, 0) >= tpg 363 drivers/target/sbp/sbp_target.c sess = sbp_session_create(tpg, guid); tpg 494 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = tport->tpg; tpg 511 drivers/target/sbp/sbp_target.c login = sbp_login_find_by_id(tpg, tpg 553 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = tport->tpg; tpg 559 drivers/target/sbp/sbp_target.c login = sbp_login_find_by_id(tpg, id); tpg 1686 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 1687 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 1694 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 1695 drivers/target/sbp/sbp_target.c return tpg->tport_tpgt; tpg 1798 drivers/target/sbp/sbp_target.c static int sbp_count_se_tpg_luns(struct se_portal_group *tpg) tpg 1804 drivers/target/sbp/sbp_target.c hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) tpg 1823 drivers/target/sbp/sbp_target.c if (!tport->enable || !tport->tpg) tpg 1826 drivers/target/sbp/sbp_target.c num_luns = sbp_count_se_tpg_luns(&tport->tpg->se_tpg); tpg 1877 drivers/target/sbp/sbp_target.c hlist_for_each_entry_rcu(lun, &tport->tpg->se_tpg.tpg_lun_hlist, link) { tpg 1964 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 1966 drivers/target/sbp/sbp_target.c return sbp_update_unit_directory(tpg->tport); tpg 1973 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 1974 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 1977 drivers/target/sbp/sbp_target.c if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) tpg 1991 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg; tpg 2000 drivers/target/sbp/sbp_target.c if (tport->tpg) { tpg 2005 drivers/target/sbp/sbp_target.c tpg = kzalloc(sizeof(*tpg), GFP_KERNEL); tpg 2006 drivers/target/sbp/sbp_target.c if (!tpg) tpg 2009 drivers/target/sbp/sbp_target.c tpg->tport = tport; tpg 2010 drivers/target/sbp/sbp_target.c tpg->tport_tpgt = tpgt; tpg 2011 drivers/target/sbp/sbp_target.c tport->tpg = tpg; tpg 2026 drivers/target/sbp/sbp_target.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); tpg 2030 drivers/target/sbp/sbp_target.c return &tpg->se_tpg; tpg 2035 drivers/target/sbp/sbp_target.c tport->tpg = NULL; tpg 2036 drivers/target/sbp/sbp_target.c kfree(tpg); tpg 2042 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2043 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2047 drivers/target/sbp/sbp_target.c tport->tpg = NULL; tpg 2048 drivers/target/sbp/sbp_target.c kfree(tpg); tpg 2095 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2096 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2108 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2109 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2134 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2135 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2143 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2144 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2157 drivers/target/sbp/sbp_target.c if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { tpg 2195 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2196 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2204 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2205 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2230 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2231 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2239 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2240 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2265 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2266 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 2274 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); tpg 2275 drivers/target/sbp/sbp_target.c struct sbp_tport *tport = tpg->tport; tpg 172 drivers/target/sbp/sbp_target.h struct sbp_tpg *tpg; tpg 1913 drivers/target/target_core_alua.c struct se_portal_group *tpg = lun->lun_tpg; tpg 1961 drivers/target/target_core_alua.c tpg->se_tpg_tfo->tpg_get_wwn(tpg), tpg 1962 drivers/target/target_core_alua.c tpg->se_tpg_tfo->tpg_get_tag(tpg), tpg 1983 drivers/target/target_core_alua.c "Moving" : "Adding", tpg->se_tpg_tfo->tpg_get_wwn(tpg), tpg 1984 drivers/target/target_core_alua.c tpg->se_tpg_tfo->tpg_get_tag(tpg), tpg 2964 drivers/target/target_core_configfs.c struct se_portal_group *tpg = lun->lun_tpg; tpg 2967 drivers/target/target_core_configfs.c "/%s\n", tpg->se_tpg_tfo->fabric_name, tpg 2968 drivers/target/target_core_configfs.c tpg->se_tpg_tfo->tpg_get_wwn(tpg), tpg 2969 drivers/target/target_core_configfs.c tpg->se_tpg_tfo->tpg_get_tag(tpg), tpg 219 drivers/target/target_core_device.c struct se_portal_group *tpg = nacl->se_tpg; tpg 227 drivers/target/target_core_device.c tpg->se_tpg_tfo->fabric_name); tpg 245 drivers/target/target_core_device.c struct se_portal_group *tpg) tpg 253 drivers/target/target_core_device.c core_disable_device_list_for_node(lun, deve, nacl, tpg); tpg 316 drivers/target/target_core_device.c struct se_portal_group *tpg) tpg 398 drivers/target/target_core_device.c struct se_portal_group *tpg) tpg 454 drivers/target/target_core_device.c void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) tpg 459 drivers/target/target_core_device.c mutex_lock(&tpg->acl_node_mutex); tpg 460 drivers/target/target_core_device.c list_for_each_entry(nacl, &tpg->acl_node_list, acl_list) { tpg 470 drivers/target/target_core_device.c core_disable_device_list_for_node(lun, deve, nacl, tpg); tpg 474 drivers/target/target_core_device.c mutex_unlock(&tpg->acl_node_mutex); tpg 550 drivers/target/target_core_device.c struct se_portal_group *tpg, tpg 556 drivers/target/target_core_device.c rc = core_tpg_add_lun(tpg, lun, false, dev); tpg 561 drivers/target/target_core_device.c " CORE HBA: %u\n", tpg->se_tpg_tfo->fabric_name, tpg 562 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, tpg 563 drivers/target/target_core_device.c tpg->se_tpg_tfo->fabric_name, dev->se_hba->hba_id); tpg 568 drivers/target/target_core_device.c if (tpg->se_tpg_tfo->tpg_check_demo_mode(tpg)) { tpg 571 drivers/target/target_core_device.c mutex_lock(&tpg->acl_node_mutex); tpg 572 drivers/target/target_core_device.c list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { tpg 574 drivers/target/target_core_device.c (!tpg->se_tpg_tfo->tpg_check_demo_mode_login_only || tpg 575 drivers/target/target_core_device.c !tpg->se_tpg_tfo->tpg_check_demo_mode_login_only(tpg))) { tpg 576 drivers/target/target_core_device.c core_tpg_add_node_to_devs(acl, tpg, lun); tpg 579 drivers/target/target_core_device.c mutex_unlock(&tpg->acl_node_mutex); tpg 590 drivers/target/target_core_device.c struct se_portal_group *tpg, tpg 594 drivers/target/target_core_device.c " device object\n", tpg->se_tpg_tfo->fabric_name, tpg 595 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, tpg 596 drivers/target/target_core_device.c tpg->se_tpg_tfo->fabric_name); tpg 598 drivers/target/target_core_device.c core_tpg_remove_lun(tpg, lun); tpg 602 drivers/target/target_core_device.c struct se_portal_group *tpg, tpg 611 drivers/target/target_core_device.c tpg->se_tpg_tfo->fabric_name); tpg 629 drivers/target/target_core_device.c struct se_portal_group *tpg, tpg 650 drivers/target/target_core_device.c lun_access_ro, nacl, tpg) < 0) tpg 654 drivers/target/target_core_device.c " InitiatorNode: %s\n", tpg->se_tpg_tfo->fabric_name, tpg 655 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, lacl->mapped_lun, tpg 662 drivers/target/target_core_device.c core_scsi3_check_aptpl_registration(dev, tpg, lun, nacl, tpg 671 drivers/target/target_core_device.c struct se_portal_group *tpg = lun->lun_tpg; tpg 682 drivers/target/target_core_device.c core_disable_device_list_for_node(lun, deve, nacl, tpg); tpg 687 drivers/target/target_core_device.c tpg->se_tpg_tfo->fabric_name, tpg 688 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, tpg 695 drivers/target/target_core_device.c struct se_portal_group *tpg, tpg 699 drivers/target/target_core_device.c " Mapped LUN: %llu\n", tpg->se_tpg_tfo->fabric_name, tpg 700 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), tpg 701 drivers/target/target_core_device.c tpg->se_tpg_tfo->fabric_name, tpg 907 drivers/target/target_core_fabric_configfs.c TF_CIT_SETUP(tpg, &target_fabric_tpg_item_ops, &target_fabric_tpg_group_ops, tpg 394 drivers/target/target_core_fabric_lib.c const char *target_parse_pr_out_transport_id(struct se_portal_group *tpg, tpg 399 drivers/target/target_core_fabric_lib.c switch (tpg->proto_id) { tpg 413 drivers/target/target_core_fabric_lib.c return iscsi_parse_pr_out_transport_id(tpg, buf, out_tid_len, tpg 416 drivers/target/target_core_fabric_lib.c pr_err("Unknown proto_id: 0x%02x\n", tpg->proto_id); tpg 105 drivers/target/target_core_internal.h const char *target_parse_pr_out_transport_id(struct se_portal_group *tpg, tpg 121 drivers/target/target_core_internal.h struct se_node_acl *__core_tpg_get_initiator_node_acl(struct se_portal_group *tpg, tpg 130 drivers/target/target_core_internal.h struct se_node_acl *core_tpg_add_initiator_node_acl(struct se_portal_group *tpg, tpg 205 drivers/target/target_core_pr.c struct se_portal_group *tpg; tpg 227 drivers/target/target_core_pr.c tpg = sess->se_tpg; tpg 230 drivers/target/target_core_pr.c tpg->se_tpg_tfo->fabric_name, tpg 246 drivers/target/target_core_pr.c struct se_portal_group *tpg; tpg 268 drivers/target/target_core_pr.c tpg = sess->se_tpg; tpg 273 drivers/target/target_core_pr.c tpg->se_tpg_tfo->fabric_name); tpg 292 drivers/target/target_core_pr.c " for %s\n", tpg->se_tpg_tfo->fabric_name, tpg 894 drivers/target/target_core_pr.c struct se_portal_group *tpg, tpg 909 drivers/target/target_core_pr.c tpg->se_tpg_tfo->fabric_name, tpg 913 drivers/target/target_core_pr.c tpg->se_tpg_tfo->fabric_name, node_acl->initiatorname, tpg 922 drivers/target/target_core_pr.c struct se_portal_group *tpg, tpg 941 drivers/target/target_core_pr.c tpg->se_tpg_tfo->tpg_get_wwn(tpg)); tpg 942 drivers/target/target_core_pr.c tpgt = tpg->se_tpg_tfo->tpg_get_tag(tpg); tpg 987 drivers/target/target_core_pr.c core_scsi3_aptpl_reserve(dev, tpg, tpg 1004 drivers/target/target_core_pr.c struct se_portal_group *tpg, tpg 1012 drivers/target/target_core_pr.c return __core_scsi3_check_aptpl_registration(dev, tpg, lun, tpg 1162 drivers/target/target_core_pr.c struct se_portal_group *tpg; tpg 1173 drivers/target/target_core_pr.c tpg = pr_reg->pr_reg_nacl->se_tpg; tpg 1184 drivers/target/target_core_pr.c if (tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) { tpg 1216 drivers/target/target_core_pr.c struct se_portal_group *tpg = nacl->se_tpg; tpg 1219 drivers/target/target_core_pr.c if (tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) { tpg 1221 drivers/target/target_core_pr.c tpg->se_tpg_tfo->sess_get_initiator_sid(sess, &buf[0], tpg 1428 drivers/target/target_core_pr.c static int core_scsi3_tpg_depend_item(struct se_portal_group *tpg) tpg 1430 drivers/target/target_core_pr.c return target_depend_item(&tpg->tpg_group.cg_item); tpg 1433 drivers/target/target_core_pr.c static void core_scsi3_tpg_undepend_item(struct se_portal_group *tpg) tpg 1435 drivers/target/target_core_pr.c target_undepend_item(&tpg->tpg_group.cg_item); tpg 1436 drivers/target/target_core_pr.c atomic_dec_mb(&tpg->tpg_pr_ref_count); tpg 1489 drivers/target/target_core_pr.c struct se_portal_group *tpg, tpg 1522 drivers/target/target_core_pr.c tidh_new->dest_tpg = tpg; tpg 1870 drivers/target/target_core_pr.c struct se_portal_group *tpg; tpg 1887 drivers/target/target_core_pr.c tpg = pr_reg->pr_reg_nacl->se_tpg; tpg 1907 drivers/target/target_core_pr.c tpg->se_tpg_tfo->fabric_name, tpg 1917 drivers/target/target_core_pr.c reg_count, tpg->se_tpg_tfo->fabric_name, tpg 1936 drivers/target/target_core_pr.c " %d\n", tpg->se_tpg_tfo->fabric_name, tpg 1937 drivers/target/target_core_pr.c tpg->se_tpg_tfo->tpg_get_wwn(tpg), tpg 1938 drivers/target/target_core_pr.c tpg->se_tpg_tfo->tpg_get_tag(tpg), tpg 172 drivers/target/target_core_spc.c struct se_portal_group *tpg = NULL; tpg 267 drivers/target/target_core_spc.c tpg = lun->lun_tpg; tpg 275 drivers/target/target_core_spc.c buf[off] = tpg->proto_id << 4; tpg 306 drivers/target/target_core_spc.c buf[off] = tpg->proto_id << 4; tpg 354 drivers/target/target_core_spc.c buf[off] = tpg->proto_id << 4; tpg 368 drivers/target/target_core_spc.c tpgt = tpg->se_tpg_tfo->tpg_get_tag(tpg); tpg 370 drivers/target/target_core_spc.c tpg->se_tpg_tfo->tpg_get_wwn(tpg), tpgt); tpg 394 drivers/target/target_core_spc.c buf[off] = tpg->proto_id << 4; tpg 409 drivers/target/target_core_spc.c tpg->se_tpg_tfo->tpg_get_wwn(tpg)); tpg 704 drivers/target/target_core_spc.c struct se_portal_group *tpg = cmd->se_lun->lun_tpg; tpg 718 drivers/target/target_core_spc.c if (dev == rcu_access_pointer(tpg->tpg_virt_lun0->lun_se_dev)) tpg 576 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; tpg 584 drivers/target/target_core_stat.c tpg->se_tpg_tfo->fabric_name, tpg 594 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; tpg 602 drivers/target/target_core_stat.c tpg->se_tpg_tfo->tpg_get_wwn(tpg), "+t+", tpg 603 drivers/target/target_core_stat.c tpg->se_tpg_tfo->tpg_get_tag(tpg)); tpg 731 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; tpg 739 drivers/target/target_core_stat.c tpg->se_tpg_tfo->fabric_name); tpg 750 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; tpg 757 drivers/target/target_core_stat.c tpg->se_tpg_tfo->tpg_get_inst_index(tpg)); tpg 767 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; tpg 777 drivers/target/target_core_stat.c tpg->se_tpg_tfo->tpg_get_wwn(tpg), tpg 790 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; tpg 796 drivers/target/target_core_stat.c ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->proto_id); tpg 860 drivers/target/target_core_stat.c struct se_portal_group *tpg; tpg 869 drivers/target/target_core_stat.c tpg = nacl->se_tpg; tpg 872 drivers/target/target_core_stat.c tpg->se_tpg_tfo->tpg_get_inst_index(tpg)); tpg 905 drivers/target/target_core_stat.c struct se_portal_group *tpg; tpg 914 drivers/target/target_core_stat.c tpg = nacl->se_tpg; tpg 916 drivers/target/target_core_stat.c ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); tpg 1200 drivers/target/target_core_stat.c struct se_portal_group *tpg; tpg 1209 drivers/target/target_core_stat.c tpg = nacl->se_tpg; tpg 1212 drivers/target/target_core_stat.c tpg->se_tpg_tfo->tpg_get_inst_index(tpg)); tpg 1245 drivers/target/target_core_stat.c struct se_portal_group *tpg; tpg 1254 drivers/target/target_core_stat.c tpg = nacl->se_tpg; tpg 1256 drivers/target/target_core_stat.c ret = snprintf(page, PAGE_SIZE, "%u\n", tpg->se_tpg_tfo->tpg_get_tag(tpg)); tpg 1267 drivers/target/target_core_stat.c struct se_portal_group *tpg; tpg 1277 drivers/target/target_core_stat.c tpg = nacl->se_tpg; tpg 1280 drivers/target/target_core_stat.c tpg->se_tpg_tfo->sess_get_index(se_sess)); tpg 1311 drivers/target/target_core_stat.c struct se_portal_group *tpg; tpg 1322 drivers/target/target_core_stat.c tpg = nacl->se_tpg; tpg 1325 drivers/target/target_core_stat.c if (tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) tpg 1326 drivers/target/target_core_stat.c tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, buf, 64); tpg 43 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 48 drivers/target/target_core_tpg.c list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { tpg 61 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 74 drivers/target/target_core_tpg.c mutex_lock(&tpg->acl_node_mutex); tpg 75 drivers/target/target_core_tpg.c acl = __core_tpg_get_initiator_node_acl(tpg, initiatorname); tpg 80 drivers/target/target_core_tpg.c mutex_unlock(&tpg->acl_node_mutex); tpg 108 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 115 drivers/target/target_core_tpg.c mutex_lock(&tpg->tpg_lun_mutex); tpg 116 drivers/target/target_core_tpg.c hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { tpg 121 drivers/target/target_core_tpg.c lockdep_is_held(&tpg->tpg_lun_mutex)); tpg 126 drivers/target/target_core_tpg.c if (!tpg->se_tpg_tfo->tpg_check_demo_mode_write_protect(tpg)) { tpg 141 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->fabric_name, tpg 142 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, tpg 146 drivers/target/target_core_tpg.c lun_access_ro, acl, tpg); tpg 152 drivers/target/target_core_tpg.c core_scsi3_check_aptpl_registration(dev, tpg, lun, acl, tpg 155 drivers/target/target_core_tpg.c mutex_unlock(&tpg->tpg_lun_mutex); tpg 159 drivers/target/target_core_tpg.c target_set_nacl_queue_depth(struct se_portal_group *tpg, tpg 166 drivers/target/target_core_tpg.c "defaulting to 1.\n", tpg->se_tpg_tfo->fabric_name, tpg 172 drivers/target/target_core_tpg.c static struct se_node_acl *target_alloc_node_acl(struct se_portal_group *tpg, tpg 178 drivers/target/target_core_tpg.c acl = kzalloc(max(sizeof(*acl), tpg->se_tpg_tfo->node_acl_size), tpg 192 drivers/target/target_core_tpg.c if (tpg->se_tpg_tfo->tpg_get_default_depth) tpg 193 drivers/target/target_core_tpg.c queue_depth = tpg->se_tpg_tfo->tpg_get_default_depth(tpg); tpg 196 drivers/target/target_core_tpg.c target_set_nacl_queue_depth(tpg, acl, queue_depth); tpg 199 drivers/target/target_core_tpg.c acl->se_tpg = tpg; tpg 202 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->set_default_node_attributes(acl); tpg 209 drivers/target/target_core_tpg.c struct se_portal_group *tpg = acl->se_tpg; tpg 211 drivers/target/target_core_tpg.c mutex_lock(&tpg->acl_node_mutex); tpg 212 drivers/target/target_core_tpg.c list_add_tail(&acl->acl_list, &tpg->acl_node_list); tpg 213 drivers/target/target_core_tpg.c mutex_unlock(&tpg->acl_node_mutex); tpg 217 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->fabric_name, tpg 218 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->tpg_get_tag(tpg), tpg 221 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->fabric_name, tpg 225 drivers/target/target_core_tpg.c bool target_tpg_has_node_acl(struct se_portal_group *tpg, tpg 231 drivers/target/target_core_tpg.c mutex_lock(&tpg->acl_node_mutex); tpg 232 drivers/target/target_core_tpg.c list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { tpg 238 drivers/target/target_core_tpg.c mutex_unlock(&tpg->acl_node_mutex); tpg 245 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 250 drivers/target/target_core_tpg.c acl = core_tpg_get_initiator_node_acl(tpg, initiatorname); tpg 254 drivers/target/target_core_tpg.c if (!tpg->se_tpg_tfo->tpg_check_demo_mode(tpg)) tpg 257 drivers/target/target_core_tpg.c acl = target_alloc_node_acl(tpg, initiatorname); tpg 276 drivers/target/target_core_tpg.c if ((tpg->se_tpg_tfo->tpg_check_demo_mode_login_only == NULL) || tpg 277 drivers/target/target_core_tpg.c (tpg->se_tpg_tfo->tpg_check_demo_mode_login_only(tpg) != 1)) tpg 278 drivers/target/target_core_tpg.c core_tpg_add_node_to_devs(acl, tpg, NULL); tpg 292 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 297 drivers/target/target_core_tpg.c mutex_lock(&tpg->acl_node_mutex); tpg 298 drivers/target/target_core_tpg.c acl = __core_tpg_get_initiator_node_acl(tpg, initiatorname); tpg 303 drivers/target/target_core_tpg.c " for %s\n", tpg->se_tpg_tfo->fabric_name, tpg 304 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->tpg_get_tag(tpg), initiatorname); tpg 305 drivers/target/target_core_tpg.c mutex_unlock(&tpg->acl_node_mutex); tpg 311 drivers/target/target_core_tpg.c " request.\n", tpg->se_tpg_tfo->fabric_name, tpg 312 drivers/target/target_core_tpg.c initiatorname, tpg->se_tpg_tfo->tpg_get_tag(tpg)); tpg 313 drivers/target/target_core_tpg.c mutex_unlock(&tpg->acl_node_mutex); tpg 316 drivers/target/target_core_tpg.c mutex_unlock(&tpg->acl_node_mutex); tpg 318 drivers/target/target_core_tpg.c acl = target_alloc_node_acl(tpg, initiatorname); tpg 349 drivers/target/target_core_tpg.c struct se_portal_group *tpg = acl->se_tpg; tpg 351 drivers/target/target_core_tpg.c mutex_lock(&tpg->acl_node_mutex); tpg 355 drivers/target/target_core_tpg.c mutex_unlock(&tpg->acl_node_mutex); tpg 367 drivers/target/target_core_tpg.c core_free_device_list_for_node(acl, tpg); tpg 370 drivers/target/target_core_tpg.c " Initiator Node: %s\n", tpg->se_tpg_tfo->fabric_name, tpg 371 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->tpg_get_tag(tpg), acl->queue_depth, tpg 372 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->fabric_name, acl->initiatorname); tpg 385 drivers/target/target_core_tpg.c struct se_portal_group *tpg = acl->se_tpg; tpg 399 drivers/target/target_core_tpg.c target_set_nacl_queue_depth(tpg, acl, queue_depth); tpg 408 drivers/target/target_core_tpg.c acl->initiatorname, tpg->se_tpg_tfo->fabric_name, tpg 409 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->tpg_get_tag(tpg)); tpg 422 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 555 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 575 drivers/target/target_core_tpg.c lun->lun_tpg = tpg; tpg 581 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 602 drivers/target/target_core_tpg.c mutex_lock(&tpg->tpg_lun_mutex); tpg 616 drivers/target/target_core_tpg.c hlist_add_head_rcu(&lun->link, &tpg->tpg_lun_hlist); tpg 617 drivers/target/target_core_tpg.c mutex_unlock(&tpg->tpg_lun_mutex); tpg 628 drivers/target/target_core_tpg.c struct se_portal_group *tpg, tpg 639 drivers/target/target_core_tpg.c core_clear_lun_from_tpg(lun, tpg); tpg 648 drivers/target/target_core_tpg.c mutex_lock(&tpg->tpg_lun_mutex); tpg 662 drivers/target/target_core_tpg.c mutex_unlock(&tpg->tpg_lun_mutex); tpg 417 drivers/target/target_core_transport.c target_setup_session(struct se_portal_group *tpg, tpg 438 drivers/target/target_core_transport.c sess->se_node_acl = core_tpg_check_initiator_node_acl(tpg, tpg 449 drivers/target/target_core_transport.c int rc = callback(tpg, sess, private); tpg 456 drivers/target/target_core_transport.c transport_register_session(tpg, sess->se_node_acl, sess, private); tpg 56 drivers/target/tcm_fc/tcm_fc.h struct ft_tpg *tpg; /* NULL if TPG deleted before tport */ tpg 99 drivers/target/tcm_fc/tcm_fc.h struct ft_tpg *tpg; tpg 451 drivers/target/tcm_fc/tfc_cmd.c queue_work(sess->tport->tpg->workqueue, &cmd->work); tpg 221 drivers/target/tcm_fc/tfc_conf.c struct ft_tpg *tpg; tpg 246 drivers/target/tcm_fc/tfc_conf.c tpg = kzalloc(sizeof(*tpg), GFP_KERNEL); tpg 247 drivers/target/tcm_fc/tfc_conf.c if (!tpg) tpg 249 drivers/target/tcm_fc/tfc_conf.c tpg->index = index; tpg 250 drivers/target/tcm_fc/tfc_conf.c tpg->lport_wwn = ft_wwn; tpg 251 drivers/target/tcm_fc/tfc_conf.c INIT_LIST_HEAD(&tpg->lun_list); tpg 255 drivers/target/tcm_fc/tfc_conf.c kfree(tpg); tpg 259 drivers/target/tcm_fc/tfc_conf.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); tpg 262 drivers/target/tcm_fc/tfc_conf.c kfree(tpg); tpg 265 drivers/target/tcm_fc/tfc_conf.c tpg->workqueue = wq; tpg 268 drivers/target/tcm_fc/tfc_conf.c ft_wwn->tpg = tpg; tpg 271 drivers/target/tcm_fc/tfc_conf.c return &tpg->se_tpg; tpg 276 drivers/target/tcm_fc/tfc_conf.c struct ft_tpg *tpg = container_of(se_tpg, struct ft_tpg, se_tpg); tpg 277 drivers/target/tcm_fc/tfc_conf.c struct ft_lport_wwn *ft_wwn = tpg->lport_wwn; tpg 280 drivers/target/tcm_fc/tfc_conf.c config_item_name(&tpg->se_tpg.tpg_group.cg_item)); tpg 282 drivers/target/tcm_fc/tfc_conf.c destroy_workqueue(tpg->workqueue); tpg 288 drivers/target/tcm_fc/tfc_conf.c ft_wwn->tpg = NULL; tpg 289 drivers/target/tcm_fc/tfc_conf.c if (tpg->tport) { tpg 290 drivers/target/tcm_fc/tfc_conf.c tpg->tport->tpg = NULL; tpg 291 drivers/target/tcm_fc/tfc_conf.c tpg->tport = NULL; tpg 296 drivers/target/tcm_fc/tfc_conf.c kfree(tpg); tpg 311 drivers/target/tcm_fc/tfc_conf.c return ft_wwn->tpg; tpg 319 drivers/target/tcm_fc/tfc_io.c queue_work(cmd->sess->tport->tpg->workqueue, &cmd->work); tpg 43 drivers/target/tcm_fc/tfc_sess.c struct ft_tpg *tpg; tpg 49 drivers/target/tcm_fc/tfc_sess.c if (tport && tport->tpg) tpg 52 drivers/target/tcm_fc/tfc_sess.c tpg = ft_lport_find_tpg(lport); tpg 53 drivers/target/tcm_fc/tfc_sess.c if (!tpg) tpg 57 drivers/target/tcm_fc/tfc_sess.c tport->tpg = tpg; tpg 58 drivers/target/tcm_fc/tfc_sess.c tpg->tport = tport; tpg 67 drivers/target/tcm_fc/tfc_sess.c tport->tpg = tpg; tpg 68 drivers/target/tcm_fc/tfc_sess.c tpg->tport = tport; tpg 83 drivers/target/tcm_fc/tfc_sess.c struct ft_tpg *tpg; tpg 91 drivers/target/tcm_fc/tfc_sess.c tpg = tport->tpg; tpg 92 drivers/target/tcm_fc/tfc_sess.c if (tpg) { tpg 93 drivers/target/tcm_fc/tfc_sess.c tpg->tport = NULL; tpg 94 drivers/target/tcm_fc/tfc_sess.c tport->tpg = NULL; tpg 210 drivers/target/tcm_fc/tfc_sess.c struct se_portal_group *se_tpg = &tport->tpg->se_tpg; tpg 32 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg; tpg 439 drivers/usb/gadget/function/f_tcm.c luns = atomic_read(&fu->tpg->tpg_port_count); tpg 1041 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg; tpg 1045 drivers/usb/gadget/function/f_tcm.c tpg = cmd->fu->tpg; tpg 1046 drivers/usb/gadget/function/f_tcm.c tv_nexus = tpg->tpg_nexus; tpg 1097 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = fu->tpg; tpg 1107 drivers/usb/gadget/function/f_tcm.c tv_nexus = tpg->tpg_nexus; tpg 1158 drivers/usb/gadget/function/f_tcm.c queue_work(tpg->workqueue, &cmd->work); tpg 1171 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg; tpg 1175 drivers/usb/gadget/function/f_tcm.c tpg = cmd->fu->tpg; tpg 1176 drivers/usb/gadget/function/f_tcm.c tv_nexus = tpg->tpg_nexus; tpg 1204 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = fu->tpg; tpg 1221 drivers/usb/gadget/function/f_tcm.c tv_nexus = tpg->tpg_nexus; tpg 1242 drivers/usb/gadget/function/f_tcm.c queue_work(tpg->workqueue, &cmd->work); tpg 1261 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, tpg 1263 drivers/usb/gadget/function/f_tcm.c struct usbg_tport *tport = tpg->tport; tpg 1270 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, tpg 1272 drivers/usb/gadget/function/f_tcm.c return tpg->tport_tpgt; tpg 1339 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg; tpg 1352 drivers/usb/gadget/function/f_tcm.c if (tpg_instances[i].func_inst && !tpg_instances[i].tpg) tpg 1374 drivers/usb/gadget/function/f_tcm.c tpg = kzalloc(sizeof(struct usbg_tpg), GFP_KERNEL); tpg 1376 drivers/usb/gadget/function/f_tcm.c if (!tpg) tpg 1378 drivers/usb/gadget/function/f_tcm.c mutex_init(&tpg->tpg_mutex); tpg 1379 drivers/usb/gadget/function/f_tcm.c atomic_set(&tpg->tpg_port_count, 0); tpg 1380 drivers/usb/gadget/function/f_tcm.c tpg->workqueue = alloc_workqueue("tcm_usb_gadget", 0, 1); tpg 1381 drivers/usb/gadget/function/f_tcm.c if (!tpg->workqueue) tpg 1384 drivers/usb/gadget/function/f_tcm.c tpg->tport = tport; tpg 1385 drivers/usb/gadget/function/f_tcm.c tpg->tport_tpgt = tpgt; tpg 1391 drivers/usb/gadget/function/f_tcm.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); tpg 1395 drivers/usb/gadget/function/f_tcm.c tpg_instances[i].tpg = tpg; tpg 1396 drivers/usb/gadget/function/f_tcm.c tpg->fi = tpg_instances[i].func_inst; tpg 1399 drivers/usb/gadget/function/f_tcm.c return &tpg->se_tpg; tpg 1402 drivers/usb/gadget/function/f_tcm.c destroy_workqueue(tpg->workqueue); tpg 1404 drivers/usb/gadget/function/f_tcm.c kfree(tpg); tpg 1422 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, tpg 1427 drivers/usb/gadget/function/f_tcm.c tcm_usbg_drop_nexus(tpg); tpg 1429 drivers/usb/gadget/function/f_tcm.c destroy_workqueue(tpg->workqueue); tpg 1433 drivers/usb/gadget/function/f_tcm.c if (tpg_instances[i].tpg == tpg) tpg 1436 drivers/usb/gadget/function/f_tcm.c tpg_instances[i].tpg = NULL; tpg 1449 drivers/usb/gadget/function/f_tcm.c kfree(tpg); tpg 1499 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); tpg 1501 drivers/usb/gadget/function/f_tcm.c return snprintf(page, PAGE_SIZE, "%u\n", tpg->gadget_connect); tpg 1511 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); tpg 1519 drivers/usb/gadget/function/f_tcm.c if ((op && tpg->gadget_connect) || (!op && !tpg->gadget_connect)) tpg 1523 drivers/usb/gadget/function/f_tcm.c ret = usbg_attach(tpg); tpg 1525 drivers/usb/gadget/function/f_tcm.c usbg_detach(tpg); tpg 1529 drivers/usb/gadget/function/f_tcm.c tpg->gadget_connect = op; tpg 1537 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); tpg 1541 drivers/usb/gadget/function/f_tcm.c mutex_lock(&tpg->tpg_mutex); tpg 1542 drivers/usb/gadget/function/f_tcm.c tv_nexus = tpg->tpg_nexus; tpg 1550 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&tpg->tpg_mutex); tpg 1557 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, tpg 1560 drivers/usb/gadget/function/f_tcm.c tpg->tpg_nexus = p; tpg 1564 drivers/usb/gadget/function/f_tcm.c static int tcm_usbg_make_nexus(struct usbg_tpg *tpg, char *name) tpg 1569 drivers/usb/gadget/function/f_tcm.c mutex_lock(&tpg->tpg_mutex); tpg 1570 drivers/usb/gadget/function/f_tcm.c if (tpg->tpg_nexus) { tpg 1582 drivers/usb/gadget/function/f_tcm.c tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, tpg 1596 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&tpg->tpg_mutex); tpg 1600 drivers/usb/gadget/function/f_tcm.c static int tcm_usbg_drop_nexus(struct usbg_tpg *tpg) tpg 1606 drivers/usb/gadget/function/f_tcm.c mutex_lock(&tpg->tpg_mutex); tpg 1607 drivers/usb/gadget/function/f_tcm.c tv_nexus = tpg->tpg_nexus; tpg 1615 drivers/usb/gadget/function/f_tcm.c if (atomic_read(&tpg->tpg_port_count)) { tpg 1618 drivers/usb/gadget/function/f_tcm.c pr_err(MSG, atomic_read(&tpg->tpg_port_count)); tpg 1629 drivers/usb/gadget/function/f_tcm.c tpg->tpg_nexus = NULL; tpg 1634 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&tpg->tpg_mutex); tpg 1642 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); tpg 1647 drivers/usb/gadget/function/f_tcm.c ret = tcm_usbg_drop_nexus(tpg); tpg 1668 drivers/usb/gadget/function/f_tcm.c ret = tcm_usbg_make_nexus(tpg, &i_port[0]); tpg 1685 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); tpg 1687 drivers/usb/gadget/function/f_tcm.c atomic_inc(&tpg->tpg_port_count); tpg 1695 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); tpg 1697 drivers/usb/gadget/function/f_tcm.c atomic_dec(&tpg->tpg_port_count); tpg 2199 drivers/usb/gadget/function/f_tcm.c static int usbg_attach(struct usbg_tpg *tpg) tpg 2201 drivers/usb/gadget/function/f_tcm.c struct usb_function_instance *f = tpg->fi; tpg 2210 drivers/usb/gadget/function/f_tcm.c static void usbg_detach(struct usbg_tpg *tpg) tpg 2212 drivers/usb/gadget/function/f_tcm.c struct usb_function_instance *f = tpg->fi; tpg 2306 drivers/usb/gadget/function/f_tcm.c fu->tpg = tpg_instances[i].tpg; tpg 109 drivers/usb/gadget/function/tcm.h struct usbg_tpg *tpg; tpg 296 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 298 drivers/vhost/scsi.c struct vhost_scsi_tport *tport = tpg->tport; tpg 305 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 307 drivers/vhost/scsi.c return tpg->tport_tpgt; tpg 312 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 315 drivers/vhost/scsi.c return tpg->tv_fabric_prot_type; tpg 569 drivers/vhost/scsi.c vhost_scsi_get_tag(struct vhost_virtqueue *vq, struct vhost_scsi_tpg *tpg, tpg 580 drivers/vhost/scsi.c tv_nexus = tpg->tpg_nexus; tpg 893 drivers/vhost/scsi.c struct vhost_scsi_tpg **vs_tpg, *tpg; tpg 897 drivers/vhost/scsi.c tpg = READ_ONCE(vs_tpg[*vc->target]); tpg 898 drivers/vhost/scsi.c if (unlikely(!tpg)) { tpg 902 drivers/vhost/scsi.c *tpgp = tpg; tpg 913 drivers/vhost/scsi.c struct vhost_scsi_tpg **vs_tpg, *tpg; tpg 971 drivers/vhost/scsi.c ret = vhost_scsi_get_req(vq, &vc, &tpg); tpg 1068 drivers/vhost/scsi.c cmd = vhost_scsi_get_tag(vq, tpg, cdb, tag, lun, task_attr, tpg 1290 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg, tpg 1301 drivers/vhost/scsi.c if (tpg && lun) { tpg 1308 drivers/vhost/scsi.c evt->event.lun[1] = tpg->tport_tpgt; tpg 1389 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg; tpg 1416 drivers/vhost/scsi.c list_for_each_entry(tpg, &vhost_scsi_list, tv_tpg_list) { tpg 1417 drivers/vhost/scsi.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1418 drivers/vhost/scsi.c if (!tpg->tpg_nexus) { tpg 1419 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1422 drivers/vhost/scsi.c if (tpg->tv_tpg_vhost_count != 0) { tpg 1423 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1426 drivers/vhost/scsi.c tv_tport = tpg->tport; tpg 1429 drivers/vhost/scsi.c if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { tpg 1431 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1441 drivers/vhost/scsi.c se_tpg = &tpg->se_tpg; tpg 1446 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1449 drivers/vhost/scsi.c tpg->tv_tpg_vhost_count++; tpg 1450 drivers/vhost/scsi.c tpg->vhost_scsi = vs; tpg 1451 drivers/vhost/scsi.c vs_tpg[tpg->tport_tpgt] = tpg; tpg 1454 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1492 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg; tpg 1515 drivers/vhost/scsi.c tpg = vs->vs_tpg[target]; tpg 1516 drivers/vhost/scsi.c if (!tpg) tpg 1519 drivers/vhost/scsi.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1520 drivers/vhost/scsi.c tv_tport = tpg->tport; tpg 1529 drivers/vhost/scsi.c tv_tport->tport_name, tpg->tport_tpgt, tpg 1534 drivers/vhost/scsi.c tpg->tv_tpg_vhost_count--; tpg 1535 drivers/vhost/scsi.c tpg->vhost_scsi = NULL; tpg 1538 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1543 drivers/vhost/scsi.c se_tpg = &tpg->se_tpg; tpg 1567 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1782 drivers/vhost/scsi.c vhost_scsi_do_plug(struct vhost_scsi_tpg *tpg, tpg 1786 drivers/vhost/scsi.c struct vhost_scsi *vs = tpg->vhost_scsi; tpg 1803 drivers/vhost/scsi.c vhost_scsi_send_evt(vs, tpg, lun, tpg 1809 drivers/vhost/scsi.c static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) tpg 1811 drivers/vhost/scsi.c vhost_scsi_do_plug(tpg, lun, true); tpg 1814 drivers/vhost/scsi.c static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) tpg 1816 drivers/vhost/scsi.c vhost_scsi_do_plug(tpg, lun, false); tpg 1822 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 1827 drivers/vhost/scsi.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1828 drivers/vhost/scsi.c tpg->tv_tpg_port_count++; tpg 1829 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1831 drivers/vhost/scsi.c vhost_scsi_hotplug(tpg, lun); tpg 1841 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 1846 drivers/vhost/scsi.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1847 drivers/vhost/scsi.c tpg->tv_tpg_port_count--; tpg 1848 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1850 drivers/vhost/scsi.c vhost_scsi_hotunplug(tpg, lun); tpg 1876 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 1889 drivers/vhost/scsi.c tpg->tv_fabric_prot_type = val; tpg 1898 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 1901 drivers/vhost/scsi.c return sprintf(page, "%d\n", tpg->tv_fabric_prot_type); tpg 1950 drivers/vhost/scsi.c static int vhost_scsi_make_nexus(struct vhost_scsi_tpg *tpg, tpg 1955 drivers/vhost/scsi.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1956 drivers/vhost/scsi.c if (tpg->tpg_nexus) { tpg 1957 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1964 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1973 drivers/vhost/scsi.c tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, tpg 1980 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1984 drivers/vhost/scsi.c tpg->tpg_nexus = tv_nexus; tpg 1986 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1990 drivers/vhost/scsi.c static int vhost_scsi_drop_nexus(struct vhost_scsi_tpg *tpg) tpg 1995 drivers/vhost/scsi.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1996 drivers/vhost/scsi.c tv_nexus = tpg->tpg_nexus; tpg 1998 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 2004 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 2008 drivers/vhost/scsi.c if (tpg->tv_tpg_port_count != 0) { tpg 2009 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 2012 drivers/vhost/scsi.c tpg->tv_tpg_port_count); tpg 2016 drivers/vhost/scsi.c if (tpg->tv_tpg_vhost_count != 0) { tpg 2017 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 2020 drivers/vhost/scsi.c tpg->tv_tpg_vhost_count); tpg 2025 drivers/vhost/scsi.c " %s Initiator Port: %s\n", vhost_scsi_dump_proto_id(tpg->tport), tpg 2033 drivers/vhost/scsi.c tpg->tpg_nexus = NULL; tpg 2034 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 2043 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 2048 drivers/vhost/scsi.c mutex_lock(&tpg->tv_tpg_mutex); tpg 2049 drivers/vhost/scsi.c tv_nexus = tpg->tpg_nexus; tpg 2051 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 2056 drivers/vhost/scsi.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 2065 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 2067 drivers/vhost/scsi.c struct vhost_scsi_tport *tport_wwn = tpg->tport; tpg 2074 drivers/vhost/scsi.c ret = vhost_scsi_drop_nexus(tpg); tpg 2132 drivers/vhost/scsi.c ret = vhost_scsi_make_nexus(tpg, port_ptr); tpg 2152 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg; tpg 2161 drivers/vhost/scsi.c tpg = kzalloc(sizeof(*tpg), GFP_KERNEL); tpg 2162 drivers/vhost/scsi.c if (!tpg) { tpg 2166 drivers/vhost/scsi.c mutex_init(&tpg->tv_tpg_mutex); tpg 2167 drivers/vhost/scsi.c INIT_LIST_HEAD(&tpg->tv_tpg_list); tpg 2168 drivers/vhost/scsi.c tpg->tport = tport; tpg 2169 drivers/vhost/scsi.c tpg->tport_tpgt = tpgt; tpg 2171 drivers/vhost/scsi.c ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); tpg 2173 drivers/vhost/scsi.c kfree(tpg); tpg 2177 drivers/vhost/scsi.c list_add_tail(&tpg->tv_tpg_list, &vhost_scsi_list); tpg 2180 drivers/vhost/scsi.c return &tpg->se_tpg; tpg 2185 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, tpg 2189 drivers/vhost/scsi.c list_del(&tpg->tv_tpg_list); tpg 2194 drivers/vhost/scsi.c vhost_scsi_drop_nexus(tpg); tpg 2199 drivers/vhost/scsi.c kfree(tpg); tpg 81 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg; /* translate to */ tpg 261 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = pending_req->v2p->tpg; tpg 264 drivers/xen/xen-scsiback.c tpg->tport->tport_name, pending_req->v2p->lun, tpg 313 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = entry->tpg; tpg 315 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 316 drivers/xen/xen-scsiback.c tpg->tv_tpg_fe_count--; tpg 317 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 399 drivers/xen/xen-scsiback.c struct se_session *sess = pending_req->v2p->tpg->tpg_nexus->tvn_se_sess; tpg 596 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = pending_req->v2p->tpg; tpg 597 drivers/xen/xen-scsiback.c struct scsiback_nexus *nexus = tpg->tpg_nexus; tpg 653 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = v2p->tpg; tpg 654 drivers/xen/xen-scsiback.c struct scsiback_nexus *nexus = tpg->tpg_nexus; tpg 901 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg_entry, *tpg = NULL; tpg 927 drivers/xen/xen-scsiback.c tpg = tpg_entry; tpg 935 drivers/xen/xen-scsiback.c if (tpg) { tpg 936 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 937 drivers/xen/xen-scsiback.c tpg->tv_tpg_fe_count++; tpg 938 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 942 drivers/xen/xen-scsiback.c if (!tpg) { tpg 965 drivers/xen/xen-scsiback.c new->tpg = tpg; tpg 974 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 975 drivers/xen/xen-scsiback.c tpg->tv_tpg_fe_count--; tpg 976 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1299 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, tpg 1301 drivers/xen/xen-scsiback.c struct scsiback_tport *tport = tpg->tport; tpg 1308 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, tpg 1310 drivers/xen/xen-scsiback.c return tpg->tport_tpgt; tpg 1459 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, struct scsiback_tpg, tpg 1463 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1464 drivers/xen/xen-scsiback.c rb = snprintf(page, PAGE_SIZE, "%s\n", tpg->param_alias); tpg 1465 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1474 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, struct scsiback_tpg, tpg 1484 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1485 drivers/xen/xen-scsiback.c len = snprintf(tpg->param_alias, VSCSI_NAMELEN, "%s", page); tpg 1486 drivers/xen/xen-scsiback.c if (tpg->param_alias[len - 1] == '\n') tpg 1487 drivers/xen/xen-scsiback.c tpg->param_alias[len - 1] = '\0'; tpg 1488 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1503 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, tpg 1506 drivers/xen/xen-scsiback.c tpg->tpg_nexus = p; tpg 1510 drivers/xen/xen-scsiback.c static int scsiback_make_nexus(struct scsiback_tpg *tpg, tpg 1516 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1517 drivers/xen/xen-scsiback.c if (tpg->tpg_nexus) { tpg 1529 drivers/xen/xen-scsiback.c tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, tpg 1541 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1545 drivers/xen/xen-scsiback.c static int scsiback_drop_nexus(struct scsiback_tpg *tpg) tpg 1550 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1551 drivers/xen/xen-scsiback.c tv_nexus = tpg->tpg_nexus; tpg 1553 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1559 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1563 drivers/xen/xen-scsiback.c if (tpg->tv_tpg_port_count != 0) { tpg 1564 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1566 drivers/xen/xen-scsiback.c tpg->tv_tpg_port_count); tpg 1570 drivers/xen/xen-scsiback.c if (tpg->tv_tpg_fe_count != 0) { tpg 1571 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1573 drivers/xen/xen-scsiback.c tpg->tv_tpg_fe_count); tpg 1578 drivers/xen/xen-scsiback.c scsiback_dump_proto_id(tpg->tport), tpg 1585 drivers/xen/xen-scsiback.c tpg->tpg_nexus = NULL; tpg 1586 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1595 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, tpg 1600 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1601 drivers/xen/xen-scsiback.c tv_nexus = tpg->tpg_nexus; tpg 1603 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1608 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1617 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, tpg 1619 drivers/xen/xen-scsiback.c struct scsiback_tport *tport_wwn = tpg->tport; tpg 1626 drivers/xen/xen-scsiback.c ret = scsiback_drop_nexus(tpg); tpg 1681 drivers/xen/xen-scsiback.c ret = scsiback_make_nexus(tpg, port_ptr); tpg 1713 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, tpg 1716 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1717 drivers/xen/xen-scsiback.c tpg->tv_tpg_port_count++; tpg 1718 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1726 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, tpg 1729 drivers/xen/xen-scsiback.c mutex_lock(&tpg->tv_tpg_mutex); tpg 1730 drivers/xen/xen-scsiback.c tpg->tv_tpg_port_count--; tpg 1731 drivers/xen/xen-scsiback.c mutex_unlock(&tpg->tv_tpg_mutex); tpg 1740 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg; tpg 1750 drivers/xen/xen-scsiback.c tpg = kzalloc(sizeof(struct scsiback_tpg), GFP_KERNEL); tpg 1751 drivers/xen/xen-scsiback.c if (!tpg) tpg 1754 drivers/xen/xen-scsiback.c mutex_init(&tpg->tv_tpg_mutex); tpg 1755 drivers/xen/xen-scsiback.c INIT_LIST_HEAD(&tpg->tv_tpg_list); tpg 1756 drivers/xen/xen-scsiback.c INIT_LIST_HEAD(&tpg->info_list); tpg 1757 drivers/xen/xen-scsiback.c tpg->tport = tport; tpg 1758 drivers/xen/xen-scsiback.c tpg->tport_tpgt = tpgt; tpg 1760 drivers/xen/xen-scsiback.c ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); tpg 1762 drivers/xen/xen-scsiback.c kfree(tpg); tpg 1766 drivers/xen/xen-scsiback.c list_add_tail(&tpg->tv_tpg_list, &scsiback_list); tpg 1769 drivers/xen/xen-scsiback.c return &tpg->se_tpg; tpg 1774 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, tpg 1778 drivers/xen/xen-scsiback.c list_del(&tpg->tv_tpg_list); tpg 1783 drivers/xen/xen-scsiback.c scsiback_drop_nexus(tpg); tpg 1788 drivers/xen/xen-scsiback.c kfree(tpg); tpg 235 include/media/tpg/v4l2-tpg.h void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h); tpg 236 include/media/tpg/v4l2-tpg.h int tpg_alloc(struct tpg_data *tpg, unsigned max_w); tpg 237 include/media/tpg/v4l2-tpg.h void tpg_free(struct tpg_data *tpg); tpg 238 include/media/tpg/v4l2-tpg.h void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, tpg 240 include/media/tpg/v4l2-tpg.h void tpg_log_status(struct tpg_data *tpg); tpg 243 include/media/tpg/v4l2-tpg.h void tpg_gen_text(const struct tpg_data *tpg, tpg 245 include/media/tpg/v4l2-tpg.h void tpg_calc_text_basep(struct tpg_data *tpg, tpg 247 include/media/tpg/v4l2-tpg.h unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line); tpg 248 include/media/tpg/v4l2-tpg.h void tpg_fill_plane_buffer(struct tpg_data *tpg, v4l2_std_id std, tpg 250 include/media/tpg/v4l2-tpg.h void tpg_fillbuffer(struct tpg_data *tpg, v4l2_std_id std, tpg 252 include/media/tpg/v4l2-tpg.h bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc); tpg 253 include/media/tpg/v4l2-tpg.h void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop, tpg 256 include/media/tpg/v4l2-tpg.h static inline void tpg_s_pattern(struct tpg_data *tpg, enum tpg_pattern pattern) tpg 258 include/media/tpg/v4l2-tpg.h if (tpg->pattern == pattern) tpg 260 include/media/tpg/v4l2-tpg.h tpg->pattern = pattern; tpg 261 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 264 include/media/tpg/v4l2-tpg.h static inline void tpg_s_quality(struct tpg_data *tpg, tpg 267 include/media/tpg/v4l2-tpg.h if (tpg->qual == qual && tpg->qual_offset == qual_offset) tpg 269 include/media/tpg/v4l2-tpg.h tpg->qual = qual; tpg 270 include/media/tpg/v4l2-tpg.h tpg->qual_offset = qual_offset; tpg 271 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 274 include/media/tpg/v4l2-tpg.h static inline enum tpg_quality tpg_g_quality(const struct tpg_data *tpg) tpg 276 include/media/tpg/v4l2-tpg.h return tpg->qual; tpg 279 include/media/tpg/v4l2-tpg.h static inline void tpg_s_alpha_component(struct tpg_data *tpg, tpg 282 include/media/tpg/v4l2-tpg.h if (tpg->alpha_component == alpha_component) tpg 284 include/media/tpg/v4l2-tpg.h tpg->alpha_component = alpha_component; tpg 285 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 288 include/media/tpg/v4l2-tpg.h static inline void tpg_s_alpha_mode(struct tpg_data *tpg, tpg 291 include/media/tpg/v4l2-tpg.h if (tpg->alpha_red_only == red_only) tpg 293 include/media/tpg/v4l2-tpg.h tpg->alpha_red_only = red_only; tpg 294 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 297 include/media/tpg/v4l2-tpg.h static inline void tpg_s_brightness(struct tpg_data *tpg, tpg 300 include/media/tpg/v4l2-tpg.h if (tpg->brightness == brightness) tpg 302 include/media/tpg/v4l2-tpg.h tpg->brightness = brightness; tpg 303 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 306 include/media/tpg/v4l2-tpg.h static inline void tpg_s_contrast(struct tpg_data *tpg, tpg 309 include/media/tpg/v4l2-tpg.h if (tpg->contrast == contrast) tpg 311 include/media/tpg/v4l2-tpg.h tpg->contrast = contrast; tpg 312 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 315 include/media/tpg/v4l2-tpg.h static inline void tpg_s_saturation(struct tpg_data *tpg, tpg 318 include/media/tpg/v4l2-tpg.h if (tpg->saturation == saturation) tpg 320 include/media/tpg/v4l2-tpg.h tpg->saturation = saturation; tpg 321 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 324 include/media/tpg/v4l2-tpg.h static inline void tpg_s_hue(struct tpg_data *tpg, tpg 327 include/media/tpg/v4l2-tpg.h if (tpg->hue == hue) tpg 329 include/media/tpg/v4l2-tpg.h tpg->hue = hue; tpg 330 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 333 include/media/tpg/v4l2-tpg.h static inline void tpg_s_rgb_range(struct tpg_data *tpg, tpg 336 include/media/tpg/v4l2-tpg.h if (tpg->rgb_range == rgb_range) tpg 338 include/media/tpg/v4l2-tpg.h tpg->rgb_range = rgb_range; tpg 339 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 342 include/media/tpg/v4l2-tpg.h static inline void tpg_s_real_rgb_range(struct tpg_data *tpg, tpg 345 include/media/tpg/v4l2-tpg.h if (tpg->real_rgb_range == rgb_range) tpg 347 include/media/tpg/v4l2-tpg.h tpg->real_rgb_range = rgb_range; tpg 348 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 351 include/media/tpg/v4l2-tpg.h static inline void tpg_s_colorspace(struct tpg_data *tpg, u32 colorspace) tpg 353 include/media/tpg/v4l2-tpg.h if (tpg->colorspace == colorspace) tpg 355 include/media/tpg/v4l2-tpg.h tpg->colorspace = colorspace; tpg 356 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 359 include/media/tpg/v4l2-tpg.h static inline u32 tpg_g_colorspace(const struct tpg_data *tpg) tpg 361 include/media/tpg/v4l2-tpg.h return tpg->colorspace; tpg 364 include/media/tpg/v4l2-tpg.h static inline void tpg_s_ycbcr_enc(struct tpg_data *tpg, u32 ycbcr_enc) tpg 366 include/media/tpg/v4l2-tpg.h if (tpg->ycbcr_enc == ycbcr_enc) tpg 368 include/media/tpg/v4l2-tpg.h tpg->ycbcr_enc = ycbcr_enc; tpg 369 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 372 include/media/tpg/v4l2-tpg.h static inline u32 tpg_g_ycbcr_enc(const struct tpg_data *tpg) tpg 374 include/media/tpg/v4l2-tpg.h return tpg->ycbcr_enc; tpg 377 include/media/tpg/v4l2-tpg.h static inline void tpg_s_hsv_enc(struct tpg_data *tpg, u32 hsv_enc) tpg 379 include/media/tpg/v4l2-tpg.h if (tpg->hsv_enc == hsv_enc) tpg 381 include/media/tpg/v4l2-tpg.h tpg->hsv_enc = hsv_enc; tpg 382 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 385 include/media/tpg/v4l2-tpg.h static inline u32 tpg_g_hsv_enc(const struct tpg_data *tpg) tpg 387 include/media/tpg/v4l2-tpg.h return tpg->hsv_enc; tpg 390 include/media/tpg/v4l2-tpg.h static inline void tpg_s_xfer_func(struct tpg_data *tpg, u32 xfer_func) tpg 392 include/media/tpg/v4l2-tpg.h if (tpg->xfer_func == xfer_func) tpg 394 include/media/tpg/v4l2-tpg.h tpg->xfer_func = xfer_func; tpg 395 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 398 include/media/tpg/v4l2-tpg.h static inline u32 tpg_g_xfer_func(const struct tpg_data *tpg) tpg 400 include/media/tpg/v4l2-tpg.h return tpg->xfer_func; tpg 403 include/media/tpg/v4l2-tpg.h static inline void tpg_s_quantization(struct tpg_data *tpg, u32 quantization) tpg 405 include/media/tpg/v4l2-tpg.h if (tpg->quantization == quantization) tpg 407 include/media/tpg/v4l2-tpg.h tpg->quantization = quantization; tpg 408 include/media/tpg/v4l2-tpg.h tpg->recalc_colors = true; tpg 411 include/media/tpg/v4l2-tpg.h static inline u32 tpg_g_quantization(const struct tpg_data *tpg) tpg 413 include/media/tpg/v4l2-tpg.h return tpg->quantization; tpg 416 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_g_buffers(const struct tpg_data *tpg) tpg 418 include/media/tpg/v4l2-tpg.h return tpg->buffers; tpg 421 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_g_planes(const struct tpg_data *tpg) tpg 423 include/media/tpg/v4l2-tpg.h return tpg->interleaved ? 1 : tpg->planes; tpg 426 include/media/tpg/v4l2-tpg.h static inline bool tpg_g_interleaved(const struct tpg_data *tpg) tpg 428 include/media/tpg/v4l2-tpg.h return tpg->interleaved; tpg 431 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_g_twopixelsize(const struct tpg_data *tpg, unsigned plane) tpg 433 include/media/tpg/v4l2-tpg.h return tpg->twopixelsize[plane]; tpg 436 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_hdiv(const struct tpg_data *tpg, tpg 439 include/media/tpg/v4l2-tpg.h return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * tpg 440 include/media/tpg/v4l2-tpg.h tpg->twopixelsize[plane] / 2; tpg 443 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_hscale(const struct tpg_data *tpg, unsigned x) tpg 445 include/media/tpg/v4l2-tpg.h return (x * tpg->scaled_width) / tpg->src_width; tpg 448 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_hscale_div(const struct tpg_data *tpg, tpg 451 include/media/tpg/v4l2-tpg.h return tpg_hdiv(tpg, plane, tpg_hscale(tpg, x)); tpg 454 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_g_bytesperline(const struct tpg_data *tpg, unsigned plane) tpg 456 include/media/tpg/v4l2-tpg.h return tpg->bytesperline[plane]; tpg 459 include/media/tpg/v4l2-tpg.h static inline void tpg_s_bytesperline(struct tpg_data *tpg, unsigned plane, unsigned bpl) tpg 463 include/media/tpg/v4l2-tpg.h if (tpg->buffers > 1) { tpg 464 include/media/tpg/v4l2-tpg.h tpg->bytesperline[plane] = bpl; tpg 468 include/media/tpg/v4l2-tpg.h for (p = 0; p < tpg_g_planes(tpg); p++) { tpg 469 include/media/tpg/v4l2-tpg.h unsigned plane_w = bpl * tpg->twopixelsize[p] / tpg->twopixelsize[0]; tpg 471 include/media/tpg/v4l2-tpg.h tpg->bytesperline[p] = plane_w / tpg->hdownsampling[p]; tpg 473 include/media/tpg/v4l2-tpg.h if (tpg_g_interleaved(tpg)) tpg 474 include/media/tpg/v4l2-tpg.h tpg->bytesperline[1] = tpg->bytesperline[0]; tpg 478 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_g_line_width(const struct tpg_data *tpg, unsigned plane) tpg 483 include/media/tpg/v4l2-tpg.h if (tpg->buffers > 1) tpg 484 include/media/tpg/v4l2-tpg.h return tpg_g_bytesperline(tpg, plane); tpg 485 include/media/tpg/v4l2-tpg.h for (p = 0; p < tpg_g_planes(tpg); p++) { tpg 486 include/media/tpg/v4l2-tpg.h unsigned plane_w = tpg_g_bytesperline(tpg, p); tpg 488 include/media/tpg/v4l2-tpg.h w += plane_w / tpg->vdownsampling[p]; tpg 493 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_calc_line_width(const struct tpg_data *tpg, tpg 499 include/media/tpg/v4l2-tpg.h if (tpg->buffers > 1) tpg 501 include/media/tpg/v4l2-tpg.h for (p = 0; p < tpg_g_planes(tpg); p++) { tpg 502 include/media/tpg/v4l2-tpg.h unsigned plane_w = bpl * tpg->twopixelsize[p] / tpg->twopixelsize[0]; tpg 504 include/media/tpg/v4l2-tpg.h plane_w /= tpg->hdownsampling[p]; tpg 505 include/media/tpg/v4l2-tpg.h w += plane_w / tpg->vdownsampling[p]; tpg 510 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_calc_plane_size(const struct tpg_data *tpg, unsigned plane) tpg 512 include/media/tpg/v4l2-tpg.h if (plane >= tpg_g_planes(tpg)) tpg 515 include/media/tpg/v4l2-tpg.h return tpg_g_bytesperline(tpg, plane) * tpg->buf_height / tpg 516 include/media/tpg/v4l2-tpg.h tpg->vdownsampling[plane]; tpg 519 include/media/tpg/v4l2-tpg.h static inline void tpg_s_buf_height(struct tpg_data *tpg, unsigned h) tpg 521 include/media/tpg/v4l2-tpg.h tpg->buf_height = h; tpg 524 include/media/tpg/v4l2-tpg.h static inline void tpg_s_field(struct tpg_data *tpg, unsigned field, bool alternate) tpg 526 include/media/tpg/v4l2-tpg.h tpg->field = field; tpg 527 include/media/tpg/v4l2-tpg.h tpg->field_alternate = alternate; tpg 530 include/media/tpg/v4l2-tpg.h static inline void tpg_s_perc_fill(struct tpg_data *tpg, tpg 533 include/media/tpg/v4l2-tpg.h tpg->perc_fill = perc_fill; tpg 536 include/media/tpg/v4l2-tpg.h static inline unsigned tpg_g_perc_fill(const struct tpg_data *tpg) tpg 538 include/media/tpg/v4l2-tpg.h return tpg->perc_fill; tpg 541 include/media/tpg/v4l2-tpg.h static inline void tpg_s_perc_fill_blank(struct tpg_data *tpg, tpg 544 include/media/tpg/v4l2-tpg.h tpg->perc_fill_blank = perc_fill_blank; tpg 547 include/media/tpg/v4l2-tpg.h static inline void tpg_s_video_aspect(struct tpg_data *tpg, tpg 550 include/media/tpg/v4l2-tpg.h if (tpg->vid_aspect == vid_aspect) tpg 552 include/media/tpg/v4l2-tpg.h tpg->vid_aspect = vid_aspect; tpg 553 include/media/tpg/v4l2-tpg.h tpg->recalc_square_border = true; tpg 556 include/media/tpg/v4l2-tpg.h static inline enum tpg_video_aspect tpg_g_video_aspect(const struct tpg_data *tpg) tpg 558 include/media/tpg/v4l2-tpg.h return tpg->vid_aspect; tpg 561 include/media/tpg/v4l2-tpg.h static inline void tpg_s_pixel_aspect(struct tpg_data *tpg, tpg 564 include/media/tpg/v4l2-tpg.h if (tpg->pix_aspect == pix_aspect) tpg 566 include/media/tpg/v4l2-tpg.h tpg->pix_aspect = pix_aspect; tpg 567 include/media/tpg/v4l2-tpg.h tpg->recalc_square_border = true; tpg 570 include/media/tpg/v4l2-tpg.h static inline void tpg_s_show_border(struct tpg_data *tpg, tpg 573 include/media/tpg/v4l2-tpg.h tpg->show_border = show_border; tpg 576 include/media/tpg/v4l2-tpg.h static inline void tpg_s_show_square(struct tpg_data *tpg, tpg 579 include/media/tpg/v4l2-tpg.h tpg->show_square = show_square; tpg 582 include/media/tpg/v4l2-tpg.h static inline void tpg_s_insert_sav(struct tpg_data *tpg, bool insert_sav) tpg 584 include/media/tpg/v4l2-tpg.h tpg->insert_sav = insert_sav; tpg 587 include/media/tpg/v4l2-tpg.h static inline void tpg_s_insert_eav(struct tpg_data *tpg, bool insert_eav) tpg 589 include/media/tpg/v4l2-tpg.h tpg->insert_eav = insert_eav; tpg 592 include/media/tpg/v4l2-tpg.h void tpg_update_mv_step(struct tpg_data *tpg); tpg 594 include/media/tpg/v4l2-tpg.h static inline void tpg_s_mv_hor_mode(struct tpg_data *tpg, tpg 597 include/media/tpg/v4l2-tpg.h tpg->mv_hor_mode = mv_hor_mode; tpg 598 include/media/tpg/v4l2-tpg.h tpg_update_mv_step(tpg); tpg 601 include/media/tpg/v4l2-tpg.h static inline void tpg_s_mv_vert_mode(struct tpg_data *tpg, tpg 604 include/media/tpg/v4l2-tpg.h tpg->mv_vert_mode = mv_vert_mode; tpg 605 include/media/tpg/v4l2-tpg.h tpg_update_mv_step(tpg); tpg 608 include/media/tpg/v4l2-tpg.h static inline void tpg_init_mv_count(struct tpg_data *tpg) tpg 610 include/media/tpg/v4l2-tpg.h tpg->mv_hor_count = tpg->mv_vert_count = 0; tpg 613 include/media/tpg/v4l2-tpg.h static inline void tpg_update_mv_count(struct tpg_data *tpg, bool frame_is_field) tpg 615 include/media/tpg/v4l2-tpg.h tpg->mv_hor_count += tpg->mv_hor_step * (frame_is_field ? 1 : 2); tpg 616 include/media/tpg/v4l2-tpg.h tpg->mv_vert_count += tpg->mv_vert_step * (frame_is_field ? 1 : 2); tpg 619 include/media/tpg/v4l2-tpg.h static inline void tpg_s_hflip(struct tpg_data *tpg, bool hflip) tpg 621 include/media/tpg/v4l2-tpg.h if (tpg->hflip == hflip) tpg 623 include/media/tpg/v4l2-tpg.h tpg->hflip = hflip; tpg 624 include/media/tpg/v4l2-tpg.h tpg_update_mv_step(tpg); tpg 625 include/media/tpg/v4l2-tpg.h tpg->recalc_lines = true; tpg 628 include/media/tpg/v4l2-tpg.h static inline bool tpg_g_hflip(const struct tpg_data *tpg) tpg 630 include/media/tpg/v4l2-tpg.h return tpg->hflip; tpg 633 include/media/tpg/v4l2-tpg.h static inline void tpg_s_vflip(struct tpg_data *tpg, bool vflip) tpg 635 include/media/tpg/v4l2-tpg.h tpg->vflip = vflip; tpg 638 include/media/tpg/v4l2-tpg.h static inline bool tpg_g_vflip(const struct tpg_data *tpg) tpg 640 include/media/tpg/v4l2-tpg.h return tpg->vflip; tpg 643 include/media/tpg/v4l2-tpg.h static inline bool tpg_pattern_is_static(const struct tpg_data *tpg) tpg 645 include/media/tpg/v4l2-tpg.h return tpg->pattern != TPG_PAT_NOISE && tpg 646 include/media/tpg/v4l2-tpg.h tpg->mv_hor_mode == TPG_MOVE_NONE && tpg 647 include/media/tpg/v4l2-tpg.h tpg->mv_vert_mode == TPG_MOVE_NONE; tpg 606 include/target/iscsi/iscsi_target_core.h struct iscsi_portal_group *tpg; tpg 696 include/target/iscsi/iscsi_target_core.h struct iscsi_portal_group *tpg; tpg 784 include/target/iscsi/iscsi_target_core.h struct iscsi_portal_group *tpg; tpg 810 include/target/iscsi/iscsi_target_core.h struct iscsi_portal_group *tpg; tpg 193 include/target/target_core_fabric.h struct se_node_acl *core_tpg_get_initiator_node_acl(struct se_portal_group *tpg, tpg 195 include/target/target_core_fabric.h bool target_tpg_has_node_acl(struct se_portal_group *tpg,