/linux/tools/perf/util/ |
A D | strlist.c | 130 if (slist->file_only) { in strlist__parse_list_entry() 136 err = strlist__add(slist, s); in strlist__parse_list_entry() 161 struct strlist *slist = malloc(sizeof(*slist)); in strlist__new() local 163 if (slist != NULL) { in strlist__new() 174 rblist__init(&slist->rblist); in strlist__new() 179 slist->dupstr = dupstr; in strlist__new() 180 slist->file_only = file_only; in strlist__new() 186 return slist; in strlist__new() 188 free(slist); in strlist__new() 194 if (slist != NULL) in strlist__delete() [all …]
|
A D | strlist.h | 33 void strlist__delete(struct strlist *slist); 35 void strlist__remove(struct strlist *slist, struct str_node *sn); 36 int strlist__load(struct strlist *slist, const char *filename); 37 int strlist__add(struct strlist *slist, const char *str); 44 return strlist__find(slist, entry) != NULL; in strlist__has_entry() 47 static inline bool strlist__empty(const struct strlist *slist) in strlist__empty() argument 49 return rblist__empty(&slist->rblist); in strlist__empty() 54 return rblist__nr_entries(&slist->rblist); in strlist__nr_entries() 60 struct rb_node *rn = rb_first_cached(&slist->rblist.entries); in strlist__first() 77 #define strlist__for_each_entry(pos, slist) \ argument [all …]
|
A D | thread_map.c | 192 struct strlist *slist = strlist__new(pid_str, &slist_config); in thread_map__new_by_pid_str() local 194 if (!slist) in thread_map__new_by_pid_str() 197 strlist__for_each_entry(pos, slist) { in thread_map__new_by_pid_str() 228 strlist__delete(slist); in thread_map__new_by_pid_str() 251 struct strlist *slist; in thread_map__new_by_tid_str() local 257 slist = strlist__new(tid_str, &slist_config); in thread_map__new_by_tid_str() 258 if (!slist) in thread_map__new_by_tid_str() 261 strlist__for_each_entry(pos, slist) { in thread_map__new_by_tid_str() 288 strlist__delete(slist); in thread_map__new_by_tid_str()
|
A D | intlist.c | 114 struct intlist *intlist__new(const char *slist) in intlist__new() argument 124 if (slist && intlist__parse_list(ilist, slist)) in intlist__new()
|
A D | intlist.h | 20 struct intlist *intlist__new(const char *slist);
|
/linux/fs/afs/ |
A D | server_list.c | 16 if (slist && refcount_dec_and_test(&slist->usage)) { in afs_put_serverlist() 20 kfree(slist); in afs_put_serverlist() 32 struct afs_server_list *slist; in afs_alloc_server_list() local 40 slist = kzalloc(struct_size(slist, servers, nr_servers), GFP_KERNEL); in afs_alloc_server_list() 41 if (!slist) in afs_alloc_server_list() 45 rwlock_init(&slist->lock); in afs_alloc_server_list() 71 if (j < slist->nr_servers) { in afs_alloc_server_list() 79 slist->servers + j, in afs_alloc_server_list() 84 slist->nr_servers++; in afs_alloc_server_list() 87 if (slist->nr_servers == 0) { in afs_alloc_server_list() [all …]
|
A D | fs_probe.c | 242 _enter("%u,%lx", slist->nr_servers, untried); in afs_wait_for_fs_probes() 245 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes() 247 server = slist->servers[i].server; in afs_wait_for_fs_probes() 257 waits = kmalloc(array_size(slist->nr_servers, sizeof(*waits)), GFP_KERNEL); in afs_wait_for_fs_probes() 261 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes() 263 server = slist->servers[i].server; in afs_wait_for_fs_probes() 273 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes() 275 server = slist->servers[i].server; in afs_wait_for_fs_probes() 291 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes() 293 server = slist->servers[i].server; in afs_wait_for_fs_probes() [all …]
|
A D | volume.c | 72 struct afs_server_list *slist; in afs_alloc_volume() local 97 slist = afs_alloc_server_list(params->cell, params->key, vldb, type_mask); in afs_alloc_volume() 98 if (IS_ERR(slist)) { in afs_alloc_volume() 99 ret = PTR_ERR(slist); in afs_alloc_volume() 103 refcount_set(&slist->usage, 1); in afs_alloc_volume() 104 rcu_assign_pointer(volume->servers, slist); in afs_alloc_volume()
|
A D | inode.c | 585 struct afs_server_list *slist; in afs_check_server_good() local 595 slist = rcu_dereference(vnode->volume->servers); in afs_check_server_good() 596 for (i = 0; i < slist->nr_servers; i++) { in afs_check_server_good() 597 server = slist->servers[i].server; in afs_check_server_good()
|
A D | internal.h | 1432 static inline struct afs_server_list *afs_get_serverlist(struct afs_server_list *slist) in afs_get_serverlist() argument 1434 refcount_inc(&slist->usage); in afs_get_serverlist() 1435 return slist; in afs_get_serverlist()
|
A D | dir.c | 751 struct afs_server_list *slist; in afs_server_supports_ibulk() local 761 slist = rcu_dereference(volume->servers); in afs_server_supports_ibulk() 763 for (i = 0; i < slist->nr_servers; i++) { in afs_server_supports_ibulk() 764 server = slist->servers[i].server; in afs_server_supports_ibulk()
|
/linux/drivers/media/common/saa7146/ |
A D | saa7146_core.c | 173 if (!(pt->slist = vmalloc_to_sg(mem, pages))) in saa7146_vmalloc_build_pgtable() 180 slen = dma_map_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vmalloc_build_pgtable() 184 if (0 != saa7146_pgtable_build_single(pci, pt, pt->slist, slen)) in saa7146_vmalloc_build_pgtable() 190 dma_unmap_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vmalloc_build_pgtable() 194 kfree(pt->slist); in saa7146_vmalloc_build_pgtable() 195 pt->slist = NULL; in saa7146_vmalloc_build_pgtable() 204 dma_unmap_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vfree_destroy_pgtable() 206 kfree(pt->slist); in saa7146_vfree_destroy_pgtable() 207 pt->slist = NULL; in saa7146_vfree_destroy_pgtable()
|
/linux/drivers/iommu/ |
A D | ioasid.c | 52 struct list_head slist; member 108 INIT_LIST_HEAD(&ia_data->slist); in ioasid_alloc_allocator() 113 list_add_tail(&ops->list, &ia_data->slist); in ioasid_alloc_allocator() 183 list_add_tail(&ops->list, &pallocator->slist); in ioasid_register_allocator() 222 if (list_is_singular(&pallocator->slist)) { in ioasid_unregister_allocator() 247 list_for_each_entry(sops, &pallocator->slist, list) { in ioasid_unregister_allocator()
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | dp.c | 456 struct hal_wbm_idle_scatter_list *slist = dp->scatter_list; in ath11k_dp_scatter_idle_link_desc_cleanup() local 460 if (!slist[i].vaddr) in ath11k_dp_scatter_idle_link_desc_cleanup() 464 slist[i].vaddr, slist[i].paddr); in ath11k_dp_scatter_idle_link_desc_cleanup() 465 slist[i].vaddr = NULL; in ath11k_dp_scatter_idle_link_desc_cleanup() 477 struct hal_wbm_idle_scatter_list *slist = dp->scatter_list; in ath11k_dp_scatter_idle_link_desc_setup() local 496 slist[i].vaddr = dma_alloc_coherent(ab->dev, in ath11k_dp_scatter_idle_link_desc_setup() 498 &slist[i].paddr, GFP_KERNEL); in ath11k_dp_scatter_idle_link_desc_setup() 499 if (!slist[i].vaddr) { in ath11k_dp_scatter_idle_link_desc_setup() 506 scatter_buf = slist[scatter_idx].vaddr; in ath11k_dp_scatter_idle_link_desc_setup() 527 scatter_buf = slist[scatter_idx].vaddr; in ath11k_dp_scatter_idle_link_desc_setup() [all …]
|
/linux/drivers/w1/ |
A D | w1_int.c | 59 INIT_LIST_HEAD(&dev->slist); in w1_alloc_dev() 188 list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { in __w1_remove_master_device()
|
A D | w1.c | 378 list_for_each_safe(ent, n, &md->slist) { in w1_master_attribute_show_slaves() 447 list_for_each_entry(sl, &dev->slist, w1_slave_entry) { in w1_slave_search_device() 714 list_add_tail(&sl->w1_slave_entry, &sl->master->slist); in __w1_attach_slave_device() 858 list_for_each_entry(sl, &dev->slist, w1_slave_entry) { in w1_search_slave() 889 list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { in w1_reconnect_slaves() 1103 list_for_each_entry(sl, &dev->slist, w1_slave_entry) in w1_search_process_cb() 1110 list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { in w1_search_process_cb()
|
A D | w1_netlink.c | 275 list_for_each_entry(sl, &dev->slist, w1_slave_entry) { in w1_get_slaves()
|
/linux/fs/9p/ |
A D | v9fs.c | 475 list_add(&v9ses->slist, &v9fs_sessionlist); in v9fs_session_init() 513 list_del(&v9ses->slist); in v9fs_session_close() 559 list_for_each_entry(v9ses, &v9fs_sessionlist, slist) { in caches_show()
|
A D | v9fs.h | 102 struct list_head slist; /* list of sessions registered with v9fs */ member
|
/linux/include/linux/ |
A D | w1.h | 209 struct list_head slist; member
|
/linux/net/mptcp/ |
A D | pm_netlink.c | 1389 struct mptcp_rm_list alist = { .nr = 0 }, slist = { .nr = 0 }; in mptcp_pm_remove_addrs_and_subflows() local 1395 slist.nr < MPTCP_RM_IDS_MAX) { in mptcp_pm_remove_addrs_and_subflows() 1397 slist.ids[slist.nr++] = entry->addr.id; in mptcp_pm_remove_addrs_and_subflows() 1409 if (slist.nr) in mptcp_pm_remove_addrs_and_subflows() 1410 mptcp_pm_remove_subflow(msk, &slist); in mptcp_pm_remove_addrs_and_subflows()
|
/linux/drivers/media/dvb-frontends/ |
A D | dib8000.c | 2517 u8 slist = 0; in dib8000_autosearch_start() local 2570 slist = 16; in dib8000_autosearch_start() 2573 dib8000_set_isdbt_common_channel(state, slist, 1); in dib8000_autosearch_start() 2610 slist = 7; in dib8000_autosearch_start() 2617 slist = 7; in dib8000_autosearch_start() 2621 slist = 3; in dib8000_autosearch_start() 2626 slist = 2; in dib8000_autosearch_start() 2629 slist = 0; in dib8000_autosearch_start() 2632 dprintk("Using list for autosearch : %d\n", slist); in dib8000_autosearch_start() 2634 dib8000_set_isdbt_common_channel(state, slist, 1); in dib8000_autosearch_start()
|
/linux/drivers/w1/slaves/ |
A D | w1_therm.c | 1446 list_for_each_entry(sl, &dev_master->slist, w1_slave_entry) { in trigger_bulk_read() 1486 &dev_master->slist, w1_slave_entry) { in trigger_bulk_read() 1515 list_for_each_entry(sl, &dev_master->slist, w1_slave_entry) { in trigger_bulk_read() 1906 list_for_each_entry(sl, &dev_master->slist, w1_slave_entry) { in therm_bulk_read_show()
|
/linux/include/media/drv-intf/ |
A D | saa7146.h | 71 struct scatterlist *slist; member
|
/linux/drivers/media/pci/ttpci/ |
A D | budget-core.c | 183 dma_sync_sg_for_cpu(&budget->dev->pci->dev, budget->pt.slist, in vpeirq()
|