Home
last modified time | relevance | path

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

1234567891011

/Linux-v5.4/drivers/clk/sunxi-ng/
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 …]
Dccu_mux.c16 struct ccu_mux_internal *cm, in ccu_mux_get_prediv() argument
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->var_predivs[i].width) - 1; in ccu_mux_get_prediv()
[all …]
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()
/Linux-v5.4/sound/pci/
Dcmipci.c502 static inline void snd_cmipci_write(struct cmipci *cm, unsigned int cmd, unsigned int data) in snd_cmipci_write() argument
504 outl(data, cm->iobase + cmd); in snd_cmipci_write()
507 static inline unsigned int snd_cmipci_read(struct cmipci *cm, unsigned int cmd) in snd_cmipci_read() argument
509 return inl(cm->iobase + cmd); in snd_cmipci_read()
513 static inline void snd_cmipci_write_w(struct cmipci *cm, unsigned int cmd, unsigned short data) in snd_cmipci_write_w() argument
515 outw(data, cm->iobase + cmd); in snd_cmipci_write_w()
518 static inline unsigned short snd_cmipci_read_w(struct cmipci *cm, unsigned int cmd) in snd_cmipci_read_w() argument
520 return inw(cm->iobase + cmd); in snd_cmipci_read_w()
524 static inline void snd_cmipci_write_b(struct cmipci *cm, unsigned int cmd, unsigned char data) in snd_cmipci_write_b() argument
526 outb(data, cm->iobase + cmd); in snd_cmipci_write_b()
[all …]
/Linux-v5.4/drivers/power/supply/
Dcharger-manager.c86 static bool is_batt_present(struct charger_manager *cm) in is_batt_present() argument
93 switch (cm->desc->battery_present) { in is_batt_present()
100 psy = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in is_batt_present()
111 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_batt_present()
113 cm->desc->psy_charger_stat[i]); in is_batt_present()
115 dev_err(cm->dev, "Cannot find power supply \"%s\"\n", in is_batt_present()
116 cm->desc->psy_charger_stat[i]); in is_batt_present()
142 static bool is_ext_pwr_online(struct charger_manager *cm) in is_ext_pwr_online() argument
150 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_ext_pwr_online()
151 psy = power_supply_get_by_name(cm->desc->psy_charger_stat[i]); in is_ext_pwr_online()
[all …]
/Linux-v5.4/kernel/irq/
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 = this_cpu_ptr(m->maps); in irq_matrix_offline() local
104 m->global_available -= cm->available; in irq_matrix_offline()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.txt7 - cm-num-chargers : number of chargers
8 - cm-chargers : name of chargers
9 - cm-fuel-gauge : name of battery fuel gauge
11 - cm-regulator-name : name of charger regulator
13 - cm-cable-name : name of charger cable
14 - cm-cable-extcon : name of extcon dev
15 (optional) - cm-cable-min : minimum current of cable
16 (optional) - cm-cable-max : maximum current of cable
19 - cm-name : charger manager's name (default : "battery")
20 - cm-poll-mode : polling mode (enum polling_modes)
[all …]
/Linux-v5.4/Documentation/media/uapi/v4l/
Dpixfmt-packed-hsv.rst34cm}|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…
Dpixfmt-packed-yuv.rst31cm}|p{0.69cm}|p{0.31cm}|p{0.31cm}|p{0.31cm}|p{0.31cm}|p{0.31cm}|p{0.31cm}|p{0.31cm}|p{0.31cm}|p{0.…
Dsubdev-formats.rst15 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
139cm}|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…
1542cm}|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…
1649cm}|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…
2087cm}|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
2940cm}|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…
7108cm}|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…
7296cm}|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…
7639cm}|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.…
7749 .. tabularcolumns:: |p{6.0cm}|p{1.4cm}|p{10.1cm}|
[all …]
Dpixfmt-rgb.rst30cm}|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…
1017 …bularcolumns:: |p{3.1cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p…
1093cm}|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.…
Dvidioc-dqevent.rst49 .. tabularcolumns:: |p{3.0cm}|p{4.4cm}|p{2.4cm}|p{7.7cm}|
123 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
214 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
229 .. tabularcolumns:: |p{3.5cm}|p{3.0cm}|p{1.8cm}|p{8.5cm}|
289 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
304 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
320 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
350 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
376 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
/Linux-v5.4/net/sched/
Dem_canid.c52 static void em_canid_sff_match_add(struct canid_match *cm, u32 can_id, in em_canid_sff_match_add() argument
66 set_bit(can_id, cm->match_sff); in em_canid_sff_match_add()
72 bitmap_fill(cm->match_sff, (1 << CAN_SFF_ID_BITS)); in em_canid_sff_match_add()
83 set_bit(i, cm->match_sff); in em_canid_sff_match_add()
95 struct canid_match *cm = em_canid_priv(m); in em_canid_match() local
104 for (i = 0, lp = cm->rules_raw; in em_canid_match()
105 i < cm->eff_rules_count; i++, lp++) { in em_canid_match()
113 match = (test_bit(can_id, cm->match_sff) ? 1 : 0); in em_canid_match()
123 struct canid_match *cm; in em_canid_change() local
135 cm = kzalloc(sizeof(struct canid_match) + len, GFP_KERNEL); in em_canid_change()
[all …]
/Linux-v5.4/drivers/hid/
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->switch_map)); in cmhid_input_configured()
89 input_set_capability(cm->input_dev, in cmhid_input_configured()
[all …]
/Linux-v5.4/drivers/rapidio/
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()
329 static void riocm_rx_fill(struct cm_dev *cm, int nent) in riocm_rx_fill() argument
333 if (cm->rx_slots == 0) in riocm_rx_fill()
336 for (i = 0; i < RIOCM_RX_RING_SIZE && cm->rx_slots && nent; i++) { in riocm_rx_fill()
[all …]
/Linux-v5.4/drivers/infiniband/ulp/ipoib/
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-v5.4/drivers/media/usb/pwc/
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-v5.4/fs/dlm/
Dconfig.c453 struct dlm_comm *cm; in make_comm() local
455 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm()
456 if (!cm) in make_comm()
459 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
461 cm->seq = dlm_comm_count++; in make_comm()
462 if (!cm->seq) in make_comm()
463 cm->seq = dlm_comm_count++; in make_comm()
465 cm->nodeid = -1; in make_comm()
466 cm->local = 0; in make_comm()
467 cm->addr_count = 0; in make_comm()
[all …]
/Linux-v5.4/tools/testing/selftests/net/
Dipv6_flowlabel.c52 struct cmsghdr *cm; in do_send() local
54 cm = (void *)control; in do_send()
55 cm->cmsg_len = CMSG_LEN(sizeof(flowlabel)); in do_send()
56 cm->cmsg_level = SOL_IPV6; in do_send()
57 cm->cmsg_type = IPV6_FLOWINFO; in do_send()
58 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); in do_send()
80 struct cmsghdr *cm; in do_recv() local
104 cm = CMSG_FIRSTHDR(&msg); in do_recv()
106 if (!cm) in do_recv()
108 if (CMSG_NXTHDR(&msg, cm)) in do_recv()
[all …]
Dtcp_inq.c103 struct cmsghdr *cm; in main() local
166 for (cm = CMSG_FIRSTHDR(&msg); cm; cm = CMSG_NXTHDR(&msg, cm)) in main()
167 if (cm->cmsg_level == SOL_TCP && cm->cmsg_type == TCP_CM_INQ) in main()
168 inq = *((int *) CMSG_DATA(cm)); in main()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dsc/
Drc_calc.c35 (cm == CM_444 || cm == CM_RGB) ? (val444) : (cm == CM_422 ? (val422) : (val420))
44 void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, enum max_min max_min, floa… in get_qp_set() argument
176 void calc_rc_params(struct rc_params *rc, enum colour_mode cm, enum bits_per_comp bpc, float bpp, i… in calc_rc_params() argument
184 …((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0); in calc_rc_params()
185 …((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0); in calc_rc_params()
189 switch (cm) { in calc_rc_params()
203 …n3(0, (12 + (int) (0.09 * min(34, slice_height - 8))), (int)(((3 * bpc + (cm == CM_444 ? 0 : 2)) … in calc_rc_params()
208 initial_xmit_delay_factor = (cm == CM_444 || cm == CM_RGB) ? 1.0 : 2.0; in calc_rc_params()
211 if (cm == CM_422 || cm == CM_420) in calc_rc_params()
215 if (3 * bpp_group >= (((rc->initial_xmit_delay + 2) / 3) * (3 + (cm == CM_422)))) { in calc_rc_params()
[all …]
/Linux-v5.4/net/netfilter/
Dxt_limit.c153 const struct compat_xt_rateinfo *cm = src; in limit_mt_compat_from_user() local
155 .avg = cm->avg, in limit_mt_compat_from_user()
156 .burst = cm->burst, in limit_mt_compat_from_user()
157 .prev = cm->prev | (unsigned long)cm->master << 32, in limit_mt_compat_from_user()
158 .credit = cm->credit, in limit_mt_compat_from_user()
159 .credit_cap = cm->credit_cap, in limit_mt_compat_from_user()
160 .cost = cm->cost, in limit_mt_compat_from_user()
168 struct compat_xt_rateinfo cm = { in limit_mt_compat_to_user() local
177 return copy_to_user(dst, &cm, sizeof(cm)) ? -EFAULT : 0; in limit_mt_compat_to_user()
/Linux-v5.4/Documentation/devicetree/bindings/arm/omap/
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"
37 cm: cm@48004000 {
38 compatible = "ti,omap3-cm";
/Linux-v5.4/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c217 struct cmsghdr *cm; in __recv_errmsg_cmsg() local
220 for (cm = CMSG_FIRSTHDR(msg); in __recv_errmsg_cmsg()
221 cm && cm->cmsg_len; in __recv_errmsg_cmsg()
222 cm = CMSG_NXTHDR(msg, cm)) { in __recv_errmsg_cmsg()
223 if (cm->cmsg_level == SOL_SOCKET && in __recv_errmsg_cmsg()
224 cm->cmsg_type == SCM_TIMESTAMPING) { in __recv_errmsg_cmsg()
225 tss = (void *) CMSG_DATA(cm); in __recv_errmsg_cmsg()
226 } else if ((cm->cmsg_level == SOL_IP && in __recv_errmsg_cmsg()
227 cm->cmsg_type == IP_RECVERR) || in __recv_errmsg_cmsg()
228 (cm->cmsg_level == SOL_IPV6 && in __recv_errmsg_cmsg()
[all …]
/Linux-v5.4/drivers/clk/sprd/
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()

1234567891011