Home
last modified time | relevance | path

Searched refs:set (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/linux-4.19.296/drivers/s390/cio/
Didset.c26 struct idset *set; in idset_new() local
28 set = vmalloc(sizeof(struct idset) + bitmap_size(num_ssid, num_id)); in idset_new()
29 if (set) { in idset_new()
30 set->num_ssid = num_ssid; in idset_new()
31 set->num_id = num_id; in idset_new()
32 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); in idset_new()
34 return set; in idset_new()
37 void idset_free(struct idset *set) in idset_free() argument
39 vfree(set); in idset_free()
42 void idset_fill(struct idset *set) in idset_fill() argument
[all …]
Didset.h14 void idset_free(struct idset *set);
15 void idset_fill(struct idset *set);
18 void idset_sch_add(struct idset *set, struct subchannel_id id);
19 void idset_sch_del(struct idset *set, struct subchannel_id id);
20 void idset_sch_del_subseq(struct idset *set, struct subchannel_id schid);
21 int idset_sch_contains(struct idset *set, struct subchannel_id id);
22 int idset_is_empty(struct idset *set);
/linux-4.19.296/include/linux/
Dsignal.h50 static inline void sigaddset(sigset_t *set, int _sig) in sigaddset() argument
54 set->sig[0] |= 1UL << sig; in sigaddset()
56 set->sig[sig / _NSIG_BPW] |= 1UL << (sig % _NSIG_BPW); in sigaddset()
59 static inline void sigdelset(sigset_t *set, int _sig) in sigdelset() argument
63 set->sig[0] &= ~(1UL << sig); in sigdelset()
65 set->sig[sig / _NSIG_BPW] &= ~(1UL << (sig % _NSIG_BPW)); in sigdelset()
68 static inline int sigismember(sigset_t *set, int _sig) in sigismember() argument
72 return 1 & (set->sig[0] >> sig); in sigismember()
74 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in sigismember()
79 static inline int sigisemptyset(sigset_t *set) in sigisemptyset() argument
[all …]
Dblk-mq.h107 typedef int (init_request_fn)(struct blk_mq_tag_set *set, struct request *,
109 typedef void (exit_request_fn)(struct blk_mq_tag_set *set, struct request *,
116 typedef int (map_queues_fn)(struct blk_mq_tag_set *set);
211 struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set,
216 int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set);
217 void blk_mq_free_tag_set(struct blk_mq_tag_set *set);
294 int blk_mq_map_queues(struct blk_mq_tag_set *set);
295 void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int nr_hw_queues);
/linux-4.19.296/block/
Dblk-mq.c1951 void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags, in blk_mq_free_rqs() argument
1956 if (tags->rqs && set->ops->exit_request) { in blk_mq_free_rqs()
1964 set->ops->exit_request(set, rq, hctx_idx); in blk_mq_free_rqs()
1991 struct blk_mq_tags *blk_mq_alloc_rq_map(struct blk_mq_tag_set *set, in blk_mq_alloc_rq_map() argument
1999 node = blk_mq_hw_queue_to_node(set->mq_map, hctx_idx); in blk_mq_alloc_rq_map()
2001 node = set->numa_node; in blk_mq_alloc_rq_map()
2004 BLK_MQ_FLAG_TO_ALLOC_POLICY(set->flags)); in blk_mq_alloc_rq_map()
2033 static int blk_mq_init_request(struct blk_mq_tag_set *set, struct request *rq, in blk_mq_init_request() argument
2038 if (set->ops->init_request) { in blk_mq_init_request()
2039 ret = set->ops->init_request(set, rq, hctx_idx, node); in blk_mq_init_request()
[all …]
Dblk-mq-pci.c34 int blk_mq_pci_map_queues(struct blk_mq_tag_set *set, struct pci_dev *pdev, in blk_mq_pci_map_queues() argument
40 for (queue = 0; queue < set->nr_hw_queues; queue++) { in blk_mq_pci_map_queues()
46 set->mq_map[cpu] = queue; in blk_mq_pci_map_queues()
52 WARN_ON_ONCE(set->nr_hw_queues > 1); in blk_mq_pci_map_queues()
53 blk_mq_clear_mq_map(set); in blk_mq_pci_map_queues()
Dblk-mq-rdma.c32 int blk_mq_rdma_map_queues(struct blk_mq_tag_set *set, in blk_mq_rdma_map_queues() argument
38 for (queue = 0; queue < set->nr_hw_queues; queue++) { in blk_mq_rdma_map_queues()
44 set->mq_map[cpu] = queue; in blk_mq_rdma_map_queues()
50 return blk_mq_map_queues(set); in blk_mq_rdma_map_queues()
Dblk-mq-virtio.c32 int blk_mq_virtio_map_queues(struct blk_mq_tag_set *set, in blk_mq_virtio_map_queues() argument
41 for (queue = 0; queue < set->nr_hw_queues; queue++) { in blk_mq_virtio_map_queues()
47 set->mq_map[cpu] = queue; in blk_mq_virtio_map_queues()
52 return blk_mq_map_queues(set); in blk_mq_virtio_map_queues()
Dblk-mq-cpumap.c33 int blk_mq_map_queues(struct blk_mq_tag_set *set) in blk_mq_map_queues() argument
35 unsigned int *map = set->mq_map; in blk_mq_map_queues()
36 unsigned int nr_queues = set->nr_hw_queues; in blk_mq_map_queues()
Dblk-mq.h46 void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,
49 struct blk_mq_tags *blk_mq_alloc_rq_map(struct blk_mq_tag_set *set,
53 int blk_mq_alloc_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,
207 static inline void blk_mq_clear_mq_map(struct blk_mq_tag_set *set) in blk_mq_clear_mq_map() argument
212 set->mq_map[cpu] = 0; in blk_mq_clear_mq_map()
/linux-4.19.296/include/linux/netfilter/ipset/
Dip_set.h87 void (*destroy)(struct ip_set *set, void *ext);
140 typedef int (*ipset_adtfn)(struct ip_set *set, void *value,
159 int (*kadt)(struct ip_set *set, const struct sk_buff *skb,
167 int (*uadt)(struct ip_set *set, struct nlattr *tb[],
174 int (*resize)(struct ip_set *set, bool retried);
176 void (*destroy)(struct ip_set *set);
178 void (*flush)(struct ip_set *set);
180 void (*expire)(struct ip_set *set);
182 int (*head)(struct ip_set *set, struct sk_buff *skb);
184 int (*list)(const struct ip_set *set, struct sk_buff *skb,
[all …]
Dip_set_comment.h23 ip_set_init_comment(struct ip_set *set, struct ip_set_comment *comment, in ip_set_init_comment() argument
30 set->ext_size -= sizeof(*c) + strlen(c->str) + 1; in ip_set_init_comment()
42 set->ext_size += sizeof(*c) + strlen(c->str) + 1; in ip_set_init_comment()
63 ip_set_comment_free(struct ip_set *set, struct ip_set_comment *comment) in ip_set_comment_free() argument
70 set->ext_size -= sizeof(*c) + strlen(c->str) + 1; in ip_set_comment_free()
/linux-4.19.296/include/soc/fsl/qe/
Ducc.h49 int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask);
53 static inline int ucc_set_qe_mux_grant(unsigned int ucc_num, int set) in ucc_set_qe_mux_grant() argument
55 return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_GRANT); in ucc_set_qe_mux_grant()
58 static inline int ucc_set_qe_mux_tsa(unsigned int ucc_num, int set) in ucc_set_qe_mux_tsa() argument
60 return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_TSA); in ucc_set_qe_mux_tsa()
63 static inline int ucc_set_qe_mux_bkpt(unsigned int ucc_num, int set) in ucc_set_qe_mux_bkpt() argument
65 return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_BKPT); in ucc_set_qe_mux_bkpt()
/linux-4.19.296/fs/btrfs/
Dsysfs.c25 enum btrfs_feature_set set) in get_features() argument
28 if (set == FEAT_COMPAT) in get_features()
30 else if (set == FEAT_COMPAT_RO) in get_features()
37 enum btrfs_feature_set set, u64 features) in set_features() argument
40 if (set == FEAT_COMPAT) in set_features()
42 else if (set == FEAT_COMPAT_RO) in set_features()
51 u64 set, clear; in can_modify_feature() local
54 set = BTRFS_FEATURE_COMPAT_SAFE_SET; in can_modify_feature()
58 set = BTRFS_FEATURE_COMPAT_RO_SAFE_SET; in can_modify_feature()
62 set = BTRFS_FEATURE_INCOMPAT_SAFE_SET; in can_modify_feature()
[all …]
/linux-4.19.296/include/net/netfilter/
Dnf_tables.h242 struct nft_set *set,
308 const struct nft_set *set,
311 bool (*update)(struct nft_set *set,
321 const struct nft_set *set,
325 const struct nft_set *set,
328 const struct nft_set *set,
331 const struct nft_set *set,
334 const struct nft_set *set,
337 struct nft_set *set,
340 const struct nft_set *set,
[all …]
/linux-4.19.296/include/video/
Dnewport.h287 struct newport_rexregs set; member
390 regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W3 | in newport_vc2_set()
392 regs->set.dcbdata0.byword = (vc2ireg << 24) | (val << 8); in newport_vc2_set()
398 regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W1 | in newport_vc2_get()
400 regs->set.dcbdata0.bybytes.b3 = vc2ireg; in newport_vc2_get()
401 regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_IREG | NPORT_DMODE_W2 | in newport_vc2_get()
403 return regs->set.dcbdata0.byshort.s1; in newport_vc2_get()
432 regs->set.dcbmode = (NPORT_DMODE_ACMALL | NCMAP_PROTOCOL | in newport_cmap_setaddr()
435 regs->set.dcbdata0.byshort.s1 = addr; in newport_cmap_setaddr()
436 regs->set.dcbmode = (NPORT_DMODE_ACMALL | NCMAP_PROTOCOL | in newport_cmap_setaddr()
[all …]
/linux-4.19.296/include/trace/events/
Dthp.h49 TP_PROTO(unsigned long addr, unsigned long pte, unsigned long clr, unsigned long set),
50 TP_ARGS(addr, pte, clr, set),
55 __field(unsigned long, set)
62 __entry->set = set;
66 …and pte = 0x%lx clr = 0x%lx, set = 0x%lx", __entry->addr, __entry->pte, __entry->clr, __entry->set)
/linux-4.19.296/drivers/reset/
Dreset-lantiq.c74 unsigned int set = id & 0x1f; in lantiq_rcu_reset_update() local
75 u32 val = assert ? BIT(set) : 0; in lantiq_rcu_reset_update()
78 ret = regmap_update_bits(priv->regmap, priv->reset_offset, BIT(set), in lantiq_rcu_reset_update()
81 dev_err(priv->dev, "Failed to set reset bit %u\n", set); in lantiq_rcu_reset_update()
89 assert ? "assert" : "deassert", set); in lantiq_rcu_reset_update()
157 unsigned int status, set; in lantiq_rcu_reset_xlate() local
159 set = reset_spec->args[0]; in lantiq_rcu_reset_xlate()
162 if (set >= rcdev->nr_resets || status >= rcdev->nr_resets) in lantiq_rcu_reset_xlate()
165 return (status << 8) | set; in lantiq_rcu_reset_xlate()
/linux-4.19.296/drivers/clk/sprd/
Dgate.c17 bool set = sg->flags & CLK_GATE_SET_TO_DISABLE ? true : false; in clk_gate_toggle() local
19 set ^= en; in clk_gate_toggle()
23 if (set) in clk_gate_toggle()
34 bool set = sg->flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0; in clk_sc_gate_toggle() local
37 set ^= en; in clk_sc_gate_toggle()
45 offset = set ? sg->sc_offset : sg->sc_offset * 2; in clk_sc_gate_toggle()
/linux-4.19.296/fs/proc/
Dproc_sysctl.c70 .set = &sysctl_table_root.default_set,
183 struct ctl_table_root *root, struct ctl_table_set *set, in init_header() argument
193 head->set = set; in init_header()
357 struct ctl_table_set *set = &root->default_set; in lookup_header_set() local
359 set = root->lookup(root); in lookup_header_set()
360 return set; in lookup_header_set()
891 struct ctl_table_set *set = p->set; in sysctl_is_seen() local
896 else if (!set->is_seen) in sysctl_is_seen()
899 res = set->is_seen(set); in sysctl_is_seen()
944 static struct ctl_dir *new_dir(struct ctl_table_set *set, in new_dir() argument
[all …]
/linux-4.19.296/drivers/gpio/
Dgpio-mmio.c368 gc->set(gc, gpio, val); in bgpio_simple_dir_out()
403 gc->set(gc, gpio, val); in bgpio_dir_out()
490 void __iomem *set, in bgpio_setup_io() argument
499 if (set && clr) { in bgpio_setup_io()
500 gc->reg_set = set; in bgpio_setup_io()
502 gc->set = bgpio_set_with_clear; in bgpio_setup_io()
504 } else if (set && !clr) { in bgpio_setup_io()
505 gc->reg_set = set; in bgpio_setup_io()
506 gc->set = bgpio_set_set; in bgpio_setup_io()
509 gc->set = bgpio_set_none; in bgpio_setup_io()
[all …]
Dgpio-raspberrypi-exp.c178 struct gpio_get_set_state set; in rpi_exp_gpio_set() local
183 set.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_set()
184 set.state = val; /* Output state */ in rpi_exp_gpio_set()
187 &set, sizeof(set)); in rpi_exp_gpio_set()
188 if (ret || set.gpio != 0) in rpi_exp_gpio_set()
191 set.gpio); in rpi_exp_gpio_set()
229 rpi_gpio->gc.set = rpi_exp_gpio_set; in rpi_exp_gpio_probe()
/linux-4.19.296/fs/ocfs2/
Dexport.c56 int status, set; in ocfs2_get_dentry() local
84 status = ocfs2_test_inode_bit(osb, blkno, &set); in ocfs2_get_dentry()
98 trace_ocfs2_get_dentry_test_bit(status, set); in ocfs2_get_dentry()
100 if (!set) { in ocfs2_get_dentry()
151 int set; in ocfs2_get_parent() local
177 status = ocfs2_test_inode_bit(OCFS2_SB(dir->i_sb), blkno, &set); in ocfs2_get_parent()
187 trace_ocfs2_get_dentry_test_bit(status, set); in ocfs2_get_parent()
188 if (!set) { in ocfs2_get_parent()
/linux-4.19.296/fs/
Dfile.c52 unsigned int cpy, set; in copy_fd_bitmaps() local
55 set = (nfdt->max_fds - count) / BITS_PER_BYTE; in copy_fd_bitmaps()
57 memset((char *)nfdt->open_fds + cpy, 0, set); in copy_fd_bitmaps()
59 memset((char *)nfdt->close_on_exec + cpy, 0, set); in copy_fd_bitmaps()
62 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps()
64 memset((char *)nfdt->full_fds_bits + cpy, 0, set); in copy_fd_bitmaps()
73 size_t cpy, set; in copy_fdtable() local
78 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
80 memset((char *)nfdt->fd + cpy, 0, set); in copy_fdtable()
379 unsigned long set; in close_files() local
[all …]
/linux-4.19.296/lib/
Dassoc_array.c468 edit->set[0].ptr = &edit->array->root; in assoc_array_insert_in_empty_tree()
469 edit->set[0].to = assoc_array_node_to_ptr(new_n0); in assoc_array_insert_in_empty_tree()
617 edit->set[0].to = assoc_array_node_to_ptr(new_n0); in assoc_array_insert_into_terminal_node()
708 edit->set[0].ptr = &edit->array->root; in assoc_array_insert_into_terminal_node()
710 edit->set[0].ptr = &assoc_array_ptr_to_node(ptr)->slots[node->parent_slot]; in assoc_array_insert_into_terminal_node()
712 edit->set[0].ptr = &assoc_array_ptr_to_shortcut(ptr)->next_node; in assoc_array_insert_into_terminal_node()
754 edit->set[0].to = assoc_array_shortcut_to_ptr(new_s0); in assoc_array_insert_into_terminal_node()
829 edit->set[0].ptr = &edit->array->root; in assoc_array_insert_mid_shortcut()
832 edit->set[0].ptr = &node->slots[shortcut->parent_slot]; in assoc_array_insert_mid_shortcut()
861 edit->set[0].to = assoc_array_shortcut_to_ptr(new_s0); in assoc_array_insert_mid_shortcut()
[all …]

12345678910>>...18