Home
last modified time | relevance | path

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

12

/drivers/power/
Dcharger-manager.c84 static bool is_batt_present(struct charger_manager *cm) in is_batt_present() argument
90 switch (cm->desc->battery_present) { in is_batt_present()
97 ret = cm->fuel_gauge->get_property(cm->fuel_gauge, in is_batt_present()
103 for (i = 0; cm->charger_stat[i]; i++) { in is_batt_present()
104 ret = cm->charger_stat[i]->get_property( in is_batt_present()
105 cm->charger_stat[i], in is_batt_present()
126 static bool is_ext_pwr_online(struct charger_manager *cm) in is_ext_pwr_online() argument
133 for (i = 0; cm->charger_stat[i]; i++) { in is_ext_pwr_online()
134 ret = cm->charger_stat[i]->get_property( in is_ext_pwr_online()
135 cm->charger_stat[i], in is_ext_pwr_online()
[all …]
/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c97 priv->cm.rx_wr.wr_id = id | IPOIB_OP_CM | IPOIB_OP_RECV; in ipoib_cm_post_receive_srq()
99 for (i = 0; i < priv->cm.num_frags; ++i) in ipoib_cm_post_receive_srq()
100 priv->cm.rx_sge[i].addr = priv->cm.srq_ring[id].mapping[i]; in ipoib_cm_post_receive_srq()
102 ret = ib_post_srq_recv(priv->cm.srq, &priv->cm.rx_wr, &bad_wr); in ipoib_cm_post_receive_srq()
105 ipoib_cm_dma_unmap_rx(priv, priv->cm.num_frags - 1, in ipoib_cm_post_receive_srq()
106 priv->cm.srq_ring[id].mapping); in ipoib_cm_post_receive_srq()
107 dev_kfree_skb_any(priv->cm.srq_ring[id].skb); in ipoib_cm_post_receive_srq()
108 priv->cm.srq_ring[id].skb = NULL; in ipoib_cm_post_receive_srq()
216 if (list_empty(&priv->cm.rx_flush_list) || in ipoib_cm_start_rx_drain()
217 !list_empty(&priv->cm.rx_drain_list)) in ipoib_cm_start_rx_drain()
[all …]
Dipoib.h365 struct ipoib_cm_dev_priv cm; member
406 struct ipoib_cm_tx *cm; member
567 return test_bit(IPOIB_FLAG_OPER_UP, &neigh->cm->flags); in ipoib_cm_up()
572 return neigh->cm; in ipoib_cm_get()
577 neigh->cm = tx; in ipoib_cm_set()
583 return !!priv->cm.srq; in ipoib_cm_has_srq()
589 return priv->cm.max_cm_mtu; in ipoib_cm_max_mtu()
/drivers/media/usb/pwc/
Dpwc-dec23.c364 const unsigned char *cm = pwc_crop_table+MAX_OUTER_CROP_VALUE; in copy_image_block_Y() local
368 *d++ = cm[c[0] >> scalebits]; in copy_image_block_Y()
369 *d++ = cm[c[1] >> scalebits]; in copy_image_block_Y()
370 *d++ = cm[c[2] >> scalebits]; in copy_image_block_Y()
371 *d++ = cm[c[3] >> scalebits]; in copy_image_block_Y()
374 *d++ = cm[c[4] >> scalebits]; in copy_image_block_Y()
375 *d++ = cm[c[5] >> scalebits]; in copy_image_block_Y()
376 *d++ = cm[c[6] >> scalebits]; in copy_image_block_Y()
377 *d++ = cm[c[7] >> scalebits]; in copy_image_block_Y()
380 *d++ = cm[c[8] >> scalebits]; in copy_image_block_Y()
[all …]
/drivers/infiniband/core/
Dcm.c82 } cm; variable
357 read_lock_irqsave(&cm.device_lock, flags); in cm_init_av_by_path()
358 list_for_each_entry(cm_dev, &cm.device_list, list) { in cm_init_av_by_path()
365 read_unlock_irqrestore(&cm.device_lock, flags); in cm_init_av_by_path()
389 spin_lock_irqsave(&cm.lock, flags); in cm_alloc_id()
391 id = idr_alloc(&cm.local_id_table, cm_id_priv, next_id, 0, GFP_NOWAIT); in cm_alloc_id()
395 spin_unlock_irqrestore(&cm.lock, flags); in cm_alloc_id()
398 cm_id_priv->id.local_id = (__force __be32)id ^ cm.random_id_operand; in cm_alloc_id()
404 spin_lock_irq(&cm.lock); in cm_free_id()
405 idr_remove(&cm.local_id_table, in cm_free_id()
[all …]
DMakefile18 ib_cm-y := cm.o
/drivers/video/omap2/dss/
Dhdmi.c385 if (timings_arr[i].cm.code == hdmi.ip_data.cfg.cm.code) in hdmi_find_timing()
396 if (hdmi.ip_data.cfg.cm.mode == HDMI_DVI) { in hdmi_get_timings()
438 struct hdmi_cm cm = {-1}; in hdmi_get_code() local
443 cm = cea_timings[i].cm; in hdmi_get_code()
449 cm = vesa_timings[i].cm; in hdmi_get_code()
454 end: return cm; in hdmi_get_code()
630 struct hdmi_cm cm; in omapdss_hdmi_display_check_timing() local
632 cm = hdmi_get_code(timings); in omapdss_hdmi_display_check_timing()
633 if (cm.code == -1) { in omapdss_hdmi_display_check_timing()
644 struct hdmi_cm cm; in omapdss_hdmi_display_set_timing() local
[all …]
Dti_hdmi.h52 struct hdmi_cm cm; member
Dti_hdmi_4xxx_ip.c815 v_core_cfg.hdmi_dvi = cfg->cm.mode; in ti_hdmi_4xxx_basic_configure()
838 avi_cfg.db4_videocode = cfg->cm.code; in ti_hdmi_4xxx_basic_configure()
/drivers/platform/x86/
Deeepc-laptop.c221 static int set_acpi(struct eeepc_laptop *eeepc, int cm, int value) in set_acpi() argument
223 const char *method = cm_setv[cm]; in set_acpi()
227 if ((eeepc->cm_supported & (0x1 << cm)) == 0) in set_acpi()
235 static int get_acpi(struct eeepc_laptop *eeepc, int cm) in get_acpi() argument
237 const char *method = cm_getv[cm]; in get_acpi()
242 if ((eeepc->cm_supported & (0x1 << cm)) == 0) in get_acpi()
250 static int acpi_setter_handle(struct eeepc_laptop *eeepc, int cm, in acpi_setter_handle() argument
253 const char *method = cm_setv[cm]; in acpi_setter_handle()
258 if ((eeepc->cm_supported & (0x1 << cm)) == 0) in acpi_setter_handle()
283 static ssize_t store_sys_acpi(struct device *dev, int cm, in store_sys_acpi() argument
[all …]
/drivers/usb/atm/
Dcxacru.c209 static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
584 static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm, in cxacru_cm() argument
611 cm, ret); in cxacru_cm()
617 wbuf[0] = cm; in cxacru_cm()
619 wbuf[offb] = cm; in cxacru_cm()
629 cm, ret); in cxacru_cm()
636 usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret); in cxacru_cm()
643 usb_err(instance->usbatm, "receive of cm %#x failed (%d)\n", cm, ret); in cxacru_cm()
649 cm, actlen); in cxacru_cm()
656 if (rbuf[offb] != cm) { in cxacru_cm()
[all …]
/drivers/w1/
Dw1_netlink.c108 struct cn_msg *cm; in w1_send_read_reply() local
118 cm = (struct cn_msg *)(data); in w1_send_read_reply()
119 h = (struct w1_netlink_msg *)(cm + 1); in w1_send_read_reply()
122 memcpy(cm, msg, sizeof(struct cn_msg)); in w1_send_read_reply()
126 cm->ack = msg->seq+1; in w1_send_read_reply()
127 cm->len = sizeof(struct w1_netlink_msg) + in w1_send_read_reply()
134 err = cn_netlink_send(cm, 0, GFP_KERNEL); in w1_send_read_reply()
/drivers/net/can/
Ddev.c649 struct can_ctrlmode *cm; in can_changelink() local
654 cm = nla_data(data[IFLA_CAN_CTRLMODE]); in can_changelink()
655 if (cm->flags & ~priv->ctrlmode_supported) in can_changelink()
657 priv->ctrlmode &= ~cm->mask; in can_changelink()
658 priv->ctrlmode |= cm->flags; in can_changelink()
723 struct can_ctrlmode cm = {.flags = priv->ctrlmode}; in can_fill_info() local
730 nla_put(skb, IFLA_CAN_CTRLMODE, sizeof(cm), &cm) || in can_fill_info()
734 nla_put(skb, IFLA_CAN_CLOCK, sizeof(cm), &priv->clock) || in can_fill_info()
/drivers/crypto/amcc/
Dcrypto4xx_alg.c55 void set_dynamic_sa_command_1(struct dynamic_sa_ctl *sa, u32 cm, u32 hmac_mc, in set_dynamic_sa_command_1() argument
60 sa->sa_command_1.bf.crypto_mode31 = (cm & 4) >> 2; in set_dynamic_sa_command_1()
61 sa->sa_command_1.bf.crypto_mode9_8 = cm & 3; in set_dynamic_sa_command_1()
106 unsigned char cm, in crypto4xx_setkey_aes() argument
147 set_dynamic_sa_command_1(sa, cm, SA_HASH_MODE_HASH, in crypto4xx_setkey_aes()
/drivers/net/can/sja1000/
Dplx_pci.c534 struct plx_pci_channel_map *cm = &ci->chan_map_tbl[i]; in plx_pci_add_card() local
553 addr = pci_iomap(pdev, cm->bar, cm->size); in plx_pci_add_card()
556 dev_err(&pdev->dev, "Failed to remap BAR%d\n", cm->bar); in plx_pci_add_card()
560 priv->reg_base = addr + cm->offset; in plx_pci_add_card()
/drivers/isdn/hisax/
Dcallc.c1420 capi_debug(struct Channel *chanp, capi_msg *cm) in capi_debug() argument
1424 t += QuickHex(t, (u_char *)cm, (cm->Length > 50) ? 50 : cm->Length); in capi_debug()
1431 lli_got_fac_req(struct Channel *chanp, capi_msg *cm) { in lli_got_fac_req() argument
1432 if ((cm->para[0] != 3) || (cm->para[1] != 0)) in lli_got_fac_req()
1434 if (cm->para[2] < 3) in lli_got_fac_req()
1436 if (cm->para[4] != 0) in lli_got_fac_req()
1438 switch (cm->para[3]) { in lli_got_fac_req()
1440 strncpy(chanp->setup.phone, &cm->para[5], cm->para[5] + 1); in lli_got_fac_req()
1441 FsmEvent(&chanp->fi, EV_SUSPEND, cm); in lli_got_fac_req()
1444 strncpy(chanp->setup.phone, &cm->para[5], cm->para[5] + 1); in lli_got_fac_req()
[all …]
/drivers/infiniband/hw/cxgb4/
DMakefile5 iw_cxgb4-y := device.o cm.o provider.o mem.o cq.o qp.o resource.o ev.o id_table.o
/drivers/infiniband/hw/mlx4/
DMakefile3 mlx4_ib-y := ah.o cq.o doorbell.o mad.o main.o mr.o qp.o srq.o mcg.o cm.o alias_GUID.o sysfs.o
/drivers/isdn/i4l/
Disdn_tty.h113 extern int isdn_tty_capi_facility(capi_msg *cm);
/drivers/scsi/aic94xx/
Daic94xx_sds.c843 struct asd_ms_conn_map *cm; in asd_ms_get_connector_map() local
845 cm = asd_find_ll_by_id(manuf_sec, 'M', 'C'); in asd_ms_get_connector_map()
846 if (!cm) { in asd_ms_get_connector_map()
851 if (cm->maj != 0) { in asd_ms_get_connector_map()
853 "\n", cm->maj); in asd_ms_get_connector_map()
/drivers/net/wireless/ath/ath6kl/
Dwmi.c3351 struct wmi_connect_cmd *cm; in ath6kl_wmi_ap_profile_commit() local
3354 skb = ath6kl_wmi_get_new_buf(sizeof(*cm)); in ath6kl_wmi_ap_profile_commit()
3358 cm = (struct wmi_connect_cmd *) skb->data; in ath6kl_wmi_ap_profile_commit()
3359 memcpy(cm, p, sizeof(*cm)); in ath6kl_wmi_ap_profile_commit()
3374 struct wmi_ap_set_mlme_cmd *cm; in ath6kl_wmi_ap_set_mlme() local
3376 skb = ath6kl_wmi_get_new_buf(sizeof(*cm)); in ath6kl_wmi_ap_set_mlme()
3380 cm = (struct wmi_ap_set_mlme_cmd *) skb->data; in ath6kl_wmi_ap_set_mlme()
3381 memcpy(cm->mac, mac, ETH_ALEN); in ath6kl_wmi_ap_set_mlme()
3382 cm->reason = cpu_to_le16(reason); in ath6kl_wmi_ap_set_mlme()
3383 cm->cmd = cmd; in ath6kl_wmi_ap_set_mlme()
[all …]
/drivers/gpu/drm/nouveau/core/engine/fifo/
Dnv04.c213 u32 cm = ((1ULL << c->bits) - 1) << c->ctxs; in nv04_fifo_chan_fini() local
215 u32 cv = (nv_ro32(fctx, c->ctxp + data) & ~cm); in nv04_fifo_chan_fini()
/drivers/net/ethernet/chelsio/cxgb3/
Dadapter.h248 struct mc7 cm; member
/drivers/char/
Dmbcs.h465 struct cm_mmr cm; member
/drivers/input/misc/
Dyealink.c77 #define _SEG(t, a, am, b, bm, c, cm, d, dm, e, em, f, fm, g, gm) \ argument
79 .u = { .s = { _LOC(a, am), _LOC(b, bm), _LOC(c, cm), \

12