Home
last modified time | relevance | path

Searched refs:cport_desc (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/drivers/staging/greybus/
H A Dlog.c68 struct greybus_descriptor_cport *cport_desc; in gb_log_probe() local
76 cport_desc = &bundle->cport_desc[0]; in gb_log_probe()
77 if (cport_desc->protocol_id != GREYBUS_PROTOCOL_LOG) in gb_log_probe()
84 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_log_probe()
H A Dgbphy.c34 return sprintf(buf, "0x%02x\n", gbphy_dev->cport_desc->protocol_id); in protocol_id_show()
77 const struct greybus_descriptor_cport *cport_desc = gbphy_dev->cport_desc; in gbphy_dev_uevent() local
98 if (add_uevent_var(env, "PROTOCOL_ID=%02x", cport_desc->protocol_id)) in gbphy_dev_uevent()
114 if (id->protocol_id == gbphy_dev->cport_desc->protocol_id) in gbphy_dev_match_id()
222 struct greybus_descriptor_cport *cport_desc) in gb_gbphy_create_dev() argument
240 gbphy_dev->cport_desc = cport_desc; in gb_gbphy_create_dev()
298 gbphy_dev = gb_gbphy_create_dev(bundle, &bundle->cport_desc[i]); in gb_gbphy_probe()
H A Daudio_module.c178 struct greybus_descriptor_cport *cport_desc, in gb_audio_add_mgmt_connection() argument
190 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_audio_add_mgmt_connection()
202 struct greybus_descriptor_cport *cport_desc, in gb_audio_add_data_connection() argument
213 le16_to_cpu(cport_desc->id), in gb_audio_add_data_connection()
238 struct greybus_descriptor_cport *cport_desc; in gb_audio_probe() local
269 cport_desc = &bundle->cport_desc[i]; in gb_audio_probe()
271 switch (cport_desc->protocol_id) { in gb_audio_probe()
273 ret = gb_audio_add_mgmt_connection(gbmodule, cport_desc, in gb_audio_probe()
279 ret = gb_audio_add_data_connection(gbmodule, cport_desc, in gb_audio_probe()
286 cport_desc->protocol_id); in gb_audio_probe()
H A Dvibrator.c118 struct greybus_descriptor_cport *cport_desc; in gb_vibrator_probe() local
127 cport_desc = &bundle->cport_desc[0]; in gb_vibrator_probe()
128 if (cport_desc->protocol_id != GREYBUS_PROTOCOL_VIBRATOR) in gb_vibrator_probe()
135 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_vibrator_probe()
H A Dfw-core.c64 struct greybus_descriptor_cport *cport_desc; in gb_fw_core_probe() local
77 cport_desc = &bundle->cport_desc[i]; in gb_fw_core_probe()
78 cport_id = le16_to_cpu(cport_desc->id); in gb_fw_core_probe()
79 protocol_id = cport_desc->protocol_id; in gb_fw_core_probe()
H A Draw.c151 struct greybus_descriptor_cport *cport_desc; in gb_raw_probe() local
160 cport_desc = &bundle->cport_desc[0]; in gb_raw_probe()
161 if (cport_desc->protocol_id != GREYBUS_PROTOCOL_RAW) in gb_raw_probe()
168 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_raw_probe()
H A Dbootrom.c415 struct greybus_descriptor_cport *cport_desc; in gb_bootrom_probe() local
423 cport_desc = &bundle->cport_desc[0]; in gb_bootrom_probe()
424 if (cport_desc->protocol_id != GREYBUS_PROTOCOL_BOOTROM) in gb_bootrom_probe()
432 le16_to_cpu(cport_desc->id), in gb_bootrom_probe()
H A Dhid.c424 struct greybus_descriptor_cport *cport_desc; in gb_hid_probe() local
433 cport_desc = &bundle->cport_desc[0]; in gb_hid_probe()
434 if (cport_desc->protocol_id != GREYBUS_PROTOCOL_HID) in gb_hid_probe()
441 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_hid_probe()
H A Dspi.c24 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_spi_probe()
H A Dgbphy.h13 struct greybus_descriptor_cport *cport_desc; member
H A Dpower_supply.c1055 struct greybus_descriptor_cport *cport_desc; in gb_power_supply_probe() local
1063 cport_desc = &bundle->cport_desc[0]; in gb_power_supply_probe()
1064 if (cport_desc->protocol_id != GREYBUS_PROTOCOL_POWER_SUPPLY) in gb_power_supply_probe()
1071 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_power_supply_probe()
H A Dloopback.c976 struct greybus_descriptor_cport *cport_desc; in gb_loopback_probe() local
987 cport_desc = &bundle->cport_desc[0]; in gb_loopback_probe()
988 if (cport_desc->protocol_id != GREYBUS_PROTOCOL_LOOPBACK) in gb_loopback_probe()
995 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_loopback_probe()
H A Dlight.c1270 struct greybus_descriptor_cport *cport_desc; in gb_lights_probe() local
1278 cport_desc = &bundle->cport_desc[0]; in gb_lights_probe()
1279 if (cport_desc->protocol_id != GREYBUS_PROTOCOL_LIGHTS) in gb_lights_probe()
1288 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_lights_probe()
H A Dusb.c172 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_usb_probe()
H A Di2c.c244 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_i2c_probe()
H A Dpwm.c277 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_pwm_probe()
H A Dgpio.c521 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_gpio_probe()
H A Dsdio.c775 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_sdio_probe()
H A Duart.c813 le16_to_cpu(gbphy_dev->cport_desc->id), in gb_uart_probe()
H A Dcamera.c1246 struct greybus_descriptor_cport *desc = &bundle->cport_desc[i]; in gb_camera_probe()
/openbmc/linux/drivers/greybus/
H A Dmanifest.c278 bundle->cport_desc = kcalloc(count, sizeof(*bundle->cport_desc), in gb_manifest_parse_cports()
280 if (!bundle->cport_desc) in gb_manifest_parse_cports()
288 memcpy(&bundle->cport_desc[i++], desc_cport, in gb_manifest_parse_cports()
H A Dbundle.c87 kfree(bundle->cport_desc); in gb_bundle_release()
/openbmc/linux/include/linux/greybus/
H A Dbundle.h30 struct greybus_descriptor_cport *cport_desc; member