coredev           392 drivers/infiniband/core/core_priv.h void ib_free_port_attrs(struct ib_core_device *coredev);
coredev           393 drivers/infiniband/core/core_priv.h int ib_setup_port_attrs(struct ib_core_device *coredev);
coredev           146 drivers/infiniband/core/device.c 		net_eq(read_pnet(&dev->coredev.rdma_net), net));
coredev           529 drivers/infiniband/core/device.c 	struct ib_core_device *coredev =
coredev           532 drivers/infiniband/core/device.c 	return read_pnet(&coredev->rdma_net);
coredev           543 drivers/infiniband/core/device.c static void rdma_init_coredev(struct ib_core_device *coredev,
coredev           552 drivers/infiniband/core/device.c 	BUILD_BUG_ON(offsetof(struct ib_device, coredev.dev) !=
coredev           555 drivers/infiniband/core/device.c 	coredev->dev.class = &ib_class;
coredev           556 drivers/infiniband/core/device.c 	coredev->dev.groups = dev->groups;
coredev           557 drivers/infiniband/core/device.c 	device_initialize(&coredev->dev);
coredev           558 drivers/infiniband/core/device.c 	coredev->owner = dev;
coredev           559 drivers/infiniband/core/device.c 	INIT_LIST_HEAD(&coredev->port_list);
coredev           560 drivers/infiniband/core/device.c 	write_pnet(&coredev->rdma_net, net);
coredev           590 drivers/infiniband/core/device.c 	rdma_init_coredev(&device->coredev, device, &init_net);
coredev           875 drivers/infiniband/core/device.c 		   read_pnet(&device->coredev.rdma_net)))
coredev          1592 drivers/infiniband/core/device.c 	    !net_eq(cur_net, read_pnet(&device->coredev.rdma_net))) {
coredev          1604 drivers/infiniband/core/device.c 	write_pnet(&device->coredev.rdma_net, net);
coredev          1619 drivers/infiniband/core/device.c 		write_pnet(&device->coredev.rdma_net, cur_net);
coredev          1039 drivers/infiniband/core/sysfs.c static int add_port(struct ib_core_device *coredev, int port_num)
coredev          1041 drivers/infiniband/core/sysfs.c 	struct ib_device *device = rdma_device_to_ibdev(&coredev->dev);
coredev          1042 drivers/infiniband/core/sysfs.c 	bool is_full_dev = &device->coredev == coredev;
coredev          1060 drivers/infiniband/core/sysfs.c 				   coredev->ports_kobj,
coredev          1151 drivers/infiniband/core/sysfs.c 	list_add_tail(&p->kobj.entry, &coredev->port_list);
coredev          1306 drivers/infiniband/core/sysfs.c void ib_free_port_attrs(struct ib_core_device *coredev)
coredev          1308 drivers/infiniband/core/sysfs.c 	struct ib_device *device = rdma_device_to_ibdev(&coredev->dev);
coredev          1309 drivers/infiniband/core/sysfs.c 	bool is_full_dev = &device->coredev == coredev;
coredev          1312 drivers/infiniband/core/sysfs.c 	list_for_each_entry_safe(p, t, &coredev->port_list, entry) {
coredev          1334 drivers/infiniband/core/sysfs.c 	kobject_put(coredev->ports_kobj);
coredev          1337 drivers/infiniband/core/sysfs.c int ib_setup_port_attrs(struct ib_core_device *coredev)
coredev          1339 drivers/infiniband/core/sysfs.c 	struct ib_device *device = rdma_device_to_ibdev(&coredev->dev);
coredev          1343 drivers/infiniband/core/sysfs.c 	coredev->ports_kobj = kobject_create_and_add("ports",
coredev          1344 drivers/infiniband/core/sysfs.c 						     &coredev->dev.kobj);
coredev          1345 drivers/infiniband/core/sysfs.c 	if (!coredev->ports_kobj)
coredev          1349 drivers/infiniband/core/sysfs.c 		ret = add_port(coredev, port);
coredev          1357 drivers/infiniband/core/sysfs.c 	ib_free_port_attrs(coredev);
coredev          1365 drivers/infiniband/core/sysfs.c 	ret = ib_setup_port_attrs(&device->coredev);
coredev          1381 drivers/infiniband/core/sysfs.c 	ib_free_port_attrs(&device->coredev);
coredev          1401 drivers/infiniband/core/sysfs.c 	list_for_each_entry_safe(p, t, &device->coredev.port_list, entry) {
coredev           169 drivers/media/common/siano/sms-cards.c int sms_board_event(struct smscore_device_t *coredev,
coredev           226 drivers/media/common/siano/sms-cards.c static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable)
coredev           250 drivers/media/common/siano/sms-cards.c 	ret = smscore_configure_gpio(coredev, gpio, &gpioconfig);
coredev           254 drivers/media/common/siano/sms-cards.c 	return smscore_set_gpio(coredev, gpio, lvl);
coredev           257 drivers/media/common/siano/sms-cards.c int sms_board_setup(struct smscore_device_t *coredev)
coredev           259 drivers/media/common/siano/sms-cards.c 	int board_id = smscore_get_board_id(coredev);
coredev           265 drivers/media/common/siano/sms-cards.c 		sms_set_gpio(coredev, board->led_power, 0);
coredev           266 drivers/media/common/siano/sms-cards.c 		sms_set_gpio(coredev, board->led_hi, 0);
coredev           267 drivers/media/common/siano/sms-cards.c 		sms_set_gpio(coredev, board->led_lo, 0);
coredev           272 drivers/media/common/siano/sms-cards.c 		sms_set_gpio(coredev, board->lna_ctrl, 0);
coredev           279 drivers/media/common/siano/sms-cards.c int sms_board_power(struct smscore_device_t *coredev, int onoff)
coredev           281 drivers/media/common/siano/sms-cards.c 	int board_id = smscore_get_board_id(coredev);
coredev           287 drivers/media/common/siano/sms-cards.c 		sms_set_gpio(coredev,
coredev           294 drivers/media/common/siano/sms-cards.c 			sms_set_gpio(coredev, board->lna_ctrl, 0);
coredev           301 drivers/media/common/siano/sms-cards.c int sms_board_led_feedback(struct smscore_device_t *coredev, int led)
coredev           303 drivers/media/common/siano/sms-cards.c 	int board_id = smscore_get_board_id(coredev);
coredev           307 drivers/media/common/siano/sms-cards.c 	if (smscore_led_state(coredev, -1) == led)
coredev           312 drivers/media/common/siano/sms-cards.c 		sms_set_gpio(coredev,
coredev           314 drivers/media/common/siano/sms-cards.c 		sms_set_gpio(coredev,
coredev           317 drivers/media/common/siano/sms-cards.c 		smscore_led_state(coredev, led);
coredev           324 drivers/media/common/siano/sms-cards.c int sms_board_lna_control(struct smscore_device_t *coredev, int onoff)
coredev           326 drivers/media/common/siano/sms-cards.c 	int board_id = smscore_get_board_id(coredev);
coredev           334 drivers/media/common/siano/sms-cards.c 		sms_set_gpio(coredev,
coredev           336 drivers/media/common/siano/sms-cards.c 		return sms_set_gpio(coredev,
coredev            90 drivers/media/common/siano/sms-cards.h extern struct smscore_device_t *coredev;
coredev           113 drivers/media/common/siano/sms-cards.h int sms_board_event(struct smscore_device_t *coredev,
coredev           116 drivers/media/common/siano/sms-cards.h int sms_board_setup(struct smscore_device_t *coredev);
coredev           121 drivers/media/common/siano/sms-cards.h int sms_board_led_feedback(struct smscore_device_t *coredev, int led);
coredev           122 drivers/media/common/siano/sms-cards.h int sms_board_power(struct smscore_device_t *coredev, int onoff);
coredev           123 drivers/media/common/siano/sms-cards.h int sms_board_lna_control(struct smscore_device_t *coredev, int onoff);
coredev            43 drivers/media/common/siano/smscoreapi.c 	struct smscore_device_t *coredev;
coredev           538 drivers/media/common/siano/smscoreapi.c 			struct smscore_device_t *coredev =
coredev           540 drivers/media/common/siano/smscoreapi.c 			rc = hotplug(coredev, coredev->device, 1);
coredev           586 drivers/media/common/siano/smscoreapi.c static void smscore_notify_clients(struct smscore_device_t *coredev)
coredev           591 drivers/media/common/siano/smscoreapi.c 	while (!list_empty(&coredev->clients)) {
coredev           592 drivers/media/common/siano/smscoreapi.c 		client = (struct smscore_client_t *) coredev->clients.next;
coredev           597 drivers/media/common/siano/smscoreapi.c static int smscore_notify_callbacks(struct smscore_device_t *coredev,
coredev           606 drivers/media/common/siano/smscoreapi.c 		rc = elem->hotplug(coredev, device, arrival);
coredev           643 drivers/media/common/siano/smscoreapi.c 			    struct smscore_device_t **coredev,
coredev           739 drivers/media/common/siano/smscoreapi.c 	*coredev = dev;
coredev           748 drivers/media/common/siano/smscoreapi.c static int smscore_sendrequest_and_wait(struct smscore_device_t *coredev,
coredev           756 drivers/media/common/siano/smscoreapi.c 	rc = coredev->sendrequest_handler(coredev->context, buffer, size);
coredev           772 drivers/media/common/siano/smscoreapi.c static int smscore_init_ir(struct smscore_device_t *coredev)
coredev           778 drivers/media/common/siano/smscoreapi.c 	coredev->ir.dev = NULL;
coredev           779 drivers/media/common/siano/smscoreapi.c 	ir_io = sms_get_board(smscore_get_board_id(coredev))->board_cfg.ir;
coredev           782 drivers/media/common/siano/smscoreapi.c 		rc = sms_ir_init(coredev);
coredev           789 drivers/media/common/siano/smscoreapi.c 						GFP_KERNEL | coredev->gfp_buf_flags);
coredev           798 drivers/media/common/siano/smscoreapi.c 				msg->msg_data[0] = coredev->ir.controller;
coredev           799 drivers/media/common/siano/smscoreapi.c 				msg->msg_data[1] = coredev->ir.timeout;
coredev           801 drivers/media/common/siano/smscoreapi.c 				rc = smscore_sendrequest_and_wait(coredev, msg,
coredev           803 drivers/media/common/siano/smscoreapi.c 						&coredev->ir_init_done);
coredev           823 drivers/media/common/siano/smscoreapi.c static int smscore_configure_board(struct smscore_device_t *coredev)
coredev           827 drivers/media/common/siano/smscoreapi.c 	board = sms_get_board(coredev->board_id);
coredev           844 drivers/media/common/siano/smscoreapi.c 		coredev->sendrequest_handler(coredev->context, &mtu_msg,
coredev           857 drivers/media/common/siano/smscoreapi.c 		coredev->sendrequest_handler(coredev->context, &crys_msg,
coredev           872 drivers/media/common/siano/smscoreapi.c int smscore_start_device(struct smscore_device_t *coredev)
coredev           875 drivers/media/common/siano/smscoreapi.c 	int board_id = smscore_get_board_id(coredev);
coredev           876 drivers/media/common/siano/smscoreapi.c 	int mode = smscore_registry_getmode(coredev->devpath);
coredev           882 drivers/media/common/siano/smscoreapi.c 	rc = smscore_set_device_mode(coredev, mode);
coredev           887 drivers/media/common/siano/smscoreapi.c 	rc = smscore_configure_board(coredev);
coredev           895 drivers/media/common/siano/smscoreapi.c 	rc = smscore_notify_callbacks(coredev, coredev->device, 1);
coredev           896 drivers/media/common/siano/smscoreapi.c 	smscore_init_ir(coredev);
coredev           898 drivers/media/common/siano/smscoreapi.c 	pr_debug("device %p started, rc %d\n", coredev, rc);
coredev           907 drivers/media/common/siano/smscoreapi.c static int smscore_load_firmware_family2(struct smscore_device_t *coredev,
coredev           923 drivers/media/common/siano/smscoreapi.c 	if (coredev->preload_handler) {
coredev           924 drivers/media/common/siano/smscoreapi.c 		rc = coredev->preload_handler(coredev->context);
coredev           930 drivers/media/common/siano/smscoreapi.c 	msg = kmalloc(PAGE_SIZE, GFP_KERNEL | coredev->gfp_buf_flags);
coredev           934 drivers/media/common/siano/smscoreapi.c 	if (coredev->mode != DEVICE_MODE_NONE) {
coredev           938 drivers/media/common/siano/smscoreapi.c 		rc = smscore_sendrequest_and_wait(coredev, msg,
coredev           940 drivers/media/common/siano/smscoreapi.c 						  &coredev->reload_start_done);
coredev           964 drivers/media/common/siano/smscoreapi.c 		rc = smscore_sendrequest_and_wait(coredev, data_msg,
coredev           966 drivers/media/common/siano/smscoreapi.c 				&coredev->data_download_done);
coredev           985 drivers/media/common/siano/smscoreapi.c 	rc = smscore_sendrequest_and_wait(coredev, msg,
coredev           987 drivers/media/common/siano/smscoreapi.c 					  &coredev->data_validity_done);
coredev           991 drivers/media/common/siano/smscoreapi.c 	if (coredev->mode == DEVICE_MODE_NONE) {
coredev          1008 drivers/media/common/siano/smscoreapi.c 		rc = smscore_sendrequest_and_wait(coredev, trigger_msg,
coredev          1010 drivers/media/common/siano/smscoreapi.c 					&coredev->trigger_done);
coredev          1014 drivers/media/common/siano/smscoreapi.c 		rc = coredev->sendrequest_handler(coredev->context, msg,
coredev          1030 drivers/media/common/siano/smscoreapi.c 	if (coredev->postload_handler) {
coredev          1032 drivers/media/common/siano/smscoreapi.c 			 rc, coredev->postload_handler);
coredev          1034 drivers/media/common/siano/smscoreapi.c 			return coredev->postload_handler(coredev->context);
coredev          1101 drivers/media/common/siano/smscoreapi.c static char *smscore_get_fw_filename(struct smscore_device_t *coredev,
coredev          1105 drivers/media/common/siano/smscoreapi.c 	int board_id = smscore_get_board_id(coredev);
coredev          1108 drivers/media/common/siano/smscoreapi.c 	type = smscore_registry_gettype(coredev->devpath);
coredev          1138 drivers/media/common/siano/smscoreapi.c static int smscore_load_firmware_from_file(struct smscore_device_t *coredev,
coredev          1147 drivers/media/common/siano/smscoreapi.c 	char *fw_filename = smscore_get_fw_filename(coredev, mode);
coredev          1155 drivers/media/common/siano/smscoreapi.c 	    !(coredev->device_flags & SMS_DEVICE_FAMILY2))
coredev          1158 drivers/media/common/siano/smscoreapi.c 	rc = request_firmware(&fw, fw_filename, coredev->device);
coredev          1165 drivers/media/common/siano/smscoreapi.c 			 SMS_ALLOC_ALIGNMENT), GFP_KERNEL | coredev->gfp_buf_flags);
coredev          1173 drivers/media/common/siano/smscoreapi.c 		rc = (coredev->device_flags & SMS_DEVICE_FAMILY2) ?
coredev          1174 drivers/media/common/siano/smscoreapi.c 			smscore_load_firmware_family2(coredev, fw_buf, fw_buf_size)
coredev          1175 drivers/media/common/siano/smscoreapi.c 			: loadfirmware_handler(coredev->context, fw_buf,
coredev          1194 drivers/media/common/siano/smscoreapi.c void smscore_unregister_device(struct smscore_device_t *coredev)
coredev          1203 drivers/media/common/siano/smscoreapi.c 	sms_ir_exit(coredev);
coredev          1205 drivers/media/common/siano/smscoreapi.c 	smscore_notify_clients(coredev);
coredev          1206 drivers/media/common/siano/smscoreapi.c 	smscore_notify_callbacks(coredev, NULL, 0);
coredev          1212 drivers/media/common/siano/smscoreapi.c 		while (!list_empty(&coredev->buffers)) {
coredev          1213 drivers/media/common/siano/smscoreapi.c 			cb = (struct smscore_buffer_t *) coredev->buffers.next;
coredev          1218 drivers/media/common/siano/smscoreapi.c 		if (num_buffers == coredev->num_buffers)
coredev          1226 drivers/media/common/siano/smscoreapi.c 			 coredev->num_buffers - num_buffers);
coredev          1234 drivers/media/common/siano/smscoreapi.c 	if (coredev->common_buffer) {
coredev          1235 drivers/media/common/siano/smscoreapi.c 		if (coredev->usb_device)
coredev          1236 drivers/media/common/siano/smscoreapi.c 			kfree(coredev->common_buffer);
coredev          1238 drivers/media/common/siano/smscoreapi.c 			dma_free_coherent(coredev->device,
coredev          1239 drivers/media/common/siano/smscoreapi.c 					  coredev->common_buffer_size,
coredev          1240 drivers/media/common/siano/smscoreapi.c 					  coredev->common_buffer,
coredev          1241 drivers/media/common/siano/smscoreapi.c 					  coredev->common_buffer_phys);
coredev          1243 drivers/media/common/siano/smscoreapi.c 	kfree(coredev->fw_buf);
coredev          1245 drivers/media/common/siano/smscoreapi.c 	list_del(&coredev->entry);
coredev          1246 drivers/media/common/siano/smscoreapi.c 	kfree(coredev);
coredev          1250 drivers/media/common/siano/smscoreapi.c 	pr_debug("device %p destroyed\n", coredev);
coredev          1254 drivers/media/common/siano/smscoreapi.c static int smscore_detect_mode(struct smscore_device_t *coredev)
coredev          1257 drivers/media/common/siano/smscoreapi.c 			       GFP_KERNEL | coredev->gfp_buf_flags);
coredev          1268 drivers/media/common/siano/smscoreapi.c 	rc = smscore_sendrequest_and_wait(coredev, msg, msg->msg_length,
coredev          1269 drivers/media/common/siano/smscoreapi.c 					  &coredev->version_ex_done);
coredev          1273 drivers/media/common/siano/smscoreapi.c 		if (wait_for_completion_timeout(&coredev->resume_done,
coredev          1276 drivers/media/common/siano/smscoreapi.c 				coredev, msg, msg->msg_length,
coredev          1277 drivers/media/common/siano/smscoreapi.c 				&coredev->version_ex_done);
coredev          1299 drivers/media/common/siano/smscoreapi.c static int smscore_init_device(struct smscore_device_t *coredev, int mode)
coredev          1306 drivers/media/common/siano/smscoreapi.c 			SMS_DMA_ALIGNMENT, GFP_KERNEL | coredev->gfp_buf_flags);
coredev          1315 drivers/media/common/siano/smscoreapi.c 	rc = smscore_sendrequest_and_wait(coredev, msg,
coredev          1317 drivers/media/common/siano/smscoreapi.c 			&coredev->init_device_done);
coredev          1333 drivers/media/common/siano/smscoreapi.c int smscore_set_device_mode(struct smscore_device_t *coredev, int mode)
coredev          1338 drivers/media/common/siano/smscoreapi.c 	if (coredev->device_flags & SMS_DEVICE_FAMILY2) {
coredev          1344 drivers/media/common/siano/smscoreapi.c 		smscore_registry_setmode(coredev->devpath, mode);
coredev          1346 drivers/media/common/siano/smscoreapi.c 		if (!(coredev->device_flags & SMS_DEVICE_NOT_READY)) {
coredev          1347 drivers/media/common/siano/smscoreapi.c 			rc = smscore_detect_mode(coredev);
coredev          1354 drivers/media/common/siano/smscoreapi.c 		if (coredev->mode == mode) {
coredev          1359 drivers/media/common/siano/smscoreapi.c 		if (!(coredev->modes_supported & (1 << mode))) {
coredev          1360 drivers/media/common/siano/smscoreapi.c 			rc = smscore_load_firmware_from_file(coredev,
coredev          1368 drivers/media/common/siano/smscoreapi.c 		if (coredev->fw_version >= 0x800) {
coredev          1369 drivers/media/common/siano/smscoreapi.c 			rc = smscore_init_device(coredev, mode);
coredev          1379 drivers/media/common/siano/smscoreapi.c 		smscore_registry_setmode(coredev->devpath, mode);
coredev          1381 drivers/media/common/siano/smscoreapi.c 		if (coredev->detectmode_handler)
coredev          1382 drivers/media/common/siano/smscoreapi.c 			coredev->detectmode_handler(coredev->context,
coredev          1383 drivers/media/common/siano/smscoreapi.c 						    &coredev->mode);
coredev          1385 drivers/media/common/siano/smscoreapi.c 		if (coredev->mode != mode && coredev->setmode_handler)
coredev          1386 drivers/media/common/siano/smscoreapi.c 			rc = coredev->setmode_handler(coredev->context, mode);
coredev          1391 drivers/media/common/siano/smscoreapi.c 		coredev->mode = mode;
coredev          1392 drivers/media/common/siano/smscoreapi.c 		coredev->device_flags &= ~SMS_DEVICE_NOT_READY;
coredev          1395 drivers/media/common/siano/smscoreapi.c 				 SMS_DMA_ALIGNMENT, GFP_KERNEL | coredev->gfp_buf_flags);
coredev          1404 drivers/media/common/siano/smscoreapi.c 				coredev, msg, msg->x_msg_header.msg_length,
coredev          1405 drivers/media/common/siano/smscoreapi.c 				&coredev->init_device_done);
coredev          1427 drivers/media/common/siano/smscoreapi.c int smscore_get_device_mode(struct smscore_device_t *coredev)
coredev          1429 drivers/media/common/siano/smscoreapi.c 	return coredev->mode;
coredev          1444 drivers/media/common/siano/smscoreapi.c smscore_client_t *smscore_find_client(struct smscore_device_t *coredev,
coredev          1453 drivers/media/common/siano/smscoreapi.c 	spin_lock_irqsave(&coredev->clientslock, flags);
coredev          1454 drivers/media/common/siano/smscoreapi.c 	first = &coredev->clients;
coredev          1466 drivers/media/common/siano/smscoreapi.c 	spin_unlock_irqrestore(&coredev->clientslock, flags);
coredev          1479 drivers/media/common/siano/smscoreapi.c void smscore_onresponse(struct smscore_device_t *coredev,
coredev          1505 drivers/media/common/siano/smscoreapi.c 		if (coredev->mode == DEVICE_MODE_DVBT_BDA)
coredev          1510 drivers/media/common/siano/smscoreapi.c 	client = smscore_find_client(coredev, phdr->msg_type, phdr->msg_dst_id);
coredev          1541 drivers/media/common/siano/smscoreapi.c 			coredev->mode = ver->firmware_id == 255 ?
coredev          1543 drivers/media/common/siano/smscoreapi.c 			coredev->modes_supported = ver->supported_protocols;
coredev          1544 drivers/media/common/siano/smscoreapi.c 			coredev->fw_version = ver->rom_ver_major << 8 |
coredev          1547 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->version_ex_done);
coredev          1551 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->init_device_done);
coredev          1554 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->reload_start_done);
coredev          1562 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->data_validity_done);
coredev          1566 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->data_download_done);
coredev          1571 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->trigger_done);
coredev          1574 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->resume_done);
coredev          1577 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->gpio_configuration_done);
coredev          1580 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->gpio_set_level_done);
coredev          1585 drivers/media/common/siano/smscoreapi.c 			coredev->gpio_get_res = msgdata[1];
coredev          1587 drivers/media/common/siano/smscoreapi.c 					coredev->gpio_get_res);
coredev          1588 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->gpio_get_level_done);
coredev          1592 drivers/media/common/siano/smscoreapi.c 			complete(&coredev->ir_init_done);
coredev          1595 drivers/media/common/siano/smscoreapi.c 			sms_ir_event(coredev,
coredev          1618 drivers/media/common/siano/smscoreapi.c 		smscore_putbuffer(coredev, cb);
coredev          1632 drivers/media/common/siano/smscoreapi.c static struct smscore_buffer_t *get_entry(struct smscore_device_t *coredev)
coredev          1637 drivers/media/common/siano/smscoreapi.c 	spin_lock_irqsave(&coredev->bufferslock, flags);
coredev          1638 drivers/media/common/siano/smscoreapi.c 	if (!list_empty(&coredev->buffers)) {
coredev          1639 drivers/media/common/siano/smscoreapi.c 		cb = (struct smscore_buffer_t *) coredev->buffers.next;
coredev          1642 drivers/media/common/siano/smscoreapi.c 	spin_unlock_irqrestore(&coredev->bufferslock, flags);
coredev          1646 drivers/media/common/siano/smscoreapi.c struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev)
coredev          1650 drivers/media/common/siano/smscoreapi.c 	wait_event(coredev->buffer_mng_waitq, (cb = get_entry(coredev)));
coredev          1664 drivers/media/common/siano/smscoreapi.c void smscore_putbuffer(struct smscore_device_t *coredev,
coredev          1666 drivers/media/common/siano/smscoreapi.c 	wake_up_interruptible(&coredev->buffer_mng_waitq);
coredev          1667 drivers/media/common/siano/smscoreapi.c 	list_add_locked(&cb->entry, &coredev->buffers, &coredev->bufferslock);
coredev          1671 drivers/media/common/siano/smscoreapi.c static int smscore_validate_client(struct smscore_device_t *coredev,
coredev          1682 drivers/media/common/siano/smscoreapi.c 	registered_client = smscore_find_client(coredev, data_type, id);
coredev          1697 drivers/media/common/siano/smscoreapi.c 			&coredev->clientslock);
coredev          1715 drivers/media/common/siano/smscoreapi.c int smscore_register_client(struct smscore_device_t *coredev,
coredev          1721 drivers/media/common/siano/smscoreapi.c 	if (smscore_find_client(coredev, params->data_type,
coredev          1732 drivers/media/common/siano/smscoreapi.c 	newclient->coredev = coredev;
coredev          1736 drivers/media/common/siano/smscoreapi.c 	list_add_locked(&newclient->entry, &coredev->clients,
coredev          1737 drivers/media/common/siano/smscoreapi.c 			&coredev->clientslock);
coredev          1738 drivers/media/common/siano/smscoreapi.c 	smscore_validate_client(coredev, newclient, params->data_type,
coredev          1757 drivers/media/common/siano/smscoreapi.c 	struct smscore_device_t *coredev = client->coredev;
coredev          1760 drivers/media/common/siano/smscoreapi.c 	spin_lock_irqsave(&coredev->clientslock, flags);
coredev          1775 drivers/media/common/siano/smscoreapi.c 	spin_unlock_irqrestore(&coredev->clientslock, flags);
coredev          1793 drivers/media/common/siano/smscoreapi.c 	struct smscore_device_t *coredev;
coredev          1802 drivers/media/common/siano/smscoreapi.c 	coredev = client->coredev;
coredev          1805 drivers/media/common/siano/smscoreapi.c 	if (!coredev) {
coredev          1810 drivers/media/common/siano/smscoreapi.c 	rc = smscore_validate_client(client->coredev, client, 0,
coredev          1815 drivers/media/common/siano/smscoreapi.c 	return coredev->sendrequest_handler(coredev->context, buffer, size);
coredev          1821 drivers/media/common/siano/smscoreapi.c int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin,
coredev          1829 drivers/media/common/siano/smscoreapi.c 	if (coredev->device_flags & SMS_DEVICE_FAMILY2) {
coredev          1863 drivers/media/common/siano/smscoreapi.c 	return coredev->sendrequest_handler(coredev->context,
coredev          1867 drivers/media/common/siano/smscoreapi.c int smscore_set_gpio(struct smscore_device_t *coredev, u32 pin, int level)
coredev          1887 drivers/media/common/siano/smscoreapi.c 	return coredev->sendrequest_handler(coredev->context,
coredev          1942 drivers/media/common/siano/smscoreapi.c int smscore_gpio_configure(struct smscore_device_t *coredev, u8 pin_num,
coredev          1968 drivers/media/common/siano/smscoreapi.c 			GFP_KERNEL | coredev->gfp_buf_flags);
coredev          1980 drivers/media/common/siano/smscoreapi.c 	if (!(coredev->device_flags & SMS_DEVICE_FAMILY2)) {
coredev          2006 drivers/media/common/siano/smscoreapi.c 	rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len,
coredev          2007 drivers/media/common/siano/smscoreapi.c 			&coredev->gpio_configuration_done);
coredev          2021 drivers/media/common/siano/smscoreapi.c int smscore_gpio_set_level(struct smscore_device_t *coredev, u8 pin_num,
coredev          2040 drivers/media/common/siano/smscoreapi.c 			GFP_KERNEL | coredev->gfp_buf_flags);
coredev          2055 drivers/media/common/siano/smscoreapi.c 	rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len,
coredev          2056 drivers/media/common/siano/smscoreapi.c 			&coredev->gpio_set_level_done);
coredev          2069 drivers/media/common/siano/smscoreapi.c int smscore_gpio_get_level(struct smscore_device_t *coredev, u8 pin_num,
coredev          2088 drivers/media/common/siano/smscoreapi.c 			GFP_KERNEL | coredev->gfp_buf_flags);
coredev          2103 drivers/media/common/siano/smscoreapi.c 	rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len,
coredev          2104 drivers/media/common/siano/smscoreapi.c 			&coredev->gpio_get_level_done);
coredev          2117 drivers/media/common/siano/smscoreapi.c 	*level = coredev->gpio_get_res;
coredev            99 drivers/media/common/siano/smscoreapi.h typedef int (*hotplug_t)(struct smscore_device_t *coredev,
coredev          1118 drivers/media/common/siano/smscoreapi.h 				   struct smscore_device_t **coredev,
coredev          1121 drivers/media/common/siano/smscoreapi.h extern void smscore_unregister_device(struct smscore_device_t *coredev);
coredev          1123 drivers/media/common/siano/smscoreapi.h extern int smscore_start_device(struct smscore_device_t *coredev);
coredev          1124 drivers/media/common/siano/smscoreapi.h extern int smscore_load_firmware(struct smscore_device_t *coredev,
coredev          1128 drivers/media/common/siano/smscoreapi.h extern int smscore_set_device_mode(struct smscore_device_t *coredev, int mode);
coredev          1129 drivers/media/common/siano/smscoreapi.h extern int smscore_get_device_mode(struct smscore_device_t *coredev);
coredev          1131 drivers/media/common/siano/smscoreapi.h extern int smscore_register_client(struct smscore_device_t *coredev,
coredev          1138 drivers/media/common/siano/smscoreapi.h extern void smscore_onresponse(struct smscore_device_t *coredev,
coredev          1141 drivers/media/common/siano/smscoreapi.h extern int smscore_get_common_buffer_size(struct smscore_device_t *coredev);
coredev          1142 drivers/media/common/siano/smscoreapi.h extern int smscore_map_common_buffer(struct smscore_device_t *coredev,
coredev          1144 drivers/media/common/siano/smscoreapi.h extern int smscore_send_fw_file(struct smscore_device_t *coredev,
coredev          1148 drivers/media/common/siano/smscoreapi.h struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev);
coredev          1149 drivers/media/common/siano/smscoreapi.h extern void smscore_putbuffer(struct smscore_device_t *coredev,
coredev          1153 drivers/media/common/siano/smscoreapi.h int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin,
coredev          1155 drivers/media/common/siano/smscoreapi.h int smscore_set_gpio(struct smscore_device_t *coredev, u32 pin, int level);
coredev          1158 drivers/media/common/siano/smscoreapi.h extern int smscore_gpio_configure(struct smscore_device_t *coredev, u8 pin_num,
coredev          1160 drivers/media/common/siano/smscoreapi.h extern int smscore_gpio_set_level(struct smscore_device_t *coredev, u8 pin_num,
coredev          1162 drivers/media/common/siano/smscoreapi.h extern int smscore_gpio_get_level(struct smscore_device_t *coredev, u8 pin_num,
coredev           449 drivers/media/common/siano/smsdvb-debugfs.c 	struct smscore_device_t *coredev = client->coredev;
coredev           453 drivers/media/common/siano/smsdvb-debugfs.c 	if (!smsdvb_debugfs_usb_root || !coredev->is_usb_device)
coredev           456 drivers/media/common/siano/smsdvb-debugfs.c 	client->debugfs = debugfs_create_dir(coredev->devpath,
coredev           460 drivers/media/common/siano/smsdvb-debugfs.c 			coredev->devpath);
coredev            67 drivers/media/common/siano/smsdvb-main.c 	struct smscore_device_t *coredev = client->coredev;
coredev            71 drivers/media/common/siano/smsdvb-main.c 		sms_board_event(coredev, BOARD_EVENT_BIND);
coredev            75 drivers/media/common/siano/smsdvb-main.c 		sms_board_event(coredev, BOARD_EVENT_POWER_SUSPEND);
coredev            79 drivers/media/common/siano/smsdvb-main.c 		sms_board_event(coredev, BOARD_EVENT_POWER_INIT);
coredev            85 drivers/media/common/siano/smsdvb-main.c 			sms_board_event(coredev, BOARD_EVENT_FE_LOCK);
coredev            92 drivers/media/common/siano/smsdvb-main.c 			sms_board_event(coredev, BOARD_EVENT_FE_UNLOCK);
coredev            99 drivers/media/common/siano/smsdvb-main.c 			sms_board_event(coredev, BOARD_EVENT_MULTIPLEX_OK);
coredev           106 drivers/media/common/siano/smsdvb-main.c 			sms_board_event(coredev, BOARD_EVENT_MULTIPLEX_ERRORS);
coredev           120 drivers/media/common/siano/smsdvb-main.c 	struct smscore_device_t *coredev = client->coredev;
coredev           124 drivers/media/common/siano/smsdvb-main.c 	switch (smscore_get_device_mode(coredev)) {
coredev           558 drivers/media/common/siano/smsdvb-main.c 		switch (smscore_get_device_mode(client->coredev)) {
coredev           580 drivers/media/common/siano/smsdvb-main.c 	smscore_putbuffer(client->coredev, cb);
coredev           604 drivers/media/common/siano/smsdvb-main.c 	struct smscore_device_t *coredev = client->coredev;
coredev           606 drivers/media/common/siano/smsdvb-main.c 	if (!coredev->media_dev)
coredev           608 drivers/media/common/siano/smsdvb-main.c 	media_device_unregister(coredev->media_dev);
coredev           609 drivers/media/common/siano/smsdvb-main.c 	media_device_cleanup(coredev->media_dev);
coredev           610 drivers/media/common/siano/smsdvb-main.c 	kfree(coredev->media_dev);
coredev           611 drivers/media/common/siano/smsdvb-main.c 	coredev->media_dev = NULL;
coredev           715 drivers/media/common/siano/smsdvb-main.c 	switch (smscore_get_device_mode(client->coredev)) {
coredev           721 drivers/media/common/siano/smsdvb-main.c 		if (client->coredev->fw_version >= 0x800)
coredev           739 drivers/media/common/siano/smsdvb-main.c 		return sms_board_led_feedback(client->coredev, SMS_LED_OFF);
coredev           741 drivers/media/common/siano/smsdvb-main.c 	return sms_board_led_feedback(client->coredev,
coredev           891 drivers/media/common/siano/smsdvb-main.c 	ret = sms_board_lna_control(client->coredev, 0);
coredev           905 drivers/media/common/siano/smsdvb-main.c 		sms_board_lna_control(client->coredev, 1);
coredev           917 drivers/media/common/siano/smsdvb-main.c 	int board_id = smscore_get_board_id(client->coredev);
coredev           962 drivers/media/common/siano/smsdvb-main.c 	ret = sms_board_lna_control(client->coredev, 0);
coredev           976 drivers/media/common/siano/smsdvb-main.c 		sms_board_lna_control(client->coredev, 1);
coredev           987 drivers/media/common/siano/smsdvb-main.c 	struct smscore_device_t *coredev = client->coredev;
coredev           995 drivers/media/common/siano/smsdvb-main.c 	switch (smscore_get_device_mode(coredev)) {
coredev          1012 drivers/media/common/siano/smsdvb-main.c 	sms_board_power(client->coredev, 1);
coredev          1023 drivers/media/common/siano/smsdvb-main.c 	sms_board_led_feedback(client->coredev, SMS_LED_OFF);
coredev          1024 drivers/media/common/siano/smsdvb-main.c 	sms_board_power(client->coredev, 0);
coredev          1067 drivers/media/common/siano/smsdvb-main.c static int smsdvb_hotplug(struct smscore_device_t *coredev,
coredev          1084 drivers/media/common/siano/smsdvb-main.c 					smscore_get_board_id(coredev))->name,
coredev          1090 drivers/media/common/siano/smsdvb-main.c 	dvb_register_media_controller(&client->adapter, coredev->media_dev);
coredev          1120 drivers/media/common/siano/smsdvb-main.c 	switch (smscore_get_device_mode(coredev)) {
coredev          1143 drivers/media/common/siano/smsdvb-main.c 	rc = smscore_register_client(coredev, &params, &client->smsclient);
coredev          1149 drivers/media/common/siano/smsdvb-main.c 	client->coredev = coredev;
coredev          1164 drivers/media/common/siano/smsdvb-main.c 	sms_board_setup(coredev);
coredev            23 drivers/media/common/siano/smsdvb.h 	struct smscore_device_t *coredev;
coredev            23 drivers/media/common/siano/smsir.c void sms_ir_event(struct smscore_device_t *coredev, const char *buf, int len)
coredev            34 drivers/media/common/siano/smsir.c 		ir_raw_event_store(coredev->ir.dev, &ev);
coredev            36 drivers/media/common/siano/smsir.c 	ir_raw_event_handle(coredev->ir.dev);
coredev            39 drivers/media/common/siano/smsir.c int sms_ir_init(struct smscore_device_t *coredev)
coredev            42 drivers/media/common/siano/smsir.c 	int board_id = smscore_get_board_id(coredev);
coredev            50 drivers/media/common/siano/smsir.c 	coredev->ir.controller = 0;	/* Todo: vega/nova SPI number */
coredev            51 drivers/media/common/siano/smsir.c 	coredev->ir.timeout = IR_DEFAULT_TIMEOUT;
coredev            53 drivers/media/common/siano/smsir.c 			coredev->ir.controller, coredev->ir.timeout);
coredev            55 drivers/media/common/siano/smsir.c 	snprintf(coredev->ir.name, sizeof(coredev->ir.name),
coredev            58 drivers/media/common/siano/smsir.c 	strscpy(coredev->ir.phys, coredev->devpath, sizeof(coredev->ir.phys));
coredev            59 drivers/media/common/siano/smsir.c 	strlcat(coredev->ir.phys, "/ir0", sizeof(coredev->ir.phys));
coredev            61 drivers/media/common/siano/smsir.c 	dev->device_name = coredev->ir.name;
coredev            62 drivers/media/common/siano/smsir.c 	dev->input_phys = coredev->ir.phys;
coredev            63 drivers/media/common/siano/smsir.c 	dev->dev.parent = coredev->device;
coredev            73 drivers/media/common/siano/smsir.c 	dev->priv = coredev;
coredev            88 drivers/media/common/siano/smsir.c 	coredev->ir.dev = dev;
coredev            92 drivers/media/common/siano/smsir.c void sms_ir_exit(struct smscore_device_t *coredev)
coredev            94 drivers/media/common/siano/smsir.c 	rc_unregister_device(coredev->ir.dev);
coredev            34 drivers/media/common/siano/smsir.h int sms_ir_init(struct smscore_device_t *coredev);
coredev            35 drivers/media/common/siano/smsir.h void sms_ir_exit(struct smscore_device_t *coredev);
coredev            36 drivers/media/common/siano/smsir.h void sms_ir_event(struct smscore_device_t *coredev,
coredev            39 drivers/media/common/siano/smsir.h inline static int sms_ir_init(struct smscore_device_t *coredev) {
coredev            42 drivers/media/common/siano/smsir.h inline static void sms_ir_exit(struct smscore_device_t *coredev) {};
coredev            43 drivers/media/common/siano/smsir.h inline static void sms_ir_event(struct smscore_device_t *coredev,
coredev            79 drivers/media/mmc/siano/smssdio.c 	struct smscore_device_t *coredev;
coredev           145 drivers/media/mmc/siano/smssdio.c 		cb = smscore_getbuffer(smsdev->coredev);
coredev           196 drivers/media/mmc/siano/smssdio.c 			smscore_putbuffer(smsdev->coredev, cb);
coredev           214 drivers/media/mmc/siano/smssdio.c 					smscore_putbuffer(smsdev->coredev, cb);
coredev           233 drivers/media/mmc/siano/smssdio.c 	smscore_onresponse(smsdev->coredev, cb);
coredev           277 drivers/media/mmc/siano/smssdio.c 	ret = smscore_register_device(&params, &smsdev->coredev, GFP_DMA, NULL);
coredev           281 drivers/media/mmc/siano/smssdio.c 	smscore_set_board_id(smsdev->coredev, board_id);
coredev           301 drivers/media/mmc/siano/smssdio.c 	ret = smscore_start_device(smsdev->coredev);
coredev           314 drivers/media/mmc/siano/smssdio.c 	smscore_unregister_device(smsdev->coredev);
coredev           329 drivers/media/mmc/siano/smssdio.c 		smscore_putbuffer(smsdev->coredev, smsdev->split_cb);
coredev           331 drivers/media/mmc/siano/smssdio.c 	smscore_unregister_device(smsdev->coredev);
coredev            51 drivers/media/usb/siano/smsusb.c 	struct smscore_device_t *coredev;
coredev           134 drivers/media/usb/siano/smsusb.c 			smscore_onresponse(dev->coredev, surb->cb);
coredev           155 drivers/media/usb/siano/smsusb.c 		surb->cb = smscore_getbuffer(dev->coredev);
coredev           184 drivers/media/usb/siano/smsusb.c 			smscore_putbuffer(dev->coredev, dev->surbs[i].cb);
coredev           346 drivers/media/usb/siano/smsusb.c 		if (dev->coredev)
coredev           347 drivers/media/usb/siano/smsusb.c 			smscore_unregister_device(dev->coredev);
coredev           453 drivers/media/usb/siano/smsusb.c 	rc = smscore_register_device(&params, &dev->coredev, 0, mdev);
coredev           464 drivers/media/usb/siano/smsusb.c 	smscore_set_board_id(dev->coredev, board_id);
coredev           466 drivers/media/usb/siano/smsusb.c 	dev->coredev->is_usb_device = true;
coredev           484 drivers/media/usb/siano/smsusb.c 	rc = smscore_start_device(dev->coredev);
coredev          2612 include/rdma/ib_verbs.h 		struct ib_core_device	coredev;
coredev          4645 include/rdma/ib_verbs.h 	struct ib_core_device *coredev =
coredev          4648 include/rdma/ib_verbs.h 	return coredev->owner;