Home
last modified time | relevance | path

Searched refs:cm (Results 1 - 25 of 199) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/
H A Dccu_mult.c38 struct ccu_mult *cm = data; in ccu_mult_round_rate() local
41 _cm.min = cm->mult.min; in ccu_mult_round_rate()
43 if (cm->mult.max) in ccu_mult_round_rate()
44 _cm.max = cm->mult.max; in ccu_mult_round_rate()
46 _cm.max = (1 << cm->mult.width) + cm->mult.offset - 1; in ccu_mult_round_rate()
55 struct ccu_mult *cm = hw_to_ccu_mult(hw); in ccu_mult_disable() local
57 return ccu_gate_helper_disable(&cm->common, cm->enable); in ccu_mult_disable()
62 struct ccu_mult *cm in ccu_mult_enable() local
69 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_is_enabled() local
77 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_recalc_rate() local
97 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_determine_rate() local
106 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_set_rate() local
149 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_get_parent() local
156 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_set_parent() local
[all...]
H A Dccu_mux.c16 struct ccu_mux_internal *cm, in ccu_mux_get_prediv()
32 parent_index = reg >> cm->shift; in ccu_mux_get_prediv()
33 parent_index &= (1 << cm->width) - 1; in ccu_mux_get_prediv()
39 for (i = 0; i < cm->n_predivs; i++) in ccu_mux_get_prediv()
40 if (parent_index == cm->fixed_predivs[i].index) in ccu_mux_get_prediv()
41 prediv = cm->fixed_predivs[i].div; in ccu_mux_get_prediv()
47 for (i = 0; i < cm->n_var_predivs; i++) in ccu_mux_get_prediv()
48 if (parent_index == cm->var_predivs[i].index) { in ccu_mux_get_prediv()
51 div = reg >> cm->var_predivs[i].shift; in ccu_mux_get_prediv()
52 div &= (1 << cm in ccu_mux_get_prediv()
15 ccu_mux_get_prediv(struct ccu_common *common, struct ccu_mux_internal *cm, int parent_index) ccu_mux_get_prediv() argument
60 ccu_mux_helper_apply_prediv(struct ccu_common *common, struct ccu_mux_internal *cm, int parent_index, unsigned long parent_rate) ccu_mux_helper_apply_prediv() argument
68 ccu_mux_helper_unapply_prediv(struct ccu_common *common, struct ccu_mux_internal *cm, int parent_index, unsigned long parent_rate) ccu_mux_helper_unapply_prediv() argument
76 ccu_mux_helper_determine_rate(struct ccu_common *common, struct ccu_mux_internal *cm, struct clk_rate_request *req, unsigned long (*round)(struct ccu_mux_internal *, struct clk_hw *, unsigned long *, unsigned long, void *), void *data) ccu_mux_helper_determine_rate() argument
156 ccu_mux_helper_get_parent(struct ccu_common *common, struct ccu_mux_internal *cm) ccu_mux_helper_get_parent() argument
178 ccu_mux_helper_set_parent(struct ccu_common *common, struct ccu_mux_internal *cm, u8 index) ccu_mux_helper_set_parent() argument
201 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_disable() local
208 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_enable() local
215 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_is_enabled() local
222 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_get_parent() local
229 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_set_parent() local
237 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_recalc_rate() local
[all...]
H A Dccu_mmc_timing.c23 struct ccu_common *cm = hw_to_ccu_common(hw); in sunxi_ccu_set_mmc_timing_mode() local
27 if (!(cm->features & CCU_FEATURE_MMC_TIMING_SWITCH)) in sunxi_ccu_set_mmc_timing_mode()
30 spin_lock_irqsave(cm->lock, flags); in sunxi_ccu_set_mmc_timing_mode()
32 val = readl(cm->base + cm->reg); in sunxi_ccu_set_mmc_timing_mode()
37 writel(val, cm->base + cm->reg); in sunxi_ccu_set_mmc_timing_mode()
39 spin_unlock_irqrestore(cm->lock, flags); in sunxi_ccu_set_mmc_timing_mode()
56 struct ccu_common *cm = hw_to_ccu_common(hw); in sunxi_ccu_get_mmc_timing_mode() local
58 if (!(cm in sunxi_ccu_get_mmc_timing_mode()
[all...]
/kernel/linux/linux-6.6/drivers/clk/sunxi-ng/
H A Dccu_mult.c38 struct ccu_mult *cm = data; in ccu_mult_round_rate() local
41 _cm.min = cm->mult.min; in ccu_mult_round_rate()
43 if (cm->mult.max) in ccu_mult_round_rate()
44 _cm.max = cm->mult.max; in ccu_mult_round_rate()
46 _cm.max = (1 << cm->mult.width) + cm->mult.offset - 1; in ccu_mult_round_rate()
55 struct ccu_mult *cm = hw_to_ccu_mult(hw); in ccu_mult_disable() local
57 return ccu_gate_helper_disable(&cm->common, cm->enable); in ccu_mult_disable()
62 struct ccu_mult *cm in ccu_mult_enable() local
69 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_is_enabled() local
77 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_recalc_rate() local
97 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_determine_rate() local
106 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_set_rate() local
149 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_get_parent() local
156 struct ccu_mult *cm = hw_to_ccu_mult(hw); ccu_mult_set_parent() local
[all...]
H A Dccu_mux.c18 struct ccu_mux_internal *cm, in ccu_mux_get_prediv()
34 parent_index = reg >> cm->shift; in ccu_mux_get_prediv()
35 parent_index &= (1 << cm->width) - 1; in ccu_mux_get_prediv()
41 for (i = 0; i < cm->n_predivs; i++) in ccu_mux_get_prediv()
42 if (parent_index == cm->fixed_predivs[i].index) in ccu_mux_get_prediv()
43 prediv = cm->fixed_predivs[i].div; in ccu_mux_get_prediv()
49 for (i = 0; i < cm->n_var_predivs; i++) in ccu_mux_get_prediv()
50 if (parent_index == cm->var_predivs[i].index) { in ccu_mux_get_prediv()
53 div = reg >> cm->var_predivs[i].shift; in ccu_mux_get_prediv()
54 div &= (1 << cm in ccu_mux_get_prediv()
17 ccu_mux_get_prediv(struct ccu_common *common, struct ccu_mux_internal *cm, int parent_index) ccu_mux_get_prediv() argument
62 ccu_mux_helper_apply_prediv(struct ccu_common *common, struct ccu_mux_internal *cm, int parent_index, unsigned long parent_rate) ccu_mux_helper_apply_prediv() argument
71 ccu_mux_helper_unapply_prediv(struct ccu_common *common, struct ccu_mux_internal *cm, int parent_index, unsigned long parent_rate) ccu_mux_helper_unapply_prediv() argument
79 ccu_mux_helper_determine_rate(struct ccu_common *common, struct ccu_mux_internal *cm, struct clk_rate_request *req, unsigned long (*round)(struct ccu_mux_internal *, struct clk_hw *, unsigned long *, unsigned long, void *), void *data) ccu_mux_helper_determine_rate() argument
160 ccu_mux_helper_get_parent(struct ccu_common *common, struct ccu_mux_internal *cm) ccu_mux_helper_get_parent() argument
183 ccu_mux_helper_set_parent(struct ccu_common *common, struct ccu_mux_internal *cm, u8 index) ccu_mux_helper_set_parent() argument
212 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_disable() local
219 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_enable() local
226 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_is_enabled() local
233 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_get_parent() local
240 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_set_parent() local
248 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_determine_rate() local
259 struct ccu_mux *cm = hw_to_ccu_mux(hw); ccu_mux_recalc_rate() local
[all...]
H A Dccu_mmc_timing.c23 struct ccu_common *cm = hw_to_ccu_common(hw); in sunxi_ccu_set_mmc_timing_mode() local
27 if (!(cm->features & CCU_FEATURE_MMC_TIMING_SWITCH)) in sunxi_ccu_set_mmc_timing_mode()
30 spin_lock_irqsave(cm->lock, flags); in sunxi_ccu_set_mmc_timing_mode()
32 val = readl(cm->base + cm->reg); in sunxi_ccu_set_mmc_timing_mode()
37 writel(val, cm->base + cm->reg); in sunxi_ccu_set_mmc_timing_mode()
39 spin_unlock_irqrestore(cm->lock, flags); in sunxi_ccu_set_mmc_timing_mode()
56 struct ccu_common *cm = hw_to_ccu_common(hw); in sunxi_ccu_get_mmc_timing_mode() local
58 if (!(cm in sunxi_ccu_get_mmc_timing_mode()
[all...]
/kernel/linux/linux-5.10/sound/pci/
H A Dcmipci.c501 static inline void snd_cmipci_write(struct cmipci *cm, unsigned int cmd, unsigned int data) in snd_cmipci_write() argument
503 outl(data, cm->iobase + cmd); in snd_cmipci_write()
506 static inline unsigned int snd_cmipci_read(struct cmipci *cm, unsigned int cmd) in snd_cmipci_read() argument
508 return inl(cm->iobase + cmd); in snd_cmipci_read()
512 static inline void snd_cmipci_write_w(struct cmipci *cm, unsigned int cmd, unsigned short data) in snd_cmipci_write_w() argument
514 outw(data, cm->iobase + cmd); in snd_cmipci_write_w()
517 static inline unsigned short snd_cmipci_read_w(struct cmipci *cm, unsigned int cmd) in snd_cmipci_read_w() argument
519 return inw(cm->iobase + cmd); in snd_cmipci_read_w()
523 static inline void snd_cmipci_write_b(struct cmipci *cm, unsigned int cmd, unsigned char data) in snd_cmipci_write_b() argument
525 outb(data, cm in snd_cmipci_write_b()
528 snd_cmipci_read_b(struct cmipci *cm, unsigned int cmd) snd_cmipci_read_b() argument
534 snd_cmipci_set_bit(struct cmipci *cm, unsigned int cmd, unsigned int flag) snd_cmipci_set_bit() argument
545 snd_cmipci_clear_bit(struct cmipci *cm, unsigned int cmd, unsigned int flag) snd_cmipci_clear_bit() argument
557 snd_cmipci_set_bit_b(struct cmipci *cm, unsigned int cmd, unsigned char flag) snd_cmipci_set_bit_b() argument
568 snd_cmipci_clear_bit_b(struct cmipci *cm, unsigned int cmd, unsigned char flag) snd_cmipci_clear_bit_b() argument
650 snd_cmipci_set_pll(struct cmipci *cm, unsigned int rate, unsigned int slot) snd_cmipci_set_pll() argument
671 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback2_hw_params() local
685 snd_cmipci_ch_reset(struct cmipci *cm, int ch) snd_cmipci_ch_reset() argument
714 set_dac_channels(struct cmipci *cm, struct cmipci_pcm *rec, int channels) set_dac_channels() argument
757 snd_cmipci_pcm_prepare(struct cmipci *cm, struct cmipci_pcm *rec, struct snd_pcm_substream *substream) snd_cmipci_pcm_prepare() argument
862 snd_cmipci_pcm_trigger(struct cmipci *cm, struct cmipci_pcm *rec, int cmd) snd_cmipci_pcm_trigger() argument
915 snd_cmipci_pcm_pointer(struct cmipci *cm, struct cmipci_pcm *rec, struct snd_pcm_substream *substream) snd_cmipci_pcm_pointer() argument
951 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_trigger() local
957 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_pointer() local
970 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_trigger() local
976 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_pointer() local
1111 save_mixer_state(struct cmipci *cm) save_mixer_state() argument
1145 restore_mixer_state(struct cmipci *cm) restore_mixer_state() argument
1178 setup_ac3(struct cmipci *cm, struct snd_pcm_substream *subs, int do_ac3, int rate) setup_ac3() argument
1225 setup_spdif_playback(struct cmipci *cm, struct snd_pcm_substream *subs, int up, int do_ac3) setup_spdif_playback() argument
1273 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_prepare() local
1290 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_spdif_prepare() local
1310 snd_cmipci_silence_hack(struct cmipci *cm, struct cmipci_pcm *rec) snd_cmipci_silence_hack() argument
1358 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_hw_free() local
1367 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback2_hw_free() local
1375 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_prepare() local
1382 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_spdif_prepare() local
1404 struct cmipci *cm = snd_pcm_substream_chip(subs); snd_cmipci_capture_spdif_hw_free() local
1420 struct cmipci *cm = dev_id; snd_cmipci_interrupt() local
1586 open_device_check(struct cmipci *cm, int mode, struct snd_pcm_substream *subs) open_device_check() argument
1613 close_device_check(struct cmipci *cm, int mode) close_device_check() argument
1641 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_open() local
1667 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_open() local
1691 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback2_open() local
1729 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_spdif_open() local
1756 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_spdif_open() local
1778 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_close() local
1785 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_close() local
1792 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback2_close() local
1800 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_spdif_close() local
1807 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_spdif_close() local
1865 snd_cmipci_pcm_new(struct cmipci *cm, int device) snd_cmipci_pcm_new() argument
1888 snd_cmipci_pcm2_new(struct cmipci *cm, int device) snd_cmipci_pcm2_new() argument
1910 snd_cmipci_pcm_spdif_new(struct cmipci *cm, int device) snd_cmipci_pcm_spdif_new() argument
2016 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_get_volume() local
2039 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_put_volume() local
2098 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_get_input_sw() local
2117 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_put_input_sw() local
2188 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_get_native_mixer() local
2212 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_put_native_mixer() local
2249 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_put_native_mixer_sensitive() local
2317 struct cmipci *cm = snd_kcontrol_chip(kcontrol); _snd_cmipci_uswitch_get() local
2350 struct cmipci *cm = snd_kcontrol_chip(kcontrol); _snd_cmipci_uswitch_put() local
2480 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_line_in_mode_info() local
2489 get_line_in_mode(struct cmipci *cm) get_line_in_mode() argument
2506 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_line_in_mode_get() local
2517 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_line_in_mode_put() local
2544 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_mic_in_mode_get() local
2556 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_mic_in_mode_put() local
2631 snd_cmipci_mixer_new(struct cmipci *cm, int pcm_spdif_device) snd_cmipci_mixer_new() argument
2743 struct cmipci *cm = entry->private_data; snd_cmipci_proc_read() local
2758 snd_cmipci_proc_init(struct cmipci *cm) snd_cmipci_proc_init() argument
2777 query_chip(struct cmipci *cm) query_chip() argument
2826 snd_cmipci_create_gameport(struct cmipci *cm, int dev) snd_cmipci_create_gameport() argument
2872 snd_cmipci_free_gameport(struct cmipci *cm) snd_cmipci_free_gameport() argument
2885 snd_cmipci_create_gameport(struct cmipci *cm, int dev) snd_cmipci_create_gameport() argument
2886 snd_cmipci_free_gameport(struct cmipci *cm) snd_cmipci_free_gameport() argument
2889 snd_cmipci_free(struct cmipci *cm) snd_cmipci_free() argument
2915 struct cmipci *cm = device->device_data; snd_cmipci_dev_free() local
2919 snd_cmipci_create_fm(struct cmipci *cm, long fm_port) snd_cmipci_create_fm() argument
2976 struct cmipci *cm; snd_cmipci_create() local
3233 struct cmipci *cm; snd_cmipci_probe() local
3313 struct cmipci *cm = card->private_data; snd_cmipci_suspend() local
3332 struct cmipci *cm = card->private_data; snd_cmipci_resume() local
[all...]
/kernel/linux/linux-6.6/sound/pci/
H A Dcmipci.c497 static inline void snd_cmipci_write(struct cmipci *cm, unsigned int cmd, unsigned int data) in snd_cmipci_write() argument
499 outl(data, cm->iobase + cmd); in snd_cmipci_write()
502 static inline unsigned int snd_cmipci_read(struct cmipci *cm, unsigned int cmd) in snd_cmipci_read() argument
504 return inl(cm->iobase + cmd); in snd_cmipci_read()
508 static inline void snd_cmipci_write_w(struct cmipci *cm, unsigned int cmd, unsigned short data) in snd_cmipci_write_w() argument
510 outw(data, cm->iobase + cmd); in snd_cmipci_write_w()
513 static inline unsigned short snd_cmipci_read_w(struct cmipci *cm, unsigned int cmd) in snd_cmipci_read_w() argument
515 return inw(cm->iobase + cmd); in snd_cmipci_read_w()
519 static inline void snd_cmipci_write_b(struct cmipci *cm, unsigned int cmd, unsigned char data) in snd_cmipci_write_b() argument
521 outb(data, cm in snd_cmipci_write_b()
524 snd_cmipci_read_b(struct cmipci *cm, unsigned int cmd) snd_cmipci_read_b() argument
530 snd_cmipci_set_bit(struct cmipci *cm, unsigned int cmd, unsigned int flag) snd_cmipci_set_bit() argument
541 snd_cmipci_clear_bit(struct cmipci *cm, unsigned int cmd, unsigned int flag) snd_cmipci_clear_bit() argument
553 snd_cmipci_set_bit_b(struct cmipci *cm, unsigned int cmd, unsigned char flag) snd_cmipci_set_bit_b() argument
564 snd_cmipci_clear_bit_b(struct cmipci *cm, unsigned int cmd, unsigned char flag) snd_cmipci_clear_bit_b() argument
646 snd_cmipci_set_pll(struct cmipci *cm, unsigned int rate, unsigned int slot) snd_cmipci_set_pll() argument
667 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback2_hw_params() local
681 snd_cmipci_ch_reset(struct cmipci *cm, int ch) snd_cmipci_ch_reset() argument
710 set_dac_channels(struct cmipci *cm, struct cmipci_pcm *rec, int channels) set_dac_channels() argument
753 snd_cmipci_pcm_prepare(struct cmipci *cm, struct cmipci_pcm *rec, struct snd_pcm_substream *substream) snd_cmipci_pcm_prepare() argument
858 snd_cmipci_pcm_trigger(struct cmipci *cm, struct cmipci_pcm *rec, int cmd) snd_cmipci_pcm_trigger() argument
911 snd_cmipci_pcm_pointer(struct cmipci *cm, struct cmipci_pcm *rec, struct snd_pcm_substream *substream) snd_cmipci_pcm_pointer() argument
947 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_trigger() local
953 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_pointer() local
966 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_trigger() local
972 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_pointer() local
1107 save_mixer_state(struct cmipci *cm) save_mixer_state() argument
1141 restore_mixer_state(struct cmipci *cm) restore_mixer_state() argument
1174 setup_ac3(struct cmipci *cm, struct snd_pcm_substream *subs, int do_ac3, int rate) setup_ac3() argument
1221 setup_spdif_playback(struct cmipci *cm, struct snd_pcm_substream *subs, int up, int do_ac3) setup_spdif_playback() argument
1271 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_prepare() local
1289 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_spdif_prepare() local
1310 snd_cmipci_silence_hack(struct cmipci *cm, struct cmipci_pcm *rec) snd_cmipci_silence_hack() argument
1358 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_hw_free() local
1367 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback2_hw_free() local
1375 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_prepare() local
1382 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_spdif_prepare() local
1404 struct cmipci *cm = snd_pcm_substream_chip(subs); snd_cmipci_capture_spdif_hw_free() local
1420 struct cmipci *cm = dev_id; snd_cmipci_interrupt() local
1586 open_device_check(struct cmipci *cm, int mode, struct snd_pcm_substream *subs) open_device_check() argument
1613 close_device_check(struct cmipci *cm, int mode) close_device_check() argument
1641 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_open() local
1668 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_open() local
1693 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback2_open() local
1733 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_spdif_open() local
1762 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_spdif_open() local
1786 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_close() local
1793 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_close() local
1800 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback2_close() local
1808 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_playback_spdif_close() local
1815 struct cmipci *cm = snd_pcm_substream_chip(substream); snd_cmipci_capture_spdif_close() local
1873 snd_cmipci_pcm_new(struct cmipci *cm, int device) snd_cmipci_pcm_new() argument
1896 snd_cmipci_pcm2_new(struct cmipci *cm, int device) snd_cmipci_pcm2_new() argument
1918 snd_cmipci_pcm_spdif_new(struct cmipci *cm, int device) snd_cmipci_pcm_spdif_new() argument
2024 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_get_volume() local
2047 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_put_volume() local
2106 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_get_input_sw() local
2125 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_put_input_sw() local
2196 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_get_native_mixer() local
2220 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_put_native_mixer() local
2257 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_put_native_mixer_sensitive() local
2325 struct cmipci *cm = snd_kcontrol_chip(kcontrol); _snd_cmipci_uswitch_get() local
2358 struct cmipci *cm = snd_kcontrol_chip(kcontrol); _snd_cmipci_uswitch_put() local
2488 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_line_in_mode_info() local
2497 get_line_in_mode(struct cmipci *cm) get_line_in_mode() argument
2514 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_line_in_mode_get() local
2525 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_line_in_mode_put() local
2552 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_mic_in_mode_get() local
2564 struct cmipci *cm = snd_kcontrol_chip(kcontrol); snd_cmipci_mic_in_mode_put() local
2639 snd_cmipci_mixer_new(struct cmipci *cm, int pcm_spdif_device) snd_cmipci_mixer_new() argument
2754 struct cmipci *cm = entry->private_data; snd_cmipci_proc_read() local
2769 snd_cmipci_proc_init(struct cmipci *cm) snd_cmipci_proc_init() argument
2788 query_chip(struct cmipci *cm) query_chip() argument
2837 snd_cmipci_create_gameport(struct cmipci *cm, int dev) snd_cmipci_create_gameport() argument
2883 snd_cmipci_free_gameport(struct cmipci *cm) snd_cmipci_free_gameport() argument
2893 snd_cmipci_create_gameport(struct cmipci *cm, int dev) snd_cmipci_create_gameport() argument
2894 snd_cmipci_free_gameport(struct cmipci *cm) snd_cmipci_free_gameport() argument
2899 struct cmipci *cm = card->private_data; snd_cmipci_free() local
2915 snd_cmipci_create_fm(struct cmipci *cm, long fm_port) snd_cmipci_create_fm() argument
2973 struct cmipci *cm = card->private_data; snd_cmipci_create() local
3289 struct cmipci *cm = card->private_data; snd_cmipci_suspend() local
3308 struct cmipci *cm = card->private_data; snd_cmipci_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/power/supply/
H A Dcharger-manager.c93 * @cm: the Charger Manager representing the battery.
95 static bool is_batt_present(struct charger_manager *cm) in is_batt_present() argument
102 switch (cm->desc->battery_present) { in is_batt_present()
109 psy = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in is_batt_present()
120 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_batt_present()
122 cm->desc->psy_charger_stat[i]); in is_batt_present()
124 dev_err(cm->dev, "Cannot find power supply \"%s\"\n", in is_batt_present()
125 cm->desc->psy_charger_stat[i]); in is_batt_present()
145 * @cm: the Charger Manager representing the battery.
151 static bool is_ext_pwr_online(struct charger_manager *cm) in is_ext_pwr_online() argument
187 get_batt_uV(struct charger_manager *cm, int *uV) get_batt_uV() argument
211 is_charging(struct charger_manager *cm) is_charging() argument
280 is_full_charged(struct charger_manager *cm) is_full_charged() argument
343 is_polling_required(struct charger_manager *cm) is_polling_required() argument
372 try_charger_enable(struct charger_manager *cm, bool enable) try_charger_enable() argument
452 check_charging_duration(struct charger_manager *cm) check_charging_duration() argument
484 cm_get_battery_temperature_by_psy(struct charger_manager *cm, int *temp) cm_get_battery_temperature_by_psy() argument
502 cm_get_battery_temperature(struct charger_manager *cm, int *temp) cm_get_battery_temperature() argument
526 cm_check_thermal_status(struct charger_manager *cm) cm_check_thermal_status() argument
567 cm_get_target_status(struct charger_manager *cm) cm_get_target_status() argument
605 _cm_monitor(struct charger_manager *cm) _cm_monitor() argument
630 struct charger_manager *cm; cm_monitor() local
651 struct charger_manager *cm; _setup_polling() local
715 struct charger_manager *cm = power_supply_get_drvdata(psy); charger_get_property() local
862 struct charger_manager *cm; cm_setup_timer() local
973 charger_extcon_init(struct charger_manager *cm, struct charger_cable *cable) charger_extcon_init() argument
1031 charger_manager_register_extcon(struct charger_manager *cm) charger_manager_register_extcon() argument
1113 struct charger_manager *cm = charger->cm; charger_externally_control_store() local
1173 charger_manager_prepare_sysfs(struct charger_manager *cm) charger_manager_prepare_sysfs() argument
1233 cm_init_thermal_data(struct charger_manager *cm, struct power_supply *fuel_gauge, enum power_supply_property *properties, size_t *num_properties) cm_init_thermal_data() argument
1427 struct charger_manager *cm; charger_manager_probe() local
1636 struct charger_manager *cm = platform_get_drvdata(pdev); charger_manager_remove() local
1676 struct charger_manager *cm; cm_need_to_awake() local
1713 struct charger_manager *cm = dev_get_drvdata(dev); cm_suspend_complete() local
[all...]
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dcharger-manager.c93 * @cm: the Charger Manager representing the battery.
95 static bool is_batt_present(struct charger_manager *cm) in is_batt_present() argument
102 switch (cm->desc->battery_present) { in is_batt_present()
109 psy = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in is_batt_present()
120 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_batt_present()
122 cm->desc->psy_charger_stat[i]); in is_batt_present()
124 dev_err(cm->dev, "Cannot find power supply \"%s\"\n", in is_batt_present()
125 cm->desc->psy_charger_stat[i]); in is_batt_present()
145 * @cm: the Charger Manager representing the battery.
151 static bool is_ext_pwr_online(struct charger_manager *cm) in is_ext_pwr_online() argument
187 get_batt_uV(struct charger_manager *cm, int *uV) get_batt_uV() argument
211 is_charging(struct charger_manager *cm) is_charging() argument
280 is_full_charged(struct charger_manager *cm) is_full_charged() argument
343 is_polling_required(struct charger_manager *cm) is_polling_required() argument
372 try_charger_enable(struct charger_manager *cm, bool enable) try_charger_enable() argument
452 check_charging_duration(struct charger_manager *cm) check_charging_duration() argument
484 cm_get_battery_temperature_by_psy(struct charger_manager *cm, int *temp) cm_get_battery_temperature_by_psy() argument
502 cm_get_battery_temperature(struct charger_manager *cm, int *temp) cm_get_battery_temperature() argument
526 cm_check_thermal_status(struct charger_manager *cm) cm_check_thermal_status() argument
567 cm_get_target_status(struct charger_manager *cm) cm_get_target_status() argument
605 _cm_monitor(struct charger_manager *cm) _cm_monitor() argument
630 struct charger_manager *cm; cm_monitor() local
651 struct charger_manager *cm; _setup_polling() local
715 struct charger_manager *cm = power_supply_get_drvdata(psy); charger_get_property() local
862 struct charger_manager *cm; cm_setup_timer() local
973 charger_extcon_init(struct charger_manager *cm, struct charger_cable *cable) charger_extcon_init() argument
1028 charger_manager_register_extcon(struct charger_manager *cm) charger_manager_register_extcon() argument
1110 struct charger_manager *cm = charger->cm; charger_externally_control_store() local
1170 charger_manager_prepare_sysfs(struct charger_manager *cm) charger_manager_prepare_sysfs() argument
1230 cm_init_thermal_data(struct charger_manager *cm, struct power_supply *fuel_gauge, enum power_supply_property *properties, size_t *num_properties) cm_init_thermal_data() argument
1424 struct charger_manager *cm; charger_manager_probe() local
1633 struct charger_manager *cm = platform_get_drvdata(pdev); charger_manager_remove() local
1673 struct charger_manager *cm; cm_need_to_awake() local
1710 struct charger_manager *cm = dev_get_drvdata(dev); cm_suspend_complete() local
[all...]
/kernel/linux/linux-5.10/kernel/irq/
H A Dmatrix.c80 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_online() local
82 BUG_ON(cm->online); in irq_matrix_online()
84 if (!cm->initialized) { in irq_matrix_online()
85 cm->available = m->alloc_size; in irq_matrix_online()
86 cm->available -= cm->managed + m->systembits_inalloc; in irq_matrix_online()
87 cm->initialized = true; in irq_matrix_online()
89 m->global_available += cm->available; in irq_matrix_online()
90 cm->online = true; in irq_matrix_online()
101 struct cpumap *cm in irq_matrix_offline() local
110 matrix_alloc_area(struct irq_matrix *m, struct cpumap *cm, unsigned int num, bool managed) matrix_alloc_area() argument
133 struct cpumap *cm; matrix_find_best_cpu() local
154 struct cpumap *cm; matrix_find_best_cpu_managed() local
184 struct cpumap *cm = this_cpu_ptr(m->maps); irq_matrix_assign_system() local
215 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); irq_matrix_reserve_managed() local
256 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); irq_matrix_remove_managed() local
289 struct cpumap *cm; irq_matrix_alloc_managed() local
323 struct cpumap *cm = this_cpu_ptr(m->maps); irq_matrix_assign() local
381 struct cpumap *cm; irq_matrix_alloc() local
421 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); irq_matrix_free() local
452 struct cpumap *cm = this_cpu_ptr(m->maps); irq_matrix_available() local
476 struct cpumap *cm = this_cpu_ptr(m->maps); irq_matrix_allocated() local
504 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); irq_matrix_debug_show() local
[all...]
/kernel/linux/linux-6.6/kernel/irq/
H A Dmatrix.c80 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_online() local
82 BUG_ON(cm->online); in irq_matrix_online()
84 if (!cm->initialized) { in irq_matrix_online()
85 cm->available = m->alloc_size; in irq_matrix_online()
86 cm->available -= cm->managed + m->systembits_inalloc; in irq_matrix_online()
87 cm->initialized = true; in irq_matrix_online()
89 m->global_available += cm->available; in irq_matrix_online()
90 cm->online = true; in irq_matrix_online()
101 struct cpumap *cm in irq_matrix_offline() local
110 matrix_alloc_area(struct irq_matrix *m, struct cpumap *cm, unsigned int num, bool managed) matrix_alloc_area() argument
133 struct cpumap *cm; matrix_find_best_cpu() local
154 struct cpumap *cm; matrix_find_best_cpu_managed() local
184 struct cpumap *cm = this_cpu_ptr(m->maps); irq_matrix_assign_system() local
215 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); irq_matrix_reserve_managed() local
256 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); irq_matrix_remove_managed() local
290 struct cpumap *cm; irq_matrix_alloc_managed() local
324 struct cpumap *cm = this_cpu_ptr(m->maps); irq_matrix_assign() local
381 struct cpumap *cm; irq_matrix_alloc() local
421 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); irq_matrix_free() local
452 struct cpumap *cm = this_cpu_ptr(m->maps); irq_matrix_available() local
476 struct cpumap *cm = this_cpu_ptr(m->maps); irq_matrix_allocated() local
504 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); irq_matrix_debug_show() local
[all...]
/kernel/linux/linux-5.10/net/sched/
H A Dem_canid.c53 static void em_canid_sff_match_add(struct canid_match *cm, u32 can_id, in em_canid_sff_match_add() argument
67 set_bit(can_id, cm->match_sff); in em_canid_sff_match_add()
73 bitmap_fill(cm->match_sff, (1 << CAN_SFF_ID_BITS)); in em_canid_sff_match_add()
84 set_bit(i, cm->match_sff); in em_canid_sff_match_add()
96 struct canid_match *cm = em_canid_priv(m); in em_canid_match() local
105 for (i = 0, lp = cm->rules_raw; in em_canid_match()
106 i < cm->eff_rules_count; i++, lp++) { in em_canid_match()
114 match = (test_bit(can_id, cm->match_sff) ? 1 : 0); in em_canid_match()
124 struct canid_match *cm; in em_canid_change() local
136 cm in em_canid_change()
185 struct canid_match *cm = em_canid_priv(m); em_canid_destroy() local
192 struct canid_match *cm = em_canid_priv(m); em_canid_dump() local
[all...]
/kernel/linux/linux-6.6/net/sched/
H A Dem_canid.c53 static void em_canid_sff_match_add(struct canid_match *cm, u32 can_id, in em_canid_sff_match_add() argument
67 set_bit(can_id, cm->match_sff); in em_canid_sff_match_add()
73 bitmap_fill(cm->match_sff, (1 << CAN_SFF_ID_BITS)); in em_canid_sff_match_add()
84 set_bit(i, cm->match_sff); in em_canid_sff_match_add()
96 struct canid_match *cm = em_canid_priv(m); in em_canid_match() local
105 for (i = 0, lp = cm->rules_raw; in em_canid_match()
106 i < cm->eff_rules_count; i++, lp++) { in em_canid_match()
114 match = (test_bit(can_id, cm->match_sff) ? 1 : 0); in em_canid_match()
124 struct canid_match *cm; in em_canid_change() local
136 cm in em_canid_change()
185 struct canid_match *cm = em_canid_priv(m); em_canid_destroy() local
192 struct canid_match *cm = em_canid_priv(m); em_canid_dump() local
[all...]
/kernel/linux/linux-5.10/drivers/rapidio/
H A Drio_cm.c203 struct cm_dev *cm; member
226 static int riocm_post_send(struct cm_dev *cm, struct rio_dev *rdev,
300 static void *riocm_rx_get_msg(struct cm_dev *cm) in riocm_rx_get_msg() argument
305 msg = rio_get_inb_message(cm->mport, cmbox); in riocm_rx_get_msg()
308 if (cm->rx_buf[i] == msg) { in riocm_rx_get_msg()
309 cm->rx_buf[i] = NULL; in riocm_rx_get_msg()
310 cm->rx_slots++; in riocm_rx_get_msg()
323 * riocm_rx_fill - fills a ring of receive buffers for given cm device
324 * @cm: cm_dev object
329 static void riocm_rx_fill(struct cm_dev *cm, in argument
354 riocm_rx_free(struct cm_dev *cm) riocm_rx_free() argument
376 riocm_req_handler(struct cm_dev *cm, void *req_data) riocm_req_handler() argument
486 rio_cm_handler(struct cm_dev *cm, void *data) rio_cm_handler() argument
526 rio_rx_data_handler(struct cm_dev *cm, void *buf) rio_rx_data_handler() argument
582 struct cm_dev *cm = container_of(work, struct cm_dev, rx_work); rio_ibmsg_handler() local
620 struct cm_dev *cm = dev_id; riocm_inb_msg_event() local
635 rio_txcq_handler(struct cm_dev *cm, int slot) rio_txcq_handler() argument
697 struct cm_dev *cm = dev_id; riocm_outb_msg_event() local
703 riocm_queue_req(struct cm_dev *cm, struct rio_dev *rdev, void *buffer, size_t len) riocm_queue_req() argument
733 riocm_post_send(struct cm_dev *cm, struct rio_dev *rdev, void *buffer, size_t len) riocm_post_send() argument
942 riocm_ch_connect(u16 loc_ch, struct cm_dev *cm, struct cm_peer *peer, u16 rem_ch) riocm_ch_connect() argument
1231 struct cm_dev *cm; riocm_ch_bind() local
1534 struct cm_dev *cm; cm_ep_get_list_size() local
1562 struct cm_dev *cm; cm_ep_get_list() local
1621 struct cm_dev *cm; cm_mport_get_list() local
1781 struct cm_dev *cm; cm_chan_connect() local
1948 struct cm_dev *cm; riocm_add_dev() local
1991 struct cm_dev *cm; riocm_remove_dev() local
2100 struct cm_dev *cm; riocm_add_mport() local
2179 struct cm_dev *cm; riocm_remove_mport() local
[all...]
/kernel/linux/linux-6.6/drivers/rapidio/
H A Drio_cm.c203 struct cm_dev *cm; member
226 static int riocm_post_send(struct cm_dev *cm, struct rio_dev *rdev,
300 static void *riocm_rx_get_msg(struct cm_dev *cm) in riocm_rx_get_msg() argument
305 msg = rio_get_inb_message(cm->mport, cmbox); in riocm_rx_get_msg()
308 if (cm->rx_buf[i] == msg) { in riocm_rx_get_msg()
309 cm->rx_buf[i] = NULL; in riocm_rx_get_msg()
310 cm->rx_slots++; in riocm_rx_get_msg()
323 * riocm_rx_fill - fills a ring of receive buffers for given cm device
324 * @cm: cm_dev object
329 static void riocm_rx_fill(struct cm_dev *cm, in argument
354 riocm_rx_free(struct cm_dev *cm) riocm_rx_free() argument
376 riocm_req_handler(struct cm_dev *cm, void *req_data) riocm_req_handler() argument
486 rio_cm_handler(struct cm_dev *cm, void *data) rio_cm_handler() argument
526 rio_rx_data_handler(struct cm_dev *cm, void *buf) rio_rx_data_handler() argument
582 struct cm_dev *cm = container_of(work, struct cm_dev, rx_work); rio_ibmsg_handler() local
620 struct cm_dev *cm = dev_id; riocm_inb_msg_event() local
635 rio_txcq_handler(struct cm_dev *cm, int slot) rio_txcq_handler() argument
697 struct cm_dev *cm = dev_id; riocm_outb_msg_event() local
703 riocm_queue_req(struct cm_dev *cm, struct rio_dev *rdev, void *buffer, size_t len) riocm_queue_req() argument
733 riocm_post_send(struct cm_dev *cm, struct rio_dev *rdev, void *buffer, size_t len) riocm_post_send() argument
942 riocm_ch_connect(u16 loc_ch, struct cm_dev *cm, struct cm_peer *peer, u16 rem_ch) riocm_ch_connect() argument
1231 struct cm_dev *cm; riocm_ch_bind() local
1534 struct cm_dev *cm; cm_ep_get_list_size() local
1562 struct cm_dev *cm; cm_ep_get_list() local
1621 struct cm_dev *cm; cm_mport_get_list() local
1781 struct cm_dev *cm; cm_chan_connect() local
1948 struct cm_dev *cm; riocm_add_dev() local
1991 struct cm_dev *cm; riocm_remove_dev() local
2098 struct cm_dev *cm; riocm_add_mport() local
2175 struct cm_dev *cm; riocm_remove_mport() local
[all...]
/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-cmedia.c49 static void hp_ev(struct hid_device *hid, struct cmhid *cm, int value) in hp_ev() argument
51 input_report_switch(cm->input_dev, SW_HEADPHONE_INSERT, value); in hp_ev()
52 input_sync(cm->input_dev); in hp_ev()
58 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_raw_event() local
66 hp_ev(hid, cm, 0); in cmhid_raw_event()
70 hp_ev(hid, cm, 1); in cmhid_raw_event()
82 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_input_configured() local
85 cm->input_dev = input_dev; in cmhid_input_configured()
86 memcpy(cm->switch_map, jack_switch_types, sizeof(cm in cmhid_input_configured()
104 struct cmhid *cm; cmhid_probe() local
138 struct cmhid *cm = hid_get_drvdata(hid); cmhid_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
H A Dipoib_cm.c99 priv->cm.rx_wr.wr_id = id | IPOIB_OP_CM | IPOIB_OP_RECV; in ipoib_cm_post_receive_srq()
101 for (i = 0; i < priv->cm.num_frags; ++i) in ipoib_cm_post_receive_srq()
102 priv->cm.rx_sge[i].addr = priv->cm.srq_ring[id].mapping[i]; in ipoib_cm_post_receive_srq()
104 ret = ib_post_srq_recv(priv->cm.srq, &priv->cm.rx_wr, NULL); in ipoib_cm_post_receive_srq()
107 ipoib_cm_dma_unmap_rx(priv, priv->cm.num_frags - 1, in ipoib_cm_post_receive_srq()
108 priv->cm.srq_ring[id].mapping); in ipoib_cm_post_receive_srq()
109 dev_kfree_skb_any(priv->cm.srq_ring[id].skb); in ipoib_cm_post_receive_srq()
110 priv->cm in ipoib_cm_post_receive_srq()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/ulp/ipoib/
H A Dipoib_cm.c99 priv->cm.rx_wr.wr_id = id | IPOIB_OP_CM | IPOIB_OP_RECV; in ipoib_cm_post_receive_srq()
101 for (i = 0; i < priv->cm.num_frags; ++i) in ipoib_cm_post_receive_srq()
102 priv->cm.rx_sge[i].addr = priv->cm.srq_ring[id].mapping[i]; in ipoib_cm_post_receive_srq()
104 ret = ib_post_srq_recv(priv->cm.srq, &priv->cm.rx_wr, NULL); in ipoib_cm_post_receive_srq()
107 ipoib_cm_dma_unmap_rx(priv, priv->cm.num_frags - 1, in ipoib_cm_post_receive_srq()
108 priv->cm.srq_ring[id].mapping); in ipoib_cm_post_receive_srq()
109 dev_kfree_skb_any(priv->cm.srq_ring[id].skb); in ipoib_cm_post_receive_srq()
110 priv->cm in ipoib_cm_post_receive_srq()
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dclockid.c71 const struct clockid_map *cm; in parse_clockid() local
97 for (cm = clockids; cm->name; cm++) { in parse_clockid()
98 if (!strcasecmp(str, cm->name)) { in parse_clockid()
99 opts->clockid = cm->clockid; in parse_clockid()
112 const struct clockid_map *cm; in clockid_name() local
114 for (cm = clockids; cm->name; cm in clockid_name()
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dclockid.c71 const struct clockid_map *cm; in parse_clockid() local
97 for (cm = clockids; cm->name; cm++) { in parse_clockid()
98 if (!strcasecmp(str, cm->name)) { in parse_clockid()
99 opts->clockid = cm->clockid; in parse_clockid()
112 const struct clockid_map *cm; in clockid_name() local
114 for (cm = clockids; cm->name; cm in clockid_name()
[all...]
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-cmedia.c91 static void hp_ev(struct hid_device *hid, struct cmhid *cm, int value) in hp_ev() argument
93 input_report_switch(cm->input_dev, SW_HEADPHONE_INSERT, value); in hp_ev()
94 input_sync(cm->input_dev); in hp_ev()
100 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_raw_event() local
108 hp_ev(hid, cm, 0); in cmhid_raw_event()
112 hp_ev(hid, cm, 1); in cmhid_raw_event()
124 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_input_configured() local
127 cm->input_dev = input_dev; in cmhid_input_configured()
128 memcpy(cm->switch_map, jack_switch_types, sizeof(cm in cmhid_input_configured()
146 struct cmhid *cm; cmhid_probe() local
180 struct cmhid *cm = hid_get_drvdata(hid); cmhid_remove() local
[all...]
/kernel/linux/linux-5.10/fs/dlm/
H A Dconfig.c273 int comm_seq; /* copy of cm->seq when nd->nodeid is set */
490 struct dlm_comm *cm; in make_comm() local
492 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm()
493 if (!cm) in make_comm()
496 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
498 cm->seq = dlm_comm_count++; in make_comm()
499 if (!cm->seq) in make_comm()
500 cm->seq = dlm_comm_count++; in make_comm()
502 cm->nodeid = -1; in make_comm()
503 cm in make_comm()
511 struct dlm_comm *cm = config_item_to_comm(i); drop_comm() local
522 struct dlm_comm *cm = config_item_to_comm(i); release_comm() local
617 struct dlm_comm *cm = config_item_to_comm(item); comm_local_store() local
630 struct dlm_comm *cm = config_item_to_comm(item); comm_addr_store() local
658 struct dlm_comm *cm = config_item_to_comm(item); comm_addr_list_show() local
804 struct dlm_comm *cm = NULL; get_comm() local
828 put_comm(struct dlm_comm *cm) put_comm() argument
883 struct dlm_comm *cm = get_comm(nodeid); dlm_comm_seq() local
893 struct dlm_comm *cm; dlm_comm_mark() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/dsc/
H A Drc_calc_fpu.c34 (cm == CM_444 || cm == CM_RGB) ? (val444) : (cm == CM_422 ? (val422) : (val420))
64 static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, in get_qp_set() argument
166 enum colour_mode cm, in _do_calc_rc_params()
189 rc->rc_quant_incr_limit0 = ((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0); in _do_calc_rc_params()
190 rc->rc_quant_incr_limit1 = ((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0); in _do_calc_rc_params()
194 switch (cm) { in _do_calc_rc_params()
208 rc->first_line_bpg_offset = median3(0, (12 + (int) (0.09 * min(34, slice_height - 8))), (int)(((3 * bpc + (cm == CM_444 ? 0 : 2)) * 3) - (3 * bpp_group))); in _do_calc_rc_params()
213 initial_xmit_delay_factor = (cm in _do_calc_rc_params()
165 _do_calc_rc_params(struct rc_params *rc, enum colour_mode cm, enum bits_per_comp bpc, u16 drm_bpp, bool is_navite_422_or_420, int slice_width, int slice_height, int minor_version) _do_calc_rc_params() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/usb/pwc/
H A Dpwc-dec23.c352 const unsigned char *cm = pwc_crop_table+MAX_OUTER_CROP_VALUE; in copy_image_block_Y() local
356 *d++ = cm[c[0] >> scalebits]; in copy_image_block_Y()
357 *d++ = cm[c[1] >> scalebits]; in copy_image_block_Y()
358 *d++ = cm[c[2] >> scalebits]; in copy_image_block_Y()
359 *d++ = cm[c[3] >> scalebits]; in copy_image_block_Y()
362 *d++ = cm[c[4] >> scalebits]; in copy_image_block_Y()
363 *d++ = cm[c[5] >> scalebits]; in copy_image_block_Y()
364 *d++ = cm[c[6] >> scalebits]; in copy_image_block_Y()
365 *d++ = cm[c[7] >> scalebits]; in copy_image_block_Y()
368 *d++ = cm[ in copy_image_block_Y()
407 const unsigned char *cm = pwc_crop_table+MAX_OUTER_CROP_VALUE; copy_image_block_CrCb() local
[all...]

Completed in 22 milliseconds

12345678