Home
last modified time | relevance | path

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

12345678910>>...12

/linux/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 = hw_to_ccu_mult(hw); in ccu_mult_enable() local
64 return ccu_gate_helper_enable(&cm->common, cm->enable); in ccu_mult_enable()
69 struct ccu_mult *cm = hw_to_ccu_mult(hw); in ccu_mult_is_enabled() 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->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
61 return ccu_gate_helper_enable(cm, DCXO_CTRL_CLK16M_RC_EN); in ccu_iosc_enable()
66 struct ccu_common *cm = hw_to_ccu_common(hw); in ccu_iosc_disable() local
68 return ccu_gate_helper_disable(cm, DCXO_CTRL_CLK16M_RC_EN); in ccu_iosc_disable()
73 struct ccu_common *cm = hw_to_ccu_common(hw); in ccu_iosc_is_enabled() local
75 return ccu_gate_helper_is_enabled(cm, DCXO_CTRL_CLK16M_RC_EN); in ccu_iosc_is_enabled()
81 struct ccu_common *cm = hw_to_ccu_common(hw); in ccu_iosc_recalc_rate() local
84 u32 reg = readl(cm->base + IOSC_CLK_CALI_REG); in ccu_iosc_recalc_rate()
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()
[all …]
/linux/kernel/irq/
H A Dmatrix.c72 struct cpumap *cm = per_cpu_ptr(m->maps, cpu); in irq_alloc_matrix() local
74 cm->managed_map = &cm->alloc_map[matrix_size]; in irq_alloc_matrix()
86 struct cpumap *cm = this_cpu_ptr(m->maps); in irq_matrix_online() local
88 BUG_ON(cm->online); in irq_matrix_online()
90 if (!cm->initialized) { in irq_matrix_online()
91 cm->available = m->alloc_size; in irq_matrix_online()
92 cm->available -= cm->managed + m->systembits_inalloc; in irq_matrix_online()
93 cm->initialized = true; in irq_matrix_online()
95 m->global_available += cm->available; in irq_matrix_online()
96 cm->online = true; in irq_matrix_online()
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-packed-hsv.rst28cm}|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 Dmetafmt-generic.rst33 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|
75 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.8cm}|
119 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.8cm}|p{1.2cm}|p{1.2cm}|p{1.8cm}|
160 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.8cm}|p{1.8cm}|p{1.8cm}|
207 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{1.2cm}|p{.8cm}|
256 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.8cm}|p{1.2cm}|p{1.2cm}|p{1.2c…
309 …. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{.8cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{…
H A Dpixfmt-packed-yuv.rst43cm}|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.…
305 .. 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…
374 .. 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…
433 …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.rst73cm}|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…
782cm}|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…
1068cm}|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 Dvidioc-enumstd.rst50 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}|
89 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}|
103 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}|
231 …bularcolumns:: |p{1.43cm}|p{1.38cm}|p{1.59cm}|p{1.7cm}|p{1.7cm}|p{1.17cm}|p{0.64cm}|p{1.71cm}|p{1.…
H A Dvidioc-dqevent.rst42 .. tabularcolumns:: |p{3.0cm}|p{3.4cm}|p{10.9cm}|
100 .. tabularcolumns:: |p{6.2cm}|p{2.6cm}|p{8.5cm}|
190 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}|
204 .. tabularcolumns:: |p{3.5cm}|p{3.0cm}|p{10.8cm}|
254 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}|
268 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}|
283 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.5cm}|
312 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.5cm}|
342 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.5cm}|
/linux/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
108 for (i = 0, lp = cm->rules_raw; in em_canid_match()
109 i < cm->eff_rules_count; i++, lp++) { in em_canid_match()
117 match = (test_bit(can_id, cm->match_sff) ? 1 : 0); in em_canid_match()
127 struct canid_match *cm; in em_canid_change() local
139 cm = kzalloc(sizeof(struct canid_match) + len, GFP_KERNEL); in em_canid_change()
[all …]
/linux/drivers/rapidio/
H A Drio_cm.c220 static int riocm_post_send(struct cm_dev *cm, struct rio_dev *rdev,
296 static void *riocm_rx_get_msg(struct cm_dev *cm) in riocm_rx_get_msg() argument
301 msg = rio_get_inb_message(cm->mport, cmbox); in riocm_rx_get_msg()
304 if (cm->rx_buf[i] == msg) { in riocm_rx_get_msg()
305 cm->rx_buf[i] = NULL; in riocm_rx_get_msg()
306 cm->rx_slots++; in riocm_rx_get_msg()
325 static void riocm_rx_fill(struct cm_dev *cm, int nent) in riocm_rx_fill() argument
329 if (cm->rx_slots == 0) in riocm_rx_fill()
332 for (i = 0; i < RIOCM_RX_RING_SIZE && cm->rx_slots && nent; i++) { in riocm_rx_fill()
333 if (cm->rx_buf[i] == NULL) { in riocm_rx_fill()
[all …]
/linux/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.srq_ring[id].skb = NULL; in ipoib_cm_post_receive_srq()
217 if (list_empty(&priv->cm.rx_flush_list) || in ipoib_cm_start_rx_drain()
218 !list_empty(&priv->cm.rx_drain_list)) in ipoib_cm_start_rx_drain()
[all …]
/linux/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->switch_map)); in cmhid_input_configured()
131 input_set_capability(cm->input_dev, in cmhid_input_configured()
[all …]
/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()
/linux/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[c[8] >> scalebits]; in copy_image_block_Y()
[all …]
/linux/fs/dlm/
H A Dconfig.c526 struct dlm_comm *cm; in make_comm() local
534 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm()
535 if (!cm) in make_comm()
538 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
540 cm->seq = dlm_comm_count++; in make_comm()
541 if (!cm->seq) in make_comm()
542 cm->seq = dlm_comm_count++; in make_comm()
544 cm->nodeid = nodeid; in make_comm()
545 cm->local = 0; in make_comm()
546 cm->addr_count = 0; in make_comm()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dnet_timestamping.c77 struct cmsghdr *cm; in test_recv_errmsg_cmsg() local
79 for (cm = CMSG_FIRSTHDR(msg); in test_recv_errmsg_cmsg()
80 cm && cm->cmsg_len; in test_recv_errmsg_cmsg()
81 cm = CMSG_NXTHDR(msg, cm)) { in test_recv_errmsg_cmsg()
82 if (cm->cmsg_level == SOL_SOCKET && in test_recv_errmsg_cmsg()
83 cm->cmsg_type == SCM_TIMESTAMPING) { in test_recv_errmsg_cmsg()
84 tss = (void *)CMSG_DATA(cm); in test_recv_errmsg_cmsg()
85 } else if ((cm->cmsg_level == SOL_IP && in test_recv_errmsg_cmsg()
86 cm->cmsg_type == IP_RECVERR) || in test_recv_errmsg_cmsg()
87 (cm->cmsg_level == SOL_IPV6 && in test_recv_errmsg_cmsg()
[all …]
/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
189 …((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0); in _do_calc_rc_params()
190 …((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 …n3(0, (12 + (int) (0.09 * min(34, slice_height - 8))), (int)(((3 * bpc + (cm == CM_444 ? 0 : 2)) … 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()
[all …]
/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()
81 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); 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()
[all …]
/linux/net/netfilter/
H A Dxt_limit.c159 const struct compat_xt_rateinfo *cm = src; in limit_mt_compat_from_user() local
161 .avg = cm->avg, in limit_mt_compat_from_user()
162 .burst = cm->burst, in limit_mt_compat_from_user()
163 .prev = cm->prev | (unsigned long)cm->master << 32, in limit_mt_compat_from_user()
164 .credit = cm->credit, in limit_mt_compat_from_user()
165 .credit_cap = cm->credit_cap, in limit_mt_compat_from_user()
166 .cost = cm->cost, in limit_mt_compat_from_user()
174 struct compat_xt_rateinfo cm = { in limit_mt_compat_to_user() local
183 return copy_to_user(dst, &cm, sizeof(cm)) ? -EFAULT : 0; in limit_mt_compat_to_user()
/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}|
/linux/Documentation/devicetree/bindings/arm/omap/
H A Dprcm.txt16 "ti,omap3-cm"
22 "ti,omap5-cm-core-aon"
24 "ti,omap5-cm-core"
26 "ti,dra7-cm-core-aon"
27 "ti,dra7-cm-core"
40 cm: clock@48004000 {
41 compatible = "ti,omap3-cm";
44 clock-output-names = "cm";
/linux/tools/testing/vsock/
H A Dmsg_zerocopy_common.c22 struct cmsghdr *cm; in vsock_recv_completion() local
34 cm = CMSG_FIRSTHDR(&msg); in vsock_recv_completion()
35 if (!cm) { in vsock_recv_completion()
40 if (cm->cmsg_level != SOL_VSOCK) { in vsock_recv_completion()
45 if (cm->cmsg_type != VSOCK_RECVERR) { in vsock_recv_completion()
50 serr = (void *)CMSG_DATA(cm); in vsock_recv_completion()
/linux/drivers/clk/sprd/
H A Dmux.c41 struct sprd_mux *cm = hw_to_sprd_mux(hw); in sprd_mux_get_parent() local
43 return sprd_mux_helper_get_parent(&cm->common, &cm->mux); in sprd_mux_get_parent()
66 struct sprd_mux *cm = hw_to_sprd_mux(hw); in sprd_mux_set_parent() local
68 return sprd_mux_helper_set_parent(&cm->common, &cm->mux, index); in sprd_mux_set_parent()

12345678910>>...12