Home
last modified time | relevance | path

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

12345678910>>...14

/linux-6.6.21/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.c18 struct ccu_mux_internal *cm, in ccu_mux_get_prediv() argument
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->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()
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-6.6.21/sound/pci/
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->iobase + cmd); in snd_cmipci_write_b()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/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.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
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.…
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 …]
/linux-6.6.21/Documentation/devicetree/bindings/power/supply/
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:
60 cm-fullbatt-vchkdrop-volt:
64 cm-fullbatt-vchkdrop-ms:
67 cm-fullbatt-voltage:
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/hid/
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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/fs/dlm/
Dconfig.c511 struct dlm_comm *cm; in make_comm() local
513 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm()
514 if (!cm) in make_comm()
517 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
519 cm->seq = dlm_comm_count++; in make_comm()
520 if (!cm->seq) in make_comm()
521 cm->seq = dlm_comm_count++; in make_comm()
523 cm->nodeid = -1; in make_comm()
524 cm->local = 0; in make_comm()
525 cm->addr_count = 0; in make_comm()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dsc/
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-6.6.21/sound/soc/intel/avs/
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
/linux-6.6.21/net/core/
Dscm.c237 struct cmsghdr __user *cm = msg->msg_control_user; in put_cmsg() local
239 check_object_size(data, cmlen - sizeof(*cm), true); in put_cmsg()
241 if (!user_write_access_begin(cm, cmlen)) in put_cmsg()
244 unsafe_put_user(cmlen, &cm->cmsg_len, efault_end); in put_cmsg()
245 unsafe_put_user(level, &cm->cmsg_level, efault_end); in put_cmsg()
246 unsafe_put_user(type, &cm->cmsg_type, efault_end); in put_cmsg()
247 unsafe_copy_to_user(CMSG_USER_DATA(cm), data, 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()
[all …]
/linux-6.6.21/tools/testing/selftests/net/
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-6.6.21/net/netfilter/
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-6.6.21/Documentation/userspace-api/media/cec/
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>>...14