Home
last modified time | relevance | path

Searched refs:item (Results 1 – 200 of 370) sorted by relevance

12

/linux-4.1.27/fs/configfs/
Ditem.c50 void config_item_init(struct config_item *item) in config_item_init() argument
52 kref_init(&item->ci_kref); in config_item_init()
53 INIT_LIST_HEAD(&item->ci_entry); in config_item_init()
66 int config_item_set_name(struct config_item *item, const char *fmt, ...) in config_item_set_name() argument
78 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name()
81 name = item->ci_namebuf; in config_item_set_name()
105 if (item->ci_name && item->ci_name != item->ci_namebuf) in config_item_set_name()
106 kfree(item->ci_name); in config_item_set_name()
109 item->ci_name = name; in config_item_set_name()
115 void config_item_init_type_name(struct config_item *item, in config_item_init_type_name() argument
[all …]
Ddir.c272 static int configfs_create_dir(struct config_item *item, struct dentry *dentry) in configfs_create_dir() argument
278 BUG_ON(!item); in configfs_create_dir()
284 error = configfs_make_dirent(p->d_fsdata, dentry, item, mode, in configfs_create_dir()
293 item->ci_dentry = dentry; in configfs_create_dir()
397 static void configfs_remove_dir(struct config_item * item) in configfs_remove_dir() argument
399 struct dentry * dentry = dget(item->ci_dentry); in configfs_remove_dir()
553 static void detach_attrs(struct config_item * item) in detach_attrs() argument
555 struct dentry * dentry = dget(item->ci_dentry); in detach_attrs()
582 static int populate_attrs(struct config_item *item) in populate_attrs() argument
584 struct config_item_type *t = item->ci_type; in populate_attrs()
[all …]
Dsymlink.c38 static int item_depth(struct config_item * item) in item_depth() argument
40 struct config_item * p = item; in item_depth()
46 static int item_path_length(struct config_item * item) in item_path_length() argument
48 struct config_item * p = item; in item_path_length()
57 static void fill_item_path(struct config_item * item, char * buffer, int length) in fill_item_path() argument
62 for (p = item; p && !configfs_is_root(p); p = p->ci_parent) { in fill_item_path()
73 struct config_item *item, in create_link() argument
76 struct configfs_dirent *target_sd = item->ci_dentry->d_fsdata; in create_link()
86 sl->sl_target = config_item_get(item); in create_link()
90 config_item_put(item); in create_link()
[all …]
Dfile.c67 struct config_item * item = to_item(dentry->d_parent); in fill_read_buffer() local
77 count = ops->show_attribute(item,attr,buffer->page); in fill_read_buffer()
173 struct config_item * item = to_item(dentry->d_parent); in flush_write_buffer() local
176 return ops->store_attribute(item,attr,buffer->page,count); in flush_write_buffer()
215 struct config_item *item = configfs_get_config_item(file->f_path.dentry->d_parent); in check_perm() local
221 if (!item || !attr) in check_perm()
230 if (item->ci_type) in check_perm()
231 ops = item->ci_type->ct_item_ops; in check_perm()
277 if (error && item) in check_perm()
278 config_item_put(item); in check_perm()
[all …]
Dconfigfs_internal.h69 extern int configfs_is_root(struct config_item *item);
124 struct config_item * item = NULL; in configfs_get_config_item() local
131 item = config_item_get(sl->sl_target); in configfs_get_config_item()
133 item = config_item_get(sd->s_element); in configfs_get_config_item()
137 return item; in configfs_get_config_item()
Dmount.c56 int configfs_is_root(struct config_item *item) in configfs_is_root() argument
58 return item == &configfs_root_group.cg_item; in configfs_is_root()
DMakefile7 configfs-objs := inode.o file.o dir.o symlink.o mount.o item.o
/linux-4.1.27/include/linux/
Dvmstat.h34 static inline void __count_vm_event(enum vm_event_item item) in __count_vm_event() argument
36 raw_cpu_inc(vm_event_states.event[item]); in __count_vm_event()
39 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument
41 this_cpu_inc(vm_event_states.event[item]); in count_vm_event()
44 static inline void __count_vm_events(enum vm_event_item item, long delta) in __count_vm_events() argument
46 raw_cpu_add(vm_event_states.event[item], delta); in __count_vm_events()
49 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument
51 this_cpu_add(vm_event_states.event[item], delta); in count_vm_events()
61 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument
64 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument
[all …]
Dbacking-dev.h140 enum bdi_stat_item item, s64 amount) in __add_bdi_stat() argument
142 __percpu_counter_add(&bdi->bdi_stat[item], amount, BDI_STAT_BATCH); in __add_bdi_stat()
146 enum bdi_stat_item item) in __inc_bdi_stat() argument
148 __add_bdi_stat(bdi, item, 1); in __inc_bdi_stat()
152 enum bdi_stat_item item) in inc_bdi_stat() argument
157 __inc_bdi_stat(bdi, item); in inc_bdi_stat()
162 enum bdi_stat_item item) in __dec_bdi_stat() argument
164 __add_bdi_stat(bdi, item, -1); in __dec_bdi_stat()
168 enum bdi_stat_item item) in dec_bdi_stat() argument
173 __dec_bdi_stat(bdi, item); in dec_bdi_stat()
[all …]
Dconfigfs.h69 static inline char *config_item_name(struct config_item * item) in config_item_name() argument
71 return item->ci_name; in config_item_name()
75 extern void config_item_init_type_name(struct config_item *item,
105 static inline struct config_group *to_config_group(struct config_item *item) in to_config_group() argument
107 return item ? container_of(item,struct config_group,cg_item) : NULL; in to_config_group()
183 static ssize_t _item##_attr_show(struct config_item *item, \
187 struct _item *_item = to_##_item(item); \
196 static ssize_t _item##_attr_store(struct config_item *item, \
200 struct _item *_item = to_##_item(item); \
235 int (*commit_item)(struct config_item *item);
[all …]
Dlist_lru.h83 bool list_lru_add(struct list_lru *lru, struct list_head *item);
96 bool list_lru_del(struct list_lru *lru, struct list_head *item);
129 void list_lru_isolate(struct list_lru_one *list, struct list_head *item);
130 void list_lru_isolate_move(struct list_lru_one *list, struct list_head *item,
133 typedef enum lru_status (*list_lru_walk_cb)(struct list_head *item,
Dradix-tree.h257 static inline void radix_tree_replace_slot(void **pslot, void *item) in radix_tree_replace_slot() argument
259 BUG_ON(radix_tree_is_indirect_ptr(item)); in radix_tree_replace_slot()
260 rcu_assign_pointer(*pslot, item); in radix_tree_replace_slot()
302 unsigned long radix_tree_locate_item(struct radix_tree_root *root, void *item);
/linux-4.1.27/drivers/gpu/drm/
Ddrm_global.c49 struct drm_global_item *item = &glob[i]; in drm_global_init() local
50 mutex_init(&item->mutex); in drm_global_init()
51 item->object = NULL; in drm_global_init()
52 item->refcount = 0; in drm_global_init()
60 struct drm_global_item *item = &glob[i]; in drm_global_release() local
61 BUG_ON(item->object != NULL); in drm_global_release()
62 BUG_ON(item->refcount != 0); in drm_global_release()
69 struct drm_global_item *item = &glob[ref->global_type]; in drm_global_item_ref() local
71 mutex_lock(&item->mutex); in drm_global_item_ref()
72 if (item->refcount == 0) { in drm_global_item_ref()
[all …]
Ddrm_hashtab.c109 int drm_ht_insert_item(struct drm_open_hash *ht, struct drm_hash_item *item) in drm_ht_insert_item() argument
115 unsigned long key = item->key; in drm_ht_insert_item()
128 hlist_add_behind_rcu(&item->head, parent); in drm_ht_insert_item()
130 hlist_add_head_rcu(&item->head, h_list); in drm_ht_insert_item()
140 int drm_ht_just_insert_please(struct drm_open_hash *ht, struct drm_hash_item *item, in drm_ht_just_insert_please() argument
151 item->key = (unshifted_key << shift) + add; in drm_ht_just_insert_please()
152 ret = drm_ht_insert_item(ht, item); in drm_ht_just_insert_please()
166 struct drm_hash_item **item) in drm_ht_find_item() argument
174 *item = hlist_entry(list, struct drm_hash_item, head); in drm_ht_find_item()
191 int drm_ht_remove_item(struct drm_open_hash *ht, struct drm_hash_item *item) in drm_ht_remove_item() argument
[all …]
/linux-4.1.27/drivers/net/wireless/cw1200/
Dqueue.c72 struct cw1200_queue_item *item, *tmp; in cw1200_queue_post_gc() local
74 list_for_each_entry_safe(item, tmp, gc_list, head) { in cw1200_queue_post_gc()
75 list_del(&item->head); in cw1200_queue_post_gc()
76 stats->skb_dtor(stats->priv, item->skb, &item->txpriv); in cw1200_queue_post_gc()
77 kfree(item); in cw1200_queue_post_gc()
82 struct cw1200_queue_item *item) in cw1200_queue_register_post_gc() argument
88 memcpy(gc_item, item, sizeof(struct cw1200_queue_item)); in cw1200_queue_register_post_gc()
97 struct cw1200_queue_item *item = NULL, *tmp; in __cw1200_queue_gc() local
100 list_for_each_entry_safe(item, tmp, &queue->queue, head) { in __cw1200_queue_gc()
101 if (jiffies - item->queue_timestamp < queue->ttl) in __cw1200_queue_gc()
[all …]
/linux-4.1.27/kernel/trace/
Dtrace_export.c31 #define __field_struct(type, item) argument
34 #define __field(type, item) type item; argument
37 #define __field_desc(type, container, item) type item; argument
40 #define __array(type, item, size) type item[size]; argument
43 #define __array_desc(type, container, item, size) type item[size]; argument
46 #define __dynamic_array(type, item) type item[]; argument
75 #define __field(type, item) \ argument
76 ret = trace_define_field(event_call, #type, #item, \
77 offsetof(typeof(field), item), \
78 sizeof(field.item), \
[all …]
Dtrace.h47 #define __field(type, item) type item; argument
50 #define __field_struct(type, item) __field(type, item) argument
53 #define __field_desc(type, container, item) argument
56 #define __array(type, item, size) type item[size]; argument
59 #define __array_desc(type, container, item, size) argument
62 #define __dynamic_array(type, item) type item[]; argument
Dtrace_probe.h54 #define DEFINE_FIELD(type, item, name, is_signed) \ argument
57 offsetof(typeof(field), item), \
58 sizeof(field.item), is_signed, \
/linux-4.1.27/fs/nfs/
Ddns_resolve.c105 struct nfs_dns_ent *item; in nfs_dns_ent_put() local
107 item = container_of(ref, struct nfs_dns_ent, h.ref); in nfs_dns_ent_put()
108 kfree(item->hostname); in nfs_dns_ent_put()
109 kfree(item); in nfs_dns_ent_put()
114 struct nfs_dns_ent *item = kmalloc(sizeof(*item), GFP_KERNEL); in nfs_dns_ent_alloc() local
116 if (item != NULL) { in nfs_dns_ent_alloc()
117 item->hostname = NULL; in nfs_dns_ent_alloc()
118 item->namelen = 0; in nfs_dns_ent_alloc()
119 item->addrlen = 0; in nfs_dns_ent_alloc()
120 return &item->h; in nfs_dns_ent_alloc()
[all …]
/linux-4.1.27/include/trace/
Dftrace.h70 #define __field(type, item) type item; argument
73 #define __field_ext(type, item, filter_type) type item; argument
76 #define __field_struct(type, item) type item; argument
79 #define __field_struct_ext(type, item, filter_type) type item; argument
82 #define __array(type, item, len) type item[len]; argument
85 #define __dynamic_array(type, item, len) u32 __data_loc_##item; argument
88 #define __string(item, src) __dynamic_array(char, item, -1) argument
91 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) argument
156 #define __field(type, item) argument
159 #define __field_ext(type, item, filter_type) argument
[all …]
/linux-4.1.27/Documentation/filesystems/configfs/
Dconfigfs_example_explicit.c62 static inline struct childless *to_childless(struct config_item *item) in to_childless() argument
64 …return item ? container_of(to_configfs_subsystem(to_config_group(item)), struct childless, subsys)… in to_childless()
136 static ssize_t childless_attr_show(struct config_item *item, in childless_attr_show() argument
140 struct childless *childless = to_childless(item); in childless_attr_show()
150 static ssize_t childless_attr_store(struct config_item *item, in childless_attr_store() argument
154 struct childless *childless = to_childless(item); in childless_attr_store()
199 struct config_item item; member
203 static inline struct simple_child *to_simple_child(struct config_item *item) in to_simple_child() argument
205 return item ? container_of(item, struct simple_child, item) : NULL; in to_simple_child()
219 static ssize_t simple_child_attr_show(struct config_item *item, in simple_child_attr_show() argument
[all …]
Dconfigfs_example_macros.c55 static inline struct childless *to_childless(struct config_item *item) in to_childless() argument
57 …return item ? container_of(to_configfs_subsystem(to_config_group(item)), struct childless, subsys)… in to_childless()
162 struct config_item item; member
166 static inline struct simple_child *to_simple_child(struct config_item *item) in to_simple_child() argument
168 return item ? container_of(item, struct simple_child, item) : NULL; in to_simple_child()
182 static ssize_t simple_child_attr_show(struct config_item *item, in simple_child_attr_show() argument
187 struct simple_child *simple_child = to_simple_child(item); in simple_child_attr_show()
194 static ssize_t simple_child_attr_store(struct config_item *item, in simple_child_attr_store() argument
198 struct simple_child *simple_child = to_simple_child(item); in simple_child_attr_store()
214 static void simple_child_release(struct config_item *item) in simple_child_release() argument
[all …]
Dconfigfs.txt46 These are modules that register their item types with configfs as
51 An item is created via mkdir(2). The item's attributes will also
64 When an item needs to be destroyed, remove it with rmdir(2). An
65 item cannot be destroyed if any other item has a link to it (via
156 Usually a subsystem wants the item to display and/or store attributes,
198 When a config_item wants an attribute to appear as a file in the item's
201 config_item_type->ct_attrs. When the item appears in configfs, the
214 child item.
230 that item means that a group can behave as an item in its own right.
240 int (*commit_item)(struct config_item *item);
[all …]
/linux-4.1.27/scripts/kconfig/
Dqconf.cc307 item = i; in show()
308 if (sym_get_string_value(item->menu->sym)) in show()
309 setText(QString::fromLocal8Bit(sym_get_string_value(item->menu->sym))); in show()
323 sym_set_string_value(item->menu->sym, text().latin1()); in keyPressEvent()
324 parent()->updateList(item); in keyPressEvent()
419 ConfigItem* item = (ConfigItem*)menu->data; in findConfigItem() local
421 for (; item; item = item->nextItem) { in findConfigItem()
422 if (this == item->listView()) in findConfigItem()
426 return item; in findConfigItem()
434 ConfigItem* item = (ConfigItem*)selectedItem(); in updateSelection() local
[all …]
Dqconf.h74 void updateList(ConfigItem *item);
75 void setValue(ConfigItem* item, tristate val);
76 void changeValue(ConfigItem* item);
216 ConfigItem *item;
225 static void updateList(ConfigItem* item);
/linux-4.1.27/fs/btrfs/
Droot-tree.c34 struct btrfs_root_item *item) in btrfs_read_root_item() argument
41 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item()
42 min_t(int, len, (int)sizeof(*item))); in btrfs_read_root_item()
43 if (len < sizeof(*item)) in btrfs_read_root_item()
45 if (!need_reset && btrfs_root_generation(item) in btrfs_read_root_item()
46 != btrfs_root_generation_v2(item)) { in btrfs_read_root_item()
47 if (btrfs_root_generation_v2(item) != 0) { in btrfs_read_root_item()
58 memset(&item->generation_v2, 0, in btrfs_read_root_item()
59 sizeof(*item) - offsetof(struct btrfs_root_item, in btrfs_read_root_item()
63 memcpy(item->uuid, uuid.b, BTRFS_UUID_SIZE); in btrfs_read_root_item()
[all …]
Ddelayed-inode.c317 struct btrfs_delayed_item *item; in btrfs_alloc_delayed_item() local
318 item = kmalloc(sizeof(*item) + data_len, GFP_NOFS); in btrfs_alloc_delayed_item()
319 if (item) { in btrfs_alloc_delayed_item()
320 item->data_len = data_len; in btrfs_alloc_delayed_item()
321 item->ins_or_del = 0; in btrfs_alloc_delayed_item()
322 item->bytes_reserved = 0; in btrfs_alloc_delayed_item()
323 item->delayed_node = NULL; in btrfs_alloc_delayed_item()
324 atomic_set(&item->refs, 1); in btrfs_alloc_delayed_item()
326 return item; in btrfs_alloc_delayed_item()
394 struct btrfs_delayed_item *item; in __btrfs_lookup_delayed_insertion_item() local
[all …]
Dfile-item.c48 struct btrfs_file_extent_item *item; in btrfs_insert_file_extent() local
62 sizeof(*item)); in btrfs_insert_file_extent()
67 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
69 btrfs_set_file_extent_disk_bytenr(leaf, item, disk_offset); in btrfs_insert_file_extent()
70 btrfs_set_file_extent_disk_num_bytes(leaf, item, disk_num_bytes); in btrfs_insert_file_extent()
71 btrfs_set_file_extent_offset(leaf, item, offset); in btrfs_insert_file_extent()
72 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); in btrfs_insert_file_extent()
73 btrfs_set_file_extent_ram_bytes(leaf, item, ram_bytes); in btrfs_insert_file_extent()
74 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_file_extent()
75 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); in btrfs_insert_file_extent()
[all …]
DMakefile4 btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
5 file-item.o inode-item.o inode-map.o disk-io.o \
Dtree-log.c413 struct btrfs_inode_item *item; in overwrite_item() local
417 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
419 nbytes = btrfs_inode_nbytes(path->nodes[0], item); in overwrite_item()
420 item = btrfs_item_ptr(eb, slot, in overwrite_item()
422 btrfs_set_inode_nbytes(eb, item, nbytes); in overwrite_item()
429 mode = btrfs_inode_mode(eb, item); in overwrite_item()
431 btrfs_set_inode_size(eb, item, 0); in overwrite_item()
434 struct btrfs_inode_item *item; in overwrite_item() local
441 item = btrfs_item_ptr(eb, slot, struct btrfs_inode_item); in overwrite_item()
442 btrfs_set_inode_nbytes(eb, item, 0); in overwrite_item()
[all …]
Dctree.c3602 struct btrfs_item *item; in __push_leaf_right() local
3621 item = btrfs_item_nr(i); in __push_leaf_right()
3636 this_item_size = btrfs_item_size(left, item); in __push_leaf_right()
3637 if (this_item_size + sizeof(*item) + push_space > free_space) in __push_leaf_right()
3641 push_space += this_item_size + sizeof(*item); in __push_leaf_right()
3685 item = btrfs_item_nr(i); in __push_leaf_right()
3686 push_space -= btrfs_token_item_size(right, item, &token); in __push_leaf_right()
3687 btrfs_set_token_item_offset(right, item, push_space, &token); in __push_leaf_right()
3824 struct btrfs_item *item; in __push_leaf_left() local
3840 item = btrfs_item_nr(i); in __push_leaf_left()
[all …]
Dprint-tree.c176 struct btrfs_item *item; in btrfs_print_leaf() local
196 item = btrfs_item_nr(i); in btrfs_print_leaf()
202 btrfs_item_offset(l, item), btrfs_item_size(l, item)); in btrfs_print_leaf()
Ddir-item.c43 struct btrfs_item *item; in insert_with_overflow() local
57 item = btrfs_item_nr(path->slots[0]); in insert_with_overflow()
59 BUG_ON(data_size > btrfs_item_size(leaf, item)); in insert_with_overflow()
60 ptr += btrfs_item_size(leaf, item) - data_size; in insert_with_overflow()
Dctree.h1281 struct btrfs_block_group_item item; member
2537 struct btrfs_tree_block_info *item, in btrfs_tree_block_key() argument
2540 read_eb_member(eb, item, struct btrfs_tree_block_info, key, key); in btrfs_tree_block_key()
2544 struct btrfs_tree_block_info *item, in btrfs_set_tree_block_key() argument
2547 write_eb_member(eb, item, struct btrfs_tree_block_info, key, key); in btrfs_set_tree_block_key()
2666 struct btrfs_item *item) in btrfs_item_end() argument
2668 return btrfs_item_offset(eb, item) + btrfs_item_size(eb, item); in btrfs_item_end()
2689 struct btrfs_item *item = btrfs_item_nr(nr); in btrfs_item_key() local
2690 read_eb_member(eb, item, struct btrfs_item, key, disk_key); in btrfs_item_key()
2696 struct btrfs_item *item = btrfs_item_nr(nr); in btrfs_set_item_key() local
[all …]
Dinode-item.c282 struct btrfs_item *item; in btrfs_insert_inode_extref() local
307 item = btrfs_item_nr(path->slots[0]); in btrfs_insert_inode_extref()
309 ptr += btrfs_item_size(leaf, item) - ins_len; in btrfs_insert_inode_extref()
Dxattr.c183 struct btrfs_item *item; in do_setxattr() local
210 item = btrfs_item_nr(slot); in do_setxattr()
212 ptr += btrfs_item_size(leaf, item) - data_size; in do_setxattr()
Dextent-tree.c985 struct btrfs_extent_item *item; in convert_extent_item_v0() local
992 u32 new_size = sizeof(*item); in convert_extent_item_v0()
1041 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in convert_extent_item_v0()
1042 btrfs_set_extent_refs(leaf, item, refs); in convert_extent_item_v0()
1044 btrfs_set_extent_generation(leaf, item, 0); in convert_extent_item_v0()
1046 btrfs_set_extent_flags(leaf, item, in convert_extent_item_v0()
1049 bi = (struct btrfs_tree_block_info *)(item + 1); in convert_extent_item_v0()
1054 btrfs_set_extent_flags(leaf, item, BTRFS_EXTENT_FLAG_DATA); in convert_extent_item_v0()
1979 struct btrfs_extent_item *item; in __btrfs_inc_extent_ref() local
2009 item = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_inc_extent_ref()
[all …]
Dinode.c2400 struct btrfs_file_extent_item *item; in relink_extent_backref() local
2558 item = btrfs_item_ptr(leaf, path->slots[0], in relink_extent_backref()
2560 btrfs_set_file_extent_disk_bytenr(leaf, item, new->bytenr); in relink_extent_backref()
2561 btrfs_set_file_extent_disk_num_bytes(leaf, item, new->disk_len); in relink_extent_backref()
2562 btrfs_set_file_extent_offset(leaf, item, start - new->file_pos); in relink_extent_backref()
2563 btrfs_set_file_extent_num_bytes(leaf, item, len); in relink_extent_backref()
2564 btrfs_set_file_extent_ram_bytes(leaf, item, new->len); in relink_extent_backref()
2565 btrfs_set_file_extent_generation(leaf, item, trans->transid); in relink_extent_backref()
2566 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); in relink_extent_backref()
2567 btrfs_set_file_extent_compression(leaf, item, new->compress_type); in relink_extent_backref()
[all …]
/linux-4.1.27/drivers/infiniband/core/
Dumem_odp.c44 static void ib_umem_notifier_start_account(struct ib_umem *item) in ib_umem_notifier_start_account() argument
46 mutex_lock(&item->odp_data->umem_mutex); in ib_umem_notifier_start_account()
50 if (item->odp_data->mn_counters_active) { in ib_umem_notifier_start_account()
51 int notifiers_count = item->odp_data->notifiers_count++; in ib_umem_notifier_start_account()
57 reinit_completion(&item->odp_data->notifier_completion); in ib_umem_notifier_start_account()
59 mutex_unlock(&item->odp_data->umem_mutex); in ib_umem_notifier_start_account()
62 static void ib_umem_notifier_end_account(struct ib_umem *item) in ib_umem_notifier_end_account() argument
64 mutex_lock(&item->odp_data->umem_mutex); in ib_umem_notifier_end_account()
68 if (item->odp_data->mn_counters_active) { in ib_umem_notifier_end_account()
74 ++item->odp_data->notifiers_seq; in ib_umem_notifier_end_account()
[all …]
/linux-4.1.27/arch/arm/mach-s3c24xx/
Dmach-vr1000.c56 #define VA_C5(item) ((unsigned long)(item) + BAST_VAM_CS5) argument
57 #define VA_C4(item) ((unsigned long)(item) + BAST_VAM_CS4) argument
58 #define VA_C3(item) ((unsigned long)(item) + BAST_VAM_CS3) argument
59 #define VA_C2(item) ((unsigned long)(item) + BAST_VAM_CS2) argument
63 #define PA_CS2(item) (__phys_to_pfn((item) + S3C2410_CS2)) argument
64 #define PA_CS3(item) (__phys_to_pfn((item) + S3C2410_CS3)) argument
65 #define PA_CS4(item) (__phys_to_pfn((item) + S3C2410_CS4)) argument
66 #define PA_CS5(item) (__phys_to_pfn((item) + S3C2410_CS5)) argument
Dmach-bast.c67 #define VA_C5(item) ((unsigned long)(item) + BAST_VAM_CS5) argument
68 #define VA_C4(item) ((unsigned long)(item) + BAST_VAM_CS4) argument
69 #define VA_C3(item) ((unsigned long)(item) + BAST_VAM_CS3) argument
70 #define VA_C2(item) ((unsigned long)(item) + BAST_VAM_CS2) argument
74 #define PA_CS2(item) (__phys_to_pfn((item) + S3C2410_CS2)) argument
75 #define PA_CS3(item) (__phys_to_pfn((item) + S3C2410_CS3)) argument
76 #define PA_CS4(item) (__phys_to_pfn((item) + S3C2410_CS4)) argument
77 #define PA_CS5(item) (__phys_to_pfn((item) + S3C2410_CS5)) argument
/linux-4.1.27/net/ceph/crush/
Dmapper.c370 int item, int x) in is_out() argument
372 if (item >= weight_max) in is_out()
374 if (weight[item] >= 0x10000) in is_out()
376 if (weight[item] == 0) in is_out()
378 if ((crush_hash32_2(CRUSH_HASH_RJENKINS1, x, item) & 0xffff) in is_out()
379 < weight[item]) in is_out()
424 int item = 0; in crush_choose_firstn() local
460 item = bucket_perm_choose(in, x, r); in crush_choose_firstn()
462 item = crush_bucket_choose(in, x, r); in crush_choose_firstn()
463 if (item >= map->max_devices) { in crush_choose_firstn()
[all …]
/linux-4.1.27/fs/ocfs2/
Duptodate.c149 struct ocfs2_meta_cache_item *item; in ocfs2_purge_copied_metadata_tree() local
152 item = rb_entry(node, struct ocfs2_meta_cache_item, c_node); in ocfs2_purge_copied_metadata_tree()
155 (unsigned long long) item->c_block); in ocfs2_purge_copied_metadata_tree()
157 rb_erase(&item->c_node, root); in ocfs2_purge_copied_metadata_tree()
158 kmem_cache_free(ocfs2_uptodate_cachep, item); in ocfs2_purge_copied_metadata_tree()
208 sector_t item) in ocfs2_search_cache_array() argument
213 if (item == ci->ci_cache.ci_array[i]) in ocfs2_search_cache_array()
227 struct ocfs2_meta_cache_item *item = NULL; in ocfs2_search_cache_tree() local
230 item = rb_entry(n, struct ocfs2_meta_cache_item, c_node); in ocfs2_search_cache_tree()
232 if (block < item->c_block) in ocfs2_search_cache_tree()
[all …]
Djournal.c1203 struct ocfs2_la_recovery_item *item, *n; in ocfs2_complete_recovery() local
1215 list_for_each_entry_safe(item, n, &tmp_la_list, lri_list) { in ocfs2_complete_recovery()
1216 list_del_init(&item->lri_list); in ocfs2_complete_recovery()
1220 la_dinode = item->lri_la_dinode; in ocfs2_complete_recovery()
1221 tl_dinode = item->lri_tl_dinode; in ocfs2_complete_recovery()
1222 qrec = item->lri_qrec; in ocfs2_complete_recovery()
1223 orphan_reco_type = item->lri_orphan_reco_type; in ocfs2_complete_recovery()
1225 trace_ocfs2_complete_recovery_slot(item->lri_slot, in ocfs2_complete_recovery()
1248 ret = ocfs2_recover_orphans(osb, item->lri_slot, in ocfs2_complete_recovery()
1255 item->lri_slot); in ocfs2_complete_recovery()
[all …]
/linux-4.1.27/fs/xfs/
Dxfs_log_recover.c1499 xlog_recover_item_t *item, *n; in xlog_recover_reorder_trans() local
1508 list_for_each_entry_safe(item, n, &sort_list, ri_list) { in xlog_recover_reorder_trans()
1509 xfs_buf_log_format_t *buf_f = item->ri_buf[0].i_addr; in xlog_recover_reorder_trans()
1511 switch (ITEM_TYPE(item)) { in xlog_recover_reorder_trans()
1513 list_move_tail(&item->ri_list, &buffer_list); in xlog_recover_reorder_trans()
1518 trans, item, pass); in xlog_recover_reorder_trans()
1519 list_move(&item->ri_list, &cancel_list); in xlog_recover_reorder_trans()
1523 list_move(&item->ri_list, &inode_buffer_list); in xlog_recover_reorder_trans()
1526 list_move_tail(&item->ri_list, &buffer_list); in xlog_recover_reorder_trans()
1534 trans, item, pass); in xlog_recover_reorder_trans()
[all …]
Dxfs_filestream.c125 struct xfs_fstrm_item *item = in xfs_fstrm_free_func() local
128 xfs_filestream_put_ag(item->ip->i_mount, item->ag); in xfs_fstrm_free_func()
130 trace_xfs_filestream_free(item->ip, item->ag); in xfs_fstrm_free_func()
132 kmem_free(item); in xfs_fstrm_free_func()
148 struct xfs_fstrm_item *item; in xfs_filestream_pick_ag() local
259 item = kmem_alloc(sizeof(*item), KM_MAYFAIL); in xfs_filestream_pick_ag()
260 if (!item) in xfs_filestream_pick_ag()
263 item->ag = *agp; in xfs_filestream_pick_ag()
264 item->ip = ip; in xfs_filestream_pick_ag()
266 err = xfs_mru_cache_insert(mp->m_filestream, ip->i_ino, &item->mru); in xfs_filestream_pick_ag()
[all …]
Dxfs_trans_ail.c147 cur->item = NULL; in xfs_trans_ail_cursor_init()
160 struct xfs_log_item *lip = cur->item; in xfs_trans_ail_cursor_next()
165 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_next()
177 cur->item = NULL; in xfs_trans_ail_cursor_done()
197 if (cur->item == lip) in xfs_trans_ail_cursor_clear()
198 cur->item = (struct xfs_log_item *) in xfs_trans_ail_cursor_clear()
199 ((__psint_t)cur->item | 1); in xfs_trans_ail_cursor_clear()
232 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_first()
263 cur->item = __xfs_trans_ail_cursor_last(ailp, lsn); in xfs_trans_ail_cursor_last()
264 return cur->item; in xfs_trans_ail_cursor_last()
[all …]
Dxfs_log_cil.c509 struct xfs_log_item *item; in xlog_cil_push() local
511 item = list_first_entry(&cil->xc_cil, in xlog_cil_push()
513 list_del_init(&item->li_cil); in xlog_cil_push()
515 ctx->lv_chain = item->li_lv; in xlog_cil_push()
517 lv->lv_next = item->li_lv; in xlog_cil_push()
518 lv = item->li_lv; in xlog_cil_push()
519 item->li_lv = NULL; in xlog_cil_push()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
Dhandle.c36 struct nvkm_handle *item; in nvkm_handle_init() local
45 list_for_each_entry(item, &handle->tree, head) { in nvkm_handle_init()
46 ret = nvkm_handle_init(item); in nvkm_handle_init()
55 list_for_each_entry_continue_reverse(item, &handle->tree, head) { in nvkm_handle_init()
56 nvkm_handle_fini(item, false); in nvkm_handle_init()
67 struct nvkm_handle *item; in nvkm_handle_fini() local
71 list_for_each_entry(item, &handle->tree, head) { in nvkm_handle_fini()
72 ret = nvkm_handle_fini(item, suspend); in nvkm_handle_fini()
88 list_for_each_entry_continue_reverse(item, &handle->tree, head) { in nvkm_handle_fini()
89 int rret = nvkm_handle_init(item); in nvkm_handle_fini()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dpinger.c146 struct timeout_item *item; in pinger_check_timeout() local
151 list_for_each_entry(item, &timeout_list, ti_chain) { in pinger_check_timeout()
152 int ti_timeout = item->ti_timeout; in pinger_check_timeout()
248 struct timeout_item *item; in ptlrpc_pinger_main() local
252 list_for_each_entry(item, &timeout_list, ti_chain) { in ptlrpc_pinger_main()
253 item->ti_cb(item, item->ti_cb_data); in ptlrpc_pinger_main()
452 struct timeout_item *item, *tmp; in ptlrpc_pinger_register_timeout() local
456 list_for_each_entry(item, &timeout_list, ti_chain) in ptlrpc_pinger_register_timeout()
457 if (item->ti_event == event) in ptlrpc_pinger_register_timeout()
460 item = ptlrpc_new_timeout(time, event, cb, data); in ptlrpc_pinger_register_timeout()
[all …]
/linux-4.1.27/fs/btrfs/tests/
Dextent-buffer-tests.c30 struct btrfs_item *item; in test_btrfs_split_item() local
70 item = btrfs_item_nr(0); in test_btrfs_split_item()
99 item = btrfs_item_nr(0); in test_btrfs_split_item()
100 if (btrfs_item_size(eb, item) != strlen(split1)) { in test_btrfs_split_item()
124 item = btrfs_item_nr(1); in test_btrfs_split_item()
125 if (btrfs_item_size(eb, item) != strlen(split2)) { in test_btrfs_split_item()
156 item = btrfs_item_nr(0); in test_btrfs_split_item()
157 if (btrfs_item_size(eb, item) != strlen(split3)) { in test_btrfs_split_item()
180 item = btrfs_item_nr(1); in test_btrfs_split_item()
181 if (btrfs_item_size(eb, item) != strlen(split4)) { in test_btrfs_split_item()
[all …]
Dqgroup-tests.c37 struct btrfs_extent_item *item; in insert_normal_tree_ref() local
43 u32 size = sizeof(*item) + sizeof(*iref) + sizeof(*block_info); in insert_normal_tree_ref()
67 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in insert_normal_tree_ref()
68 btrfs_set_extent_refs(leaf, item, 1); in insert_normal_tree_ref()
69 btrfs_set_extent_generation(leaf, item, 1); in insert_normal_tree_ref()
70 btrfs_set_extent_flags(leaf, item, BTRFS_EXTENT_FLAG_TREE_BLOCK); in insert_normal_tree_ref()
71 block_info = (struct btrfs_tree_block_info *)(item + 1); in insert_normal_tree_ref()
90 struct btrfs_extent_item *item; in add_tree_ref() local
116 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in add_tree_ref()
118 refs = btrfs_extent_refs(path->nodes[0], item); in add_tree_ref()
[all …]
/linux-4.1.27/drivers/clk/mmp/
Dclk-mix.c115 struct mmp_clk_mix_clk_table *item; in _filter_clk_table() local
122 item = &table[i]; in _filter_clk_table()
123 parent = clk_get_parent_by_index(clk, item->parent_index); in _filter_clk_table()
125 if (parent_rate % item->rate) { in _filter_clk_table()
126 item->valid = 0; in _filter_clk_table()
128 item->divisor = parent_rate / item->rate; in _filter_clk_table()
129 item->valid = 1; in _filter_clk_table()
211 struct mmp_clk_mix_clk_table *item; in mmp_clk_mix_determine_rate() local
229 item = &mix->table[i]; in mmp_clk_mix_determine_rate()
230 if (item->valid == 0) in mmp_clk_mix_determine_rate()
[all …]
/linux-4.1.27/drivers/gpu/drm/sis/
Dsis_mm.c88 struct sis_memblock *item; in sis_drm_alloc() local
102 item = kzalloc(sizeof(*item), GFP_KERNEL); in sis_drm_alloc()
103 if (!item) { in sis_drm_alloc()
111 &item->mm_node, in sis_drm_alloc()
114 offset = item->mm_node.start; in sis_drm_alloc()
117 item->req.size = mem->size; in sis_drm_alloc()
118 sis_malloc(&item->req); in sis_drm_alloc()
119 if (item->req.size == 0) in sis_drm_alloc()
121 offset = item->req.offset; in sis_drm_alloc()
124 &item->mm_node, in sis_drm_alloc()
[all …]
/linux-4.1.27/drivers/net/
Dnetconsole.c105 struct config_item item; member
135 if (config_item_name(&nt->item)) in netconsole_target_get()
136 config_item_get(&nt->item); in netconsole_target_get()
141 if (config_item_name(&nt->item)) in netconsole_target_put()
142 config_item_put(&nt->item); in netconsole_target_put()
245 static struct netconsole_target *to_target(struct config_item *item) in to_target() argument
247 return item ? in to_target()
248 container_of(item, struct netconsole_target, item) : in to_target()
367 config_item_name(&nt->item)); in store_dev_name()
389 config_item_name(&nt->item)); in store_local_port()
[all …]
/linux-4.1.27/drivers/gpu/drm/via/
Dvia_mm.c115 struct via_memblock *item; in via_mem_alloc() local
133 item = kzalloc(sizeof(*item), GFP_KERNEL); in via_mem_alloc()
134 if (!item) { in via_mem_alloc()
142 &item->mm_node, in via_mem_alloc()
146 &item->mm_node, in via_mem_alloc()
151 retval = idr_alloc(&dev_priv->object_idr, item, 1, 0, GFP_KERNEL); in via_mem_alloc()
156 list_add(&item->owner_list, &file_priv->obj_list); in via_mem_alloc()
161 ((item->mm_node.start) << VIA_MM_ALIGN_SHIFT); in via_mem_alloc()
167 drm_mm_remove_node(&item->mm_node); in via_mem_alloc()
169 kfree(item); in via_mem_alloc()
/linux-4.1.27/mm/
Dlist_lru.c95 bool list_lru_add(struct list_lru *lru, struct list_head *item) in list_lru_add() argument
97 int nid = page_to_nid(virt_to_page(item)); in list_lru_add()
102 l = list_lru_from_kmem(nlru, item); in list_lru_add()
103 if (list_empty(item)) { in list_lru_add()
104 list_add_tail(item, &l->list); in list_lru_add()
114 bool list_lru_del(struct list_lru *lru, struct list_head *item) in list_lru_del() argument
116 int nid = page_to_nid(virt_to_page(item)); in list_lru_del()
121 l = list_lru_from_kmem(nlru, item); in list_lru_del()
122 if (!list_empty(item)) { in list_lru_del()
123 list_del_init(item); in list_lru_del()
[all …]
Dvmstat.c221 void __mod_zone_page_state(struct zone *zone, enum zone_stat_item item, in __mod_zone_page_state() argument
225 s8 __percpu *p = pcp->vm_stat_diff + item; in __mod_zone_page_state()
234 zone_page_state_add(x, zone, item); in __mod_zone_page_state()
264 void __inc_zone_state(struct zone *zone, enum zone_stat_item item) in __inc_zone_state() argument
267 s8 __percpu *p = pcp->vm_stat_diff + item; in __inc_zone_state()
275 zone_page_state_add(v + overstep, zone, item); in __inc_zone_state()
280 void __inc_zone_page_state(struct page *page, enum zone_stat_item item) in __inc_zone_page_state() argument
282 __inc_zone_state(page_zone(page), item); in __inc_zone_page_state()
286 void __dec_zone_state(struct zone *zone, enum zone_stat_item item) in __dec_zone_state() argument
289 s8 __percpu *p = pcp->vm_stat_diff + item; in __dec_zone_state()
[all …]
Dworkingset.c304 static enum lru_status shadow_lru_isolate(struct list_head *item, in shadow_lru_isolate() argument
326 node = container_of(item, struct radix_tree_node, private_list); in shadow_lru_isolate()
336 list_lru_isolate(lru, item); in shadow_lru_isolate()
Dcompaction.c23 static inline void count_compact_event(enum vm_event_item item) in count_compact_event() argument
25 count_vm_event(item); in count_compact_event()
28 static inline void count_compact_events(enum vm_event_item item, long delta) in count_compact_events() argument
30 count_vm_events(item, delta); in count_compact_events()
33 #define count_compact_event(item) do { } while (0) argument
34 #define count_compact_events(item, delta) do { } while (0) argument
/linux-4.1.27/net/tipc/
Dname_distr.c119 struct distr_item *item; in tipc_named_publish() local
133 item = (struct distr_item *)msg_data(buf_msg(buf)); in tipc_named_publish()
134 publ_to_item(item, publ); in tipc_named_publish()
144 struct distr_item *item; in tipc_named_withdraw() local
157 item = (struct distr_item *)msg_data(buf_msg(buf)); in tipc_named_withdraw()
158 publ_to_item(item, publ); in tipc_named_withdraw()
173 struct distr_item *item = NULL; in named_distribute() local
187 item = (struct distr_item *)msg_data(buf_msg(skb)); in named_distribute()
191 publ_to_item(item, publ); in named_distribute()
192 item++; in named_distribute()
[all …]
/linux-4.1.27/fs/ocfs2/cluster/
Dnodemanager.c156 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster() argument
158 return item ? in to_o2nm_cluster()
159 container_of(to_config_group(item), struct o2nm_cluster, in to_o2nm_cluster()
164 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() argument
166 return item ? container_of(item, struct o2nm_node, nd_item) : NULL; in to_o2nm_node()
169 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() argument
171 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_release()
409 static ssize_t o2nm_node_show(struct config_item *item, in o2nm_node_show() argument
413 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_show()
423 static ssize_t o2nm_node_store(struct config_item *item, in o2nm_node_store() argument
[all …]
Dnodemanager.h83 int o2nm_depend_item(struct config_item *item);
84 void o2nm_undepend_item(struct config_item *item);
Dheartbeat.c1434 static struct o2hb_region *to_o2hb_region(struct config_item *item) in to_o2hb_region() argument
1436 return item ? container_of(item, struct o2hb_region, hr_item) : NULL; in to_o2hb_region()
1442 static void o2hb_region_release(struct config_item *item) in o2hb_region_release() argument
1446 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_release()
1943 static ssize_t o2hb_region_show(struct config_item *item, in o2hb_region_show() argument
1947 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_show()
1957 static ssize_t o2hb_region_store(struct config_item *item, in o2hb_region_store() argument
1961 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_store()
2107 struct config_item *item) in o2hb_heartbeat_group_drop_item() argument
2110 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_heartbeat_group_drop_item()
[all …]
/linux-4.1.27/fs/logfs/
Dsegment.c188 struct object_alias_item *item; in btree_write_alias() local
191 list_for_each_entry(item, &block->item_list, list) { in btree_write_alias()
193 block->level, item->child_no, item->val); in btree_write_alias()
211 struct object_alias_item *item; in logfs_load_object_aliases() local
219 item = mempool_alloc(super->s_alias_pool, GFP_NOFS); in logfs_load_object_aliases()
220 if (!item) in logfs_load_object_aliases()
222 memset(item, 0, sizeof(*item)); in logfs_load_object_aliases()
225 item->val = oa[i].val; in logfs_load_object_aliases()
226 item->child_no = be16_to_cpu(oa[i].child_no); in logfs_load_object_aliases()
233 ino, bix, level, item->child_no, in logfs_load_object_aliases()
[all …]
/linux-4.1.27/fs/nfsd/
Dnfs4idmap.c268 idtoname_lookup(struct cache_detail *cd, struct ent *item) in idtoname_lookup() argument
270 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h, in idtoname_lookup()
271 idtoname_hash(item)); in idtoname_lookup()
426 nametoid_lookup(struct cache_detail *cd, struct ent *item) in nametoid_lookup() argument
428 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h, in nametoid_lookup()
429 nametoid_hash(item)); in nametoid_lookup()
496 struct ent *key, struct cache_detail *detail, struct ent **item) in idmap_lookup() argument
500 *item = lookup_fn(detail, key); in idmap_lookup()
501 if (!*item) in idmap_lookup()
504 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
[all …]
Dexport.c206 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init() local
208 kref_get(&item->ek_client->ref); in expkey_init()
209 new->ek_client = item->ek_client; in expkey_init()
210 new->ek_fsidtype = item->ek_fsidtype; in expkey_init()
212 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init()
219 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update() local
221 new->ek_path = item->ek_path; in expkey_update()
222 path_get(&item->ek_path); in expkey_update()
249 svc_expkey_hash(struct svc_expkey *item) in svc_expkey_hash() argument
251 int hash = item->ek_fsidtype; in svc_expkey_hash()
[all …]
/linux-4.1.27/drivers/usb/gadget/function/
Duvc_configfs.c21 static ssize_t _item##_attr_show(struct config_item *item, \
25 struct _item *_item = to_##_item(item); \
35 static inline struct f_uvc_opts *to_f_uvc_opts(struct config_item *item);
41 struct config_item item; member
46 static struct uvcg_control_header *to_uvcg_control_header(struct config_item *item) in to_uvcg_control_header() argument
48 return container_of(item, struct uvcg_control_header, item); in to_uvcg_control_header()
65 struct mutex *su_mutex = &ch->item.ci_group->cg_subsys->su_mutex;\
70 opts_item = ch->item.ci_parent->ci_parent->ci_parent; \
87 struct mutex *su_mutex = &ch->item.ci_group->cg_subsys->su_mutex;\
93 opts_item = ch->item.ci_parent->ci_parent->ci_parent; \
[all …]
Df_serial.c264 static inline struct f_serial_opts *to_f_serial_opts(struct config_item *item) in to_f_serial_opts() argument
266 return container_of(to_config_group(item), struct f_serial_opts, in to_f_serial_opts()
271 static ssize_t f_serial_attr_show(struct config_item *item, in f_serial_attr_show() argument
275 struct f_serial_opts *opts = to_f_serial_opts(item); in f_serial_attr_show()
286 static void serial_attr_release(struct config_item *item) in serial_attr_release() argument
288 struct f_serial_opts *opts = to_f_serial_opts(item); in serial_attr_release()
Df_obex.c411 static inline struct f_serial_opts *to_f_serial_opts(struct config_item *item) in to_f_serial_opts() argument
413 return container_of(to_config_group(item), struct f_serial_opts, in to_f_serial_opts()
418 static ssize_t f_obex_attr_show(struct config_item *item, in f_obex_attr_show() argument
422 struct f_serial_opts *opts = to_f_serial_opts(item); in f_obex_attr_show()
433 static void obex_attr_release(struct config_item *item) in obex_attr_release() argument
435 struct f_serial_opts *opts = to_f_serial_opts(item); in obex_attr_release()
Df_phonet.c586 static inline struct f_phonet_opts *to_f_phonet_opts(struct config_item *item) in to_f_phonet_opts() argument
588 return container_of(to_config_group(item), struct f_phonet_opts, in to_f_phonet_opts()
593 static ssize_t f_phonet_attr_show(struct config_item *item, in f_phonet_attr_show() argument
597 struct f_phonet_opts *opts = to_f_phonet_opts(item); in f_phonet_attr_show()
607 static void phonet_attr_release(struct config_item *item) in phonet_attr_release() argument
609 struct f_phonet_opts *opts = to_f_phonet_opts(item); in phonet_attr_release()
Df_loopback.c415 static inline struct f_lb_opts *to_f_lb_opts(struct config_item *item) in to_f_lb_opts() argument
417 return container_of(to_config_group(item), struct f_lb_opts, in to_f_lb_opts()
424 static void lb_attr_release(struct config_item *item) in lb_attr_release() argument
426 struct f_lb_opts *lb_opts = to_f_lb_opts(item); in lb_attr_release()
Du_ether_configfs.h23 static void _f_##_attr_release(struct config_item *item) \
25 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
Df_acm.c774 static inline struct f_serial_opts *to_f_serial_opts(struct config_item *item) in to_f_serial_opts() argument
776 return container_of(to_config_group(item), struct f_serial_opts, in to_f_serial_opts()
781 static ssize_t f_acm_attr_show(struct config_item *item, in f_acm_attr_show() argument
785 struct f_serial_opts *opts = to_f_serial_opts(item); in f_acm_attr_show()
795 static void acm_attr_release(struct config_item *item) in acm_attr_release() argument
797 struct f_serial_opts *opts = to_f_serial_opts(item); in acm_attr_release()
/linux-4.1.27/include/rdma/
Dib_umem_odp.h111 typedef int (*umem_call_back)(struct ib_umem *item, u64 start, u64 end,
125 static inline int ib_umem_mmu_notifier_retry(struct ib_umem *item, in ib_umem_mmu_notifier_retry() argument
138 if (!item->odp_data->mn_counters_active) in ib_umem_mmu_notifier_retry()
141 if (unlikely(item->odp_data->notifiers_count)) in ib_umem_mmu_notifier_retry()
143 if (item->odp_data->notifiers_seq != mmu_seq) in ib_umem_mmu_notifier_retry()
/linux-4.1.27/drivers/edac/
Dedac_pci.c98 struct list_head *item; in find_edac_pci_by_dev() local
102 list_for_each(item, &edac_pci_list) { in find_edac_pci_by_dev()
103 pci = list_entry(item, struct edac_pci_ctl_info, link); in find_edac_pci_by_dev()
122 struct list_head *item, *insert_before; in add_edac_pci_to_global_list() local
135 list_for_each(item, &edac_pci_list) { in add_edac_pci_to_global_list()
136 rover = list_entry(item, struct edac_pci_ctl_info, link); in add_edac_pci_to_global_list()
142 insert_before = item; in add_edac_pci_to_global_list()
195 struct list_head *item;
199 list_for_each(item, &edac_pci_list) {
200 pci = list_entry(item, struct edac_pci_ctl_info, link);
Dedac_device.c271 struct list_head *item; in find_edac_device_by_dev() local
275 list_for_each(item, &edac_device_list) { in find_edac_device_by_dev()
276 edac_dev = list_entry(item, struct edac_device_ctl_info, link); in find_edac_device_by_dev()
298 struct list_head *item, *insert_before; in add_edac_dev_to_global_list() local
309 list_for_each(item, &edac_device_list) { in add_edac_dev_to_global_list()
310 rover = list_entry(item, struct edac_device_ctl_info, link); in add_edac_dev_to_global_list()
316 insert_before = item; in add_edac_dev_to_global_list()
Dedac_mc.c491 struct list_head *item; in find_mci_by_dev() local
495 list_for_each(item, &mc_devices) { in find_mci_by_dev()
496 mci = list_entry(item, struct mem_ctl_info, link); in find_mci_by_dev()
599 struct list_head *item; in edac_mc_reset_delay_period() local
603 list_for_each(item, &mc_devices) { in edac_mc_reset_delay_period()
604 mci = list_entry(item, struct mem_ctl_info, link); in edac_mc_reset_delay_period()
624 struct list_head *item, *insert_before; in add_mc_to_global_list() local
633 list_for_each(item, &mc_devices) { in add_mc_to_global_list()
634 p = list_entry(item, struct mem_ctl_info, link); in add_mc_to_global_list()
640 insert_before = item; in add_mc_to_global_list()
[all …]
/linux-4.1.27/drivers/usb/gadget/
Dconfigfs.c310 static inline struct gadget_info *to_gadget_info(struct config_item *item) in to_gadget_info() argument
312 return container_of(to_config_group(item), struct gadget_info, group); in to_gadget_info()
315 static inline struct gadget_strings *to_gadget_strings(struct config_item *item) in to_gadget_strings() argument
317 return container_of(to_config_group(item), struct gadget_strings, in to_gadget_strings()
322 struct config_item *item) in to_gadget_config_name() argument
324 return container_of(to_config_group(item), struct gadget_config_name, in to_gadget_config_name()
328 static inline struct config_usb_cfg *to_config_usb_cfg(struct config_item *item) in to_config_usb_cfg() argument
330 return container_of(to_config_group(item), struct config_usb_cfg, in to_config_usb_cfg()
335 struct config_item *item) in to_usb_function_instance() argument
337 return container_of(to_config_group(item), in to_usb_function_instance()
[all …]
Dconfigfs.h6 void unregister_gadget_item(struct config_item *item);
14 static inline struct usb_os_desc *to_usb_os_desc(struct config_item *item) in to_usb_os_desc() argument
16 return container_of(to_config_group(item), struct usb_os_desc, group); in to_usb_os_desc()
/linux-4.1.27/drivers/hid/
Dhid-core.c296 static u32 item_udata(struct hid_item *item) in item_udata() argument
298 switch (item->size) { in item_udata()
299 case 1: return item->data.u8; in item_udata()
300 case 2: return item->data.u16; in item_udata()
301 case 4: return item->data.u32; in item_udata()
306 static s32 item_sdata(struct hid_item *item) in item_sdata() argument
308 switch (item->size) { in item_sdata()
309 case 1: return item->data.s8; in item_sdata()
310 case 2: return item->data.s16; in item_sdata()
311 case 4: return item->data.s32; in item_sdata()
[all …]
/linux-4.1.27/include/drm/
Ddrm_hashtab.h53 extern int drm_ht_insert_item(struct drm_open_hash *ht, struct drm_hash_item *item);
54 extern int drm_ht_just_insert_please(struct drm_open_hash *ht, struct drm_hash_item *item,
57 …ern int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **item);
61 extern int drm_ht_remove_item(struct drm_open_hash *ht, struct drm_hash_item *item);
/linux-4.1.27/drivers/target/
Dtarget_core_fabric_configfs.c233 static void target_fabric_mappedlun_release(struct config_item *item) in target_fabric_mappedlun_release() argument
235 struct se_lun_acl *lacl = container_of(to_config_group(item), in target_fabric_mappedlun_release()
271 struct config_item *item) in target_core_mappedlun_stat_rmdir() argument
430 struct config_item *item) in target_fabric_drop_mappedlun() argument
432 struct se_lun_acl *lacl = container_of(to_config_group(item), in target_fabric_drop_mappedlun()
454 config_item_put(item); in target_fabric_drop_mappedlun()
457 static void target_fabric_nacl_base_release(struct config_item *item) in target_fabric_nacl_base_release() argument
459 struct se_node_acl *se_nacl = container_of(to_config_group(item), in target_fabric_nacl_base_release()
538 struct config_item *item) in target_fabric_drop_nodeacl() argument
540 struct se_node_acl *se_nacl = container_of(to_config_group(item), in target_fabric_drop_nodeacl()
[all …]
Dtarget_core_configfs.c82 item_to_hba(struct config_item *item) in item_to_hba() argument
84 return container_of(to_config_group(item), struct se_hba, hba_group); in item_to_hba()
90 static ssize_t target_core_attr_show(struct config_item *item, in target_core_attr_show() argument
227 struct config_item *item) in target_core_deregister_fabric() argument
230 to_config_group(item), struct target_fabric_configfs, tf_group); in target_core_deregister_fabric()
236 " tf list\n", config_item_name(item)); in target_core_deregister_fabric()
247 " %s\n", config_item_name(item)); in target_core_deregister_fabric()
255 config_item_put(item); in target_core_deregister_fabric()
290 int target_depend_item(struct config_item *item) in target_depend_item() argument
292 return configfs_depend_item(&target_core_fabrics, item); in target_depend_item()
[all …]
/linux-4.1.27/fs/reiserfs/
Ditem_ops.c44 static void sd_print_item(struct item_head *ih, char *item) in sd_print_item() argument
48 struct stat_data_v1 *sd = (struct stat_data_v1 *)item; in sd_print_item()
55 struct stat_data *sd = (struct stat_data *)item; in sd_print_item()
63 static void sd_check_item(struct item_head *ih, char *item) in sd_check_item() argument
142 static void direct_print_item(struct item_head *ih, char *item) in direct_print_item() argument
149 printk("%c", item[j++]); in direct_print_item()
153 static void direct_check_item(struct item_head *ih, char *item) in direct_check_item() argument
268 static void indirect_print_item(struct item_head *ih, char *item) in indirect_print_item() argument
275 unp = (__le32 *) item; in indirect_print_item()
291 static void indirect_check_item(struct item_head *ih, char *item) in indirect_check_item() argument
[all …]
Dlbalance.c1075 char *item; in leaf_cut_entries() local
1095 item = bh->b_data + ih_location(ih); in leaf_cut_entries()
1108 prev_record = item + prev_record_offset; in leaf_cut_entries()
1131 prev_record, item + ih_item_len(ih) - prev_record); in leaf_cut_entries()
1322 char *item; in leaf_paste_entries() local
1343 item = bh->b_data + ih_location(ih); in leaf_paste_entries()
1350 item + in leaf_paste_entries()
1370 item + (ih_item_len(ih) - paste_size) - insert_point); in leaf_paste_entries()
1392 item)); in leaf_paste_entries()
/linux-4.1.27/drivers/xen/
Dgrant-table.c830 static void __gnttab_unmap_refs_async(struct gntab_unmap_queue_data* item);
843 static void __gnttab_unmap_refs_async(struct gntab_unmap_queue_data* item) in __gnttab_unmap_refs_async() argument
848 for (pc = 0; pc < item->count; pc++) { in __gnttab_unmap_refs_async()
849 if (page_count(item->pages[pc]) > 1) { in __gnttab_unmap_refs_async()
850 unsigned long delay = GNTTAB_UNMAP_REFS_DELAY * (item->age + 1); in __gnttab_unmap_refs_async()
851 schedule_delayed_work(&item->gnttab_work, in __gnttab_unmap_refs_async()
857 ret = gnttab_unmap_refs(item->unmap_ops, item->kunmap_ops, in __gnttab_unmap_refs_async()
858 item->pages, item->count); in __gnttab_unmap_refs_async()
859 item->done(ret, item); in __gnttab_unmap_refs_async()
862 void gnttab_unmap_refs_async(struct gntab_unmap_queue_data* item) in gnttab_unmap_refs_async() argument
[all …]
/linux-4.1.27/Documentation/filesystems/nfs/
Drpc-cache.txt55 This is called when the last reference to an item is
73 contents of a cache. This should show one item,
77 Format a request to be send to user-space for an item
86 cache_parse should parse this, find the item in the
87 cache with sunrpc_cache_lookup, and update the item
99 to the cache_head in a sample item with the 'key' fields filled in.
104 The item returned is typically passed to cache_check which will check
113 done when the found cache item is not uptodate, but the is reason to
115 item does become valid, the deferred copy of the request will be
120 sunrpc_cache_update to set the content for the item. A second item is
[all …]
/linux-4.1.27/Documentation/filesystems/
Dxfs-delayed-logging-design.txt162 existing log item dirty region tracking) is that when it comes to writing the
177 Put simply, the current logging code formats the changes to each item into an
178 vector array that points to the changed regions in the item. The log write code
180 transaction commit while the item is locked in the transaction. Instead of
187 that does not require us to lock the item to access. This formatting and
190 without needing to lock the owning item.
230 are in the item, so we'd need a new encapsulation method for regions in the log
249 log item is the natural place to store this vector and buffer, and also makes sense
253 The log item is already used to track the log items that have been written to
262 Essentially, this shows that an item that is in the AIL can still be modified
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dbmi.h226 #define ath6kl_bmi_write_hi32(ar, item, val) \ argument
231 addr = ath6kl_get_hi_item_addr(ar, HI_ITEM(item)); \
236 #define ath6kl_bmi_read_hi32(ar, item, val) \ argument
243 addr = ath6kl_get_hi_item_addr(ar, HI_ITEM(item)); \
Dtarget.h302 #define HI_ITEM(item) offsetof(struct host_interest, item) argument
/linux-4.1.27/include/target/
Dconfigfs_macros.h109 static ssize_t _name##_attr_show(struct config_item *item, \
113 struct _item *_item = to_##_name(item); \
124 static ssize_t _name##_attr_store(struct config_item *item, \
128 struct _item *_item = to_##_name(item); \
Dtarget_core_fabric.h111 int target_depend_item(struct config_item *item);
112 void target_undepend_item(struct config_item *item);
/linux-4.1.27/include/linux/netfilter/
Dnf_conntrack_h323_types.h246 OpenLogicalChannel item[30]; member
292 OpenLogicalChannel item[30]; member
314 OpenLogicalChannel item[30]; member
342 OpenLogicalChannel item[30]; member
385 OpenLogicalChannel item[30]; member
418 OpenLogicalChannel item[30]; member
598 MultimediaSystemControlMessage item[4]; member
664 TransportAddress item[10]; member
669 TransportAddress item[10]; member
706 TransportAddress item[10]; member
[all …]
/linux-4.1.27/net/sunrpc/auth_gss/
Dsvcauth_gss.c82 static struct rsi *rsi_lookup(struct cache_detail *cd, struct rsi *item);
99 static inline int rsi_hash(struct rsi *item) in rsi_hash() argument
101 return hash_mem(item->in_handle.data, item->in_handle.len, RSI_HASHBITS) in rsi_hash()
102 ^ hash_mem(item->in_token.data, item->in_token.len, RSI_HASHBITS); in rsi_hash()
107 struct rsi *item = container_of(a, struct rsi, h); in rsi_match() local
109 return netobj_equal(&item->in_handle, &tmp->in_handle) && in rsi_match()
110 netobj_equal(&item->in_token, &tmp->in_token); in rsi_match()
130 struct rsi *item = container_of(citem, struct rsi, h); in rsi_init() local
136 new->in_handle.len = item->in_handle.len; in rsi_init()
137 item->in_handle.len = 0; in rsi_init()
[all …]
/linux-4.1.27/sound/drivers/pcsp/
Dpcsp_mixer.c51 if (uinfo->value.enumerated.item > chip->max_treble) in pcsp_treble_info()
52 uinfo->value.enumerated.item = chip->max_treble; in pcsp_treble_info()
54 (unsigned long)PCSP_CALC_RATE(uinfo->value.enumerated.item)); in pcsp_treble_info()
62 ucontrol->value.enumerated.item[0] = chip->treble; in pcsp_treble_get()
71 int treble = ucontrol->value.enumerated.item[0]; in pcsp_treble_put()
/linux-4.1.27/net/sunrpc/
Dsvcauth_unix.c98 struct cache_head *item = container_of(kref, struct cache_head, ref); in ip_map_put() local
99 struct ip_map *im = container_of(item, struct ip_map,h); in ip_map_put()
101 if (test_bit(CACHE_VALID, &item->flags) && in ip_map_put()
102 !test_bit(CACHE_NEGATIVE, &item->flags)) in ip_map_put()
121 struct ip_map *item = container_of(citem, struct ip_map, h); in ip_map_init() local
123 strcpy(new->m_class, item->m_class); in ip_map_init()
124 new->m_addr = item->m_addr; in ip_map_init()
129 struct ip_map *item = container_of(citem, struct ip_map, h); in update() local
131 kref_get(&item->m_client->h.ref); in update()
132 new->m_client = item->m_client; in update()
[all …]
Dcache.c41 static bool cache_defer_req(struct cache_req *req, struct cache_head *item);
42 static void cache_revisit_request(struct cache_head *item);
519 #define DFR_HASH(item) ((((long)item)>>4 ^ (((long)item)>>13)) % DFR_HASHSIZE) argument
537 static void __hash_deferred_req(struct cache_deferred_req *dreq, struct cache_head *item) in __hash_deferred_req() argument
539 int hash = DFR_HASH(item); in __hash_deferred_req()
546 struct cache_head *item, in setup_deferral() argument
550 dreq->item = item; in setup_deferral()
554 __hash_deferred_req(dreq, item); in setup_deferral()
577 static void cache_wait_req(struct cache_req *req, struct cache_head *item) in cache_wait_req() argument
585 setup_deferral(dreq, item, 0); in cache_wait_req()
[all …]
/linux-4.1.27/include/net/netfilter/
Dnf_conntrack_ecache.h67 int (*fcn)(unsigned int events, struct nf_ct_event *item);
114 struct nf_ct_event item = { in nf_conntrack_eventmask_report() local
125 ret = notify->fcn(eventmask | missed, &item); in nf_conntrack_eventmask_report()
167 int (*fcn)(unsigned int events, struct nf_exp_event *item);
195 struct nf_exp_event item = { in nf_ct_expect_event_report() local
200 notify->fcn(1 << event, &item); in nf_ct_expect_event_report()
/linux-4.1.27/sound/pci/ac97/
Dac97_patch.c96 ucontrol->value.enumerated.item[0] = ac97->indep_surround; in ac97_surround_jack_mode_get()
103 unsigned char indep = !!ucontrol->value.enumerated.item[0]; in ac97_surround_jack_mode_put()
125 ucontrol->value.enumerated.item[0] = ac97->channel_mode; in ac97_channel_mode_get()
132 unsigned char mode = ucontrol->value.enumerated.item[0]; in ac97_channel_mode_put()
250 ucontrol->value.enumerated.item[0] = val; in snd_ac97_ymf7x3_get_speaker()
260 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ymf7x3_put_speaker()
262 val = (ucontrol->value.enumerated.item[0] + 1) << 10; in snd_ac97_ymf7x3_put_speaker()
292 ucontrol->value.enumerated.item[0] = (val >> 1) & 1; in snd_ac97_ymf7x3_spdif_source_get()
302 if (ucontrol->value.enumerated.item[0] > 1) in snd_ac97_ymf7x3_spdif_source_put()
304 val = ucontrol->value.enumerated.item[0] << 1; in snd_ac97_ymf7x3_spdif_source_put()
[all …]
/linux-4.1.27/scripts/basic/
Dfixdep.c141 struct item { struct
142 struct item *next; argument
149 static struct item *hashtab[HASHSZ]; argument
166 struct item *aux; in is_defined_config()
181 struct item *aux = malloc(sizeof(*aux) + len); in define_config()
199 struct item *aux, *next; in clear_config()
/linux-4.1.27/block/partitions/
Dldm.c606 struct list_head *item; in ldm_get_disk_objid() local
610 list_for_each (item, &ldb->v_disk) { in ldm_get_disk_objid()
611 struct vblk *v = list_entry (item, struct vblk, list); in ldm_get_disk_objid()
639 struct list_head *item; in ldm_create_data_partitions() local
656 list_for_each (item, &ldb->v_part) { in ldm_create_data_partitions()
657 vb = list_entry (item, struct vblk, list); in ldm_create_data_partitions()
1237 struct list_head *item; in ldm_ldmdb_add() local
1270 list_for_each (item, &ldb->v_part) { in ldm_ldmdb_add()
1271 struct vblk *v = list_entry (item, struct vblk, list); in ldm_ldmdb_add()
1299 struct list_head *item; in ldm_frag_add() local
[all …]
/linux-4.1.27/Documentation/
Dcircular-buffers.txt44 (2) A 'tail' index - the point at which the consumer finds the next item in
167 /* insert one item into the buffer */
168 struct item *item = buffer[head];
170 produce_item(item);
182 This will instruct the CPU that the contents of the new item must be written
209 /* extract one item from the buffer */
210 struct item *item = buffer[tail];
212 consume_item(item);
222 the new item, and then it shall make sure the CPU has finished reading the item
223 before it writes the new tail pointer, which will erase the item.
Dworkqueue.txt24 When such an asynchronous execution context is needed, a work item
31 there is no work item left on the workqueue the worker becomes idle.
32 When a new work item gets queued, the worker begins executing again.
77 abstraction, the work item, is introduced.
79 A work item is a simple struct that holds a pointer to the function
82 item pointing to that function and queue that work item on a
102 workqueue they are putting the work item on. These flags include
107 When a work item is queued to a workqueue, the target worker-pool is
110 unless specifically overridden, a work item of a bound workqueue will
163 forward progress guarantee, flush and work item attributes. @flags
[all …]
Dsvga.txt29 0..35 - Menu item number (when you have used the menu to view the list of
30 modes available on your adapter, you can specify the menu item you want
66 "0 0F00 80x25" means that the first menu item (the menu items are numbered
70 <flashing-cursor-here> encourages you to enter the item number or mode ID
87 is able to do more), you can enter "scan" instead of item number / mode ID. The
108 0x0000 to 0x00ff - menu item references. 0x0000 is the first item. Don't use
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c156 struct cx18_open_id item; in snd_cx18_pcm_capture_open() local
163 item.cx = cx; in snd_cx18_pcm_capture_open()
164 item.type = s->type; in snd_cx18_pcm_capture_open()
165 item.open_id = cx->open_id++; in snd_cx18_pcm_capture_open()
168 if (cx18_claim_stream(&item, item.type)) { in snd_cx18_pcm_capture_open()
Dcx18-fileops.c799 struct cx18_open_id *item; in cx18_serialized_open() local
804 item = kzalloc(sizeof(struct cx18_open_id), GFP_KERNEL); in cx18_serialized_open()
805 if (NULL == item) { in cx18_serialized_open()
809 v4l2_fh_init(&item->fh, &s->video_dev); in cx18_serialized_open()
811 item->cx = cx; in cx18_serialized_open()
812 item->type = s->type; in cx18_serialized_open()
814 item->open_id = cx->open_id++; in cx18_serialized_open()
815 filp->private_data = &item->fh; in cx18_serialized_open()
816 v4l2_fh_add(&item->fh); in cx18_serialized_open()
818 if (item->type == CX18_ENC_STREAM_TYPE_RAD && in cx18_serialized_open()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dbmi.h195 #define ath10k_bmi_read32(ar, item, val) \ argument
201 addr = host_interest_item_address(HI_ITEM(item)); \
208 #define ath10k_bmi_write32(ar, item, val) \ argument
214 address = host_interest_item_address(HI_ITEM(item)); \
Dtargaddrs.h210 #define HI_ITEM(item) offsetof(struct host_interest, item) argument
Dhtt.h1095 const struct htt_stats_conf_item *item) in htt_stats_conf_next_item() argument
1097 return (void *)item + sizeof(*item) + roundup(item->length, 4); in htt_stats_conf_next_item()
/linux-4.1.27/sound/isa/sb/
Dsb_mixer.c203 ucontrol->value.enumerated.item[0] = 0; in snd_dt019x_input_sw_get()
206 ucontrol->value.enumerated.item[0] = 1; in snd_dt019x_input_sw_get()
209 ucontrol->value.enumerated.item[0] = 2; in snd_dt019x_input_sw_get()
212 ucontrol->value.enumerated.item[0] = 4; in snd_dt019x_input_sw_get()
222 ucontrol->value.enumerated.item[0] = 4; in snd_dt019x_input_sw_get()
235 if (ucontrol->value.enumerated.item[0] > 4) in snd_dt019x_input_sw_put()
237 switch (ucontrol->value.enumerated.item[0]) { in snd_dt019x_input_sw_put()
293 ucontrol->value.enumerated.item[0] = oval; in snd_als4k_mono_capture_route_get()
305 if (ucontrol->value.enumerated.item[0] > 2) in snd_als4k_mono_capture_route_put()
311 | (ucontrol->value.enumerated.item[0] << 6); in snd_als4k_mono_capture_route_put()
[all …]
/linux-4.1.27/sound/soc/
Dsoc-ops.c69 unsigned int val, item; in snd_soc_get_enum_double() local
77 item = snd_soc_enum_val_to_item(e, val); in snd_soc_get_enum_double()
78 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double()
81 item = snd_soc_enum_val_to_item(e, val); in snd_soc_get_enum_double()
82 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double()
103 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double() local
107 if (item[0] >= e->items) in snd_soc_put_enum_double()
109 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_put_enum_double()
112 if (item[1] >= e->items) in snd_soc_put_enum_double()
114 val |= snd_soc_enum_item_to_val(e, item[1]) << e->shift_r; in snd_soc_put_enum_double()
[all …]
Dsoc-dapm.c572 unsigned int val, item; in dapm_connect_mux() local
578 item = snd_soc_enum_val_to_item(e, val); in dapm_connect_mux()
586 item = 0; in dapm_connect_mux()
592 if (i == item) in dapm_connect_mux()
2926 ucontrol->value.enumerated.item[0] = snd_soc_enum_val_to_item(e, val); in snd_soc_dapm_get_enum_double()
2930 ucontrol->value.enumerated.item[1] = val; in snd_soc_dapm_get_enum_double()
2952 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_dapm_put_enum_double() local
2958 if (item[0] >= e->items) in snd_soc_dapm_put_enum_double()
2961 val = snd_soc_enum_item_to_val(e, item[0]) << e->shift_l; in snd_soc_dapm_put_enum_double()
2964 if (item[1] > e->items) in snd_soc_dapm_put_enum_double()
[all …]
/linux-4.1.27/fs/ocfs2/dlm/
Ddlmrecovery.c91 static void dlm_request_all_locks_worker(struct dlm_work_item *item,
93 static void dlm_mig_lockres_worker(struct dlm_work_item *item, void *data);
157 struct dlm_work_item *item, *next; in dlm_dispatch_work() local
165 list_for_each_entry(item, &tmp_list, list) { in dlm_dispatch_work()
170 list_for_each_entry_safe(item, next, &tmp_list, list) { in dlm_dispatch_work()
171 workfunc = item->func; in dlm_dispatch_work()
172 list_del_init(&item->list); in dlm_dispatch_work()
176 BUG_ON(item->dlm != dlm); in dlm_dispatch_work()
180 workfunc(item, item->data); in dlm_dispatch_work()
183 kfree(item); in dlm_dispatch_work()
[all …]
Ddlmmaster.c64 static void dlm_assert_master_worker(struct dlm_work_item *item, void *data);
68 static void dlm_deref_lockres_worker(struct dlm_work_item *item, void *data);
2090 struct dlm_work_item *item; in dlm_dispatch_assert_master() local
2091 item = kzalloc(sizeof(*item), GFP_ATOMIC); in dlm_dispatch_assert_master()
2092 if (!item) in dlm_dispatch_assert_master()
2097 dlm_init_work_item(dlm, item, dlm_assert_master_worker, NULL); in dlm_dispatch_assert_master()
2098 item->u.am.lockres = res; /* already have a ref */ in dlm_dispatch_assert_master()
2100 item->u.am.ignore_higher = ignore_higher; in dlm_dispatch_assert_master()
2101 item->u.am.request_from = request_from; in dlm_dispatch_assert_master()
2102 item->u.am.flags = flags; in dlm_dispatch_assert_master()
[all …]
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c157 struct ivtv_open_id item; in snd_ivtv_pcm_capture_open() local
170 v4l2_fh_init(&item.fh, &s->vdev); in snd_ivtv_pcm_capture_open()
171 item.itv = itv; in snd_ivtv_pcm_capture_open()
172 item.type = s->type; in snd_ivtv_pcm_capture_open()
175 if (ivtv_claim_stream(&item, item.type)) { in snd_ivtv_pcm_capture_open()
Divtv-fileops.c948 struct ivtv_open_id *item; local
993 item = kzalloc(sizeof(struct ivtv_open_id), GFP_KERNEL);
994 if (NULL == item) {
998 v4l2_fh_init(&item->fh, &s->vdev);
999 item->itv = itv;
1000 item->type = s->type;
1002 filp->private_data = &item->fh;
1003 v4l2_fh_add(&item->fh);
1005 if (item->type == IVTV_ENC_STREAM_TYPE_RAD &&
1011 v4l2_fh_del(&item->fh);
[all …]
/linux-4.1.27/drivers/scsi/
Dips.c787 ips_copp_wait_item_t *item; in ips_eh_abort() local
808 item = ha->copp_waitlist.head; in ips_eh_abort()
809 while ((item) && (item->scsi_cmd != SC)) in ips_eh_abort()
810 item = item->next; in ips_eh_abort()
812 if (item) { in ips_eh_abort()
814 ips_removeq_copp(&ha->copp_waitlist, item); in ips_eh_abort()
847 ips_copp_wait_item_t *item; in __ips_eh_reset() local
873 item = ha->copp_waitlist.head; in __ips_eh_reset()
874 while ((item) && (item->scsi_cmd != SC)) in __ips_eh_reset()
875 item = item->next; in __ips_eh_reset()
[all …]
/linux-4.1.27/drivers/staging/wlan-ng/
Dprism2mgmt.c374 hfa384x_HScanResultSub_t *item = NULL; in prism2mgmt_scan_results() local
402 item = &(hw->scanresults->info.hscanresult.result[req->bssindex.data]); in prism2mgmt_scan_results()
406 req->signal.data = le16_to_cpu(item->sl); in prism2mgmt_scan_results()
407 req->noise.data = le16_to_cpu(item->anl); in prism2mgmt_scan_results()
412 memcpy(req->bssid.data.data, item->bssid, WLAN_BSSID_LEN); in prism2mgmt_scan_results()
416 req->ssid.data.len = le16_to_cpu(item->ssid.len); in prism2mgmt_scan_results()
418 memcpy(req->ssid.data.data, item->ssid.data, req->ssid.data.len); in prism2mgmt_scan_results()
422 if (item->supprates[count] == 0) in prism2mgmt_scan_results()
428 item->supprates[(N)-1])) { \ in prism2mgmt_scan_results()
429 req->basicrate ## N .data = item->supprates[(N)-1]; \ in prism2mgmt_scan_results()
[all …]
/linux-4.1.27/net/netfilter/
Dnf_conntrack_ecache.c124 struct nf_ct_event item; in nf_ct_deliver_cached_events() local
149 item.ct = ct; in nf_ct_deliver_cached_events()
150 item.portid = 0; in nf_ct_deliver_cached_events()
151 item.report = 0; in nf_ct_deliver_cached_events()
153 ret = notify->fcn(events | missed, &item); in nf_ct_deliver_cached_events()
Dnf_conntrack_h323_main.c920 &setup->fastStart.item[i]); in process_setup()
953 &callproc->fastStart.item[i]); in process_callproceeding()
985 &connect->fastStart.item[i]); in process_connect()
1017 &alert->fastStart.item[i]); in process_alerting()
1058 &facility->fastStart.item[i]); in process_facility()
1090 &progress->fastStart.item[i]); in process_progress()
1149 &pdu->h245Control.item[i]); in process_q931()
1422 rrq->callSignalAddress.item, in process_rrq()
1431 rrq->rasAddress.item, in process_rrq()
1464 rcf->callSignalAddress.item, in process_rcf()
[all …]
/linux-4.1.27/sound/pci/oxygen/
Dxonar_dg_mixer.c76 value->value.enumerated.item[0] = data->output_sel; in output_select_get()
86 unsigned int new = value->value.enumerated.item[0]; in output_select_put()
296 value->value.enumerated.item[0] = data->input_sel; in input_sel_get()
309 if (value->value.enumerated.item[0] > 3) in input_sel_put()
313 changed = value->value.enumerated.item[0] != data->input_sel; in input_sel_put()
315 data->input_sel = value->value.enumerated.item[0]; in input_sel_put()
342 value->value.enumerated.item[0] = in hpf_get()
356 if (value->value.enumerated.item[0]) in hpf_put()
Dxonar_pcm179x.c741 value->value.enumerated.item[0] = in rolloff_get()
759 if (!value->value.enumerated.item[0]) in rolloff_put()
807 value->value.enumerated.item[0] = 0; in st_output_switch_get()
809 value->value.enumerated.item[0] = 1; in st_output_switch_get()
811 value->value.enumerated.item[0] = 2; in st_output_switch_get()
826 switch (value->value.enumerated.item[0]) { in st_output_switch_put()
862 value->value.enumerated.item[0] = 0; in st_hp_volume_offset_get()
864 value->value.enumerated.item[0] = 1; in st_hp_volume_offset_get()
866 value->value.enumerated.item[0] = 2; in st_hp_volume_offset_get()
868 value->value.enumerated.item[0] = 3; in st_hp_volume_offset_get()
[all …]
Doxygen.c454 value->value.enumerated.item[0] = in rolloff_get()
470 if (value->value.enumerated.item[0]) in rolloff_put()
505 value->value.enumerated.item[0] = in hpf_get()
519 if (value->value.enumerated.item[0]) in hpf_put()
557 value->value.enumerated.item[0] = in meridian_dig_source_get()
568 value->value.enumerated.item[0] = in claro_dig_source_get()
584 if (value->value.enumerated.item[0] == 0) in meridian_dig_source_put()
605 if (value->value.enumerated.item[0]) in claro_dig_source_put()
Dxonar_wm87x6.c673 value->value.enumerated.item[0] = ctl->private_value & 0xf; in wm8776_field_enum_get()
687 return wm8776_field_set(ctl, value->value.enumerated.item[0]); in wm8776_field_enum_put()
872 value->value.enumerated.item[0] = 0; in wm8776_level_control_get()
875 value->value.enumerated.item[0] = 1; in wm8776_level_control_get()
877 value->value.enumerated.item[0] = 2; in wm8776_level_control_get()
905 if (value->value.enumerated.item[0] >= 3) in wm8776_level_control_put()
908 changed = value->value.enumerated.item[0] != ctl->private_value; in wm8776_level_control_put()
910 ctl->private_value = value->value.enumerated.item[0]; in wm8776_level_control_put()
913 switch (value->value.enumerated.item[0]) { in wm8776_level_control_put()
956 value->value.enumerated.item[0] = in hpf_get()
[all …]
Doxygen_mixer.c130 value->value.enumerated.item[0] = chip->dac_routing; in upmix_get()
201 if (value->value.enumerated.item[0] >= count) in upmix_put()
204 changed = value->value.enumerated.item[0] != chip->dac_routing; in upmix_put()
206 chip->dac_routing = value->value.enumerated.item[0]; in upmix_put()
672 value->value.enumerated.item[0] = in mic_fmic_source_get()
687 if (value->value.enumerated.item[0]) in mic_fmic_source_put()
/linux-4.1.27/tools/testing/ktest/
Dktest.pl3059 foreach my $item (keys %a) {
3060 if (defined($b{$item}) && $b{$item} ne $a{$item}) {
3061 $ret{$item} = $b{$item};
3078 foreach my $item (keys %b) {
3079 if (!defined($a{$item})) {
3080 $ret{$item} = $b{$item};
3100 foreach my $item (keys %b) {
3101 if (!defined($a{$item})) {
3104 if ($a{$item} ne $b{$item}) {
3109 foreach my $item (keys %a) {
[all …]
/linux-4.1.27/drivers/platform/x86/
Dsony-laptop.c973 struct sony_nc_value *item = in sony_nc_sysfs_show() local
976 if (!*item->acpiget) in sony_nc_sysfs_show()
979 ret = sony_nc_int_call(sony_nc_acpi_handle, *item->acpiget, NULL, in sony_nc_sysfs_show()
984 if (item->validate) in sony_nc_sysfs_show()
985 value = item->validate(SNC_VALIDATE_OUT, value); in sony_nc_sysfs_show()
996 struct sony_nc_value *item = in sony_nc_sysfs_store() local
999 if (!item->acpiset) in sony_nc_sysfs_store()
1008 if (item->validate) in sony_nc_sysfs_store()
1009 value = item->validate(SNC_VALIDATE_IN, value); in sony_nc_sysfs_store()
1014 ret = sony_nc_int_call(sony_nc_acpi_handle, *item->acpiset, in sony_nc_sysfs_store()
[all …]
/linux-4.1.27/sound/soc/intel/haswell/
Dsst-haswell-ipc.c1430 int ret, item; in sst_hsw_dx_set_state() local
1444 for (item = 0; item < dx->entries_no; item++) { in sst_hsw_dx_set_state()
1447 item, dx->mem_info[item].offset, in sst_hsw_dx_set_state()
1448 dx->mem_info[item].size, in sst_hsw_dx_set_state()
1449 dx->mem_info[item].source); in sst_hsw_dx_set_state()
1502 u32 item, offset, size; in sst_hsw_dx_state_dump() local
1526 for (item = 0; item < hsw->dx.entries_no; item++) { in sst_hsw_dx_state_dump()
1527 if (hsw->dx.mem_info[item].source == SST_HSW_DX_TYPE_MEMORY_DUMP in sst_hsw_dx_state_dump()
1528 && hsw->dx.mem_info[item].offset > DSP_DRAM_ADDR_OFFSET in sst_hsw_dx_state_dump()
1529 && hsw->dx.mem_info[item].offset < in sst_hsw_dx_state_dump()
[all …]
/linux-4.1.27/Documentation/cdrom/
Dcdrom-standard.tex38 \item
41 \item
44 \item
200 \item[$cdrom_device_ops$]
205 \item[$cdrom_device_info$]
350 \item[0] Open for reading data, as done by {\tt {mount()}} (2), or the
352 \item[1] Open for $ioctl$ commands, as done by audio-CD playing
403 \item[0] Close tray
404 \item[1] Open tray
416 \item[0] Unlock door, manual opening is allowed
[all …]
/linux-4.1.27/sound/drivers/
Ddummy.c835 value->value.enumerated.item[0] = dummy->iobox; in snd_dummy_iobox_get()
845 if (value->value.enumerated.item[0] > 1) in snd_dummy_iobox_put()
848 changed = value->value.enumerated.item[0] != dummy->iobox; in snd_dummy_iobox_put()
850 dummy->iobox = value->value.enumerated.item[0]; in snd_dummy_iobox_put()
962 #define FIELD_ENTRY(item, fmt) { \ argument
963 .name = #item, \
965 .offset = offsetof(struct snd_pcm_hardware, item), \
966 .size = sizeof(dummy_pcm_hardware.item) }
1011 char item[20]; in dummy_proc_write() local
1016 ptr = snd_info_get_str(item, line, sizeof(item)); in dummy_proc_write()
[all …]
Dmts64.c620 uctl->value.enumerated.item[0] = mts->fps; in snd_mts64_ctl_smpte_fps_get()
632 if (uctl->value.enumerated.item[0] >= 5) in snd_mts64_ctl_smpte_fps_put()
635 if (mts->fps != uctl->value.enumerated.item[0]) { in snd_mts64_ctl_smpte_fps_put()
637 mts->fps = uctl->value.enumerated.item[0]; in snd_mts64_ctl_smpte_fps_put()
/linux-4.1.27/lib/
Dradix-tree.c444 unsigned long index, void *item) in radix_tree_insert() argument
450 BUG_ON(radix_tree_is_indirect_ptr(item)); in radix_tree_insert()
457 rcu_assign_pointer(*slot, item); in radix_tree_insert()
1156 static unsigned long __locate(struct radix_tree_node *slot, void *item, in __locate() argument
1187 if (slot->slots[i] == item) { in __locate()
1207 unsigned long radix_tree_locate_item(struct radix_tree_root *root, void *item) in radix_tree_locate_item() argument
1219 if (node == item) in radix_tree_locate_item()
1232 cur_index = __locate(node, item, cur_index, &found_index); in radix_tree_locate_item()
1240 unsigned long radix_tree_locate_item(struct radix_tree_root *root, void *item) in radix_tree_locate_item() argument
1372 unsigned long index, void *item) in radix_tree_delete_item() argument
[all …]
/linux-4.1.27/arch/x86/boot/compressed/
Daslr.c115 static bool mem_contains(struct mem_vector *region, struct mem_vector *item) in mem_contains() argument
118 if (item->start < region->start) in mem_contains()
121 if (item->start + item->size > region->start + region->size) in mem_contains()
/linux-4.1.27/drivers/net/team/
Dteam_mode_loadbalance.c151 const struct lb_select_tx_port *item; in lb_select_tx_port_get_name() local
153 item = &lb_select_tx_port_list[i]; in lb_select_tx_port_get_name()
154 if (item->func == func) in lb_select_tx_port_get_name()
155 return item->name; in lb_select_tx_port_get_name()
165 const struct lb_select_tx_port *item; in lb_select_tx_port_get_func() local
167 item = &lb_select_tx_port_list[i]; in lb_select_tx_port_get_func()
168 if (!strcmp(item->name, name)) in lb_select_tx_port_get_func()
169 return item->func; in lb_select_tx_port_get_func()
/linux-4.1.27/tools/lib/traceevent/
Devent-parse.c163 struct cmdline_list *item; in cmdline_init() local
176 item = cmdlist; in cmdline_init()
178 free(item); in cmdline_init()
298 struct cmdline_list *item; in pevent_register_comm() local
303 item = malloc(sizeof(*item)); in pevent_register_comm()
304 if (!item) in pevent_register_comm()
308 item->comm = strdup(comm); in pevent_register_comm()
310 item->comm = strdup("<...>"); in pevent_register_comm()
311 if (!item->comm) { in pevent_register_comm()
312 free(item); in pevent_register_comm()
[all …]
/linux-4.1.27/sound/pci/hda/
Dhda_auto_parser.c128 struct auto_pin_cfg_item *item, in can_be_headset_mic() argument
133 if (item->type != AUTO_PIN_MIC) in can_be_headset_mic()
136 if (item->is_headset_mic || item->is_headphone_mic) in can_be_headset_mic()
139 def_conf = snd_hda_codec_get_pincfg(codec, item->pin); in can_be_headset_mic()
483 const struct auto_pin_cfg_item *item, in hda_get_input_pin_label() argument
496 if (item && item->is_headset_mic) in hda_get_input_pin_label()
498 if (item && item->is_headphone_mic) in hda_get_input_pin_label()
Dhda_proc.c81 struct hda_nid_item *items = array->list, *item; in print_nid_array() local
84 item = &items[i]; in print_nid_array()
85 if (item->nid == nid) { in print_nid_array()
86 kctl = item->kctl; in print_nid_array()
89 kctl->id.name, kctl->id.index + item->index, in print_nid_array()
91 if (item->flags & HDA_NID_ITEM_AMP) in print_nid_array()
Dpatch_analog.c486 ucontrol->value.enumerated.item[0] = spec->cur_smux; in ad1983_auto_smux_enum_get()
495 unsigned int val = ucontrol->value.enumerated.item[0]; in ad1983_auto_smux_enum_put()
761 ucontrol->value.enumerated.item[0] = spec->cur_smux; in ad1988_auto_smux_enum_get()
770 unsigned int val = ucontrol->value.enumerated.item[0]; in ad1988_auto_smux_enum_put()
/linux-4.1.27/sound/pci/asihpi/
Dasihpi.c1725 ucontrol->value.enumerated.item[0] = 0; in snd_asihpi_aesebu_format_get()
1730 ucontrol->value.enumerated.item[0] = 1; in snd_asihpi_aesebu_format_get()
1732 ucontrol->value.enumerated.item[0] = 2; in snd_asihpi_aesebu_format_get()
1746 if (ucontrol->value.enumerated.item[0] == 1) in snd_asihpi_aesebu_format_put()
1748 if (ucontrol->value.enumerated.item[0] == 2) in snd_asihpi_aesebu_format_put()
1958 ucontrol->value.enumerated.item[0] = -1; in snd_asihpi_tuner_band_get()
1961 ucontrol->value.enumerated.item[0] = idx; in snd_asihpi_tuner_band_get()
1983 idx = ucontrol->value.enumerated.item[0]; in snd_asihpi_tuner_band_put()
2217 if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items) in snd_asihpi_mux_info()
2218 uinfo->value.enumerated.item = in snd_asihpi_mux_info()
[all …]
/linux-4.1.27/fs/jffs2/
Dsummary.c63 static int jffs2_sum_add_mem(struct jffs2_summary *s, union jffs2_sum_mem *item) in jffs2_sum_add_mem() argument
66 s->sum_list_head = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
68 s->sum_list_tail->u.next = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
69 s->sum_list_tail = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
71 switch (je16_to_cpu(item->u.nodetype)) { in jffs2_sum_add_mem()
76 je32_to_cpu(item->i.inode)); in jffs2_sum_add_mem()
79 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem()
82 je32_to_cpu(item->d.ino)); in jffs2_sum_add_mem()
89 je32_to_cpu(item->x.xid), je32_to_cpu(item->x.version)); in jffs2_sum_add_mem()
99 je16_to_cpu(item->u.nodetype)); in jffs2_sum_add_mem()
/linux-4.1.27/sound/usb/line6/
Dtoneport.c203 if (uinfo->value.enumerated.item >= size) in snd_toneport_source_info()
204 uinfo->value.enumerated.item = size - 1; in snd_toneport_source_info()
207 toneport_source_info[uinfo->value.enumerated.item].name); in snd_toneport_source_info()
219 ucontrol->value.enumerated.item[0] = toneport->source; in snd_toneport_source_get()
232 source = ucontrol->value.enumerated.item[0]; in snd_toneport_source_put()
/linux-4.1.27/Documentation/RCU/
Drcu.txt6 item being destroyed, and one that actually carries out the destruction.
8 must be long enough that any readers accessing the item being deleted have
10 from a linked list would first remove the item from the list, wait for
34 read-side critical sections. So, if we remove an item from a
37 safely free up that item.
/linux-4.1.27/sound/isa/msnd/
Dmsnd_pinnacle_mixer.c72 ucontrol->value.enumerated.item[0] = 0; in snd_msndmix_get_mux()
75 ucontrol->value.enumerated.item[0] = 1; in snd_msndmix_get_mux()
78 ucontrol->value.enumerated.item[0] = 2; in snd_msndmix_get_mux()
123 return snd_msndmix_set_mux(msnd, ucontrol->value.enumerated.item[0]); in snd_msndmix_put_mux()
/linux-4.1.27/sound/pci/rme9652/
Dhdsp.c1692 ucontrol->value.enumerated.item[0] = hdsp_spdif_in(hdsp); in snd_hdsp_get_spdif_in()
1704 val = ucontrol->value.enumerated.item[0] % ((hdsp->io_type == H9632) ? 4 : 3); in snd_hdsp_put_spdif_in()
1798 ucontrol->value.enumerated.item[0] = 0; in snd_hdsp_get_spdif_sample_rate()
1801 ucontrol->value.enumerated.item[0] = 1; in snd_hdsp_get_spdif_sample_rate()
1804 ucontrol->value.enumerated.item[0] = 2; in snd_hdsp_get_spdif_sample_rate()
1807 ucontrol->value.enumerated.item[0] = 3; in snd_hdsp_get_spdif_sample_rate()
1810 ucontrol->value.enumerated.item[0] = 4; in snd_hdsp_get_spdif_sample_rate()
1813 ucontrol->value.enumerated.item[0] = 5; in snd_hdsp_get_spdif_sample_rate()
1816 ucontrol->value.enumerated.item[0] = 7; in snd_hdsp_get_spdif_sample_rate()
1819 ucontrol->value.enumerated.item[0] = 8; in snd_hdsp_get_spdif_sample_rate()
[all …]
Dhdspm.c2427 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2431 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2435 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2439 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2448 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2452 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2456 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2460 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2470 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
2474 ucontrol->value.enumerated.item[0] = in snd_hdspm_get_autosync_sample_rate()
[all …]
/linux-4.1.27/drivers/media/usb/ttusb-dec/
Dttusb_dec.c521 struct list_head *item; in ttusb_dec_process_filter() local
529 for (item = dec->filter_info_list.next; item != &dec->filter_info_list; in ttusb_dec_process_filter()
530 item = item->next) { in ttusb_dec_process_filter()
531 finfo = list_entry(item, struct filter_info, filter_info_list); in ttusb_dec_process_filter()
738 struct list_head *item; in ttusb_dec_process_urb_frame_list() local
744 if ((item = dec->urb_frame_list.next) != &dec->urb_frame_list) { in ttusb_dec_process_urb_frame_list()
745 frame = list_entry(item, struct urb_frame, in ttusb_dec_process_urb_frame_list()
1578 struct list_head *item; in ttusb_dec_exit_tasklet() local
1583 while ((item = dec->urb_frame_list.next) != &dec->urb_frame_list) { in ttusb_dec_exit_tasklet()
1584 frame = list_entry(item, struct urb_frame, urb_frame_list); in ttusb_dec_exit_tasklet()
[all …]
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dcq.c371 struct ib_sig_err *item) in get_sig_err_item() argument
380 item->err_type = IB_SIG_BAD_GUARD; in get_sig_err_item()
381 item->expected = be32_to_cpu(cqe->expected_trans_sig) >> 16; in get_sig_err_item()
382 item->actual = be32_to_cpu(cqe->actual_trans_sig) >> 16; in get_sig_err_item()
385 item->err_type = IB_SIG_BAD_REFTAG; in get_sig_err_item()
386 item->expected = be32_to_cpu(cqe->expected_reftag); in get_sig_err_item()
387 item->actual = be32_to_cpu(cqe->actual_reftag); in get_sig_err_item()
390 item->err_type = IB_SIG_BAD_APPTAG; in get_sig_err_item()
391 item->expected = be32_to_cpu(cqe->expected_trans_sig) & 0xffff; in get_sig_err_item()
392 item->actual = be32_to_cpu(cqe->actual_trans_sig) & 0xffff; in get_sig_err_item()
[all …]
/linux-4.1.27/drivers/misc/
Dspear13xx_pcie_gadget.c629 static struct pcie_gadget_target *to_target(struct config_item *item) in to_target() argument
631 return item ? in to_target()
632 container_of(to_configfs_subsystem(to_config_group(item)), in to_target()
640 static ssize_t pcie_gadget_target_attr_show(struct config_item *item, in pcie_gadget_target_attr_show() argument
645 struct pcie_gadget_target *target = to_target(item); in pcie_gadget_target_attr_show()
654 static ssize_t pcie_gadget_target_attr_store(struct config_item *item, in pcie_gadget_target_attr_store() argument
660 struct pcie_gadget_target *target = to_target(item); in pcie_gadget_target_attr_store()
/linux-4.1.27/drivers/gpu/drm/msm/hdmi/
Dhdmi.c290 #define HDMI_CFG(item, entry) \ argument
291 .item ## _names = item ##_names_ ## entry, \
292 .item ## _cnt = ARRAY_SIZE(item ## _names_ ## entry)
/linux-4.1.27/include/linux/usb/
Dgadget_configfs.h95 struct config_item *item) \
97 config_item_put(item); \
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_ioctl.h92 struct list_head item; member
98 /* .item = */ LIST_HEAD_INIT(ident.item), \
/linux-4.1.27/sound/firewire/bebob/
Dbebob_maudio.c363 uval->value.enumerated.item[0] = params->clk_src; in special_clk_ctl_get()
373 id = uval->value.enumerated.item[0]; in special_clk_ctl_put()
467 uval->value.enumerated.item[0] = val; in special_dig_in_iface_ctl_get()
480 id = uval->value.enumerated.item[0]; in special_dig_in_iface_ctl_set()
541 uval->value.enumerated.item[0] = params->dig_out_fmt; in special_dig_out_iface_ctl_get()
553 id = uval->value.enumerated.item[0]; in special_dig_out_iface_ctl_set()
/linux-4.1.27/sound/pci/emu10k1/
Demumixer.c415 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; in snd_emu1010_output_source_get()
426 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_output_source_put()
459 ucontrol->value.enumerated.item[0] = emu->emu1010.input_source[channel]; in snd_emu1010_input_source_get()
470 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_input_source_put()
702 ucontrol->value.enumerated.item[0] = emu->emu1010.internal_clock; in snd_emu1010_internal_clock_get()
713 val = ucontrol->value.enumerated.item[0] ; in snd_emu1010_internal_clock_put()
824 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_out; in snd_emu1010_optical_out_get()
836 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_optical_out_put()
875 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_in; in snd_emu1010_optical_in_get()
887 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_optical_in_put()
[all …]
Dp16v.c765 ucontrol->value.enumerated.item[0] = emu->p16v_capture_source; in snd_p16v_capture_source_get()
778 val = ucontrol->value.enumerated.item[0] ; in snd_p16v_capture_source_put()
804 ucontrol->value.enumerated.item[0] = emu->p16v_capture_channel; in snd_p16v_capture_channel_get()
816 val = ucontrol->value.enumerated.item[0] ; in snd_p16v_capture_channel_put()
/linux-4.1.27/fs/dlm/
Dconfig.c324 struct config_item item; member
337 struct config_item item; member
444 return i ? container_of(i, struct dlm_comm, item) : NULL; in config_item_to_comm()
449 return i ? container_of(i, struct dlm_node, item) : NULL; in config_item_to_node()
593 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
602 return &cm->item; in make_comm()
631 config_item_init_type_name(&nd->item, name, &node_type); in make_node()
641 return &nd->item; in make_node()
933 config_item_put(&cm->item); in put_comm()
/linux-4.1.27/sound/aoa/soundbus/i2sbus/
Dcontrol.c69 list_add(&i2sdev->item, &c->list); in i2sbus_control_add_dev()
78 list_del(&i2sdev->item); in i2sbus_control_remove_dev()
Dcore.c367 list_for_each_entry_safe(i2sdev, tmp, &control->list, item) in i2sbus_remove()
381 list_for_each_entry(i2sdev, &control->list, item) { in i2sbus_suspend()
409 list_for_each_entry(i2sdev, &control->list, item) { in i2sbus_resume()
Di2sbus.h76 struct list_head item; member
/linux-4.1.27/include/xen/
Dgrant_table.h193 void gnttab_unmap_refs_async(struct gntab_unmap_queue_data* item);
194 int gnttab_unmap_refs_sync(struct gntab_unmap_queue_data *item);
/linux-4.1.27/arch/x86/kernel/
Dalternative.c509 struct smp_alt_module *item; in alternatives_smp_module_del() local
512 list_for_each_entry(item, &smp_alt_modules, next) { in alternatives_smp_module_del()
513 if (mod != item->mod) in alternatives_smp_module_del()
515 list_del(&item->next); in alternatives_smp_module_del()
516 kfree(item); in alternatives_smp_module_del()
/linux-4.1.27/sound/drivers/vx/
Dvx_mixer.c491 ucontrol->value.enumerated.item[0] = chip->audio_source_target; in vx_audio_src_get()
500 if (ucontrol->value.enumerated.item[0] > 2) in vx_audio_src_put()
503 if (ucontrol->value.enumerated.item[0] > 1) in vx_audio_src_put()
507 if (chip->audio_source_target != ucontrol->value.enumerated.item[0]) { in vx_audio_src_put()
508 chip->audio_source_target = ucontrol->value.enumerated.item[0]; in vx_audio_src_put()
540 ucontrol->value.enumerated.item[0] = chip->clock_mode; in vx_clock_mode_get()
548 if (ucontrol->value.enumerated.item[0] > 2) in vx_clock_mode_put()
551 if (chip->clock_mode != ucontrol->value.enumerated.item[0]) { in vx_clock_mode_put()
552 chip->clock_mode = ucontrol->value.enumerated.item[0]; in vx_clock_mode_put()
/linux-4.1.27/drivers/net/fddi/
Ddefxx.c1340 bp->cmd_req_virt->char_set.item[0].item_code = PI_ITEM_K_FLUSH_TIME; in dfx_adap_init()
1341 bp->cmd_req_virt->char_set.item[0].value = 3; /* 3 seconds */ in dfx_adap_init()
1342 bp->cmd_req_virt->char_set.item[0].item_index = 0; in dfx_adap_init()
1343 bp->cmd_req_virt->char_set.item[1].item_code = PI_ITEM_K_EOL; in dfx_adap_init()
1353 bp->cmd_req_virt->snmp_set.item[0].item_code = PI_ITEM_K_FDX_ENB_DIS; in dfx_adap_init()
1354 bp->cmd_req_virt->snmp_set.item[0].value = bp->full_duplex_enb; in dfx_adap_init()
1355 bp->cmd_req_virt->snmp_set.item[0].item_index = 0; in dfx_adap_init()
1356 bp->cmd_req_virt->snmp_set.item[1].item_code = PI_ITEM_K_MAC_T_REQ; in dfx_adap_init()
1357 bp->cmd_req_virt->snmp_set.item[1].value = bp->req_ttrt; in dfx_adap_init()
1358 bp->cmd_req_virt->snmp_set.item[1].item_index = 0; in dfx_adap_init()
[all …]
/linux-4.1.27/Documentation/ABI/testing/
Dconfigfs-usb-gadget-phonet6 This item contains just one readonly attribute: ifname.
Dconfigfs-usb-gadget-acm6 This item contains just one readonly attribute: port_num.
Dconfigfs-usb-gadget-serial6 This item contains just one readonly attribute: port_num.
Dconfigfs-usb-gadget-obex6 This item contains just one readonly attribute: port_num.
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_lib.c61 struct obd_import_conn *imp_conn = NULL, *item; in import_set_conn() local
84 list_for_each_entry(item, &imp->imp_conn_list, oic_item) { in import_set_conn()
85 if (obd_uuid_equals(uuid, &item->oic_uuid)) { in import_set_conn()
87 list_del(&item->oic_item); in import_set_conn()
88 list_add(&item->oic_item, in import_set_conn()
90 item->oic_last_attempt = 0; in import_set_conn()
/linux-4.1.27/sound/isa/
Dcmi8328.c195 int array_find(int array[], int item) in array_find() argument
200 if (array[i] == item) in array_find()
206 int array_find_l(long array[], long item) in array_find_l() argument
211 if (array[i] == item) in array_find_l()
/linux-4.1.27/sound/core/
Dcontrol.c1057 unsigned int item; in snd_ctl_elem_user_enum_info() local
1060 item = uinfo->value.enumerated.item; in snd_ctl_elem_user_enum_info()
1066 item = min(item, uinfo->value.enumerated.items - 1); in snd_ctl_elem_user_enum_info()
1067 uinfo->value.enumerated.item = item; in snd_ctl_elem_user_enum_info()
1070 for (; item > 0; --item) in snd_ctl_elem_user_enum_info()
1885 if (info->value.enumerated.item >= items) in snd_ctl_enum_info()
1886 info->value.enumerated.item = items - 1; in snd_ctl_enum_info()
1887 WARN(strlen(names[info->value.enumerated.item]) >= sizeof(info->value.enumerated.name), in snd_ctl_enum_info()
1889 names[info->value.enumerated.item]); in snd_ctl_enum_info()
1891 names[info->value.enumerated.item], in snd_ctl_enum_info()
Dcontrol_compat.c84 u32 item; member
111 if (get_user(data->value.enumerated.item, &data32->value.enumerated.item)) in snd_ctl_elem_info_compat()
/linux-4.1.27/sound/soc/codecs/
Dwm8958-dsp2.c462 int value = ucontrol->value.enumerated.item[0]; in wm8958_put_mbc_enum()
484 ucontrol->value.enumerated.item[0] = wm8994->mbc_cfg; in wm8958_get_mbc_enum()
552 int value = ucontrol->value.enumerated.item[0]; in wm8958_put_vss_enum()
574 ucontrol->value.enumerated.item[0] = wm8994->vss_cfg; in wm8958_get_vss_enum()
585 int value = ucontrol->value.enumerated.item[0]; in wm8958_put_vss_hpf_enum()
607 ucontrol->value.enumerated.item[0] = wm8994->vss_hpf_cfg; in wm8958_get_vss_hpf_enum()
752 int value = ucontrol->value.enumerated.item[0]; in wm8958_put_enh_eq_enum()
774 ucontrol->value.enumerated.item[0] = wm8994->enh_eq_cfg; in wm8958_get_enh_eq_enum()
Dadau17x1.c165 if (ucontrol->value.enumerated.item[0] >= e->items) in adau17x1_dsp_mux_enum_put()
168 switch (ucontrol->value.enumerated.item[0]) { in adau17x1_dsp_mux_enum_put()
192 ucontrol->value.enumerated.item[0], e, &update); in adau17x1_dsp_mux_enum_put()
219 ucontrol->value.enumerated.item[0] = val; in adau17x1_dsp_mux_enum_get()
Dtwl6040.c490 ucontrol->value.enumerated.item[0] = priv->hs_power_mode; in twl6040_headset_power_get_enum()
500 int high_perf = ucontrol->value.enumerated.item[0]; in twl6040_headset_power_put_enum()
518 ucontrol->value.enumerated.item[0] = priv->pll_power_mode; in twl6040_pll_get_enum()
529 priv->pll_power_mode = ucontrol->value.enumerated.item[0]; in twl6040_pll_put_enum()
/linux-4.1.27/sound/pci/ice1712/
Dice1712.c1837 ucontrol->value.enumerated.item[0] = 13; in snd_ice1712_pro_internal_clock_get()
1844 ucontrol->value.enumerated.item[0] = val; in snd_ice1712_pro_internal_clock_get()
1863 if (ucontrol->value.enumerated.item[0] == 13) { in snd_ice1712_pro_internal_clock_put()
1925 ucontrol->value.enumerated.item[0] = val; in snd_ice1712_pro_internal_clock_default_get()
2049 ucontrol->value.enumerated.item[0] = 11; in snd_ice1712_pro_route_analog_get()
2051 ucontrol->value.enumerated.item[0] = (cval & 7) + 1; in snd_ice1712_pro_route_analog_get()
2053 ucontrol->value.enumerated.item[0] = ((cval >> 3) & 1) + 9; in snd_ice1712_pro_route_analog_get()
2055 ucontrol->value.enumerated.item[0] = 0; in snd_ice1712_pro_route_analog_get()
2068 if (ucontrol->value.enumerated.item[0] >= 11) in snd_ice1712_pro_route_analog_put()
2070 else if (ucontrol->value.enumerated.item[0] >= 9) in snd_ice1712_pro_route_analog_put()
[all …]
Dice1724.c1866 if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items) in snd_vt1724_pro_internal_clock_info()
1867 uinfo->value.enumerated.item = uinfo->value.enumerated.items - 1; in snd_vt1724_pro_internal_clock_info()
1868 if (uinfo->value.enumerated.item >= hw_rates_count) in snd_vt1724_pro_internal_clock_info()
1872 uinfo->value.enumerated.item - hw_rates_count]); in snd_vt1724_pro_internal_clock_info()
1876 ice->hw_rates->list[uinfo->value.enumerated.item]); in snd_vt1724_pro_internal_clock_info()
1888 ucontrol->value.enumerated.item[0] = ice->hw_rates->count + in snd_vt1724_pro_internal_clock_get()
1892 ucontrol->value.enumerated.item[0] = 0; in snd_vt1724_pro_internal_clock_get()
1895 ucontrol->value.enumerated.item[0] = i; in snd_vt1724_pro_internal_clock_get()
1929 unsigned int item = ucontrol->value.enumerated.item[0]; in snd_vt1724_pro_internal_clock_put() local
1932 if (item > first_ext_clock + ice->ext_clock_count - 1) in snd_vt1724_pro_internal_clock_put()
[all …]
Dmaya44.c375 ucontrol->value.enumerated.item[0] = sel; in maya_rec_src_get()
383 int sel = ucontrol->value.enumerated.item[0]; in maya_rec_src_put()
421 ucontrol->value.enumerated.item[0] = in maya_pb_route_get()
432 ucontrol->value.enumerated.item[0], in maya_pb_route_put()
Dprodigy192.c298 ucontrol->value.enumerated.item[0] = (val >> 7) & 0x1; in stac9460_mic_sw_get()
309 new = (ucontrol->value.enumerated.item[0] << 7 & 0x80) | (old & ~0x80); in stac9460_mic_sw_put()
572 ucontrol->value.enumerated.item[0] = (val & AK4114_IPS0) ? 1 : 0; in ak4114_input_sw_get()
585 itemvalue = (ucontrol->value.enumerated.item[0]) ? 0xff : 0x00; in ak4114_input_sw_put()
Dews.c592 ucontrol->value.enumerated.item[0] = snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA) & mask ? 1 : 0; in snd_ice1712_ewx_io_sense_get()
605 nval = ucontrol->value.enumerated.item[0] ? mask : 0; in snd_ice1712_ewx_io_sense_put()
650 …ucontrol->value.enumerated.item[0] = data & ICE1712_EWS88MT_OUTPUT_SENSE ? 1 : 0; /* high = -10dBV… in snd_ice1712_ews88mt_output_sense_get()
666 …ndata = (data & ~ICE1712_EWS88MT_OUTPUT_SENSE) | (ucontrol->value.enumerated.item[0] ? ICE1712_EWS… in snd_ice1712_ews88mt_output_sense_put()
692 ucontrol->value.enumerated.item[0] = data & (1 << channel) ? 0 : 1; in snd_ice1712_ews88mt_input_sense_get()
712 ndata = (data & ~(1 << channel)) | (ucontrol->value.enumerated.item[0] ? 0 : (1 << channel)); in snd_ice1712_ews88mt_input_sense_put()
Daureon.c216 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get()
228 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put()
1116 ucontrol->value.enumerated.item[0] = val & 7; in wm_adc_mux_get()
1117 ucontrol->value.enumerated.item[1] = (val >> 4) & 7; in wm_adc_mux_get()
1131 nval |= ucontrol->value.enumerated.item[0] & 7; in wm_adc_mux_put()
1132 nval |= (ucontrol->value.enumerated.item[1] & 7) << 4; in wm_adc_mux_put()
1167 ucontrol->value.enumerated.item[0] = spec->cs8415_mux; in aureon_cs8415_mux_get()
1182 nval |= ucontrol->value.enumerated.item[0] & 7; in aureon_cs8415_mux_put()
1187 spec->cs8415_mux = ucontrol->value.enumerated.item[0]; in aureon_cs8415_mux_put()
1379 ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == 0x8; in aureon_oversampling_get()
[all …]
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c1117 list_del(&((struct __vxge_hw_blockpool_entry *)p)->item); in __vxge_hw_blockpool_destroy()
1123 list_del(&((struct __vxge_hw_blockpool_entry *)p)->item); in __vxge_hw_blockpool_destroy()
1170 list_add(&entry->item, &blockpool->free_entry_list); in __vxge_hw_blockpool_create()
1199 item); in __vxge_hw_blockpool_create()
1206 list_del(&entry->item); in __vxge_hw_blockpool_create()
1212 list_add(&entry->item, in __vxge_hw_blockpool_create()
2037 void *item) in __vxge_hw_ring_item_dma_addr() argument
2045 memblock_idx = __vxge_hw_ring_block_memblock_idx(item); in __vxge_hw_ring_item_dma_addr()
2054 dma_item_offset = (u8 *)item - (u8 *)memblock; in __vxge_hw_ring_item_dma_addr()
2099 void *item = mempoolh->items_arr[index]; in __vxge_hw_ring_mempool_item_alloc() local
[all …]
Dvxge-config.h532 struct list_head item; member
626 struct list_head item; member
714 struct list_head item; member
1952 void *item, in __vxge_hw_mempool_item_priv() argument
1959 offset = (u32)((u8 *)item - (u8 *)memblock); in __vxge_hw_mempool_item_priv()
/linux-4.1.27/sound/pci/ca0106/
Dca0106_mixer.c200 ucontrol->value.enumerated.item[0] = emu->capture_source; in snd_ca0106_capture_source_get()
211 val = ucontrol->value.enumerated.item[0] ; in snd_ca0106_capture_source_put()
237 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; in snd_ca0106_i2c_capture_source_get()
251 source_id = ucontrol->value.enumerated.item[0] ; in snd_ca0106_i2c_capture_source_put()
282 ucontrol->value.enumerated.item[0] = emu->capture_mic_line_in; in snd_ca0106_capture_mic_line_in_get()
293 val = ucontrol->value.enumerated.item[0] ; in snd_ca0106_capture_mic_line_in_put()
/linux-4.1.27/sound/soc/omap/
Dams-delta.c111 if (ucontrol->value.enumerated.item[0] >= control->items) in ams_delta_set_audio_mode()
117 pins = ams_delta_audio_mode_pins[ucontrol->value.enumerated.item[0]]; in ams_delta_set_audio_mode()
199 ucontrol->value.enumerated.item[0] = mode; in ams_delta_get_audio_mode()
/linux-4.1.27/sound/pci/pcxhr/
Dpcxhr_mixer.c670 ucontrol->value.enumerated.item[0] = chip->audio_capture_source; in pcxhr_audio_src_get()
685 if (ucontrol->value.enumerated.item[0] >= i) in pcxhr_audio_src_put()
688 if (chip->audio_capture_source != ucontrol->value.enumerated.item[0]) { in pcxhr_audio_src_put()
689 chip->audio_capture_source = ucontrol->value.enumerated.item[0]; in pcxhr_audio_src_put()
759 ucontrol->value.enumerated.item[0] = mgr->use_clock_type; in pcxhr_clock_type_get()
774 if (ucontrol->value.enumerated.item[0] >= clock_items) in pcxhr_clock_type_put()
777 if (mgr->use_clock_type != ucontrol->value.enumerated.item[0]) { in pcxhr_clock_type_put()
779 mgr->use_clock_type = ucontrol->value.enumerated.item[0]; in pcxhr_clock_type_put()
/linux-4.1.27/Documentation/devicetree/bindings/power/
Dopp.txt8 - operating-points: An array of 2-tuples items, and each item consists
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dmodule.c260 if (!list_empty(&hand->item)) in libcfs_register_ioctl()
263 list_add_tail(&hand->item, &ioctl_list); in libcfs_register_ioctl()
275 if (list_empty(&hand->item)) in libcfs_deregister_ioctl()
278 list_del_init(&hand->item); in libcfs_deregister_ioctl()
339 list_for_each_entry(hand, &ioctl_list, item) { in libcfs_ioctl_int()
/linux-4.1.27/scripts/kconfig/lxdialog/
Dmenubox.c66 static void do_print_item(WINDOW * win, const char *item, int line_y, in do_print_item() argument
72 strncpy(menu_item, item, menu_width - item_x); in do_print_item()
88 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); in do_print_item()
Dutil.c52 dlg.item.atr = A_NORMAL; in set_mono_theme()
92 DLG_COLOR(item, COLOR_BLACK, COLOR_WHITE, false); in set_classic_theme()
131 DLG_COLOR(item, COLOR_WHITE, COLOR_BLACK, false); in set_blackbg_theme()
212 init_one_color(&dlg.item); in init_dialog_colors()
/linux-4.1.27/sound/usb/
Dmixer_scarlett.c389 if (uinfo->value.enumerated.item >= items) in scarlett_ctl_enum_dynamic_info()
390 uinfo->value.enumerated.item = items - 1; in scarlett_ctl_enum_dynamic_info()
393 scarlett_generate_name(uinfo->value.enumerated.item, in scarlett_ctl_enum_dynamic_info()
423 ucontrol->value.enumerated.item[0] = val; in scarlett_ctl_enum_get()
476 ucontrol->value.enumerated.item[0] = clamp((int)buf[0], 0, 1); in scarlett_ctl_meter_get()
/linux-4.1.27/sound/isa/ad1816a/
Dad1816a_lib.c746 ucontrol->value.enumerated.item[0] = (val >> 12) & 7; in snd_ad1816a_get_mux()
747 ucontrol->value.enumerated.item[1] = (val >> 4) & 7; in snd_ad1816a_get_mux()
758 if (ucontrol->value.enumerated.item[0] > 6 || in snd_ad1816a_put_mux()
759 ucontrol->value.enumerated.item[1] > 6) in snd_ad1816a_put_mux()
761 val = (ucontrol->value.enumerated.item[0] << 12) | in snd_ad1816a_put_mux()
762 (ucontrol->value.enumerated.item[1] << 4); in snd_ad1816a_put_mux()
/linux-4.1.27/sound/soc/sh/rcar/
Dcore.c775 if (uinfo->value.enumerated.item >= cfg->max) in rsnd_kctrl_info()
776 uinfo->value.enumerated.item = cfg->max - 1; in rsnd_kctrl_info()
778 cfg->texts[uinfo->value.enumerated.item], in rsnd_kctrl_info()
800 uc->value.enumerated.item[i] = cfg->val[i]; in rsnd_kctrl_get()
816 change |= (uc->value.enumerated.item[i] != cfg->val[i]); in rsnd_kctrl_put()
817 cfg->val[i] = uc->value.enumerated.item[i]; in rsnd_kctrl_put()
/linux-4.1.27/drivers/net/wireless/orinoco/
Dorinoco_usb.c607 struct list_head *item; in ezusb_request_in_callback() local
609 list_for_each(item, &upriv->req_active) { in ezusb_request_in_callback()
613 c = list_entry(item, struct request_context, list); in ezusb_request_in_callback()
1448 struct list_head *item; in ezusb_delete() local
1463 list_for_each_safe(item, tmp_item, &upriv->req_active) { in ezusb_delete()
1467 ctx = list_entry(item, struct request_context, list); in ezusb_delete()
1488 list_for_each_safe(item, tmp_item, &upriv->req_pending) in ezusb_delete()
1489 ezusb_ctx_complete(list_entry(item, in ezusb_delete()
/linux-4.1.27/sound/pci/
Drme96.c1935 ucontrol->value.enumerated.item[0] = snd_rme96_getinputtype(rme96); in snd_rme96_get_inputtype_control()
1948 if (ucontrol->value.enumerated.item[0] == RME96_INPUT_ANALOG) { in snd_rme96_get_inputtype_control()
1949 ucontrol->value.enumerated.item[0] = RME96_INPUT_XLR; in snd_rme96_get_inputtype_control()
1960 if (ucontrol->value.enumerated.item[0] >= items) { in snd_rme96_get_inputtype_control()
1961 ucontrol->value.enumerated.item[0] = items - 1; in snd_rme96_get_inputtype_control()
1993 val = ucontrol->value.enumerated.item[0] % items; in snd_rme96_put_inputtype_control()
2022 ucontrol->value.enumerated.item[0] = snd_rme96_getclockmode(rme96); in snd_rme96_get_clockmode_control()
2033 val = ucontrol->value.enumerated.item[0] % 3; in snd_rme96_put_clockmode_control()
2056 ucontrol->value.enumerated.item[0] = snd_rme96_getattenuation(rme96); in snd_rme96_get_attenuation_control()
2067 val = ucontrol->value.enumerated.item[0] % 4; in snd_rme96_put_attenuation_control()
[all …]
Dazt3328.c1068 ucontrol->value.enumerated.item[0] = (val >> 8) & (reg.enum_c - 1); in snd_azf3328_get_mixer_enum()
1069 ucontrol->value.enumerated.item[1] = (val >> 0) & (reg.enum_c - 1); in snd_azf3328_get_mixer_enum()
1071 ucontrol->value.enumerated.item[0] = (val >> reg.lchan_shift) & (reg.enum_c - 1); in snd_azf3328_get_mixer_enum()
1075 reg.reg, val, ucontrol->value.enumerated.item[0], ucontrol->value.enumerated.item[1], in snd_azf3328_get_mixer_enum()
1092 if (ucontrol->value.enumerated.item[0] > reg.enum_c - 1U || in snd_azf3328_put_mixer_enum()
1093 ucontrol->value.enumerated.item[1] > reg.enum_c - 1U) in snd_azf3328_put_mixer_enum()
1095 val = (ucontrol->value.enumerated.item[0] << 8) | in snd_azf3328_put_mixer_enum()
1096 (ucontrol->value.enumerated.item[1] << 0); in snd_azf3328_put_mixer_enum()
1098 if (ucontrol->value.enumerated.item[0] > reg.enum_c - 1U) in snd_azf3328_put_mixer_enum()
1101 val |= (ucontrol->value.enumerated.item[0] << reg.lchan_shift); in snd_azf3328_put_mixer_enum()
/linux-4.1.27/sound/i2c/other/
Dak4xxx-adda.c481 ucontrol->value.enumerated.item[0] = in snd_akm4xxx_deemphasis_get()
493 unsigned char nval = ucontrol->value.enumerated.item[0] & 3; in snd_akm4xxx_deemphasis_put()
585 ucontrol->value.enumerated.item[0] = val; in ak4xxx_capture_source_get()
600 if (ucontrol->value.enumerated.item[0] >= num_names) in ak4xxx_capture_source_put()
605 val |= ucontrol->value.enumerated.item[0] & mask; in ak4xxx_capture_source_put()
/linux-4.1.27/drivers/media/pci/bt8xx/
Dbttv-driver.c3517 struct bttv_buffer *item; in bttv_irq_next_video() local
3524 item = list_entry(btv->capture.next, struct bttv_buffer, vb.queue); in bttv_irq_next_video()
3525 if (V4L2_FIELD_HAS_TOP(item->vb.field)) in bttv_irq_next_video()
3526 set->top = item; in bttv_irq_next_video()
3527 if (V4L2_FIELD_HAS_BOTTOM(item->vb.field)) in bttv_irq_next_video()
3528 set->bottom = item; in bttv_irq_next_video()
3531 if (!V4L2_FIELD_HAS_BOTH(item->vb.field) && in bttv_irq_next_video()
3532 (item->vb.queue.next != &btv->capture)) { in bttv_irq_next_video()
3533 item = list_entry(item->vb.queue.next, struct bttv_buffer, vb.queue); in bttv_irq_next_video()
3561 if (!V4L2_FIELD_HAS_BOTH(item->vb.field)) { in bttv_irq_next_video()
[all …]
/linux-4.1.27/sound/soc/ux500/
Dmop500_ab8500.c140 ucontrol->value.enumerated.item[0] = drvdata->mclk_sel; in mclk_input_control_get()
151 unsigned int val = ucontrol->value.enumerated.item[0]; in mclk_input_control_put()
/linux-4.1.27/sound/usb/6fire/
Dcontrol.c366 if (rt->opt_coax_switch != ucontrol->value.enumerated.item[0]) { in usb6fire_control_opt_coax_put()
367 rt->opt_coax_switch = ucontrol->value.enumerated.item[0]; in usb6fire_control_opt_coax_put()
378 ucontrol->value.enumerated.item[0] = rt->opt_coax_switch; in usb6fire_control_opt_coax_get()
/linux-4.1.27/net/wireless/
Dcore.c286 struct cfg80211_iface_destroy *item; in cfg80211_destroy_ifaces() local
291 while ((item = list_first_entry_or_null(&rdev->destroy_list, in cfg80211_destroy_ifaces()
295 u32 nlportid = item->nlportid; in cfg80211_destroy_ifaces()
297 list_del(&item->list); in cfg80211_destroy_ifaces()
298 kfree(item); in cfg80211_destroy_ifaces()

12