Home
last modified time | relevance | path

Searched refs:cm (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/openbmc/linux/drivers/clk/sunxi-ng/
H A Dccu_mult.c46 _cm.max = (1 << cm->mult.width) + cm->mult.offset - 1; in ccu_mult_round_rate()
57 return ccu_gate_helper_disable(&cm->common, cm->enable); in ccu_mult_disable()
64 return ccu_gate_helper_enable(&cm->common, cm->enable); in ccu_mult_enable()
81 if (ccu_frac_helper_is_enabled(&cm->common, &cm->frac)) in ccu_mult_recalc_rate()
84 reg = readl(cm->common.base + cm->common.reg); in ccu_mult_recalc_rate()
112 ccu_frac_helper_enable(&cm->common, &cm->frac); in ccu_mult_set_rate()
117 ccu_frac_helper_disable(&cm->common, &cm->frac); in ccu_mult_set_rate()
134 reg = readl(cm->common.base + cm->common.reg); in ccu_mult_set_rate()
135 reg &= ~GENMASK(cm->mult.width + cm->mult.shift - 1, cm->mult.shift); in ccu_mult_set_rate()
138 writel(reg, cm->common.base + cm->common.reg); in ccu_mult_set_rate()
[all …]
H A Dccu_mux.c167 parent = reg >> cm->shift; in ccu_mux_helper_get_parent()
170 if (cm->table) { in ccu_mux_helper_get_parent()
190 if (cm->table) in ccu_mux_helper_set_parent()
201 reg &= ~GENMASK(cm->width + cm->shift - 1, cm->shift); in ccu_mux_helper_set_parent()
214 return ccu_gate_helper_disable(&cm->common, cm->enable); in ccu_mux_disable()
221 return ccu_gate_helper_enable(&cm->common, cm->enable); in ccu_mux_enable()
228 return ccu_gate_helper_is_enabled(&cm->common, cm->enable); in ccu_mux_is_enabled()
235 return ccu_mux_helper_get_parent(&cm->common, &cm->mux); in ccu_mux_get_parent()
242 return ccu_mux_helper_set_parent(&cm->common, &cm->mux, index); in ccu_mux_set_parent()
261 return ccu_mux_helper_apply_prediv(&cm->common, &cm->mux, -1, in ccu_mux_recalc_rate()
[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->features & CCU_FEATURE_MMC_TIMING_SWITCH)) in sunxi_ccu_get_mmc_timing_mode()
61 return !!(readl(cm->base + cm->reg) & CCU_MMC_NEW_TIMING_MODE); in sunxi_ccu_get_mmc_timing_mode()
H A Dccu-sun6i-rtc.c59 struct ccu_common *cm = hw_to_ccu_common(hw); in ccu_iosc_enable() local
66 struct ccu_common *cm = hw_to_ccu_common(hw); in ccu_iosc_disable() local
73 struct ccu_common *cm = hw_to_ccu_common(hw); in ccu_iosc_is_enabled() local
81 struct ccu_common *cm = hw_to_ccu_common(hw); in ccu_iosc_recalc_rate() local
119 struct ccu_common *cm = hw_to_ccu_common(hw); in ccu_iosc_32k_prepare() local
125 val = readl(cm->base + IOSC_CLK_CALI_REG); in ccu_iosc_32k_prepare()
127 cm->base + IOSC_CLK_CALI_REG); in ccu_iosc_32k_prepare()
140 val = readl(cm->base + IOSC_CLK_CALI_REG); in ccu_iosc_32k_unprepare()
142 cm->base + IOSC_CLK_CALI_REG); in ccu_iosc_32k_unprepare()
152 val = readl(cm->base + IOSC_CLK_CALI_REG); in ccu_iosc_32k_recalc_rate()
[all …]
/openbmc/linux/sound/pci/
H A Dcmipci.c800 snd_cmipci_write(cm, CM_REG_FUNCTRL0, cm->ctrl); in snd_cmipci_pcm_prepare()
877 snd_cmipci_write(cm, CM_REG_FUNCTRL0, cm->ctrl); in snd_cmipci_pcm_trigger()
893 snd_cmipci_write(cm, CM_REG_FUNCTRL0, cm->ctrl); in snd_cmipci_pcm_trigger()
898 snd_cmipci_write(cm, CM_REG_FUNCTRL0, cm->ctrl); in snd_cmipci_pcm_trigger()
1361 snd_cmipci_silence_hack(cm, &cm->channel[0]); in snd_cmipci_playback_hw_free()
1368 snd_cmipci_silence_hack(cm, &cm->channel[1]); in snd_cmipci_playback2_hw_free()
1662 cm->dig_pcm_status = cm->dig_status; in snd_cmipci_playback_open()
1756 cm->dig_pcm_status = cm->dig_status; in snd_cmipci_playback_spdif_open()
1771 if (cm->can_96k && !(cm->chip_version == 68)) { in snd_cmipci_capture_spdif_open()
2647 if (snd_BUG_ON(!cm || !cm->card)) in snd_cmipci_mixer_new()
[all …]
/openbmc/linux/kernel/irq/
H A Dmatrix.c86 cm->available -= cm->managed + m->systembits_inalloc; in irq_matrix_online()
90 cm->online = true; in irq_matrix_online()
140 if (!cm->online || cm->available <= maxavl) in matrix_find_best_cpu()
161 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed()
221 cm->managed++; in irq_matrix_reserve_managed()
271 cm->managed--; in irq_matrix_remove_managed()
307 cm->allocated++; in irq_matrix_alloc_managed()
433 if (cm->online) in irq_matrix_free()
478 return cm->allocated - cm->managed_allocated; in irq_matrix_allocated()
507 cpu, cm->available, cm->managed, in irq_matrix_debug_show()
[all …]
/openbmc/linux/drivers/power/supply/
H A Dcharger-manager.c658 if (is_polling_required(cm) && cm->desc->polling_interval_ms) { in _setup_polling()
873 if (!is_polling_required(cm) && !cm->emergency_stop) in cm_setup_timer()
1047 charger->cm = cm; in charger_manager_register_extcon()
1059 cable->cm = cm; in charger_manager_register_extcon()
1110 struct charger_manager *cm = charger->cm; in charger_externally_control_store() local
1250 cm->tzd_batt = in cm_init_thermal_data()
1437 cm = devm_kzalloc(&pdev->dev, sizeof(*cm), GFP_KERNEL); in charger_manager_probe()
1438 if (!cm) in charger_manager_probe()
1443 cm->desc = desc; in charger_manager_probe()
1522 cm->charger_psy_desc.name = cm->psy_name_buf; in charger_manager_probe()
[all …]
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-packed-hsv.rst27cm}|p{0.8cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
H A Dpixfmt-packed-yuv.rst42cm}|p{0.96cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.52cm}|p{0.…
304 .. tabularcolumns:: |p{3.4cm}|p{1.2cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8c…
373 .. tabularcolumns:: |p{3.4cm}|p{1.2cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8c…
432 …rcolumns:: |p{2.9cm}|p{0.8cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5cm}|p{0.5
H A Dpixfmt-rgb.rst72cm}|p{2.0cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
781cm}|p{0.8cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
1013cm}|p{0.70cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.…
H A Dsubdev-formats.rst10 .. tabularcolumns:: |p{2.0cm}|p{4.0cm}|p{11.3cm}|
118 .. tabularcolumns:: |p{6.5cm}|p{1.6cm}|p{9.2cm}|
211cm}|p{0.7cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
1799cm}|p{0.7cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
1988cm}|p{0.7cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
2426cm}|p{0.7cm}|p{0.3cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22
3279cm}|p{0.7cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
7521cm}|p{0.7cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
7709cm}|p{0.7cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.2…
8052cm}|p{0.73cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.…
[all …]
/openbmc/linux/Documentation/devicetree/bindings/power/supply/
H A Dcharger-manager.yaml20 cm-chargers:
24 cm-num-chargers:
28 cm-fuel-gauge:
32 cm-name:
37 cm-poll-mode:
47 cm-poll-interval:
51 cm-battery-stat:
71 cm-fullbatt-soc:
79 cm-thermal-zone:
99 cm-battery-hot:
[all …]
/openbmc/linux/net/sched/
H A Dem_canid.c84 set_bit(i, cm->match_sff); in em_canid_sff_match_add()
124 struct canid_match *cm; in em_canid_change() local
137 if (!cm) in em_canid_change()
155 memcpy(cm->rules_raw + cm->eff_rules_count, in em_canid_change()
159 cm->eff_rules_count++; in em_canid_change()
166 memcpy(cm->rules_raw in em_canid_change()
167 + cm->eff_rules_count in em_canid_change()
168 + cm->sff_rules_count, in em_canid_change()
171 cm->sff_rules_count++; in em_canid_change()
187 kfree(cm); in em_canid_destroy()
[all …]
/openbmc/qemu/hw/intc/
H A Dgic_internal.h29 #define GIC_DIST_SET_ENABLED(irq, cm) (s->irq_state[irq].enabled |= (cm)) argument
30 #define GIC_DIST_CLEAR_ENABLED(irq, cm) (s->irq_state[irq].enabled &= ~(cm)) argument
32 #define GIC_DIST_SET_PENDING(irq, cm) (s->irq_state[irq].pending |= (cm)) argument
33 #define GIC_DIST_CLEAR_PENDING(irq, cm) (s->irq_state[irq].pending &= ~(cm)) argument
34 #define GIC_DIST_SET_ACTIVE(irq, cm) (s->irq_state[irq].active |= (cm)) argument
35 #define GIC_DIST_CLEAR_ACTIVE(irq, cm) (s->irq_state[irq].active &= ~(cm)) argument
40 #define GIC_DIST_SET_LEVEL(irq, cm) (s->irq_state[irq].level |= (cm)) argument
41 #define GIC_DIST_CLEAR_LEVEL(irq, cm) (s->irq_state[irq].level &= ~(cm)) argument
42 #define GIC_DIST_TEST_LEVEL(irq, cm) ((s->irq_state[irq].level & (cm)) != 0) argument
51 #define GIC_DIST_CLEAR_GROUP(irq, cm) (s->irq_state[irq].group &= ~(cm)) argument
[all …]
/openbmc/linux/drivers/rapidio/
H A Drio_cm.c341 rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]); in riocm_rx_fill()
623 queue_work(cm->rx_wq, &cm->rx_work); in riocm_inb_msg_event()
644 cm->mport->id, slot, cm->tx_cnt); in rio_txcq_handler()
661 if (cm->tx_cnt < 0 || cm->tx_cnt > RIOCM_TX_RING_SIZE) in rio_txcq_handler()
677 cm->tx_buf[cm->tx_slot] = req->buffer; in rio_txcq_handler()
699 if (cm && rio_mport_is_running(cm->mport)) in riocm_outb_msg_event()
752 cm->tx_buf[cm->tx_slot] = buffer; in riocm_post_send()
756 buffer, rdev->destid, cm->tx_slot, cm->tx_cnt); in riocm_post_send()
2103 cm = kzalloc(sizeof(*cm), GFP_KERNEL); in riocm_add_mport()
2104 if (!cm) in riocm_add_mport()
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-cmedia.c94 input_sync(cm->input_dev); in hp_ev()
108 hp_ev(hid, cm, 0); in cmhid_raw_event()
112 hp_ev(hid, cm, 1); in cmhid_raw_event()
127 cm->input_dev = input_dev; in cmhid_input_configured()
128 memcpy(cm->switch_map, jack_switch_types, sizeof(cm->switch_map)); in cmhid_input_configured()
146 struct cmhid *cm; in cmhid_probe() local
149 if (!cm) { in cmhid_probe()
154 cm->hid = hid; in cmhid_probe()
157 hid_set_drvdata(hid, cm); in cmhid_probe()
173 kfree(cm); in cmhid_probe()
[all …]
/openbmc/linux/drivers/infiniband/ulp/ipoib/
H A Dipoib_cm.c102 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()
230 list_splice_init(&priv->cm.rx_flush_list, &priv->cm.rx_drain_list); in ipoib_cm_start_rx_drain()
579 list_splice_init(&priv->cm.rx_drain_list, &priv->cm.rx_reap_list); in ipoib_cm_handle_rx_wc()
853 neigh->cm = NULL; in ipoib_cm_handle_tx_wc()
900 priv->cm.id = NULL; in ipoib_cm_dev_open()
938 priv->cm.id = NULL; in ipoib_cm_dev_stop()
1311 neigh->cm = tx; in ipoib_cm_create_tx()
1611 priv->cm.max_cm_mtu, priv->cm.num_frags); in ipoib_cm_dev_init()
1617 ipoib_cm_init_rx_wr(dev, &priv->cm.rx_wr, priv->cm.rx_sge); in ipoib_cm_dev_init()
[all …]
/openbmc/linux/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()
115 if (cm->clockid == clk_id) in clockid_name()
116 return cm->name; in clockid_name()
/openbmc/linux/drivers/media/usb/pwc/
H A Dpwc-dec23.c356 *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[c[8] >> scalebits]; in copy_image_block_Y()
369 *d++ = cm[c[9] >> scalebits]; in copy_image_block_Y()
[all …]
/openbmc/linux/fs/dlm/
H A Dconfig.c514 if (!cm) in make_comm()
520 if (!cm->seq) in make_comm()
524 cm->local = 0; in make_comm()
526 cm->mark = 0; in make_comm()
537 kfree(cm->addr[cm->addr_count]); in drop_comm()
544 kfree(cm); in release_comm()
673 cm->addr[cm->addr_count++] = addr; in comm_addr_store()
854 cm = NULL; in get_comm()
855 return cm; in get_comm()
914 if (!cm) in dlm_comm_seq()
[all …]
/openbmc/linux/sound/soc/intel/avs/
H A Dregisters.h30 #define AVS_ADSPCS_CRST_MASK(cm) (cm) argument
31 #define AVS_ADSPCS_CSTALL_MASK(cm) ((cm) << 8) argument
32 #define AVS_ADSPCS_SPA_MASK(cm) ((cm) << 16) argument
33 #define AVS_ADSPCS_CPA_MASK(cm) ((cm) << 24) argument
/openbmc/linux/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() argument
194 switch (cm) { in _do_calc_rc_params()
213 initial_xmit_delay_factor = (cm == CM_444 || cm == CM_RGB) ? 1.0 : 2.0; in _do_calc_rc_params()
216 if (cm == CM_422 || cm == CM_420) in _do_calc_rc_params()
220 if (3 * bpp_group >= (((rc->initial_xmit_delay + 2) / 3) * (3 + (cm == CM_422)))) { in _do_calc_rc_params()
229 get_qp_set(rc->qp_min, cm, bpc, DAL_MM_MIN, bpp); in _do_calc_rc_params()
230 get_qp_set(rc->qp_max, cm, bpc, DAL_MM_MAX, bpp); in _do_calc_rc_params()
231 if (cm == CM_444 && minor_version == 1) { in _do_calc_rc_params()
[all …]
/openbmc/linux/net/core/
H A Dscm.c241 if (!user_write_access_begin(cm, cmlen)) in put_cmsg()
248 cmlen - sizeof(*cm), efault_end); in put_cmsg()
251 struct cmsghdr *cm = msg->msg_control; in put_cmsg() local
253 cm->cmsg_level = level; in put_cmsg()
254 cm->cmsg_type = type; in put_cmsg()
255 cm->cmsg_len = cmlen; in put_cmsg()
256 memcpy(CMSG_DATA(cm), data, cmlen - sizeof(*cm)); in put_cmsg()
311 struct cmsghdr __user *cm = in scm_detach_fds() local
315 int __user *cmsg_data = CMSG_USER_DATA(cm); in scm_detach_fds()
336 err = put_user(SOL_SOCKET, &cm->cmsg_level); in scm_detach_fds()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dipv6_flowlabel.c75 struct cmsghdr *cm; in do_send() local
77 cm = (void *)control; in do_send()
78 cm->cmsg_len = CMSG_LEN(sizeof(flowlabel)); in do_send()
79 cm->cmsg_level = SOL_IPV6; in do_send()
80 cm->cmsg_type = IPV6_FLOWINFO; in do_send()
103 struct cmsghdr *cm; in do_recv() local
130 cm = CMSG_FIRSTHDR(&msg); in do_recv()
132 if (!cm) in do_recv()
134 if (CMSG_NXTHDR(&msg, cm)) in do_recv()
136 if (cm->cmsg_level != SOL_IPV6 || in do_recv()
[all …]
/openbmc/linux/Documentation/userspace-api/media/cec/
H A Dcec-ioc-adap-g-conn-info.rst42 .. tabularcolumns:: |p{1.0cm}|p{4.4cm}|p{2.5cm}|p{9.2cm}|
62 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.4cm}|
85 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.4cm}|

12345678910>>...15