Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 586) sorted by relevance

12345678910>>...24

/kernel/linux/linux-5.10/include/linux/
Dvmstat.h64 static inline void __count_vm_event(enum vm_event_item item) in __count_vm_event() argument
66 raw_cpu_inc(vm_event_states.event[item]); in __count_vm_event()
69 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument
71 this_cpu_inc(vm_event_states.event[item]); in count_vm_event()
74 static inline void __count_vm_events(enum vm_event_item item, long delta) in __count_vm_events() argument
76 raw_cpu_add(vm_event_states.event[item], delta); in __count_vm_events()
79 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument
81 this_cpu_add(vm_event_states.event[item], delta); in count_vm_events()
91 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument
94 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument
[all …]
/kernel/linux/linux-5.10/fs/configfs/
Ditem.c36 static void config_item_init(struct config_item *item) in config_item_init() argument
38 kref_init(&item->ci_kref); in config_item_init()
39 INIT_LIST_HEAD(&item->ci_entry); in config_item_init()
51 int config_item_set_name(struct config_item *item, const char *fmt, ...) in config_item_set_name() argument
62 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name()
65 name = item->ci_namebuf; in config_item_set_name()
75 if (item->ci_name && item->ci_name != item->ci_namebuf) in config_item_set_name()
76 kfree(item->ci_name); in config_item_set_name()
79 item->ci_name = name; in config_item_set_name()
84 void config_item_init_type_name(struct config_item *item, in config_item_init_type_name() argument
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/
Dhmdfs_share.c40 static void remove_and_release_share_item(struct hmdfs_share_item *item) in remove_and_release_share_item() argument
42 list_del(&item->list); in remove_and_release_share_item()
43 item->hst->item_cnt--; in remove_and_release_share_item()
44 fput(item->file); in remove_and_release_share_item()
45 kfree(item->relative_path.name); in remove_and_release_share_item()
46 kfree(item); in remove_and_release_share_item()
49 static inline bool is_share_item_timeout(struct hmdfs_share_item *item) in is_share_item_timeout() argument
51 return !item->opened && item->timeout; in is_share_item_timeout()
57 struct hmdfs_share_item *item, *tmp; in hmdfs_lookup_share_item() local
59 list_for_each_entry_safe(item, tmp, &st->item_list_head, list) { in hmdfs_lookup_share_item()
[all …]
/kernel/linux/linux-5.10/tools/testing/radix-tree/
Dtest.c11 struct item *
17 struct item *
28 struct item *item_create(unsigned long index, unsigned int order) in item_create()
30 struct item *ret = malloc(sizeof(*ret)); in item_create()
39 struct item *item = item_create(index, 0); in item_insert() local
40 int err = radix_tree_insert(root, item->index, item); in item_insert()
42 free(item); in item_insert()
46 void item_sanity(struct item *item, unsigned long index) in item_sanity() argument
49 assert(!radix_tree_is_internal_node(item)); in item_sanity()
50 assert(item->order < BITS_PER_LONG); in item_sanity()
[all …]
Dmultiorder.c19 struct item *item = item_create(index, order); in item_insert_order() local
23 xas_store(&xas, item); in item_insert_order()
30 free(item); in item_insert_order()
37 struct item *item; in multiorder_iteration() local
57 xas_for_each(&xas, item, ULONG_MAX) { in multiorder_iteration()
64 assert(!radix_tree_is_internal_node(item)); in multiorder_iteration()
65 assert((item->index | mask) == (index[i] | mask)); in multiorder_iteration()
66 assert(item->order == order[i]); in multiorder_iteration()
77 struct item *item; in multiorder_tagged_iteration() local
108 xas_for_each_marked(&xas, item, ULONG_MAX, XA_MARK_1) { in multiorder_tagged_iteration()
[all …]
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_stat.c44 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev() argument
46 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_dev()
51 static ssize_t target_stat_inst_show(struct config_item *item, char *page) in target_stat_inst_show() argument
53 struct se_hba *hba = to_stat_dev(item)->se_hba; in target_stat_inst_show()
58 static ssize_t target_stat_indx_show(struct config_item *item, char *page) in target_stat_indx_show() argument
60 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
63 static ssize_t target_stat_role_show(struct config_item *item, char *page) in target_stat_role_show() argument
68 static ssize_t target_stat_ports_show(struct config_item *item, char *page) in target_stat_ports_show() argument
70 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
94 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev() argument
[all …]
Dtarget_core_configfs.c76 item_to_hba(struct config_item *item) in item_to_hba() argument
78 return container_of(to_config_group(item), struct se_hba, hba_group); in item_to_hba()
84 static ssize_t target_core_item_version_show(struct config_item *item, in target_core_item_version_show() argument
97 static ssize_t target_core_item_dbroot_show(struct config_item *item, in target_core_item_dbroot_show() argument
103 static ssize_t target_core_item_dbroot_store(struct config_item *item, in target_core_item_dbroot_store() argument
271 struct config_item *item) in target_core_deregister_fabric() argument
274 to_config_group(item), struct target_fabric_configfs, tf_group); in target_core_deregister_fabric()
277 " tf list\n", config_item_name(item)); in target_core_deregister_fabric()
284 " %s\n", config_item_name(item)); in target_core_deregister_fabric()
287 config_item_put(item); in target_core_deregister_fabric()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dqueue.c69 struct cw1200_queue_item *item, *tmp; in cw1200_queue_post_gc() local
71 list_for_each_entry_safe(item, tmp, gc_list, head) { in cw1200_queue_post_gc()
72 list_del(&item->head); in cw1200_queue_post_gc()
73 stats->skb_dtor(stats->priv, item->skb, &item->txpriv); in cw1200_queue_post_gc()
74 kfree(item); in cw1200_queue_post_gc()
79 struct cw1200_queue_item *item) in cw1200_queue_register_post_gc() argument
82 gc_item = kmemdup(item, sizeof(struct cw1200_queue_item), in cw1200_queue_register_post_gc()
93 struct cw1200_queue_item *item = NULL, *tmp; in __cw1200_queue_gc() local
96 list_for_each_entry_safe(item, tmp, &queue->queue, head) { in __cw1200_queue_gc()
97 if (jiffies - item->queue_timestamp < queue->ttl) in __cw1200_queue_gc()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Ditem.h26 __mlxsw_item_offset(const struct mlxsw_item *item, unsigned short index, in __mlxsw_item_offset() argument
29 BUG_ON(index && !item->step); in __mlxsw_item_offset()
30 if (item->offset % typesize != 0 || in __mlxsw_item_offset()
31 item->step % typesize != 0 || in __mlxsw_item_offset()
32 item->in_step_offset % typesize != 0) { in __mlxsw_item_offset()
34 item->name, item->offset, item->step, in __mlxsw_item_offset()
35 item->in_step_offset, typesize); in __mlxsw_item_offset()
39 return ((item->offset + item->step * index + item->in_step_offset) / in __mlxsw_item_offset()
44 const struct mlxsw_item *item, in __mlxsw_item_get8() argument
47 unsigned int offset = __mlxsw_item_offset(item, index, sizeof(u8)); in __mlxsw_item_get8()
[all …]
/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_stat.c44 static struct iscsi_tiqn *iscsi_instance_tiqn(struct config_item *item) in iscsi_instance_tiqn() argument
46 struct iscsi_wwn_stat_grps *igrps = container_of(to_config_group(item), in iscsi_instance_tiqn()
51 static ssize_t iscsi_stat_instance_inst_show(struct config_item *item, in iscsi_stat_instance_inst_show() argument
55 iscsi_instance_tiqn(item)->tiqn_index); in iscsi_stat_instance_inst_show()
58 static ssize_t iscsi_stat_instance_min_ver_show(struct config_item *item, in iscsi_stat_instance_min_ver_show() argument
64 static ssize_t iscsi_stat_instance_max_ver_show(struct config_item *item, in iscsi_stat_instance_max_ver_show() argument
70 static ssize_t iscsi_stat_instance_portals_show(struct config_item *item, in iscsi_stat_instance_portals_show() argument
74 iscsi_instance_tiqn(item)->tiqn_num_tpg_nps); in iscsi_stat_instance_portals_show()
77 static ssize_t iscsi_stat_instance_nodes_show(struct config_item *item, in iscsi_stat_instance_nodes_show() argument
83 static ssize_t iscsi_stat_instance_sessions_show(struct config_item *item, in iscsi_stat_instance_sessions_show() argument
[all …]
/kernel/linux/linux-5.10/drivers/input/rmi4/
Drmi_f12.c65 const struct rmi_register_desc_item *item; in rmi_f12_read_sensor_tuning() local
77 item = rmi_get_register_desc_item(&f12->control_reg_desc, 8); in rmi_f12_read_sensor_tuning()
78 if (!item) { in rmi_f12_read_sensor_tuning()
86 if (item->reg_size > sizeof(buf)) { in rmi_f12_read_sensor_tuning()
89 sizeof(buf), item->reg_size); in rmi_f12_read_sensor_tuning()
94 item->reg_size); in rmi_f12_read_sensor_tuning()
99 if (rmi_register_desc_has_subpacket(item, 0)) { in rmi_f12_read_sensor_tuning()
108 if (rmi_register_desc_has_subpacket(item, 1)) { in rmi_f12_read_sensor_tuning()
114 if (rmi_register_desc_has_subpacket(item, 2)) { in rmi_f12_read_sensor_tuning()
125 if (rmi_register_desc_has_subpacket(item, 3)) { in rmi_f12_read_sensor_tuning()
[all …]
/kernel/liteos_m/utils/
Dlos_list.h276 #define LOS_DL_LIST_ENTRY(item, type, member) \ argument
277 ((type *)(VOID *)((CHAR *)(item) - LOS_OFF_SET_OF(type, member))) \
300 #define LOS_DL_LIST_FOR_EACH_ENTRY(item, list, type, member) \ argument
301 for ((item) = LOS_DL_LIST_ENTRY((list)->pstNext, type, member); \
302 &(item)->member != (list); \
303 (item) = LOS_DL_LIST_ENTRY((item)->member.pstNext, type, member))
327 #define LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, next, list, type, member) \ argument
328 for ((item) = LOS_DL_LIST_ENTRY((list)->pstNext, type, member), \
329 (next) = LOS_DL_LIST_ENTRY((item)->member.pstNext, type, member); \
330 &((item)->member) != (list); \
[all …]
/kernel/liteos_a/kernel/extended/plimit/
Dlos_devicelimit.c114 STATIC UINT32 ParseItemAccess(const CHAR *buf, DevAccessItem *item) in ParseItemAccess() argument
118 item->type = DEVLIMIT_DEV_ALL; in ParseItemAccess()
121 item->type = DEVLIMIT_DEV_BLOCK; in ParseItemAccess()
124 item->type = DEVLIMIT_DEV_CHAR; in ParseItemAccess()
135 for (INT32 count = 0; count < sizeof(item->name) - 1; count++) { in ParseItemAccess()
139 item->name[count] = *buf; in ParseItemAccess()
150 item->access |= DEVLIMIT_ACC_READ; in ParseItemAccess()
153 item->access |= DEVLIMIT_ACC_WRITE; in ParseItemAccess()
156 item->access |= DEVLIMIT_ACC_MKNOD; in ParseItemAccess()
234 STATIC BOOL DevLimitMatchItemPartial(LOS_DL_LIST *list, DevAccessItem *item) in DevLimitMatchItemPartial() argument
[all …]
/kernel/linux/linux-5.10/fs/nfs/
Ddns_resolve.c107 struct nfs_dns_ent *item; in nfs_dns_ent_free_rcu() local
109 item = container_of(head, struct nfs_dns_ent, rcu_head); in nfs_dns_ent_free_rcu()
110 kfree(item->hostname); in nfs_dns_ent_free_rcu()
111 kfree(item); in nfs_dns_ent_free_rcu()
116 struct nfs_dns_ent *item; in nfs_dns_ent_put() local
118 item = container_of(ref, struct nfs_dns_ent, h.ref); in nfs_dns_ent_put()
119 call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu); in nfs_dns_ent_put()
124 struct nfs_dns_ent *item = kmalloc(sizeof(*item), GFP_KERNEL); in nfs_dns_ent_alloc() local
126 if (item != NULL) { in nfs_dns_ent_alloc()
127 item->hostname = NULL; in nfs_dns_ent_alloc()
[all …]
/kernel/liteos_a/apps/shell/include/
Dshell_list.h386 #define SH_LIST_ENTRY(item, type, member) \ argument
387 ((type *)(void *)((char *)(item) - LOS_OFF_SET_OF(type, member)))
410 #define SH_LIST_FOR_EACH_ENTRY(item, list, type, member) \ argument
411 for (item = SH_LIST_ENTRY((list)->pstNext, type, member); \
412 &(item)->member != (list); \
413 item = SH_LIST_ENTRY((item)->member.pstNext, type, member))
437 #define SH_LIST_FOR_EACH_ENTRY_SAFE(item, next, list, type, member) \ argument
438 for (item = SH_LIST_ENTRY((list)->pstNext, type, member), \
439 next = SH_LIST_ENTRY((item)->member.pstNext, type, member); \
440 &(item)->member != (list); \
[all …]
/kernel/linux/linux-5.10/drivers/most/
Dconfigfs.c18 struct config_item item; member
90 static struct mdev_link *to_mdev_link(struct config_item *item) in to_mdev_link() argument
92 return container_of(item, struct mdev_link, item); in to_mdev_link()
113 static ssize_t mdev_link_create_link_store(struct config_item *item, in mdev_link_create_link_store() argument
116 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_create_link_store()
135 static ssize_t mdev_link_destroy_link_store(struct config_item *item, in mdev_link_destroy_link_store() argument
138 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_destroy_link_store()
160 static ssize_t mdev_link_direction_show(struct config_item *item, char *page) in mdev_link_direction_show() argument
162 return snprintf(page, PAGE_SIZE, "%s\n", to_mdev_link(item)->direction); in mdev_link_direction_show()
165 static ssize_t mdev_link_direction_store(struct config_item *item, in mdev_link_direction_store() argument
[all …]
/kernel/linux/linux-5.10/samples/configfs/
Dconfigfs_sample.c39 static inline struct childless *to_childless(struct config_item *item) in to_childless() argument
41 return container_of(to_configfs_subsystem(to_config_group(item)), in to_childless()
45 static ssize_t childless_showme_show(struct config_item *item, char *page) in childless_showme_show() argument
47 struct childless *childless = to_childless(item); in childless_showme_show()
56 static ssize_t childless_storeme_show(struct config_item *item, char *page) in childless_storeme_show() argument
58 return sprintf(page, "%d\n", to_childless(item)->storeme); in childless_storeme_show()
61 static ssize_t childless_storeme_store(struct config_item *item, in childless_storeme_store() argument
64 struct childless *childless = to_childless(item); in childless_storeme_store()
74 static ssize_t childless_description_show(struct config_item *item, char *page) in childless_description_show() argument
124 struct config_item item; member
[all …]
/kernel/liteos_a/kernel/include/
Dlos_list.h421 #define LOS_DL_LIST_ENTRY(item, type, member) \ argument
422 ((type *)(VOID *)((CHAR *)(item) - LOS_OFF_SET_OF(type, member)))
445 #define LOS_DL_LIST_FOR_EACH_ENTRY(item, list, type, member) \ argument
446 for (item = LOS_DL_LIST_ENTRY((list)->pstNext, type, member); \
447 &(item)->member != (list); \
448 item = LOS_DL_LIST_ENTRY((item)->member.pstNext, type, member))
472 #define LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, next, list, type, member) \ argument
473 for (item = LOS_DL_LIST_ENTRY((list)->pstNext, type, member), \
474 next = LOS_DL_LIST_ENTRY((item)->member.pstNext, type, member); \
475 &(item)->member != (list); \
[all …]
/kernel/linux/linux-5.10/drivers/platform/mellanox/
Dmlxreg-hotplug.c160 struct mlxreg_core_item *item; in mlxreg_hotplug_attr_show() local
166 item = pdata->items + nr; in mlxreg_hotplug_attr_show()
167 data = item->data + index; in mlxreg_hotplug_attr_show()
173 if (item->health) { in mlxreg_hotplug_attr_show()
177 if (item->inversed) in mlxreg_hotplug_attr_show()
192 struct mlxreg_core_item *item; in mlxreg_hotplug_attr_init() local
199 item = pdata->items; in mlxreg_hotplug_attr_init()
202 for (i = 0; i < pdata->counter; i++, item++) { in mlxreg_hotplug_attr_init()
203 if (item->capability) { in mlxreg_hotplug_attr_init()
209 ret = regmap_read(priv->regmap, item->capability, in mlxreg_hotplug_attr_init()
[all …]
/kernel/linux/linux-5.10/drivers/nvme/target/
Dconfigfs.c56 static ssize_t nvmet_addr_adrfam_show(struct config_item *item, char *page) in nvmet_addr_adrfam_show() argument
58 u8 adrfam = to_nvmet_port(item)->disc_addr.adrfam; in nvmet_addr_adrfam_show()
69 static ssize_t nvmet_addr_adrfam_store(struct config_item *item, in nvmet_addr_adrfam_store() argument
72 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_adrfam_store()
93 static ssize_t nvmet_addr_portid_show(struct config_item *item, in nvmet_addr_portid_show() argument
96 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_portid_show()
102 static ssize_t nvmet_addr_portid_store(struct config_item *item, in nvmet_addr_portid_store() argument
105 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_portid_store()
122 static ssize_t nvmet_addr_traddr_show(struct config_item *item, in nvmet_addr_traddr_show() argument
125 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_show()
[all …]
/kernel/linux/linux-5.10/lib/
Dparman.c45 struct parman_item *item);
47 struct parman_item *item);
127 struct parman_item *item, unsigned long to_index, in __parman_prio_move() argument
130 parman->ops->move(parman->priv, item->index, to_index, count); in __parman_prio_move()
136 struct parman_item *item; in parman_prio_shift_down() local
141 item = parman_prio_first_item(prio); in parman_prio_shift_down()
143 __parman_prio_move(parman, prio, item, to_index, 1); in parman_prio_shift_down()
144 list_move_tail(&item->list, &prio->item_list); in parman_prio_shift_down()
145 item->index = to_index; in parman_prio_shift_down()
151 struct parman_item *item; in parman_prio_shift_up() local
[all …]
/kernel/linux/linux-5.10/tools/testing/ktest/
Dconfig-bisect.pl328 foreach my $item (keys %a) {
329 if (defined($b{$item}) && $b{$item} ne $a{$item}) {
330 $ret{$item} = $b{$item};
347 foreach my $item (keys %b) {
348 if (!defined($a{$item})) {
349 $ret{$item} = $b{$item};
369 foreach my $item (keys %b) {
370 if (!defined($a{$item})) {
373 if ($a{$item} ne $b{$item}) {
378 foreach my $item (keys %a) {
[all …]
/kernel/linux/linux-5.10/include/trace/
Dtrace_events.h85 #define __field(type, item) type item; argument
88 #define __field_ext(type, item, filter_type) type item; argument
91 #define __field_struct(type, item) type item; argument
94 #define __field_struct_ext(type, item, filter_type) type item; argument
97 #define __array(type, item, len) type item[len]; argument
100 #define __dynamic_array(type, item, len) u32 __data_loc_##item; argument
103 #define __string(item, src) __dynamic_array(char, item, -1) argument
106 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) argument
180 #define __field(type, item) argument
183 #define __field_ext(type, item, filter_type) argument
[all …]
/kernel/linux/linux-5.10/drivers/net/
Dnetconsole.c99 struct config_item item; member
130 if (config_item_name(&nt->item)) in netconsole_target_get()
131 config_item_get(&nt->item); in netconsole_target_get()
136 if (config_item_name(&nt->item)) in netconsole_target_put()
137 config_item_put(&nt->item); in netconsole_target_put()
235 static struct netconsole_target *to_target(struct config_item *item) in to_target() argument
237 return item ? in to_target()
238 container_of(item, struct netconsole_target, item) : in to_target()
246 static ssize_t enabled_show(struct config_item *item, char *buf) in enabled_show() argument
248 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/cluster/
Dnodemanager.c145 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster() argument
147 return item ? in to_o2nm_cluster()
148 container_of(to_config_group(item), struct o2nm_cluster, in to_o2nm_cluster()
153 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() argument
155 return item ? container_of(item, struct o2nm_node, nd_item) : NULL; in to_o2nm_node()
158 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() argument
160 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_release()
164 static ssize_t o2nm_node_num_show(struct config_item *item, char *page) in o2nm_node_num_show() argument
166 return sprintf(page, "%d\n", to_o2nm_node(item)->nd_num); in o2nm_node_num_show()
185 static ssize_t o2nm_node_num_store(struct config_item *item, const char *page, in o2nm_node_num_store() argument
[all …]

12345678910>>...24