Home
last modified time | relevance | path

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

12345678

/freebsd/sys/dev/mpr/
H A Dmpr_config.c75 struct mpr_command *cm; in mpr_config_get_ioc_pg8() local
82 if ((cm = mpr_alloc_command(sc)) == NULL) { in mpr_config_get_ioc_pg8()
88 request = (MPI2_CONFIG_REQUEST *)cm->cm_req; in mpr_config_get_ioc_pg8()
95 cm->cm_desc.Default.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_DEFAULT_TYPE; in mpr_config_get_ioc_pg8()
96 cm->cm_data = NULL; in mpr_config_get_ioc_pg8()
97 error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP); in mpr_config_get_ioc_pg8()
98 if (cm != NULL) in mpr_config_get_ioc_pg8()
99 reply = (MPI2_CONFIG_REPLY *)cm->cm_reply; in mpr_config_get_ioc_pg8()
127 mpr_free_command(sc, cm); in mpr_config_get_ioc_pg8()
129 if ((cm = mpr_alloc_command(sc)) == NULL) { in mpr_config_get_ioc_pg8()
[all …]
H A Dmpr_sas.c122 static void mprsas_abort_complete(struct mpr_softc *sc, struct mpr_command *cm);
128 struct mpr_command *cm);
133 struct mpr_command *cm);
135 static void mprsas_smpio_complete(struct mpr_softc *sc, struct mpr_command *cm);
302 mprsas_log_command(struct mpr_command *cm, u_int level, const char *fmt, ...) in mprsas_log_command() argument
308 if (cm == NULL) in mprsas_log_command()
312 if ((cm->cm_sc->mpr_debug & level) == 0) in mprsas_log_command()
319 if (cm->cm_ccb != NULL) { in mprsas_log_command()
320 xpt_path_sbuf(cm->cm_ccb->csio.ccb_h.path, &sb); in mprsas_log_command()
321 if (cm->cm_ccb->ccb_h.func_code == XPT_SCSI_IO) { in mprsas_log_command()
[all …]
H A Dmprvar.h223 typedef void mpr_command_callback_t(struct mpr_softc *, struct mpr_command *cm);
614 mpr_free_command(struct mpr_softc *sc, struct mpr_command *cm) in mpr_free_command() argument
619 KASSERT(cm->cm_state == MPR_CM_STATE_BUSY, in mpr_free_command()
620 ("state not busy, state = %u\n", cm->cm_state)); in mpr_free_command()
622 if (cm->cm_reply != NULL) in mpr_free_command()
623 mpr_free_reply(sc, cm->cm_reply_data); in mpr_free_command()
624 cm->cm_reply = NULL; in mpr_free_command()
625 cm->cm_flags = 0; in mpr_free_command()
626 cm->cm_complete = NULL; in mpr_free_command()
627 cm->cm_complete_data = NULL; in mpr_free_command()
[all …]
H A Dmpr_user.c418 mpr_init_sge(struct mpr_command *cm, void *req, void *sge) in mpr_init_sge() argument
422 space = (int)cm->cm_sc->reqframesz; in mpr_init_sge()
428 cm->cm_sge = sge; in mpr_init_sge()
429 cm->cm_sglsize = space - off; in mpr_init_sge()
436 mpi_pre_ioc_facts(struct mpr_command *cm, struct mpr_usr_command *cmd) in mpi_pre_ioc_facts() argument
438 MPI2_IOC_FACTS_REQUEST *req = (void *)cm->cm_req; in mpi_pre_ioc_facts()
446 cm->cm_sge = NULL; in mpi_pre_ioc_facts()
447 cm->cm_sglsize = 0; in mpi_pre_ioc_facts()
455 mpi_pre_port_facts(struct mpr_command *cm, struct mpr_usr_command *cmd) in mpi_pre_port_facts() argument
457 MPI2_PORT_FACTS_REQUEST *req = (void *)cm->cm_req; in mpi_pre_port_facts()
[all …]
H A Dmpr.c100 struct mpr_command *cm);
103 static void mpr_config_complete(struct mpr_softc *sc, struct mpr_command *cm);
106 static void mpr_enqueue_request(struct mpr_softc *sc, struct mpr_command *cm);
758 struct mpr_command *cm; in mpr_iocfacts_free() local
816 cm = &sc->commands[i]; in mpr_iocfacts_free()
817 bus_dmamap_destroy(sc->buffer_dmat, cm->cm_dmamap); in mpr_iocfacts_free()
1127 mpr_enqueue_request(struct mpr_softc *sc, struct mpr_command *cm) in mpr_enqueue_request() argument
1133 cm->cm_desc.Default.SMID, cm, cm->cm_ccb); in mpr_enqueue_request()
1142 KASSERT(cm->cm_state == MPR_CM_STATE_BUSY, in mpr_enqueue_request()
1143 ("command not busy, state = %u\n", cm->cm_state)); in mpr_enqueue_request()
[all …]
/freebsd/lib/libc/iconv/
H A Dcitrus_mapper.c183 mapper_close(struct _citrus_mapper *cm) in mapper_close() argument
185 if (cm->cm_module) { in mapper_close()
186 if (cm->cm_ops) { in mapper_close()
187 if (cm->cm_closure) in mapper_close()
188 (*cm->cm_ops->mo_uninit)(cm); in mapper_close()
189 free(cm->cm_ops); in mapper_close()
191 _citrus_unload_module(cm->cm_module); in mapper_close()
193 free(cm->cm_traits); in mapper_close()
194 free(cm); in mapper_close()
207 struct _citrus_mapper *cm; in mapper_open() local
[all …]
H A Dcitrus_mapper.h80 _citrus_mapper_convert(struct _citrus_mapper * __restrict cm, in _citrus_mapper_convert() argument
85 return ((*cm->cm_ops->mo_convert)(cm, dst, src, ps)); in _citrus_mapper_convert()
93 _citrus_mapper_init_state(struct _citrus_mapper * __restrict cm) in _citrus_mapper_init_state() argument
96 (*cm->cm_ops->mo_init_state)(); in _citrus_mapper_init_state()
104 _citrus_mapper_get_state_size(struct _citrus_mapper * __restrict cm) in _citrus_mapper_get_state_size() argument
107 return (cm->cm_traits->mt_state_size); in _citrus_mapper_get_state_size()
115 _citrus_mapper_get_src_max(struct _citrus_mapper * __restrict cm) in _citrus_mapper_get_src_max() argument
118 return (cm->cm_traits->mt_src_max); in _citrus_mapper_get_src_max()
126 _citrus_mapper_get_dst_max(struct _citrus_mapper * __restrict cm) in _citrus_mapper_get_dst_max() argument
129 return (cm->cm_traits->mt_dst_max); in _citrus_mapper_get_dst_max()
/freebsd/sys/dev/mps/
H A Dmps_config.c75 struct mps_command *cm; in mps_config_get_ioc_pg8() local
82 if ((cm = mps_alloc_command(sc)) == NULL) { in mps_config_get_ioc_pg8()
88 request = (MPI2_CONFIG_REQUEST *)cm->cm_req; in mps_config_get_ioc_pg8()
95 cm->cm_desc.Default.RequestFlags = MPI2_REQ_DESCRIPT_FLAGS_DEFAULT_TYPE; in mps_config_get_ioc_pg8()
96 cm->cm_data = NULL; in mps_config_get_ioc_pg8()
97 error = mps_wait_command(sc, &cm, 60, CAN_SLEEP); in mps_config_get_ioc_pg8()
98 if (cm != NULL) in mps_config_get_ioc_pg8()
99 reply = (MPI2_CONFIG_REPLY *)cm->cm_reply; in mps_config_get_ioc_pg8()
127 mps_free_command(sc, cm); in mps_config_get_ioc_pg8()
129 if ((cm = mps_alloc_command(sc)) == NULL) { in mps_config_get_ioc_pg8()
[all …]
H A Dmps_sas.c117 struct mps_command *cm);
119 static void mpssas_abort_complete(struct mps_softc *sc, struct mps_command *cm);
121 struct mps_command *cm, union ccb *ccb);
125 static void mpssas_smpio_complete(struct mps_softc *sc, struct mps_command *cm);
134 struct mps_command *cm);
293 mpssas_log_command(struct mps_command *cm, u_int level, const char *fmt, ...) in mpssas_log_command() argument
299 if (cm == NULL) in mpssas_log_command()
303 if ((cm->cm_sc->mps_debug & level) == 0) in mpssas_log_command()
310 if (cm->cm_ccb != NULL) { in mpssas_log_command()
311 xpt_path_sbuf(cm->cm_ccb->csio.ccb_h.path, &sb); in mpssas_log_command()
[all …]
H A Dmpsvar.h195 typedef void mps_command_callback_t(struct mps_softc *, struct mps_command *cm);
545 mps_free_command(struct mps_softc *sc, struct mps_command *cm) in mps_free_command() argument
549 KASSERT(cm->cm_state == MPS_CM_STATE_BUSY, in mps_free_command()
550 ("state not busy: %u\n", cm->cm_state)); in mps_free_command()
552 if (cm->cm_reply != NULL) in mps_free_command()
553 mps_free_reply(sc, cm->cm_reply_data); in mps_free_command()
554 cm->cm_reply = NULL; in mps_free_command()
555 cm->cm_flags = 0; in mps_free_command()
556 cm->cm_complete = NULL; in mps_free_command()
557 cm->cm_complete_data = NULL; in mps_free_command()
[all …]
H A Dmps.c96 struct mps_command *cm);
99 static void mps_config_complete(struct mps_softc *sc, struct mps_command *cm);
102 static void mps_enqueue_request(struct mps_softc *sc, struct mps_command *cm);
738 struct mps_command *cm; in mps_iocfacts_free() local
786 cm = &sc->commands[i]; in mps_iocfacts_free()
787 bus_dmamap_destroy(sc->buffer_dmat, cm->cm_dmamap); in mps_iocfacts_free()
1095 mps_enqueue_request(struct mps_softc *sc, struct mps_command *cm) in mps_enqueue_request() argument
1100 cm->cm_desc.Default.SMID, cm, cm->cm_ccb); in mps_enqueue_request()
1107 rd.u.low = cm->cm_desc.Words.Low; in mps_enqueue_request()
1108 rd.u.high = cm->cm_desc.Words.High; in mps_enqueue_request()
[all …]
H A Dmps_user.c404 mpi_init_sge(struct mps_command *cm, void *req, void *sge) in mpi_init_sge() argument
408 space = (int)cm->cm_sc->reqframesz; in mpi_init_sge()
414 cm->cm_sge = sge; in mpi_init_sge()
415 cm->cm_sglsize = space - off; in mpi_init_sge()
422 mpi_pre_ioc_facts(struct mps_command *cm, struct mps_usr_command *cmd) in mpi_pre_ioc_facts() argument
424 MPI2_IOC_FACTS_REQUEST *req = (void *)cm->cm_req; in mpi_pre_ioc_facts()
432 cm->cm_sge = NULL; in mpi_pre_ioc_facts()
433 cm->cm_sglsize = 0; in mpi_pre_ioc_facts()
441 mpi_pre_port_facts(struct mps_command *cm, struct mps_usr_command *cmd) in mpi_pre_port_facts() argument
443 MPI2_PORT_FACTS_REQUEST *req = (void *)cm->cm_req; in mpi_pre_port_facts()
[all …]
/freebsd/sys/dev/mfi/
H A Dmfi.c127 static int mfi_check_command_pre(struct mfi_softc *sc, struct mfi_command *cm);
128 static void mfi_check_command_post(struct mfi_softc *sc, struct mfi_command *cm);
129 static int mfi_check_for_sscd(struct mfi_softc *sc, struct mfi_command *cm);
798 struct mfi_command *cm; in mfi_alloc_commands() local
809 cm = &sc->mfi_commands[i]; in mfi_alloc_commands()
810 cm->cm_frame = (union mfi_frame *)((uintptr_t)sc->mfi_frames + in mfi_alloc_commands()
812 cm->cm_frame_busaddr = sc->mfi_frames_busaddr + in mfi_alloc_commands()
814 cm->cm_frame->header.context = i; in mfi_alloc_commands()
815 cm->cm_sense = &sc->mfi_sense[i]; in mfi_alloc_commands()
816 cm->cm_sense_busaddr= sc->mfi_sense_busaddr + MFI_SENSE_LEN * i; in mfi_alloc_commands()
[all …]
H A Dmfi_debug.c102 mfi_print_ldio(struct mfi_softc *sc, device_t dev, struct mfi_command *cm) in mfi_print_ldio() argument
107 io = &cm->cm_frame->io; in mfi_print_ldio()
119 mfi_print_dcmd(struct mfi_softc *sc, device_t dev, struct mfi_command *cm) in mfi_print_dcmd() argument
125 dcmd = &cm->cm_frame->dcmd; in mfi_print_dcmd()
193 mfi_print_generic_frame(struct mfi_softc *sc, struct mfi_command *cm) in mfi_print_generic_frame() argument
195 hexdump(cm->cm_frame, cm->cm_total_frame_size, NULL, HD_OMIT_CHARS); in mfi_print_generic_frame()
199 mfi_print_cmd(struct mfi_command *cm) in mfi_print_cmd() argument
204 sc = cm->cm_sc; in mfi_print_cmd()
208 "extra_frames=%d\n", cm, cm->cm_index, cm->cm_total_frame_size, in mfi_print_cmd()
209 cm->cm_extra_frames); in mfi_print_cmd()
[all …]
H A Dmfivar.h127 void (* cm_complete)(struct mfi_command *cm);
435 extern void mfi_complete(struct mfi_softc *sc, struct mfi_command *cm);
436 extern int mfi_mapcmd(struct mfi_softc *sc,struct mfi_command *cm);
437 extern int mfi_wait_command(struct mfi_softc *sc, struct mfi_command *cm);
449 extern int mfi_tbolt_send_frame(struct mfi_softc *sc, struct mfi_command *cm);
484 mfi_enqueue_ ## name (struct mfi_command *cm) \
486 if ((cm->cm_flags & MFI_ON_MFIQ_MASK) != 0) { \
488 "flags = %#x\n", cm, cm->cm_flags); \
490 TAILQ_INSERT_TAIL(&cm->cm_sc->mfi_ ## name, cm, cm_link); \
491 cm->cm_flags |= MFI_ON_ ## index; \
[all …]
/freebsd/usr.bin/tr/
H A Dcmap.c51 struct cmap *cm; in cmap_alloc() local
53 cm = malloc(sizeof(*cm)); in cmap_alloc()
54 if (cm == NULL) in cmap_alloc()
56 cm->cm_root = NULL; in cmap_alloc()
57 cm->cm_def = CM_DEF_SELF; in cmap_alloc()
58 cm->cm_havecache = false; in cmap_alloc()
59 cm->cm_min = cm->cm_max = 0; in cmap_alloc()
60 return (cm); in cmap_alloc()
68 cmap_add(struct cmap *cm, wint_t from, wint_t to) in cmap_add() argument
72 cm->cm_havecache = false; in cmap_add()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/power/supply/
H A 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 …]
/freebsd/sys/dev/xen/blkfront/
H A Dblock.h241 xbd_enqueue_cm(struct xbd_command *cm, xbd_q_index_t index) in xbd_enqueue_cm() argument
245 if ((cm->cm_flags & XBDCF_Q_MASK) != XBD_Q_NONE) in xbd_enqueue_cm()
247 __func__, cm, cm->cm_flags & XBDCF_Q_MASK); in xbd_enqueue_cm()
248 TAILQ_INSERT_TAIL(&cm->cm_sc->xbd_cm_q[index].q_tailq, cm, cm_link); in xbd_enqueue_cm()
249 cm->cm_flags &= ~XBDCF_Q_MASK; in xbd_enqueue_cm()
250 cm->cm_flags |= index; in xbd_enqueue_cm()
251 xbd_added_qentry(cm->cm_sc, index); in xbd_enqueue_cm()
255 xbd_requeue_cm(struct xbd_command *cm, xbd_q_index_t index) in xbd_requeue_cm() argument
259 if ((cm->cm_flags & XBDCF_Q_MASK) != XBD_Q_NONE) in xbd_requeue_cm()
261 __func__, cm, cm->cm_flags & XBDCF_Q_MASK); in xbd_requeue_cm()
[all …]
H A Dblkfront.c113 xbd_cm_freeze(struct xbd_softc *sc, struct xbd_command *cm, xbdc_flag_t cm_flag) in xbd_cm_freeze() argument
115 if ((cm->cm_flags & XBDCF_FROZEN) != 0) in xbd_cm_freeze()
118 cm->cm_flags |= XBDCF_FROZEN|cm_flag; in xbd_cm_freeze()
123 xbd_cm_thaw(struct xbd_softc *sc, struct xbd_command *cm) in xbd_cm_thaw() argument
125 if ((cm->cm_flags & XBDCF_FROZEN) == 0) in xbd_cm_thaw()
128 cm->cm_flags &= ~XBDCF_FROZEN; in xbd_cm_thaw()
144 xbd_free_command(struct xbd_command *cm) in xbd_free_command() argument
147 KASSERT((cm->cm_flags & XBDCF_Q_MASK) == XBD_Q_NONE, in xbd_free_command()
149 cm->cm_flags & XBDCF_Q_MASK)); in xbd_free_command()
151 cm->cm_flags = XBDCF_INITIALIZER; in xbd_free_command()
[all …]
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_cm.c99 rx_req = (struct ipoib_rx_buf *)&priv->cm.srq_ring[id]; in ipoib_cm_post_receive_srq()
101 priv->cm.rx_sge[i].addr = rx_req->mapping[i]; in ipoib_cm_post_receive_srq()
102 priv->cm.rx_sge[i].length = m->m_len; in ipoib_cm_post_receive_srq()
105 priv->cm.rx_wr.num_sge = i; in ipoib_cm_post_receive_srq()
106 priv->cm.rx_wr.wr_id = id | IPOIB_OP_CM | IPOIB_OP_RECV; in ipoib_cm_post_receive_srq()
108 ret = ib_post_srq_recv(priv->cm.srq, &priv->cm.rx_wr, &bad_wr); in ipoib_cm_post_receive_srq()
112 m_freem(priv->cm.srq_ring[id].mb); in ipoib_cm_post_receive_srq()
113 priv->cm.srq_ring[id].mb = NULL; in ipoib_cm_post_receive_srq()
154 sizeof(struct ipoib_pseudoheader), priv->cm.max_cm_mtu, IPOIB_CM_RX_SG); in ipoib_cm_alloc_rx_mb()
178 if (list_empty(&priv->cm.rx_flush_list) || in ipoib_cm_start_rx_drain()
[all …]
/freebsd/sys/dev/aac/
H A Daac.c80 static void aac_bio_complete(struct aac_command *cm);
81 static int aac_wait_command(struct aac_command *cm);
91 static void aac_unmap_command(struct aac_command *cm);
104 struct aac_command *cm);
142 static int aac_rx_send_command(struct aac_softc *sc, struct aac_command *cm);
169 static int aac_rkt_send_command(struct aac_softc *sc, struct aac_command *cm);
819 struct aac_command *cm; in aac_new_intr() local
865 cm = sc->aac_commands + (index >> 2); in aac_new_intr()
866 fib = cm->cm_fib; in aac_new_intr()
871 aac_remove_busy(cm); in aac_new_intr()
[all …]
H A Daacvar.h187 void (*cm_complete)(struct aac_command *cm);
246 int (*aif_send_command)(struct aac_softc *sc, struct aac_command *cm);
269 #define AAC_SEND_COMMAND(sc, cm) ((sc)->aac_if->aif_send_command((sc), (cm))) argument
466 extern void aac_release_command(struct aac_command *cm);
539 aac_enqueue_ ## name (struct aac_command *cm) \
541 if ((cm->cm_flags & AAC_ON_AACQ_MASK) != 0) { \
543 cm, cm->cm_flags); \
545 TAILQ_INSERT_TAIL(&cm->cm_sc->aac_ ## name, cm, cm_link); \
546 cm->cm_flags |= AAC_ON_ ## index; \
547 AACQ_ADD(cm->cm_sc, index); \
[all …]
/freebsd/sys/dev/aacraid/
H A Daacraid.c96 static void aac_unmap_command(struct aac_command *cm);
119 static int aac_src_send_command(struct aac_softc *sc, struct aac_command *cm);
358 struct aac_command *cm; in aac_daemon() local
370 if (!aacraid_alloc_command(sc, &cm)) { in aac_daemon()
371 fib = cm->cm_fib; in aac_daemon()
372 cm->cm_timestamp = time_uptime; in aac_daemon()
373 cm->cm_datalen = 0; in aac_daemon()
374 cm->cm_flags |= AAC_CMD_WAIT; in aac_daemon()
390 aacraid_map_command_sg(cm, NULL, 0, 0); in aac_daemon()
391 aacraid_release_command(cm); in aac_daemon()
[all …]
/freebsd/contrib/tcpdump/
H A Dascii_strcasecmp.c61 const unsigned char *cm = charmap, in ascii_strcasecmp() local
65 while (cm[*us1] == cm[*us2++]) in ascii_strcasecmp()
68 return(cm[*us1] - cm[*--us2]); in ascii_strcasecmp()
74 const unsigned char *cm = charmap, in ascii_strncasecmp() local
88 if (cm[*us1] != cm[*us2++]) { in ascii_strncasecmp()
104 return(cm[*us1] - cm[*--us2]); in ascii_strncasecmp()
/freebsd/contrib/tcp_wrappers/
H A Dstrcasecmp.c71 register u_char *cm = charmap, in strcasecmp() local
75 while (cm[*us1] == cm[*us2++]) in strcasecmp()
78 return(cm[*us1] - cm[*--us2]); in strcasecmp()
83 register u_char *cm = charmap, in strncasecmp() local
87 while (--n >= 0 && cm[*us1] == cm[*us2++]) in strncasecmp()
90 return(n < 0 ? 0 : cm[*us1] - cm[*--us2]); in strncasecmp()

12345678