internal_desc 147 drivers/staging/gasket/gasket_core.c static int gasket_find_dev_slot(struct gasket_internal_desc *internal_desc, internal_desc 152 drivers/staging/gasket/gasket_core.c mutex_lock(&internal_desc->mutex); internal_desc 156 drivers/staging/gasket/gasket_core.c if (internal_desc->devs[i] && internal_desc 157 drivers/staging/gasket/gasket_core.c strcmp(internal_desc->devs[i]->kobj_name, kobj_name) == 0) { internal_desc 159 drivers/staging/gasket/gasket_core.c mutex_unlock(&internal_desc->mutex); internal_desc 166 drivers/staging/gasket/gasket_core.c if (!internal_desc->devs[i]) internal_desc 172 drivers/staging/gasket/gasket_core.c mutex_unlock(&internal_desc->mutex); internal_desc 176 drivers/staging/gasket/gasket_core.c mutex_unlock(&internal_desc->mutex); internal_desc 186 drivers/staging/gasket/gasket_core.c static int gasket_alloc_dev(struct gasket_internal_desc *internal_desc, internal_desc 191 drivers/staging/gasket/gasket_core.c internal_desc->driver_desc; internal_desc 200 drivers/staging/gasket/gasket_core.c dev_idx = gasket_find_dev_slot(internal_desc, parent_name); internal_desc 209 drivers/staging/gasket/gasket_core.c internal_desc->devs[dev_idx] = gasket_dev; internal_desc 213 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc = internal_desc; internal_desc 230 drivers/staging/gasket/gasket_core.c device_create(internal_desc->class, parent, dev_info->devt, internal_desc 243 drivers/staging/gasket/gasket_core.c struct gasket_internal_desc *internal_desc = gasket_dev->internal_desc; internal_desc 245 drivers/staging/gasket/gasket_core.c mutex_lock(&internal_desc->mutex); internal_desc 246 drivers/staging/gasket/gasket_core.c internal_desc->devs[gasket_dev->dev_idx] = NULL; internal_desc 247 drivers/staging/gasket/gasket_core.c mutex_unlock(&internal_desc->mutex); internal_desc 260 drivers/staging/gasket/gasket_core.c struct gasket_internal_desc *internal_desc = gasket_dev->internal_desc; internal_desc 262 drivers/staging/gasket/gasket_core.c internal_desc->driver_desc; internal_desc 336 drivers/staging/gasket/gasket_core.c struct gasket_internal_desc *internal_desc = dev->internal_desc; internal_desc 338 drivers/staging/gasket/gasket_core.c internal_desc->driver_desc; internal_desc 406 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc->driver_desc; internal_desc 490 drivers/staging/gasket/gasket_core.c driver_desc = gasket_dev->internal_desc->driver_desc; internal_desc 521 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc->driver_desc->driver_version); internal_desc 529 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc->driver_desc->name); internal_desc 628 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc->driver_desc; internal_desc 738 drivers/staging/gasket/gasket_core.c driver_desc = gasket_dev->internal_desc->driver_desc; internal_desc 842 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc->driver_desc; internal_desc 905 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc->driver_desc; internal_desc 973 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc->driver_desc; internal_desc 1028 drivers/staging/gasket/gasket_core.c driver_desc = gasket_dev->internal_desc->driver_desc; internal_desc 1180 drivers/staging/gasket/gasket_core.c driver_desc = gasket_dev->internal_desc->driver_desc; internal_desc 1259 drivers/staging/gasket/gasket_core.c driver_desc = gasket_dev->internal_desc->driver_desc; internal_desc 1315 drivers/staging/gasket/gasket_core.c driver_desc = gasket_dev->internal_desc->driver_desc; internal_desc 1355 drivers/staging/gasket/gasket_core.c gasket_dev->internal_desc->driver_desc; internal_desc 1414 drivers/staging/gasket/gasket_core.c struct gasket_internal_desc *internal_desc, internal_desc 1420 drivers/staging/gasket/gasket_core.c internal_desc->driver_desc; internal_desc 1422 drivers/staging/gasket/gasket_core.c ret = gasket_alloc_dev(internal_desc, parent_dev, &gasket_dev); internal_desc 1449 drivers/staging/gasket/gasket_core.c device_destroy(internal_desc->class, gasket_dev->dev_info.devt); internal_desc 1455 drivers/staging/gasket/gasket_core.c static void __gasket_remove_device(struct gasket_internal_desc *internal_desc, internal_desc 1459 drivers/staging/gasket/gasket_core.c device_destroy(internal_desc->class, gasket_dev->dev_info.devt); internal_desc 1475 drivers/staging/gasket/gasket_core.c struct gasket_internal_desc *internal_desc; internal_desc 1482 drivers/staging/gasket/gasket_core.c internal_desc = lookup_pci_internal_desc(pci_dev); internal_desc 1484 drivers/staging/gasket/gasket_core.c if (!internal_desc) { internal_desc 1491 drivers/staging/gasket/gasket_core.c ret = __gasket_add_device(parent, internal_desc, &gasket_dev); internal_desc 1517 drivers/staging/gasket/gasket_core.c __gasket_remove_device(internal_desc, gasket_dev); internal_desc 1526 drivers/staging/gasket/gasket_core.c struct gasket_internal_desc *internal_desc; internal_desc 1530 drivers/staging/gasket/gasket_core.c internal_desc = lookup_pci_internal_desc(pci_dev); internal_desc 1531 drivers/staging/gasket/gasket_core.c if (!internal_desc) { internal_desc 1538 drivers/staging/gasket/gasket_core.c mutex_lock(&internal_desc->mutex); internal_desc 1540 drivers/staging/gasket/gasket_core.c if (internal_desc->devs[i] && internal_desc 1541 drivers/staging/gasket/gasket_core.c internal_desc->devs[i]->pci_dev == pci_dev) { internal_desc 1542 drivers/staging/gasket/gasket_core.c gasket_dev = internal_desc->devs[i]; internal_desc 1546 drivers/staging/gasket/gasket_core.c mutex_unlock(&internal_desc->mutex); internal_desc 1552 drivers/staging/gasket/gasket_core.c internal_desc->driver_desc->name); internal_desc 1555 drivers/staging/gasket/gasket_core.c __gasket_remove_device(internal_desc, gasket_dev); internal_desc 1602 drivers/staging/gasket/gasket_core.c driver_desc = gasket_dev->internal_desc->driver_desc; internal_desc 1638 drivers/staging/gasket/gasket_core.c return gasket_dev->internal_desc->driver_desc->ioctl_permissions_cb; internal_desc 1647 drivers/staging/gasket/gasket_core.c return dev->internal_desc->driver_desc; internal_desc 1767 drivers/staging/gasket/gasket_core.c struct gasket_internal_desc *internal_desc = NULL; internal_desc 1772 drivers/staging/gasket/gasket_core.c internal_desc = &g_descs[i]; internal_desc 1778 drivers/staging/gasket/gasket_core.c if (!internal_desc) { internal_desc 1789 drivers/staging/gasket/gasket_core.c class_destroy(internal_desc->class); internal_desc 256 drivers/staging/gasket/gasket_core.h struct gasket_internal_desc *internal_desc;