/openbmc/linux/tools/perf/util/ |
H 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 …]
|
H 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 …]
|
H A D | thread_map.c | 193 struct strlist *slist = strlist__new(pid_str, &slist_config); in thread_map__new_by_pid_str() local 195 if (!slist) in thread_map__new_by_pid_str() 198 strlist__for_each_entry(pos, slist) { in thread_map__new_by_pid_str() 229 strlist__delete(slist); in thread_map__new_by_pid_str() 252 struct strlist *slist; in thread_map__new_by_tid_str() local 258 slist = strlist__new(tid_str, &slist_config); in thread_map__new_by_tid_str() 259 if (!slist) in thread_map__new_by_tid_str() 262 strlist__for_each_entry(pos, slist) { in thread_map__new_by_tid_str() 283 strlist__delete(slist); in thread_map__new_by_tid_str()
|
H 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()
|
H A D | intlist.h | 20 struct intlist *intlist__new(const char *slist);
|
/openbmc/linux/fs/afs/ |
H A D | server_list.c | 16 if (slist && refcount_dec_and_test(&slist->usage)) { in afs_put_serverlist() 20 kfree_rcu(slist, rcu); 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 …]
|
H 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 …]
|
H A D | volume.c | 77 struct afs_server_list *slist; in afs_alloc_volume() local 98 slist = afs_alloc_server_list(params->cell, params->key, vldb, type_mask); in afs_alloc_volume() 99 if (IS_ERR(slist)) { in afs_alloc_volume() 100 ret = PTR_ERR(slist); in afs_alloc_volume() 104 refcount_set(&slist->usage, 1); in afs_alloc_volume() 105 rcu_assign_pointer(volume->servers, slist); in afs_alloc_volume()
|
H A D | inode.c | 600 struct afs_server_list *slist; in afs_check_server_good() local 610 slist = rcu_dereference(vnode->volume->servers); in afs_check_server_good() 611 for (i = 0; i < slist->nr_servers; i++) { in afs_check_server_good() 612 server = slist->servers[i].server; in afs_check_server_good()
|
H A D | internal.h | 1440 static inline struct afs_server_list *afs_get_serverlist(struct afs_server_list *slist) in afs_get_serverlist() argument 1442 refcount_inc(&slist->usage); in afs_get_serverlist() 1443 return slist; in afs_get_serverlist()
|
/openbmc/linux/drivers/media/common/saa7146/ |
H A D | saa7146_core.c | 175 if (!(pt->slist = vmalloc_to_sg(mem, pages))) in saa7146_vmalloc_build_pgtable() 182 slen = dma_map_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vmalloc_build_pgtable() 186 if (0 != saa7146_pgtable_build_single(pci, pt, pt->slist, slen)) in saa7146_vmalloc_build_pgtable() 192 dma_unmap_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vmalloc_build_pgtable() 196 kfree(pt->slist); in saa7146_vmalloc_build_pgtable() 197 pt->slist = NULL; in saa7146_vmalloc_build_pgtable() 206 dma_unmap_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vfree_destroy_pgtable() 208 kfree(pt->slist); in saa7146_vfree_destroy_pgtable() 209 pt->slist = NULL; in saa7146_vfree_destroy_pgtable()
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | dp.c | 490 struct hal_wbm_idle_scatter_list *slist = dp->scatter_list; in ath11k_dp_scatter_idle_link_desc_cleanup() local 494 if (!slist[i].vaddr) in ath11k_dp_scatter_idle_link_desc_cleanup() 498 slist[i].vaddr, slist[i].paddr); in ath11k_dp_scatter_idle_link_desc_cleanup() 499 slist[i].vaddr = NULL; in ath11k_dp_scatter_idle_link_desc_cleanup() 511 struct hal_wbm_idle_scatter_list *slist = dp->scatter_list; in ath11k_dp_scatter_idle_link_desc_setup() local 530 slist[i].vaddr = dma_alloc_coherent(ab->dev, in ath11k_dp_scatter_idle_link_desc_setup() 532 &slist[i].paddr, GFP_KERNEL); in ath11k_dp_scatter_idle_link_desc_setup() 533 if (!slist[i].vaddr) { in ath11k_dp_scatter_idle_link_desc_setup() 540 scatter_buf = slist[scatter_idx].vaddr; in ath11k_dp_scatter_idle_link_desc_setup() 561 scatter_buf = slist[scatter_idx].vaddr; in ath11k_dp_scatter_idle_link_desc_setup() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | dp.c | 593 struct hal_wbm_idle_scatter_list *slist = dp->scatter_list; in ath12k_dp_scatter_idle_link_desc_cleanup() local 597 if (!slist[i].vaddr) in ath12k_dp_scatter_idle_link_desc_cleanup() 601 slist[i].vaddr, slist[i].paddr); in ath12k_dp_scatter_idle_link_desc_cleanup() 602 slist[i].vaddr = NULL; in ath12k_dp_scatter_idle_link_desc_cleanup() 614 struct hal_wbm_idle_scatter_list *slist = dp->scatter_list; in ath12k_dp_scatter_idle_link_desc_setup() local 633 slist[i].vaddr = dma_alloc_coherent(ab->dev, in ath12k_dp_scatter_idle_link_desc_setup() 635 &slist[i].paddr, GFP_KERNEL); in ath12k_dp_scatter_idle_link_desc_setup() 636 if (!slist[i].vaddr) { in ath12k_dp_scatter_idle_link_desc_setup() 643 scatter_buf = slist[scatter_idx].vaddr; in ath12k_dp_scatter_idle_link_desc_setup() 665 scatter_buf = slist[scatter_idx].vaddr; in ath12k_dp_scatter_idle_link_desc_setup() [all …]
|
/openbmc/linux/drivers/hid/amd-sfh-hid/sfh1_1/ |
H A D | amd_sfh_init.c | 20 struct sfh_sensor_list *slist; in amd_sfh_get_sensor_num() local 26 slist = &binfo.sbase.s_list; in amd_sfh_get_sensor_num() 35 if (BIT(i) & slist->sl.sensors) in amd_sfh_get_sensor_num()
|
H A D | amd_sfh_interface.h | 83 u32 slist; member
|
/openbmc/linux/drivers/w1/ |
H A D | w1_int.c | 58 INIT_LIST_HEAD(&dev->slist); in w1_alloc_dev() 187 list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { in __w1_remove_master_device()
|
H A D | w1.c | 368 list_for_each_safe(ent, n, &md->slist) { in w1_master_attribute_show_slaves() 437 list_for_each_entry(sl, &dev->slist, w1_slave_entry) { in w1_slave_search_device() 705 list_add_tail(&sl->w1_slave_entry, &sl->master->slist); in __w1_attach_slave_device() 847 list_for_each_entry(iter, &dev->slist, w1_slave_entry) { in w1_search_slave() 878 list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { in w1_reconnect_slaves() 1092 list_for_each_entry(sl, &dev->slist, w1_slave_entry) in w1_search_process_cb() 1099 list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { in w1_search_process_cb()
|
/openbmc/linux/fs/9p/ |
H A D | v9fs.c | 481 list_add(&v9ses->slist, &v9fs_sessionlist); in v9fs_session_init() 518 list_del(&v9ses->slist); in v9fs_session_close() 562 list_for_each_entry(v9ses, &v9fs_sessionlist, slist) { in caches_show()
|
H A D | v9fs.h | 128 struct list_head slist; /* list of sessions registered with v9fs */ member
|
/openbmc/linux/include/linux/ |
H A D | w1.h | 209 struct list_head slist; member
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H 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()
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_therm.c | 1509 list_for_each_entry(sl, &dev_master->slist, w1_slave_entry) { in trigger_bulk_read() 1549 &dev_master->slist, w1_slave_entry) { in trigger_bulk_read() 1578 list_for_each_entry(sl, &dev_master->slist, w1_slave_entry) { in trigger_bulk_read() 1968 list_for_each_entry(sl, &dev_master->slist, w1_slave_entry) { in therm_bulk_read_show()
|
/openbmc/linux/include/media/drv-intf/ |
H A D | saa7146.h | 71 struct scatterlist *slist; member
|
/openbmc/linux/net/mptcp/ |
H A D | pm_netlink.c | 1716 struct mptcp_rm_list alist = { .nr = 0 }, slist = { .nr = 0 }; in mptcp_pm_remove_addrs_and_subflows() local 1720 if (slist.nr < MPTCP_RM_IDS_MAX && in mptcp_pm_remove_addrs_and_subflows() 1722 slist.ids[slist.nr++] = mptcp_endp_get_local_id(msk, &entry->addr); in mptcp_pm_remove_addrs_and_subflows() 1734 if (slist.nr) in mptcp_pm_remove_addrs_and_subflows() 1735 mptcp_pm_nl_rm_subflow_received(msk, &slist); in mptcp_pm_remove_addrs_and_subflows()
|
/openbmc/qemu/tests/unit/ |
H A D | meson.build | 36 'test-rcu-slist': [],
|