Home
last modified time | relevance | path

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

12345678910>>...44

/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);
/drivers/gpu/drm/
Ddrm_crtc_helper.c516 int drm_crtc_helper_set_config(struct drm_mode_set *set, in drm_crtc_helper_set_config() argument
534 BUG_ON(!set); in drm_crtc_helper_set_config()
535 BUG_ON(!set->crtc); in drm_crtc_helper_set_config()
536 BUG_ON(!set->crtc->helper_private); in drm_crtc_helper_set_config()
539 BUG_ON(!set->mode && set->fb); in drm_crtc_helper_set_config()
540 BUG_ON(set->fb && set->num_connectors == 0); in drm_crtc_helper_set_config()
542 crtc_funcs = set->crtc->helper_private; in drm_crtc_helper_set_config()
544 dev = set->crtc->dev; in drm_crtc_helper_set_config()
547 if (!set->mode) in drm_crtc_helper_set_config()
548 set->fb = NULL; in drm_crtc_helper_set_config()
[all …]
Ddrm_crtc.c98 struct drm_mode_set set = { in drm_crtc_force_disable() local
104 return drm_mode_set_config_internal(&set); in drm_crtc_force_disable()
445 static int __drm_mode_set_config_internal(struct drm_mode_set *set, in __drm_mode_set_config_internal() argument
448 struct drm_crtc *crtc = set->crtc; in __drm_mode_set_config_internal()
466 fb = set->fb; in __drm_mode_set_config_internal()
468 ret = crtc->funcs->set_config(set, ctx); in __drm_mode_set_config_internal()
502 int drm_mode_set_config_internal(struct drm_mode_set *set) in drm_mode_set_config_internal() argument
504 WARN_ON(drm_drv_uses_atomic_modeset(set->crtc->dev)); in drm_mode_set_config_internal()
506 return __drm_mode_set_config_internal(set, NULL); in drm_mode_set_config_internal()
562 struct drm_mode_set set; in drm_mode_setcrtc() local
[all …]
/drivers/gpu/drm/amd/display/modules/power/
Dpower_helpers.c281 unsigned int set = params.set; in fill_iram_v_2() local
292 ram_table->min_reduction[0][0] = min_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
293 ram_table->min_reduction[1][0] = min_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
294 ram_table->min_reduction[2][0] = min_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
295 ram_table->min_reduction[3][0] = min_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
296 ram_table->min_reduction[4][0] = min_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
297 ram_table->max_reduction[0][0] = max_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
298 ram_table->max_reduction[1][0] = max_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
299 ram_table->max_reduction[2][0] = max_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
300 ram_table->max_reduction[3][0] = max_reduction_table[abm_config[set][0]]; in fill_iram_v_2()
[all …]
/drivers/gpu/drm/i915/gt/
Dintel_rc6.c52 static inline void set(struct intel_uncore *uncore, i915_reg_t reg, u32 val) in set() function
67 set(uncore, GEN6_RC6_WAKE_RATE_LIMIT, 54 << 16 | 85); in gen11_rc6_enable()
68 set(uncore, GEN10_MEDIA_WAKE_RATE_LIMIT, 150); in gen11_rc6_enable()
70 set(uncore, GEN6_RC_EVALUATION_INTERVAL, 125000); /* 12500 * 1280ns */ in gen11_rc6_enable()
71 set(uncore, GEN6_RC_IDLE_HYSTERSIS, 25); /* 25 * 1280ns */ in gen11_rc6_enable()
73 set(uncore, RING_MAX_IDLE(engine->mmio_base), 10); in gen11_rc6_enable()
75 set(uncore, GUC_MAX_IDLE_COUNT, 0xA); in gen11_rc6_enable()
77 set(uncore, GEN6_RC_SLEEP, 0); in gen11_rc6_enable()
79 set(uncore, GEN6_RC6_THRESHOLD, 50000); /* 50/125ms per EI */ in gen11_rc6_enable()
99 set(uncore, GEN9_MEDIA_PG_IDLE_HYSTERESIS, 60); in gen11_rc6_enable()
[all …]
/drivers/infiniband/hw/hfi1/
Daffinity.c75 static inline void init_cpu_mask_set(struct cpu_mask_set *set) in init_cpu_mask_set() argument
77 cpumask_clear(&set->mask); in init_cpu_mask_set()
78 cpumask_clear(&set->used); in init_cpu_mask_set()
79 set->gen = 0; in init_cpu_mask_set()
83 static void _cpu_mask_set_gen_inc(struct cpu_mask_set *set) in _cpu_mask_set_gen_inc() argument
85 if (cpumask_equal(&set->mask, &set->used)) { in _cpu_mask_set_gen_inc()
90 set->gen++; in _cpu_mask_set_gen_inc()
91 cpumask_clear(&set->used); in _cpu_mask_set_gen_inc()
95 static void _cpu_mask_set_gen_dec(struct cpu_mask_set *set) in _cpu_mask_set_gen_dec() argument
97 if (cpumask_empty(&set->used) && set->gen) { in _cpu_mask_set_gen_dec()
[all …]
Dexp_rcv.h52 #define EXP_TID_SET_EMPTY(set) (set.count == 0 && list_empty(&set.list)) argument
148 struct exp_tid_set *set) in tid_group_add_tail() argument
150 list_add_tail(&grp->list, &set->list); in tid_group_add_tail()
151 set->count++; in tid_group_add_tail()
155 struct exp_tid_set *set) in tid_group_remove() argument
158 set->count--; in tid_group_remove()
169 static inline struct tid_group *tid_group_pop(struct exp_tid_set *set) in tid_group_pop() argument
172 list_first_entry(&set->list, struct tid_group, list); in tid_group_pop()
174 set->count--; in tid_group_pop()
/drivers/media/pci/bt8xx/
Dbttv-audio-hook.c55 void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv3pci_audio() argument
59 if (!set) { in gvbctv3pci_audio()
86 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv5pci_audio() argument
94 if (set) { in gvbctv5pci_audio()
157 void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in avermedia_tvphone_audio() argument
161 if (!set) { in avermedia_tvphone_audio()
188 void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in avermedia_tv_stereo_audio() argument
192 if (!set) { in avermedia_tv_stereo_audio()
221 void lt9415_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in lt9415_audio() argument
230 if (!set) { in lt9415_audio()
[all …]
Dbttv-audio-hook.h14 void lt9415_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
15 void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
16 void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
17 void terratv_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
18 void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
19 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
20 void winfast2000_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
21 void pvbt878p9b_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
22 void fv2000s_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
23 void windvr_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
[all …]
Dbttv-risc.c638 struct bttv_buffer_set *set) in bttv_buffer_activate_video() argument
641 if (NULL != set->top && NULL != set->bottom) { in bttv_buffer_activate_video()
642 if (set->top == set->bottom) { in bttv_buffer_activate_video()
643 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
644 if (set->top->vb.queue.next) in bttv_buffer_activate_video()
645 list_del(&set->top->vb.queue); in bttv_buffer_activate_video()
647 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
648 set->bottom->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
649 if (set->top->vb.queue.next) in bttv_buffer_activate_video()
650 list_del(&set->top->vb.queue); in bttv_buffer_activate_video()
[all …]
/drivers/md/bcache/
Dalloc.c80 ca->set->need_gc = max(ca->set->need_gc, bucket_gc_gen(b)); in bch_inc_gen()
81 WARN_ON_ONCE(ca->set->need_gc > BUCKET_GC_GEN_MAX); in bch_inc_gen()
132 BUG_ON(!ca->set->gc_mark_valid); in bch_can_invalidate_bucket()
142 lockdep_assert_held(&ca->set->bucket_lock); in __bch_invalidate_one_bucket()
171 unsigned int min_prio = (INITIAL_PRIO - ca->set->min_prio) / 8; \
173 (b->prio - ca->set->min_prio + min_prio) * GC_SECTORS_USED(b); \
208 wake_up_gc(ca->set); in invalidate_buckets_lru()
233 wake_up_gc(ca->set); in invalidate_buckets_fifo()
259 wake_up_gc(ca->set); in invalidate_buckets_random()
289 mutex_unlock(&(ca)->set->bucket_lock); \
[all …]
Dbset.c21 void bch_dump_bset(struct btree_keys *b, struct bset *i, unsigned int set) in bch_dump_bset() argument
28 pr_err("block %u key %u/%u: ", set, in bch_dump_bset()
49 bch_dump_bset(b, b->set[i].data, in bch_dump_bucket()
50 bset_sector_offset(b, b->set[i].data)); in bch_dump_bucket()
294 struct bset_tree *t = b->set; in bch_btree_keys_free()
319 struct bset_tree *t = b->set; in bch_btree_keys_alloc()
639 if (t != b->set) { in bset_alloc_tree()
647 while (t < b->set + MAX_BSETS) in bset_alloc_tree()
660 if (t->tree != b->set->tree + btree_keys_cachelines(b)) { in bch_bset_build_unwritten_tree()
668 if (i != b->set->data) { in bch_bset_init_next()
[all …]
/drivers/video/console/
Dnewport_con.c72 npregs->set.wrmask = 0xffffffff; in newport_render_background()
73 npregs->set.drawmode0 = (NPORT_DMODE0_DRAW | NPORT_DMODE0_BLOCK | in newport_render_background()
76 npregs->set.colori = ci; in newport_render_background()
77 npregs->set.xystarti = in newport_render_background()
117 npregs->set.drawmode0 = (NPORT_DMODE0_DRAW | NPORT_DMODE0_BLOCK | in newport_show_logo()
120 npregs->set.xystarti = ((newport_xsize - logo->width) << 16) | (0); in newport_show_logo()
121 npregs->set.xyendi = ((newport_xsize - 1) << 16); in newport_show_logo()
140 npregs->set.wrmask = 0xffffffff; in newport_clear_screen()
141 npregs->set.drawmode0 = (NPORT_DMODE0_DRAW | NPORT_DMODE0_BLOCK | in newport_clear_screen()
144 npregs->set.colori = ci; in newport_clear_screen()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_actions.c26 MLXSW_ITEM32(afa, set, type, 0xA0, 28, 4);
31 MLXSW_ITEM32(afa, set, next_action_set_ptr, 0xA4, 0, 24);
38 MLXSW_ITEM32(afa, set, goto_g, 0xA4, 29, 1);
50 MLXSW_ITEM32(afa, set, goto_binding_cmd, 0xA4, 24, 3);
56 MLXSW_ITEM32(afa, set, goto_next_binding, 0xA4, 0, 16);
254 static void mlxsw_afa_set_goto_set(struct mlxsw_afa_set *set, in mlxsw_afa_set_goto_set() argument
258 char *actions = set->ht_key.enc_actions; in mlxsw_afa_set_goto_set()
266 static void mlxsw_afa_set_next_set(struct mlxsw_afa_set *set, in mlxsw_afa_set_next_set() argument
269 char *actions = set->ht_key.enc_actions; in mlxsw_afa_set_next_set()
277 struct mlxsw_afa_set *set; in mlxsw_afa_set_create() local
[all …]
/drivers/gpu/drm/nouveau/dispnv50/
Dhead.c43 .mask = asyh->clr.mask & ~(flush ? 0 : asyh->set.mask), in nv50_head_flush_clr()
54 if (asyh->set.curs ) head->func->curs_set(head, asyh); in nv50_head_flush_set_wndw()
55 if (asyh->set.olut ) { in nv50_head_flush_set_wndw()
67 if (asyh->set.view ) head->func->view (head, asyh); in nv50_head_flush_set()
68 if (asyh->set.mode ) head->func->mode (head, asyh); in nv50_head_flush_set()
69 if (asyh->set.core ) head->func->core_set(head, asyh); in nv50_head_flush_set()
70 if (asyh->set.base ) head->func->base (head, asyh); in nv50_head_flush_set()
71 if (asyh->set.ovly ) head->func->ovly (head, asyh); in nv50_head_flush_set()
72 if (asyh->set.dither ) head->func->dither (head, asyh); in nv50_head_flush_set()
73 if (asyh->set.procamp) head->func->procamp (head, asyh); in nv50_head_flush_set()
[all …]
/drivers/reset/
Dreset-lantiq.c72 unsigned int set = id & 0x1f; in lantiq_rcu_reset_update() local
73 u32 val = assert ? BIT(set) : 0; in lantiq_rcu_reset_update()
76 ret = regmap_update_bits(priv->regmap, priv->reset_offset, BIT(set), in lantiq_rcu_reset_update()
79 dev_err(priv->dev, "Failed to set reset bit %u\n", set); in lantiq_rcu_reset_update()
87 assert ? "assert" : "deassert", set); in lantiq_rcu_reset_update()
155 unsigned int status, set; in lantiq_rcu_reset_xlate() local
157 set = reset_spec->args[0]; in lantiq_rcu_reset_xlate()
160 if (set >= rcdev->nr_resets || status >= rcdev->nr_resets) in lantiq_rcu_reset_xlate()
163 return (status << 8) | set; in lantiq_rcu_reset_xlate()
/drivers/gpio/
Dgpio-mmio.c341 gc->set(gc, gpio, val); in bgpio_simple_dir_out()
406 gc->set(gc, gpio, val); in bgpio_dir_out_dir_first()
413 gc->set(gc, gpio, val); in bgpio_dir_out_val_first()
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()
[all …]
/drivers/clocksource/
Dtimer-armada-370-xp.c91 static void local_timer_ctrl_clrset(u32 clr, u32 set) in local_timer_ctrl_clrset() argument
93 writel((readl(local_base + TIMER_CTRL_OFF) & ~clr) | set, in local_timer_ctrl_clrset()
176 u32 clr = 0, set = 0; in armada_370_xp_timer_starting_cpu() local
179 set = TIMER0_25MHZ; in armada_370_xp_timer_starting_cpu()
182 local_timer_ctrl_clrset(clr, set); in armada_370_xp_timer_starting_cpu()
245 u32 clr = 0, set = 0; in armada_370_xp_timer_common_init() local
261 set = TIMER0_25MHZ; in armada_370_xp_timer_common_init()
267 atomic_io_modify(timer_base + TIMER_CTRL_OFF, clr | set, set); in armada_370_xp_timer_common_init()
268 local_timer_ctrl_clrset(clr, set); in armada_370_xp_timer_common_init()
/drivers/net/phy/
Dphy-core.c586 int phy_modify_changed(struct phy_device *phydev, u32 regnum, u16 mask, u16 set) in phy_modify_changed() argument
591 ret = __phy_modify_changed(phydev, regnum, mask, set); in phy_modify_changed()
609 int __phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set) in __phy_modify() argument
613 ret = __phy_modify_changed(phydev, regnum, mask, set); in __phy_modify()
630 int phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set) in phy_modify() argument
635 ret = __phy_modify(phydev, regnum, mask, set); in phy_modify()
656 u16 mask, u16 set) in __phy_modify_mmd_changed() argument
664 new = (ret & ~mask) | set; in __phy_modify_mmd_changed()
689 u16 mask, u16 set) in phy_modify_mmd_changed() argument
694 ret = __phy_modify_mmd_changed(phydev, devad, regnum, mask, set); in phy_modify_mmd_changed()
[all …]
/drivers/memory/
Dstm32-fmc2-ebi.c172 int (*set)(struct stm32_fmc2_ebi *ebi, member
723 .set = stm32_fmc2_ebi_set_trans_type,
731 .set = stm32_fmc2_ebi_set_bit_field,
739 .set = stm32_fmc2_ebi_set_bit_field,
744 .set = stm32_fmc2_ebi_set_buswidth,
751 .set = stm32_fmc2_ebi_set_bit_field,
759 .set = stm32_fmc2_ebi_set_bit_field,
767 .set = stm32_fmc2_ebi_set_bit_field,
775 .set = stm32_fmc2_ebi_set_bit_field,
780 .set = stm32_fmc2_ebi_set_cpsize,
[all …]
/drivers/net/bonding/
Dbond_options.c214 .set = bond_option_mode_set
222 .set = bond_option_pps_set
229 .set = bond_option_xmit_hash_policy_set
238 .set = bond_option_arp_validate_set
245 .set = bond_option_arp_all_targets_set
253 .set = bond_option_fail_over_mac_set
262 .set = bond_option_arp_interval_set
269 .set = bond_option_arp_ip_targets_set
276 .set = bond_option_downdelay_set
283 .set = bond_option_updelay_set
[all …]
/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()
/drivers/atm/
Dsuni.c110 if (set) PUT(GET(reg) | bit,reg); \
116 static int change_diag(struct atm_dev *dev,void __user *arg,int set) in change_diag() argument
138 int set; in get_diag() local
140 set = 0; in get_diag()
141 if (GET(TSOP_DIAG) & SUNI_TSOP_DIAG_DBIP8) set |= SONET_INS_SBIP; in get_diag()
142 if (GET(TLOP_DIAG) & SUNI_TLOP_DIAG_DBIP) set |= SONET_INS_LBIP; in get_diag()
143 if (GET(TPOP_CD) & SUNI_TPOP_DIAG_DB3) set |= SONET_INS_PBIP; in get_diag()
145 if (GET(TSOP_CTRL) & SUNI_TSOP_CTRL_LAIS) set |= SONET_INS_LAIS; in get_diag()
146 if (GET(TPOP_CD) & SUNI_TPOP_DIAG_PAIS) set |= SONET_INS_PAIS; in get_diag()
147 if (GET(TSOP_DIAG) & SUNI_TSOP_DIAG_DLOS) set |= SONET_INS_LOS; in get_diag()
[all …]
/drivers/net/wireless/ath/ath9k/
Dar9003_wow.c26 goto set; in ath9k_hw_set_sta_powersave()
33 set: in ath9k_hw_set_sta_powersave()
127 u32 set, clr; in ath9k_hw_wow_apply_pattern() local
158 set = (pattern_len & AR_WOW_LENGTH_MAX) << in ath9k_hw_wow_apply_pattern()
161 REG_RMW(ah, AR_WOW_LENGTH1, set, clr); in ath9k_hw_wow_apply_pattern()
163 set = (pattern_len & AR_WOW_LENGTH_MAX) << in ath9k_hw_wow_apply_pattern()
166 REG_RMW(ah, AR_WOW_LENGTH2, set, clr); in ath9k_hw_wow_apply_pattern()
168 set = (pattern_len & AR_WOW_LENGTH_MAX) << in ath9k_hw_wow_apply_pattern()
171 REG_RMW(ah, AR_WOW_LENGTH3, set, clr); in ath9k_hw_wow_apply_pattern()
173 set = (pattern_len & AR_WOW_LENGTH_MAX) << in ath9k_hw_wow_apply_pattern()
[all …]

12345678910>>...44