Lines Matching refs:list

33 /* Bitmask and list of registered buses both protected by common mutex */
50 /* Get list to search */
54 list)->parent;
57 list)->parent;
60 list)->parent;
63 list)->parent;
266 list_for_each_entry(slave_image, &bridge->slave_resources, list) {
295 resource->entry = &allocated_image->list;
340 image = list_entry(resource->entry, struct vme_slave_resource, list);
389 image = list_entry(resource->entry, struct vme_slave_resource, list);
418 list);
464 list_for_each_entry(master_image, &bridge->master_resources, list) {
496 resource->entry = &allocated_image->list;
541 image = list_entry(resource->entry, struct vme_master_resource, list);
591 image = list_entry(resource->entry, struct vme_master_resource, list);
636 image = list_entry(resource->entry, struct vme_master_resource, list);
684 image = list_entry(resource->entry, struct vme_master_resource, list);
735 image = list_entry(resource->entry, struct vme_master_resource, list);
764 image = list_entry(resource->entry, struct vme_master_resource, list);
796 list);
842 list_for_each_entry(dma_ctrlr, &bridge->dma_resources, list) {
870 resource->entry = &allocated_ctrlr->list;
886 * vme_new_dma_list - Create new VME DMA list.
889 * Create a new VME DMA list. It is the responsibility of the user to free
890 * the list once it is no longer required with vme_dma_list_free().
892 * Return: Pointer to new VME DMA list, NULL on allocation failure or invalid
912 list);
920 * vme_dma_pattern_attribute - Create "Pattern" type VME DMA list attribute.
924 * Create VME DMA list attribute for pattern generation. It is the
959 * vme_dma_pci_attribute - Create "PCI" type VME DMA list attribute.
962 * Create VME DMA list attribute pointing to a location on PCI for DMA
998 * vme_dma_vme_attribute - Create "VME" type VME DMA list attribute.
1004 * Create VME DMA list attribute pointing to a location on the VME bus for DMA
1042 * vme_dma_free_attribute - Free DMA list attribute.
1043 * @attributes: Pointer to DMA list attribute.
1045 * Free VME DMA list attribute. VME DMA list attributes can be safely freed
1056 * vme_dma_list_add - Add enty to a VME DMA list.
1057 * @list: Pointer to VME list.
1058 * @src: Pointer to DMA list attribute to use as source.
1059 * @dest: Pointer to DMA list attribute to use as destination.
1062 * Add an entry to the provided VME DMA list. Entry requires pointers to source
1069 * device or if the link list has already been submitted for execution.
1072 int vme_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
1075 struct vme_bridge *bridge = list->parent->parent;
1084 if (!mutex_trylock(&list->mtx)) {
1089 retval = bridge->dma_list_add(list, src, dest, count);
1091 mutex_unlock(&list->mtx);
1098 * vme_dma_list_exec - Queue a VME DMA list for execution.
1099 * @list: Pointer to VME list.
1101 * Queue the provided VME DMA list for execution. The call will return once the
1102 * list has been executed.
1107 int vme_dma_list_exec(struct vme_dma_list *list)
1109 struct vme_bridge *bridge = list->parent->parent;
1118 mutex_lock(&list->mtx);
1120 retval = bridge->dma_list_exec(list);
1122 mutex_unlock(&list->mtx);
1129 * vme_dma_list_free - Free a VME DMA list.
1130 * @list: Pointer to VME list.
1132 * Free the provided DMA list and all its entries.
1137 int vme_dma_list_free(struct vme_dma_list *list)
1139 struct vme_bridge *bridge = list->parent->parent;
1148 if (!mutex_trylock(&list->mtx)) {
1154 * Empty out all of the entries from the DMA list. We need to go to the
1157 retval = bridge->dma_list_empty(list);
1159 dev_err(bridge->parent, "Unable to empty link-list entries\n");
1160 mutex_unlock(&list->mtx);
1163 mutex_unlock(&list->mtx);
1164 kfree(list);
1189 ctrlr = list_entry(resource->entry, struct vme_dma_resource, list);
1220 list_for_each_entry(handler, &bridge->vme_error_handlers, list) {
1253 list_add_tail(&handler->list, &bridge->vme_error_handlers);
1261 list_del(&handler->list);
1447 list_for_each_entry(lm, &bridge->lm_resources, list) {
1474 resource->entry = &allocated_lm->list;
1510 lm = list_entry(resource->entry, struct vme_lm_resource, list);
1541 lm = list_entry(resource->entry, struct vme_lm_resource, list);
1577 lm = list_entry(resource->entry, struct vme_lm_resource, list);
1614 lm = list_entry(resource->entry, struct vme_lm_resource, list);
1647 lm = list_entry(resource->entry, struct vme_lm_resource, list);
1680 lm = list_entry(resource->entry, struct vme_lm_resource, list);