Lines Matching defs:p_child
400 struct child_device_config *p_child;
414 if (p_defs->child_dev_size != sizeof(*p_child)) {
423 sizeof(*p_child);
426 p_child = &(((struct __bdb_general_definitions *)p_defs)->devices[i]);
427 if (!p_child->device_type) {
431 if (p_child->slave_addr != SLAVE_ADDR1 &&
432 p_child->slave_addr != SLAVE_ADDR2) {
439 if (p_child->dvo_port != DEVICE_PORT_DVOB &&
440 p_child->dvo_port != DEVICE_PORT_DVOC) {
447 p_child->slave_addr,
448 (p_child->dvo_port == DEVICE_PORT_DVOB) ?
450 p_mapping = &(dev_priv->sdvo_mappings[p_child->dvo_port - 1]);
452 p_mapping->dvo_port = p_child->dvo_port;
453 p_mapping->slave_addr = p_child->slave_addr;
454 p_mapping->dvo_wiring = p_child->dvo_wiring;
455 p_mapping->ddc_pin = p_child->ddc_pin;
456 p_mapping->i2c_pin = p_child->i2c_pin;
468 if (p_child->slave2_addr) {
584 struct child_device_config *p_child, *child_dev_ptr;
598 if (p_defs->child_dev_size != sizeof(*p_child)) {
607 sizeof(*p_child);
611 p_child = &(((struct __bdb_general_definitions *)p_defs)->devices[i]);
612 if (!p_child->device_type) {
622 dev_priv->vbt.child_dev = kcalloc(count, sizeof(*p_child), GFP_KERNEL);
631 p_child = &(((struct __bdb_general_definitions *)p_defs)->devices[i]);
632 if (!p_child->device_type) {
638 (void) memcpy((void *)child_dev_ptr, (void *)p_child,
639 sizeof(*p_child));