Home
last modified time | relevance | path

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

12345678910>>...12

/Linux-v5.10/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.10/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.10/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.10/drivers/power/supply/
Dcharger-manager.c95 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()
151 static bool is_ext_pwr_online(struct charger_manager *cm) in is_ext_pwr_online() argument
159 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_ext_pwr_online()
160 psy = power_supply_get_by_name(cm->desc->psy_charger_stat[i]); in is_ext_pwr_online()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.txt6 - <>-supply : for regulator consumer, named according to cm-regulator-name
7 - cm-chargers : name of chargers
8 - cm-fuel-gauge : name of battery fuel gauge
10 - cm-regulator-name : name of charger regulator
12 - cm-cable-name : name of charger cable - one of USB, USB-HOST,
15 - cm-cable-extcon : name of extcon dev
16 (optional) - cm-cable-min : minimum current of cable
17 (optional) - cm-cable-max : maximum current of cable
20 - cm-name : charger manager's name (default : "battery")
21 - cm-poll-mode : polling mode - 0 for disabled, 1 for always, 2 for when
[all …]
/Linux-v5.10/Documentation/userspace-api/media/v4l/
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…
Dpixfmt-packed-yuv.rst24cm}|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.…
Dpixfmt-rgb.rst23cm}|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…
1010 …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…
1086cm}|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.…
Dsubdev-formats.rst8 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
207cm}|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…
1610cm}|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…
1717cm}|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…
2155cm}|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
3008cm}|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…
7213cm}|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…
7401cm}|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…
7744cm}|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.…
7854 .. tabularcolumns:: |p{6.0cm}|p{1.4cm}|p{10.1cm}|
[all …]
/Linux-v5.10/net/sched/
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 = kzalloc(sizeof(struct canid_match) + len, GFP_KERNEL); in em_canid_change()
[all …]
/Linux-v5.10/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.10/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.10/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.10/tools/perf/util/
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-v5.10/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.10/fs/dlm/
Dconfig.c472 struct dlm_comm *cm; in make_comm() local
474 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm()
475 if (!cm) in make_comm()
478 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
480 cm->seq = dlm_comm_count++; in make_comm()
481 if (!cm->seq) in make_comm()
482 cm->seq = dlm_comm_count++; in make_comm()
484 cm->nodeid = -1; in make_comm()
485 cm->local = 0; in make_comm()
486 cm->addr_count = 0; in make_comm()
[all …]
/Linux-v5.10/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 …]
/Linux-v5.10/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.10/drivers/gpu/drm/amd/display/dc/dsc/
Drc_calc.c35 (cm == CM_444 || cm == CM_RGB) ? (val444) : (cm == CM_422 ? (val422) : (val420))
44 static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, in get_qp_set() argument
177 static void _do_calc_rc_params(struct rc_params *rc, enum colour_mode cm, in _do_calc_rc_params() argument
196 …((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0); in _do_calc_rc_params()
197 …((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0); in _do_calc_rc_params()
201 switch (cm) { in _do_calc_rc_params()
215 …n3(0, (12 + (int) (0.09 * min(34, slice_height - 8))), (int)(((3 * bpc + (cm == CM_444 ? 0 : 2)) … in _do_calc_rc_params()
220 initial_xmit_delay_factor = (cm == CM_444 || cm == CM_RGB) ? 1.0 : 2.0; in _do_calc_rc_params()
223 if (cm == CM_422 || cm == CM_420) in _do_calc_rc_params()
227 if (3 * bpp_group >= (((rc->initial_xmit_delay + 2) / 3) * (3 + (cm == CM_422)))) { in _do_calc_rc_params()
[all …]
/Linux-v5.10/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.10/Documentation/userspace-api/media/cec/
Dcec-ioc-adap-g-conn-info.rst42 .. tabularcolumns:: |p{1.0cm}|p{4.4cm}|p{2.5cm}|p{9.6cm}|
62 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
85 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
/Linux-v5.10/net/core/
Dscm.c230 struct cmsghdr __user *cm = msg->msg_control_user; in put_cmsg() local
236 if (copy_to_user(cm, &cmhdr, sizeof cmhdr) || in put_cmsg()
237 copy_to_user(CMSG_USER_DATA(cm), data, cmlen - sizeof(*cm))) in put_cmsg()
240 struct cmsghdr *cm = msg->msg_control; in put_cmsg() local
242 cm->cmsg_level = level; in put_cmsg()
243 cm->cmsg_type = type; in put_cmsg()
244 cm->cmsg_len = cmlen; in put_cmsg()
245 memcpy(CMSG_DATA(cm), data, cmlen - sizeof(*cm)); in put_cmsg()
292 struct cmsghdr __user *cm = in scm_detach_fds() local
296 int __user *cmsg_data = CMSG_USER_DATA(cm); in scm_detach_fds()
[all …]
/Linux-v5.10/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()

12345678910>>...12