Lines Matching refs:p_child
341 struct child_device_config *p_child; in parse_sdvo_device_mapping() local
355 if (p_defs->child_dev_size != sizeof(*p_child)) { in parse_sdvo_device_mapping()
364 sizeof(*p_child); in parse_sdvo_device_mapping()
367 p_child = &(p_defs->devices[i]); in parse_sdvo_device_mapping()
368 if (!p_child->device_type) { in parse_sdvo_device_mapping()
372 if (p_child->slave_addr != SLAVE_ADDR1 && in parse_sdvo_device_mapping()
373 p_child->slave_addr != SLAVE_ADDR2) { in parse_sdvo_device_mapping()
380 if (p_child->dvo_port != DEVICE_PORT_DVOB && in parse_sdvo_device_mapping()
381 p_child->dvo_port != DEVICE_PORT_DVOC) { in parse_sdvo_device_mapping()
388 p_child->slave_addr, in parse_sdvo_device_mapping()
389 (p_child->dvo_port == DEVICE_PORT_DVOB) ? in parse_sdvo_device_mapping()
391 p_mapping = &(dev_priv->sdvo_mappings[p_child->dvo_port - 1]); in parse_sdvo_device_mapping()
393 p_mapping->dvo_port = p_child->dvo_port; in parse_sdvo_device_mapping()
394 p_mapping->slave_addr = p_child->slave_addr; in parse_sdvo_device_mapping()
395 p_mapping->dvo_wiring = p_child->dvo_wiring; in parse_sdvo_device_mapping()
396 p_mapping->ddc_pin = p_child->ddc_pin; in parse_sdvo_device_mapping()
397 p_mapping->i2c_pin = p_child->i2c_pin; in parse_sdvo_device_mapping()
409 if (p_child->slave2_addr) { in parse_sdvo_device_mapping()
454 struct child_device_config *p_child, *child_dev_ptr; in parse_device_mapping() local
468 if (p_defs->child_dev_size != sizeof(*p_child)) { in parse_device_mapping()
477 sizeof(*p_child); in parse_device_mapping()
481 p_child = &(p_defs->devices[i]); in parse_device_mapping()
482 if (!p_child->device_type) { in parse_device_mapping()
492 dev_priv->child_dev = kcalloc(count, sizeof(*p_child), GFP_KERNEL); in parse_device_mapping()
501 p_child = &(p_defs->devices[i]); in parse_device_mapping()
502 if (!p_child->device_type) { in parse_device_mapping()
508 memcpy((void *)child_dev_ptr, (void *)p_child, in parse_device_mapping()
509 sizeof(*p_child)); in parse_device_mapping()