/linux-6.12.1/fs/configfs/ |
D | item.c | 3 * item.c - library routines for handling generic config items 31 * config_item_init - initialize item. 32 * @item: item in question. 34 static void config_item_init(struct config_item *item) in config_item_init() argument 36 kref_init(&item->ci_kref); in config_item_init() 37 INIT_LIST_HEAD(&item->ci_entry); in config_item_init() 41 * config_item_set_name - Set the name of an item 42 * @item: item. 46 * dynamically allocated string that @item->ci_name points to. 47 * Otherwise, use the static @item->ci_namebuf array. [all …]
|
/linux-6.12.1/include/linux/ |
D | vmstat.h | 68 static inline void __count_vm_event(enum vm_event_item item) in __count_vm_event() argument 70 raw_cpu_inc(vm_event_states.event[item]); in __count_vm_event() 73 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument 75 this_cpu_inc(vm_event_states.event[item]); in count_vm_event() 78 static inline void __count_vm_events(enum vm_event_item item, long delta) in __count_vm_events() argument 80 raw_cpu_add(vm_event_states.event[item], delta); in __count_vm_events() 83 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument 85 this_cpu_add(vm_event_states.event[item], delta); in count_vm_events() 95 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument 98 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument [all …]
|
/linux-6.12.1/include/trace/stages/ |
D | stage1_struct_define.h | 6 #define __field(type, item) type item; argument 9 #define __field_ext(type, item, filter_type) type item; argument 12 #define __field_struct(type, item) type item; argument 15 #define __field_struct_ext(type, item, filter_type) type item; argument 18 #define __array(type, item, len) type item[len]; argument 21 #define __dynamic_array(type, item, len) u32 __data_loc_##item; argument 24 #define __string(item, src) __dynamic_array(char, item, -1) argument 27 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument 30 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1) argument 33 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1) argument [all …]
|
D | stage5_get_offsets.h | 26 * type called "struct _test_no_array_##item" which will fail if "item" 32 #define __field(type, item) \ argument 33 { (void)sizeof(struct _test_no_array_##item *); } 36 #define __field_ext(type, item, filter_type) \ argument 37 { (void)sizeof(struct _test_no_array_##item *); } 40 #define __field_struct(type, item) \ argument 41 { (void)sizeof(struct _test_no_array_##item *); } 44 #define __field_struct_ext(type, item, filter_type) \ argument 45 { (void)sizeof(struct _test_no_array_##item *); } 48 #define __array(type, item, len) argument [all …]
|
D | stage2_data_offsets.h | 12 #define __field(type, item) argument 15 #define __field_ext(type, item, filter_type) argument 18 #define __field_struct(type, item) argument 21 #define __field_struct_ext(type, item, filter_type) argument 24 #define __array(type, item, len) argument 27 #define __dynamic_array(type, item, len) u32 item; const void *item##_ptr_; argument 30 #define __string(item, src) __dynamic_array(char, item, -1) argument 33 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument 36 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1) argument 39 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument [all …]
|
D | stage6_event_callback.h | 12 #define __field(type, item) argument 15 #define __field_struct(type, item) argument 18 #define __array(type, item, len) argument 21 #define __dynamic_array(type, item, len) \ argument 22 __entry->__data_loc_##item = __data_offsets.item; 25 #define __string(item, src) __dynamic_array(char, item, -1) argument 28 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument 31 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1) argument 53 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument 63 #define __cpumask(item) __dynamic_array(unsigned long, item, -1) argument [all …]
|
D | stage4_event_fields.h | 20 #define __field(type, item) __field_ext(type, item, FILTER_OTHER) argument 23 #define __field_struct(type, item) __field_struct_ext(type, item, FILTER_OTHER) argument 39 #define __string(item, src) __dynamic_array(char, item, -1) argument 42 #define __string_len(item, src, len) __dynamic_array(char, item, -1) argument 45 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1) argument 48 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1) argument 51 #define __cpumask(item) { \ argument 52 .type = "__data_loc cpumask_t", .name = #item, \ 66 #define __rel_string(item, src) __rel_dynamic_array(char, item, -1) argument 69 #define __rel_string_len(item, src, len) __rel_dynamic_array(char, item, -1) argument [all …]
|
/linux-6.12.1/drivers/target/iscsi/ |
D | iscsi_target_stat.c | 43 static struct iscsi_tiqn *iscsi_instance_tiqn(struct config_item *item) in iscsi_instance_tiqn() argument 45 struct iscsi_wwn_stat_grps *igrps = container_of(to_config_group(item), in iscsi_instance_tiqn() 50 static ssize_t iscsi_stat_instance_inst_show(struct config_item *item, in iscsi_stat_instance_inst_show() argument 54 iscsi_instance_tiqn(item)->tiqn_index); in iscsi_stat_instance_inst_show() 57 static ssize_t iscsi_stat_instance_min_ver_show(struct config_item *item, in iscsi_stat_instance_min_ver_show() argument 63 static ssize_t iscsi_stat_instance_max_ver_show(struct config_item *item, in iscsi_stat_instance_max_ver_show() argument 69 static ssize_t iscsi_stat_instance_portals_show(struct config_item *item, in iscsi_stat_instance_portals_show() argument 73 iscsi_instance_tiqn(item)->tiqn_num_tpg_nps); in iscsi_stat_instance_portals_show() 76 static ssize_t iscsi_stat_instance_nodes_show(struct config_item *item, in iscsi_stat_instance_nodes_show() argument 82 static ssize_t iscsi_stat_instance_sessions_show(struct config_item *item, in iscsi_stat_instance_sessions_show() argument [all …]
|
/linux-6.12.1/drivers/target/ |
D | target_core_stat.c | 41 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev() argument 43 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_dev() 48 static ssize_t target_stat_inst_show(struct config_item *item, char *page) in target_stat_inst_show() argument 50 struct se_hba *hba = to_stat_dev(item)->se_hba; in target_stat_inst_show() 55 static ssize_t target_stat_indx_show(struct config_item *item, char *page) in target_stat_indx_show() argument 57 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show() 60 static ssize_t target_stat_role_show(struct config_item *item, char *page) in target_stat_role_show() argument 65 static ssize_t target_stat_ports_show(struct config_item *item, char *page) in target_stat_ports_show() argument 67 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show() 91 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev() argument [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | item.h | 26 __mlxsw_item_offset(const struct mlxsw_item *item, unsigned short index, in __mlxsw_item_offset() argument 29 BUG_ON(index && !item->step); in __mlxsw_item_offset() 30 if (item->offset % typesize != 0 || in __mlxsw_item_offset() 31 item->step % typesize != 0 || in __mlxsw_item_offset() 32 item->in_step_offset % typesize != 0) { in __mlxsw_item_offset() 33 pr_err("mlxsw: item bug (name=%s,offset=%x,step=%x,in_step_offset=%x,typesize=%zx)\n", in __mlxsw_item_offset() 34 item->name, item->offset, item->step, in __mlxsw_item_offset() 35 item->in_step_offset, typesize); in __mlxsw_item_offset() 39 return ((item->offset + item->step * index + item->in_step_offset) / in __mlxsw_item_offset() 44 const struct mlxsw_item *item, in __mlxsw_item_get8() argument [all …]
|
/linux-6.12.1/tools/testing/radix-tree/ |
D | test.c | 11 struct item * 17 struct item * 28 struct item *item_create(unsigned long index, unsigned int order) in item_create() 30 struct item *ret = malloc(sizeof(*ret)); in item_create() 39 struct item *item = item_create(index, 0); in item_insert() local 40 int err = radix_tree_insert(root, item->index, item); in item_insert() 42 free(item); in item_insert() 46 void item_sanity(struct item *item, unsigned long index) in item_sanity() argument 49 assert(!radix_tree_is_internal_node(item)); in item_sanity() 50 assert(item->order < BITS_PER_LONG); in item_sanity() [all …]
|
/linux-6.12.1/lib/ |
D | parman.c | 45 struct parman_item *item); 47 struct parman_item *item); 126 struct parman_item *item, unsigned long to_index, in __parman_prio_move() argument 129 parman->ops->move(parman->priv, item->index, to_index, count); in __parman_prio_move() 135 struct parman_item *item; in parman_prio_shift_down() local 140 item = parman_prio_first_item(prio); in parman_prio_shift_down() 142 __parman_prio_move(parman, prio, item, to_index, 1); in parman_prio_shift_down() 143 list_move_tail(&item->list, &prio->item_list); in parman_prio_shift_down() 144 item->index = to_index; in parman_prio_shift_down() 150 struct parman_item *item; in parman_prio_shift_up() local [all …]
|
D | test_objpool.c | 66 void (*worker)(struct ot_item *item, int irq); 158 struct ot_item *item = container_of(hrt, struct ot_item, hrtimer); in ot_hrtimer_handler() local 159 struct ot_test *test = item->test; in ot_hrtimer_handler() 165 item->worker(item, 1); in ot_hrtimer_handler() 167 hrtimer_forward(hrt, hrt->base->get_time(), item->hrtcycle); in ot_hrtimer_handler() 171 static void ot_start_hrtimer(struct ot_item *item) in ot_start_hrtimer() argument 173 if (!item->test->hrtimer) in ot_start_hrtimer() 175 hrtimer_start(&item->hrtimer, item->hrtcycle, HRTIMER_MODE_REL); in ot_start_hrtimer() 178 static void ot_stop_hrtimer(struct ot_item *item) in ot_stop_hrtimer() argument 180 if (!item->test->hrtimer) in ot_stop_hrtimer() [all …]
|
/linux-6.12.1/drivers/net/wireless/st/cw1200/ |
D | queue.c | 70 struct cw1200_queue_item *item, *tmp; in cw1200_queue_post_gc() local 72 list_for_each_entry_safe(item, tmp, gc_list, head) { in cw1200_queue_post_gc() 73 list_del(&item->head); in cw1200_queue_post_gc() 74 stats->skb_dtor(stats->priv, item->skb, &item->txpriv); in cw1200_queue_post_gc() 75 kfree(item); in cw1200_queue_post_gc() 80 struct cw1200_queue_item *item) in cw1200_queue_register_post_gc() argument 83 gc_item = kmemdup(item, sizeof(struct cw1200_queue_item), in cw1200_queue_register_post_gc() 94 struct cw1200_queue_item *item = NULL, *iter, *tmp; in __cw1200_queue_gc() local 99 item = iter; in __cw1200_queue_gc() 123 } else if (item) { in __cw1200_queue_gc() [all …]
|
/linux-6.12.1/drivers/input/rmi4/ |
D | rmi_f12.c | 66 const struct rmi_register_desc_item *item; in rmi_f12_read_sensor_tuning() local 80 item = rmi_get_register_desc_item(&f12->control_reg_desc, 8); in rmi_f12_read_sensor_tuning() 81 if (!item) { in rmi_f12_read_sensor_tuning() 89 if (item->reg_size > sizeof(buf)) { in rmi_f12_read_sensor_tuning() 92 sizeof(buf), item->reg_size); in rmi_f12_read_sensor_tuning() 97 item->reg_size); in rmi_f12_read_sensor_tuning() 102 if (rmi_register_desc_has_subpacket(item, 0)) { in rmi_f12_read_sensor_tuning() 111 if (rmi_register_desc_has_subpacket(item, 1)) { in rmi_f12_read_sensor_tuning() 117 if (rmi_register_desc_has_subpacket(item, 2)) { in rmi_f12_read_sensor_tuning() 147 if (rmi_register_desc_has_subpacket(item, 3)) { in rmi_f12_read_sensor_tuning() [all …]
|
/linux-6.12.1/drivers/most/ |
D | configfs.c | 18 struct config_item item; member 90 static struct mdev_link *to_mdev_link(struct config_item *item) in to_mdev_link() argument 92 return container_of(item, struct mdev_link, item); in to_mdev_link() 113 static ssize_t mdev_link_create_link_store(struct config_item *item, in mdev_link_create_link_store() argument 116 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_create_link_store() 135 static ssize_t mdev_link_destroy_link_store(struct config_item *item, in mdev_link_destroy_link_store() argument 138 struct mdev_link *mdev_link = to_mdev_link(item); in mdev_link_destroy_link_store() 160 static ssize_t mdev_link_direction_show(struct config_item *item, char *page) in mdev_link_direction_show() argument 162 return snprintf(page, PAGE_SIZE, "%s\n", to_mdev_link(item)->direction); in mdev_link_direction_show() 165 static ssize_t mdev_link_direction_store(struct config_item *item, in mdev_link_direction_store() argument [all …]
|
/linux-6.12.1/drivers/nvme/target/ |
D | configfs.c | 64 static ssize_t nvmet_addr_adrfam_show(struct config_item *item, char *page) in nvmet_addr_adrfam_show() argument 66 u8 adrfam = to_nvmet_port(item)->disc_addr.adrfam; in nvmet_addr_adrfam_show() 78 static ssize_t nvmet_addr_adrfam_store(struct config_item *item, in nvmet_addr_adrfam_store() argument 81 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_adrfam_store() 102 static ssize_t nvmet_addr_portid_show(struct config_item *item, in nvmet_addr_portid_show() argument 105 __le16 portid = to_nvmet_port(item)->disc_addr.portid; in nvmet_addr_portid_show() 110 static ssize_t nvmet_addr_portid_store(struct config_item *item, in nvmet_addr_portid_store() argument 113 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_portid_store() 130 static ssize_t nvmet_addr_traddr_show(struct config_item *item, in nvmet_addr_traddr_show() argument 133 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_show() [all …]
|
/linux-6.12.1/fs/reiserfs/ |
D | lbalance.c | 12 * copy copy_count entries from source directory item to dest buffer 13 * (creating new item if needed) 21 * either the number of target item, or if we must create a in leaf_copy_dir_entries() 22 * new item, the number of the item we will create it next to in leaf_copy_dir_entries() 28 int copy_records_len; /* length of all records in item to be copied */ in leaf_copy_dir_entries() 33 RFALSE(!is_direntry_le_ih(ih), "vs-10000: item must be directory item"); in leaf_copy_dir_entries() 59 * if there are no items in dest or the first/last item in in leaf_copy_dir_entries() 60 * dest is not item of the same directory in leaf_copy_dir_entries() 69 /* create new item in dest */ in leaf_copy_dir_entries() 72 /* form item header */ in leaf_copy_dir_entries() [all …]
|
/linux-6.12.1/rust/kernel/ |
D | list.rs | 36 /// * For every item in the list, the list owns the associated [`ListArc`] reference and has 102 /// This is called when an item is inserted into a [`List`]. 140 /// The prev/next pointers for an item in a linked list. 144 /// The fields are null if and only if this item is not in a list. 248 /// Add the provided item to the back of the list. 249 pub fn push_back(&mut self, item: ListArc<T, ID>) { in push_back() 250 let raw_item = ListArc::into_raw(item); in push_back() 260 let item = unsafe { ListLinks::fields(list_links) }; in push_back() localVariable 263 self.first = item; in push_back() 265 // INVARIANT: A linked list with one item should be cyclic. in push_back() [all …]
|
/linux-6.12.1/fs/nfs/ |
D | dns_resolve.c | 106 struct nfs_dns_ent *item; in nfs_dns_ent_free_rcu() local 108 item = container_of(head, struct nfs_dns_ent, rcu_head); in nfs_dns_ent_free_rcu() 109 kfree(item->hostname); in nfs_dns_ent_free_rcu() 110 kfree(item); in nfs_dns_ent_free_rcu() 115 struct nfs_dns_ent *item; in nfs_dns_ent_put() local 117 item = container_of(ref, struct nfs_dns_ent, h.ref); in nfs_dns_ent_put() 118 call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu); in nfs_dns_ent_put() 123 struct nfs_dns_ent *item = kmalloc(sizeof(*item), GFP_KERNEL); in nfs_dns_ent_alloc() local 125 if (item != NULL) { in nfs_dns_ent_alloc() 126 item->hostname = NULL; in nfs_dns_ent_alloc() [all …]
|
/linux-6.12.1/drivers/usb/gadget/function/ |
D | uvc_configfs.h | 19 static inline struct f_uvc_opts *to_f_uvc_opts(struct config_item *item) in to_f_uvc_opts() argument 21 return container_of(to_config_group(item), struct f_uvc_opts, in to_f_uvc_opts() 30 struct config_item item; member 35 static inline struct uvcg_control_header *to_uvcg_control_header(struct config_item *item) in to_uvcg_control_header() argument 37 return container_of(item, struct uvcg_control_header, item); in to_uvcg_control_header() 69 static inline struct uvcg_format *to_uvcg_format(struct config_item *item) in to_uvcg_format() argument 71 return container_of(to_config_group(item), struct uvcg_format, group); in to_uvcg_format() 75 struct config_item item; member 82 static inline struct uvcg_streaming_header *to_uvcg_streaming_header(struct config_item *item) in to_uvcg_streaming_header() argument 84 return container_of(item, struct uvcg_streaming_header, item); in to_uvcg_streaming_header() [all …]
|
/linux-6.12.1/kernel/trace/ |
D | trace_export.c | 37 #define __field_struct(type, item) argument 40 #define __field(type, item) type item; argument 43 #define __field_fn(type, item) type item; argument 46 #define __field_desc(type, container, item) type item; argument 49 #define __field_packed(type, container, item) type item; argument 52 #define __array(type, item, size) type item[size]; argument 55 #define __stack_array(type, item, size, field) __array(type, item, size) argument 58 #define __array_desc(type, container, item, size) type item[size]; argument 61 #define __dynamic_array(type, item) type item[]; argument 144 #define __field(type, item) argument [all …]
|
/linux-6.12.1/fs/xfs/libxfs/ |
D | xfs_log_recover.h | 10 * Each log item type (XFS_LI_*) gets its own xlog_recover_item_ops to 11 * define how recovery should work for that type of log item. 29 * correctly. Log item types that always use XLOG_REORDER_ITEM_LIST do 34 enum xlog_recover_reorder (*reorder)(struct xlog_recover_item *item); 37 void (*ra_pass2)(struct xlog *log, struct xlog_recover_item *item); 40 int (*commit_pass1)(struct xlog *log, struct xlog_recover_item *item); 46 * If the recovered item is an intent item, this function should parse 47 * the recovered item to construct an in-core log intent item and 48 * insert it into the AIL. The in-core log intent item should have 1 49 * refcount so that the item is freed either (a) when we commit the [all …]
|
/linux-6.12.1/drivers/usb/gadget/ |
D | configfs.c | 64 static inline struct gadget_info *to_gadget_info(struct config_item *item) in to_gadget_info() argument 66 return container_of(to_config_group(item), struct gadget_info, group); in to_gadget_info() 78 static inline struct config_usb_cfg *to_config_usb_cfg(struct config_item *item) in to_config_usb_cfg() argument 80 return container_of(to_config_group(item), struct config_usb_cfg, in to_config_usb_cfg() 140 static ssize_t gadget_dev_desc_##__name##_show(struct config_item *item, \ 144 to_gadget_info(item)->cdev.desc.__name); \ 148 static ssize_t gadget_dev_desc_##__name##_show(struct config_item *item, \ 152 le16_to_cpup(&to_gadget_info(item)->cdev.desc.__name)); \ 157 static ssize_t gadget_dev_desc_##_name##_store(struct config_item *item, \ 165 to_gadget_info(item)->cdev.desc._name = val; \ [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_parser.c | 12 * ice_parser_sect_item_get - parse an item from a section 15 * @index: index of the item to get 18 * Return: a pointer to the item or NULL. 80 * ice_parser_create_table - create an item table from a section 83 * @item_size: item size in bytes 85 * @parse_item: the function to parse the item 94 void *item, void *data, in ice_parser_create_table() argument 99 void *table, *data, *item; in ice_parser_create_table() local 120 item = (void *)((uintptr_t)table + idx * item_size); in ice_parser_create_table() 121 parse_item(hw, idx, item, data, item_size); in ice_parser_create_table() [all …]
|