Home
last modified time | relevance | path

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

12345678910>>...22

/linux/include/linux/
H A Dvmstat.h68 static inline void __count_vm_event(enum vm_event_item item) in __count_vm_event() argument
70 raw_cpu_inc(vm_event_states.event[item]); in __count_vm_event()
73 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument
75 this_cpu_inc(vm_event_states.event[item]); in count_vm_event()
78 static inline void __count_vm_events(enum vm_event_item item, long delta) in __count_vm_events() argument
80 raw_cpu_add(vm_event_states.event[item], delta); in __count_vm_events()
83 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument
85 this_cpu_add(vm_event_states.event[item], delta); in count_vm_events()
95 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument
98 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument
[all …]
/linux/fs/configfs/
H A Ditem.c34 static void config_item_init(struct config_item *item) in config_item_init() argument
36 kref_init(&item->ci_kref); in config_item_init()
37 INIT_LIST_HEAD(&item->ci_entry); in config_item_init()
49 int config_item_set_name(struct config_item *item, const char *fmt, ...) in config_item_set_name() argument
60 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name()
63 name = item->ci_namebuf; in config_item_set_name()
73 if (item->ci_name && item->ci_name != item->ci_namebuf) in config_item_set_name()
74 kfree(item->ci_name); in config_item_set_name()
77 item->ci_name = name; in config_item_set_name()
82 void config_item_init_type_name(struct config_item *item, in config_item_init_type_name() argument
[all …]
/linux/include/trace/stages/
H A Dstage5_get_offsets.h32 #define __field(type, item) \ argument
33 { (void)sizeof(struct _test_no_array_##item *); }
36 #define __field_ext(type, item, filter_type) \ argument
37 { (void)sizeof(struct _test_no_array_##item *); }
40 #define __field_struct(type, item) \ argument
41 { (void)sizeof(struct _test_no_array_##item *); }
44 #define __field_struct_ext(type, item, filter_type) \ argument
45 { (void)sizeof(struct _test_no_array_##item *); }
48 #define __array(type, item, len) argument
51 #define __dynamic_array(type, item, len) \ argument
[all …]
H A Dstage1_struct_define.h6 #define __field(type, item) type item; argument
9 #define __field_ext(type, item, filter_type) type item; argument
12 #define __field_struct(type, item) type item; argument
15 #define __field_struct_ext(type, item, filter_type) type item; argument
18 #define __array(type, item, len) type item[len]; argument
21 #define __dynamic_array(type, item, len) u32 __data_loc_##item; argument
24 #define __string(item, src) __dynamic_array(char, item, -1) argument
27 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument
30 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1) argument
33 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) argument
[all …]
H A Dstage2_data_offsets.h12 #define __field(type, item) argument
15 #define __field_ext(type, item, filter_type) argument
18 #define __field_struct(type, item) argument
21 #define __field_struct_ext(type, item, filter_type) argument
24 #define __array(type, item, len) argument
27 #define __dynamic_array(type, item, len) u32 item; const void *item##_ptr_; argument
30 #define __string(item, src) __dynamic_array(char, item, -1) argument
33 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument
36 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1) argument
39 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument
[all …]
H A Dstage4_event_fields.h20 #define __field(type, item) __field_ext(type, item, FILTER_OTHER) argument
23 #define __field_struct(type, item) __field_struct_ext(type, item, FILTER_OTHER) argument
39 #define __string(item, src) __dynamic_array(char, item, -1) argument
42 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument
45 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1) argument
48 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument
51 #define __cpumask(item) { \ argument
52 .type = "__data_loc cpumask_t", .name = #item, \
66 #define __rel_string(item, src) __rel_dynamic_array(char, item, -1) argument
69 #define __rel_string_len(item, src, len) __rel_dynamic_array(char, item, -1) argument
[all …]
H A Dstage6_event_callback.h12 #define __field(type, item) argument
15 #define __field_struct(type, item) argument
18 #define __array(type, item, len) argument
21 #define __dynamic_array(type, item, len) \ argument
22 __entry->__data_loc_##item = __data_offsets.item;
25 #define __string(item, src) __dynamic_array(char, item, -1) argument
28 #define __string_len(item, src, len) __dynamic_array(char, item, argument
31 __vstring(item,fmt,ap) global() argument
55 __bitmask(item,nr_bits) global() argument
65 __cpumask(item) global() argument
85 __rel_dynamic_array(type,item,len) global() argument
89 __rel_string(item,src) global() argument
92 __rel_string_len(item,src,len) global() argument
105 __rel_bitmask(item,nr_bits) global() argument
115 __rel_cpumask(item) global() argument
[all...]
/linux/tools/testing/radix-tree/
H A 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 …]
H A 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 in multiorder_iteration()
77 struct item *item; multiorder_tagged_iteration() local
183 struct item *item; iterator_func() local
245 struct item *item = xa_load(ptr, index); load_worker() local
[all...]
/linux/drivers/target/
H A Dtarget_core_stat.c41 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev() argument
43 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_dev()
48 static ssize_t target_stat_inst_show(struct config_item *item, char *page) in target_stat_inst_show() argument
50 struct se_hba *hba = to_stat_dev(item)->se_hba; in target_stat_inst_show()
55 static ssize_t target_stat_indx_show(struct config_item *item, char *page) in target_stat_indx_show() argument
57 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
60 static ssize_t target_stat_role_show(struct config_item *item, char *page) in target_stat_role_show() argument
65 static ssize_t target_stat_ports_show(struct config_item *item, char *page) in target_stat_ports_show() argument
67 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
91 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev() argument
[all …]
H A Dtarget_core_configfs.c80 item_to_hba(struct config_item *item) in item_to_hba() argument
82 return container_of(to_config_group(item), struct se_hba, hba_group); in item_to_hba()
88 static ssize_t target_core_item_version_show(struct config_item *item, in target_core_item_version_show() argument
101 static ssize_t target_core_item_dbroot_show(struct config_item *item, in target_core_item_dbroot_show() argument
107 static ssize_t target_core_item_dbroot_store(struct config_item *item, in target_core_item_dbroot_store() argument
272 struct config_item *item) in target_core_deregister_fabric() argument
275 to_config_group(item), struct target_fabric_configfs, tf_group); in target_core_deregister_fabric()
278 " tf list\n", config_item_name(item)); in target_core_deregister_fabric()
285 " %s\n", config_item_name(item)); in target_core_deregister_fabric()
288 config_item_put(item); in target_core_deregister_fabric()
[all …]
H A Dtarget_core_fabric_configfs.c154 static struct se_lun_acl *item_to_lun_acl(struct config_item *item) in item_to_lun_acl() argument
156 return container_of(to_config_group(item), struct se_lun_acl, in item_to_lun_acl()
161 struct config_item *item, char *page) in target_fabric_mappedlun_write_protect_show() argument
163 struct se_lun_acl *lacl = item_to_lun_acl(item); in target_fabric_mappedlun_write_protect_show()
179 struct config_item *item, const char *page, size_t count) in target_fabric_mappedlun_write_protect_store() argument
181 struct se_lun_acl *lacl = item_to_lun_acl(item); in target_fabric_mappedlun_write_protect_store()
213 static void target_fabric_mappedlun_release(struct config_item *item) in target_fabric_mappedlun_release() argument
215 struct se_lun_acl *lacl = container_of(to_config_group(item), in target_fabric_mappedlun_release()
244 struct config_item *item) in target_core_mappedlun_stat_rmdir() argument
328 struct config_item *item) in target_fabric_drop_mappedlun() argument
[all …]
/linux/drivers/target/iscsi/
H A Discsi_target_stat.c43 static struct iscsi_tiqn *iscsi_instance_tiqn(struct config_item *item) in iscsi_instance_tiqn() argument
45 struct iscsi_wwn_stat_grps *igrps = container_of(to_config_group(item), in iscsi_instance_tiqn()
50 static ssize_t iscsi_stat_instance_inst_show(struct config_item *item, in iscsi_stat_instance_inst_show() argument
54 iscsi_instance_tiqn(item)->tiqn_index); in iscsi_stat_instance_inst_show()
57 static ssize_t iscsi_stat_instance_min_ver_show(struct config_item *item, in iscsi_stat_instance_min_ver_show() argument
63 static ssize_t iscsi_stat_instance_max_ver_show(struct config_item *item, in iscsi_stat_instance_max_ver_show() argument
69 static ssize_t iscsi_stat_instance_portals_show(struct config_item *item, in iscsi_stat_instance_portals_show() argument
73 iscsi_instance_tiqn(item)->tiqn_num_tpg_nps); in iscsi_stat_instance_portals_show()
76 static ssize_t iscsi_stat_instance_nodes_show(struct config_item *item, in iscsi_stat_instance_nodes_show() argument
82 static ssize_t iscsi_stat_instance_sessions_show(struct config_item *item, in iscsi_stat_instance_sessions_show() argument
[all …]
/linux/drivers/input/rmi4/
H A Drmi_f12.c66 const struct rmi_register_desc_item *item; in rmi_f12_read_sensor_tuning() local
80 item = rmi_get_register_desc_item(&f12->control_reg_desc, 8); in rmi_f12_read_sensor_tuning()
81 if (!item) { in rmi_f12_read_sensor_tuning()
89 if (item->reg_size > sizeof(buf)) { in rmi_f12_read_sensor_tuning()
92 sizeof(buf), item->reg_size); in rmi_f12_read_sensor_tuning()
97 item->reg_size); in rmi_f12_read_sensor_tuning()
102 if (rmi_register_desc_has_subpacket(item, 0)) { in rmi_f12_read_sensor_tuning()
111 if (rmi_register_desc_has_subpacket(item, 1)) { in rmi_f12_read_sensor_tuning()
117 if (rmi_register_desc_has_subpacket(item, 2)) { in rmi_f12_read_sensor_tuning()
147 if (rmi_register_desc_has_subpacket(item, 3)) { in rmi_f12_read_sensor_tuning()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A 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 …]
/linux/fs/nfs/
H A Ddns_resolve.c106 struct nfs_dns_ent *item; in nfs_dns_ent_free_rcu() local
108 item = container_of(head, struct nfs_dns_ent, rcu_head); in nfs_dns_ent_free_rcu()
109 kfree(item->hostname); in nfs_dns_ent_free_rcu()
110 kfree(item); in nfs_dns_ent_free_rcu()
115 struct nfs_dns_ent *item; in nfs_dns_ent_put() local
117 item = container_of(ref, struct nfs_dns_ent, h.ref); in nfs_dns_ent_put()
118 call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu); in nfs_dns_ent_put()
123 struct nfs_dns_ent *item = kmalloc(sizeof(*item), GFP_KERNEL); in nfs_dns_ent_alloc() local
125 if (item != NULL) { in nfs_dns_ent_alloc()
126 item->hostname = NULL; in nfs_dns_ent_alloc()
[all …]
/linux/drivers/nvme/target/
H A Dconfigfs.c66 static ssize_t nvmet_addr_adrfam_show(struct config_item *item, char *page) in nvmet_addr_adrfam_show() argument
68 u8 adrfam = to_nvmet_port(item)->disc_addr.adrfam; in nvmet_addr_adrfam_show()
80 static ssize_t nvmet_addr_adrfam_store(struct config_item *item, in nvmet_addr_adrfam_store() argument
83 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_adrfam_store()
104 static ssize_t nvmet_addr_portid_show(struct config_item *item, in nvmet_addr_portid_show() argument
107 __le16 portid = to_nvmet_port(item)->disc_addr.portid; in nvmet_addr_portid_show()
112 static ssize_t nvmet_addr_portid_store(struct config_item *item, in nvmet_addr_portid_store() argument
115 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_portid_store()
132 static ssize_t nvmet_addr_traddr_show(struct config_item *item, in nvmet_addr_traddr_show() argument
135 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_show()
[all …]
/linux/drivers/most/
H A 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 …]
/linux/drivers/platform/mellanox/
H A Dmlxreg-hotplug.c212 struct mlxreg_core_item *item; in mlxreg_hotplug_attr_show() local
218 item = pdata->items + nr; in mlxreg_hotplug_attr_show()
219 data = item->data + index; in mlxreg_hotplug_attr_show()
225 if (item->health) { in mlxreg_hotplug_attr_show()
229 if (item->inversed) in mlxreg_hotplug_attr_show()
255 struct mlxreg_core_item *item; in mlxreg_hotplug_attr_init() local
262 item = pdata->items; in mlxreg_hotplug_attr_init()
265 for (i = 0; i < pdata->counter; i++, item++) { in mlxreg_hotplug_attr_init()
266 if (item->capability) { in mlxreg_hotplug_attr_init()
272 ret = regmap_read(priv->regmap, item->capability, in mlxreg_hotplug_attr_init()
[all …]
/linux/samples/configfs/
H A Dconfigfs_sample.c37 static inline struct childless *to_childless(struct config_item *item) in to_childless() argument
39 return container_of(to_configfs_subsystem(to_config_group(item)), in to_childless()
43 static ssize_t childless_showme_show(struct config_item *item, char *page) in childless_showme_show() argument
45 struct childless *childless = to_childless(item); in childless_showme_show()
54 static ssize_t childless_storeme_show(struct config_item *item, char *page) in childless_storeme_show() argument
56 return sprintf(page, "%d\n", to_childless(item)->storeme); in childless_storeme_show()
59 static ssize_t childless_storeme_store(struct config_item *item, in childless_storeme_store() argument
62 struct childless *childless = to_childless(item); in childless_storeme_store()
72 static ssize_t childless_description_show(struct config_item *item, char *page) in childless_description_show() argument
122 struct config_item item; member
[all …]
/linux/lib/
H A Dparman.c45 struct parman_item *item);
47 struct parman_item *item);
126 struct parman_item *item, unsigned long to_index, in __parman_prio_move() argument
129 parman->ops->move(parman->priv, item->index, to_index, count); in __parman_prio_move()
135 struct parman_item *item; in parman_prio_shift_down() local
140 item = parman_prio_first_item(prio); in parman_prio_shift_down()
142 __parman_prio_move(parman, prio, item, to_index, 1); in parman_prio_shift_down()
143 list_move_tail(&item->list, &prio->item_list); in parman_prio_shift_down()
144 item->index = to_index; in parman_prio_shift_down()
150 struct parman_item *item; in parman_prio_shift_up() local
[all …]
/linux/tools/testing/ktest/
H A 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 …]
/linux/kernel/trace/
H A Dtrace_export.c37 #define __field_struct(type, item) argument
40 #define __field(type, item) type item; argument
43 #define __field_fn(type, item) type item; argument
46 #define __field_desc(type, container, item) type item; argument
49 #define __field_packed(type, container, item) type item; argument
52 #define __array(type, item, size) type item[size]; argument
55 #define __stack_array(type, item, size, field) __array(type, item, size) argument
58 #define __array_desc(type, container, item, size) type item[size]; argument
61 #define __dynamic_array(type, item) type item[]; argument
144 #define __field(type, item) argument
[all …]
/linux/fs/ocfs2/cluster/
H A Dnodemanager.c143 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster() argument
145 return item ? in to_o2nm_cluster()
146 container_of(to_config_group(item), struct o2nm_cluster, in to_o2nm_cluster()
151 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() argument
153 return item ? container_of(item, struct o2nm_node, nd_item) : NULL; in to_o2nm_node()
156 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() argument
158 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_release()
162 static ssize_t o2nm_node_num_show(struct config_item *item, char *page) in o2nm_node_num_show() argument
164 return sprintf(page, "%d\n", to_o2nm_node(item)->nd_num); in o2nm_node_num_show()
183 static ssize_t o2nm_node_num_store(struct config_item *item, const char *page, in o2nm_node_num_store() argument
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_parser.c94 void *item, void *data, in ice_parser_create_table() argument
99 void *table, *data, *item; in ice_parser_create_table() local
120 item = (void *)((uintptr_t)table + idx * item_size); in ice_parser_create_table()
121 parse_item(hw, idx, item, data, item_size); in ice_parser_create_table()
211 static void ice_imem_dump(struct ice_hw *hw, struct ice_imem_item *item) in ice_imem_dump() argument
215 dev_info(dev, "index = %d\n", item->idx); in ice_imem_dump()
216 ice_imem_bst_bm_dump(hw, &item->b_m); in ice_imem_dump()
217 ice_imem_bst_kb_dump(hw, &item->b_kb); in ice_imem_dump()
218 dev_info(dev, "pg priority = %d\n", item->pg_prio); in ice_imem_dump()
219 ice_imem_np_kb_dump(hw, &item->np_kb); in ice_imem_dump()
[all …]

12345678910>>...22