Home
last modified time | relevance | path

Searched full:ch (Results 1 – 25 of 2356) sorted by relevance

12345678910>>...95

/freebsd/crypto/openssl/ssl/quic/
H A Dquic_channel.c46 DEFINE_LIST_OF_IMPL(ch, QUIC_CHANNEL);
48 static void ch_save_err_state(QUIC_CHANNEL *ch);
49 static int ch_rx(QUIC_CHANNEL *ch, int channel_only, int *notify_other_threads);
50 static int ch_tx(QUIC_CHANNEL *ch, int *notify_other_threads);
51 static int ch_tick_tls(QUIC_CHANNEL *ch, int channel_only, int *notify_other_threads);
52 static void ch_rx_handle_packet(QUIC_CHANNEL *ch, int channel_only);
53 static OSSL_TIME ch_determine_next_tick_deadline(QUIC_CHANNEL *ch);
54 static int ch_retry(QUIC_CHANNEL *ch,
59 static int ch_restart(QUIC_CHANNEL *ch);
61 static void ch_cleanup(QUIC_CHANNEL *ch);
[all …]
H A Dquic_rx_depack.c32 static int depack_do_implicit_stream_create(QUIC_CHANNEL *ch,
44 static int depack_do_frame_ping(PACKET *pkt, QUIC_CHANNEL *ch, in depack_do_frame_ping() argument
50 ossl_quic_channel_raise_protocol_error(ch, in depack_do_frame_ping()
57 ossl_quic_tx_packetiser_schedule_ack_eliciting(ch->txp, enc_level); in depack_do_frame_ping()
61 static int depack_do_frame_ack(PACKET *pkt, QUIC_CHANNEL *ch, in depack_do_frame_ack() argument
69 uint32_t ack_delay_exp = ch->rx_ack_delay_exp; in depack_do_frame_ack()
76 if (ch->num_ack_range_scratch < (size_t)total_ranges) { in depack_do_frame_ack()
77 if ((p = OPENSSL_realloc(ch->ack_range_scratch, in depack_do_frame_ack()
82 ch->ack_range_scratch = p; in depack_do_frame_ack()
83 ch->num_ack_range_scratch = (size_t)total_ranges; in depack_do_frame_ack()
[all …]
/freebsd/sys/dev/mvs/
H A Dmvs.c73 static int mvs_sata_connect(struct mvs_channel *ch);
116 struct mvs_channel *ch = device_get_softc(dev); in mvs_ch_attach() local
120 ch->dev = dev; in mvs_ch_attach()
121 ch->unit = (intptr_t)device_get_ivars(dev); in mvs_ch_attach()
122 ch->quirks = ctlr->quirks; in mvs_ch_attach()
123 mtx_init(&ch->mtx, "MVS channel lock", NULL, MTX_DEF); in mvs_ch_attach()
124 ch->pm_level = 0; in mvs_ch_attach()
126 device_get_unit(dev), "pm_level", &ch->pm_level); in mvs_ch_attach()
127 if (ch->pm_level > 3) in mvs_ch_attach()
128 callout_init_mtx(&ch->pm_timer, &ch->mtx, 0); in mvs_ch_attach()
[all …]
/freebsd/sys/dev/ahci/
H A Dahci.c64 static void ahci_ch_intr_main(struct ahci_channel *ch, uint32_t istatus);
65 static void ahci_begin_transaction(struct ahci_channel *ch, union ccb *ccb);
70 static int ahci_setup_fis(struct ahci_channel *ch, struct ahci_cmd_tab *ctp, union ccb *ccb, int ta…
76 static void ahci_reset(struct ahci_channel *ch);
77 static void ahci_start(struct ahci_channel *ch, int fbs);
78 static void ahci_stop(struct ahci_channel *ch);
79 static void ahci_clo(struct ahci_channel *ch);
80 static void ahci_start_fr(struct ahci_channel *ch);
81 static void ahci_stop_fr(struct ahci_channel *ch);
82 static int ahci_phy_check_events(struct ahci_channel *ch, u_int32_t serr);
[all …]
/freebsd/sys/powerpc/mpc85xx/
H A Dfsl_sata.c65 static void fsl_sata_intr_main(struct fsl_sata_channel *ch, uint32_t istatus);
66 static void fsl_sata_begin_transaction(struct fsl_sata_channel *ch, union ccb *ccb);
71 static int fsl_sata_setup_fis(struct fsl_sata_channel *ch, struct fsl_sata_cmd_tab *ctp, union ccb …
77 static void fsl_sata_reset(struct fsl_sata_channel *ch);
78 static void fsl_sata_start(struct fsl_sata_channel *ch);
79 static void fsl_sata_stop(struct fsl_sata_channel *ch);
81 static void fsl_sata_issue_recovery(struct fsl_sata_channel *ch);
82 static void fsl_sata_process_read_log(struct fsl_sata_channel *ch, union ccb *ccb);
83 static void fsl_sata_process_request_sense(struct fsl_sata_channel *ch, union ccb *ccb);
157 #define FSL_SATA_CTP_BUS(ch, slot) \ argument
[all …]
/freebsd/sys/dev/siis/
H A Dsiis.c85 static int siis_sata_connect(struct siis_channel *ch);
461 struct siis_channel *ch = device_get_softc(dev); in siis_ch_attach() local
465 ch->dev = dev; in siis_ch_attach()
466 ch->unit = (intptr_t)device_get_ivars(dev); in siis_ch_attach()
467 ch->quirks = ctlr->quirks; in siis_ch_attach()
468 ch->pm_level = 0; in siis_ch_attach()
470 device_get_unit(dev), "pm_level", &ch->pm_level); in siis_ch_attach()
474 ch->user[i].revision = sata_rev; in siis_ch_attach()
475 ch->user[i].mode = 0; in siis_ch_attach()
476 ch->user[i].bytecount = 8192; in siis_ch_attach()
[all …]
/freebsd/sys/dev/ata/
H A Data-dma.c67 struct ata_channel *ch = device_get_softc(dev); in ata_dmainit() local
70 if (ch->dma.alloc == NULL) in ata_dmainit()
71 ch->dma.alloc = ata_dmaalloc; in ata_dmainit()
72 if (ch->dma.free == NULL) in ata_dmainit()
73 ch->dma.free = ata_dmafree; in ata_dmainit()
74 if (ch->dma.setprd == NULL) in ata_dmainit()
75 ch->dma.setprd = ata_dmasetprd; in ata_dmainit()
76 if (ch->dma.load == NULL) in ata_dmainit()
77 ch->dma.load = ata_dmaload; in ata_dmainit()
78 if (ch->dma.unload == NULL) in ata_dmainit()
[all …]
H A Data-all.c96 struct ata_channel *ch = device_get_softc(dev); in ata_attach() local
104 if (ch->r_irq) in ata_attach()
108 ch->dev = dev; in ata_attach()
109 ch->state = ATA_IDLE; in ata_attach()
110 bzero(&ch->state_mtx, sizeof(struct mtx)); in ata_attach()
111 mtx_init(&ch->state_mtx, "ATA state lock", NULL, MTX_DEF); in ata_attach()
112 TASK_INIT(&ch->conntask, 0, ata_conn_event, dev); in ata_attach()
114 ch->user[i].revision = 0; in ata_attach()
122 ch->user[i].revision = mode; in ata_attach()
123 ch->user[i].mode = 0; in ata_attach()
[all …]
H A Data-lowlevel.c55 static int ata_wait(struct ata_channel *ch, int unit, u_int8_t);
67 struct ata_channel *ch = device_get_softc(dev); in ata_generic_hw() local
69 ch->hw.begin_transaction = ata_begin_transaction; in ata_generic_hw()
70 ch->hw.end_transaction = ata_end_transaction; in ata_generic_hw()
71 ch->hw.status = ata_generic_status; in ata_generic_hw()
72 ch->hw.softreset = NULL; in ata_generic_hw()
73 ch->hw.command = ata_generic_command; in ata_generic_hw()
74 ch->hw.tf_read = ata_tf_read; in ata_generic_hw()
75 ch->hw.tf_write = ata_tf_write; in ata_generic_hw()
76 ch->hw.pm_read = NULL; in ata_generic_hw()
[all …]
/freebsd/lib/libiconv_modules/ZW/
H A Dcitrus_zw.c65 char ch[4]; member
115 int ch, len; in _citrus_ZW_mbrtowc_priv() local
132 ch = (unsigned char)*s0++; \ in _citrus_ZW_mbrtowc_priv()
133 if (len++ > MB_LEN_MAX || ch > 0x7F)\ in _citrus_ZW_mbrtowc_priv()
135 psenc->ch[psenc->chlen++] = ch; \ in _citrus_ZW_mbrtowc_priv()
144 switch (psenc->ch[0]) { in _citrus_ZW_mbrtowc_priv()
154 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv()
155 if (ch > 0x7F) in _citrus_ZW_mbrtowc_priv()
157 wc = (wchar_t)ch; in _citrus_ZW_mbrtowc_priv()
164 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv()
[all …]
/freebsd/usr.bin/mkimg/
H A Dimage.c135 struct chunk *ch; in image_chunk_find() local
137 ch = (last != NULL && last->ch_block <= blk) in image_chunk_find()
139 while (ch != NULL) { in image_chunk_find()
140 if (ch->ch_block <= blk && in image_chunk_find()
141 (lba_t)(ch->ch_block + (ch->ch_size / secsz)) > blk) { in image_chunk_find()
142 last = ch; in image_chunk_find()
145 ch = TAILQ_NEXT(ch, ch_list); in image_chunk_find()
147 return (ch); in image_chunk_find()
151 image_chunk_grow(struct chunk *ch, size_t sz) in image_chunk_grow() argument
155 newsz = ch->ch_size + sz; in image_chunk_grow()
[all …]
/freebsd/sys/dev/ata/chipsets/
H A Data-promise.c359 struct ata_channel *ch = device_get_softc(dev); in ata_promise_ch_attach() local
365 ch->dma.start = ata_promise_dmastart; in ata_promise_ch_attach()
366 ch->dma.stop = ata_promise_dmastop; in ata_promise_ch_attach()
367 ch->dma.reset = ata_promise_dmareset; in ata_promise_ch_attach()
370 ch->hw.status = ata_promise_status; in ata_promise_ch_attach()
371 ch->flags |= ATA_NO_ATAPI_DMA; in ata_promise_ch_attach()
372 ch->flags |= ATA_CHECKS_CABLE; in ata_promise_ch_attach()
380 struct ata_channel *ch = device_get_softc(dev); in ata_promise_status() local
382 if (ATA_INL(ctlr->r_res1, 0x1c) & (ch->unit ? 0x00004000 : 0x00000400)) { in ata_promise_status()
392 struct ata_channel *ch = device_get_softc(request->parent); in ata_promise_dmastart() local
[all …]
/freebsd/contrib/openpam/lib/libpam/
H A Dopenpam_ctype.h36 #define is_digit(ch) \ argument
37 (ch >= '0' && ch <= '9')
42 #define is_xdigit(ch) \ argument
43 ((ch >= '0' && ch <= '9') || \
44 (ch >= 'a' && ch <= 'f') || \
45 (ch >= 'A' && ch <= 'F'))
50 #define is_upper(ch) \ argument
51 (ch >= 'A' && ch <= 'Z')
56 #define is_lower(ch) \ argument
57 (ch >= 'a' && ch <= 'z')
[all …]
/freebsd/sys/dev/sound/pci/
H A Dt4dwave.c310 tr_testint(struct tr_chinfo *ch)
312 struct tr_info *tr = ch->parent;
315 bank = (ch->index & 0x20) ? 1 : 0;
316 chan = ch->index & 0x1f;
322 tr_clrint(struct tr_chinfo *ch) in tr_clrint() argument
324 struct tr_info *tr = ch->parent; in tr_clrint()
327 bank = (ch->index & 0x20) ? 1 : 0; in tr_clrint()
328 chan = ch->index & 0x1f; in tr_clrint()
333 tr_enaint(struct tr_chinfo *ch, int enable) in tr_enaint() argument
335 struct tr_info *tr = ch->parent; in tr_enaint()
[all …]
H A Dhdspe-pcm.c5 * Copyright (c) 2023-2024 Florian Walpen <dev@submerge.ch>
232 hdspe_hw_mixer(struct sc_chinfo *ch, unsigned int dst, in hdspe_hw_mixer() argument
239 scp = ch->parent; in hdspe_hw_mixer()
243 if (ch->dir == PCMDIR_PLAY) in hdspe_hw_mixer()
254 hdspechan_setgain(struct sc_chinfo *ch) in hdspechan_setgain() argument
261 sc = ch->parent->sc; in hdspechan_setgain()
264 ports = ch->ports; in hdspechan_setgain()
274 volume = ch->lvol * HDSPE_MAX_GAIN / 100; in hdspechan_setgain()
276 hdspe_hw_mixer(ch, slot, slot, volume); in hdspechan_setgain()
278 volume = ch->rvol * HDSPE_MAX_GAIN / 100; in hdspechan_setgain()
[all …]
/freebsd/lib/libc/iconv/
H A Dcitrus_prop.c83 int ch, cutlim, n; \
90 ch = _memstream_getc(ms); \
91 p = strchr(xdigit, _bcs_toupper(ch)); \
99 _memstream_ungetc(ms, ch); \
112 int base, ch, neg; \ in _CITRUS_PROP_READ_UINT_COMMON()
115 ch = _memstream_getc(ms); \ in _CITRUS_PROP_READ_UINT_COMMON()
117 switch (ch) { \ in _CITRUS_PROP_READ_UINT_COMMON()
121 ch = _memstream_getc(ms); \ in _CITRUS_PROP_READ_UINT_COMMON()
124 if (ch == '0') { \ in _CITRUS_PROP_READ_UINT_COMMON()
126 ch = _memstream_getc(ms); \ in _CITRUS_PROP_READ_UINT_COMMON()
[all …]
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_dma.c126 static void bcm_dma_reg_dump(int ch);
131 int ch; member
173 bcm_dma_reset(device_t dev, int ch) in bcm_dma_reset() argument
180 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_reset()
183 cs = bus_read_4(sc->sc_mem, BCM_DMA_CS(ch)); in bcm_dma_reset()
187 bus_write_4(sc->sc_mem, BCM_DMA_CS(ch), 0); in bcm_dma_reset()
191 cs = bus_read_4(sc->sc_mem, BCM_DMA_CS(ch)); in bcm_dma_reset()
196 "Can't abort DMA transfer at channel %d\n", ch); in bcm_dma_reset()
199 bus_write_4(sc->sc_mem, BCM_DMA_CBNEXT(ch), 0); in bcm_dma_reset()
202 bus_write_4(sc->sc_mem, BCM_DMA_CS(ch), in bcm_dma_reset()
[all …]
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_channel.c121 struct dpaa2_channel *ch = NULL; in dpaa2_chan_setup() local
148 ch = malloc(sizeof(struct dpaa2_channel), M_DPAA2_CH, M_WAITOK | M_ZERO); in dpaa2_chan_setup()
149 ch->ni_dev = dev; in dpaa2_chan_setup()
150 ch->io_dev = iodev; in dpaa2_chan_setup()
151 ch->con_dev = condev; in dpaa2_chan_setup()
152 ch->id = consc->attr.chan_id; in dpaa2_chan_setup()
153 ch->flowid = flowid; in dpaa2_chan_setup()
154 ch->tx_frames = 0; /* for debug purposes */ in dpaa2_chan_setup()
155 ch->tx_dropped = 0; /* for debug purposes */ in dpaa2_chan_setup()
156 ch->store_sz = 0; in dpaa2_chan_setup()
[all …]
/freebsd/sys/kern/
H A DMake.tags.inc12 ${SYS}/dev/alc/*.[ch] \
13 ${SYS}/dev/iicbus/*.[ch] \
14 ${SYS}/dev/isp/*.[ch] \
15 ${SYS}/dev/ppbus/*.[ch] \
16 ${SYS}/dev/smbus/*.[ch] \
17 ${SYS}/fs/autofs/*.[ch] \
18 ${SYS}/fs/cd9660/*.[ch] \
19 ${SYS}/fs/cuse/*.[ch] \
20 ${SYS}/fs/deadfs/*.[ch] \
21 ${SYS}/fs/devfs/*.[ch] \
[all …]
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64stl_control.c95 nat64stl_export_config(struct ip_fw_chain *ch, struct nat64stl_cfg *cfg, in nat64stl_export_config() argument
106 no = ipfw_objhash_lookup_table_kidx(ch, cfg->map64); in nat64stl_export_config()
108 no = ipfw_objhash_lookup_table_kidx(ch, cfg->map46); in nat64stl_export_config()
113 struct ip_fw_chain *ch; member
125 nat64stl_export_config(da->ch, (struct nat64stl_cfg *)no, uc); in export_config_cb()
141 nat64stl_create_internal(struct ip_fw_chain *ch, struct nat64stl_cfg *cfg, in nat64stl_create_internal() argument
145 IPFW_UH_WLOCK_ASSERT(ch); in nat64stl_create_internal()
147 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) in nat64stl_create_internal()
151 if (ipfw_ref_table(ch, &i->ntlv4, &cfg->map46) != 0) in nat64stl_create_internal()
155 if (ipfw_ref_table(ch, &i->ntlv6, &cfg->map64) != 0) in nat64stl_create_internal()
[all …]
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_table.c96 static struct table_config *alloc_table_config(struct ip_fw_chain *ch,
100 static int create_table_internal(struct ip_fw_chain *ch, struct tid_info *ti,
102 static void link_table(struct ip_fw_chain *ch, struct table_config *tc);
103 static void unlink_table(struct ip_fw_chain *ch, struct table_config *tc);
104 static int find_ref_table(struct ip_fw_chain *ch, struct tid_info *ti,
108 static int export_tables(struct ip_fw_chain *ch, ipfw_obj_lheader *olh,
110 static void export_table_info(struct ip_fw_chain *ch, struct table_config *tc,
114 static int swap_tables(struct ip_fw_chain *ch, struct tid_info *a,
118 static int check_table_space(struct ip_fw_chain *ch, struct tableop_state *ts,
120 static int destroy_table(struct ip_fw_chain *ch, struct tid_info *ti);
[all …]
H A Dip_fw_iface.c62 #define CHAIN_TO_II(ch) ((struct namedobj_instance *)ch->ifcfg) argument
66 static void handle_ifdetach(struct ip_fw_chain *ch, struct ipfw_iface *iif,
68 static void handle_ifattach(struct ip_fw_chain *ch, struct ipfw_iface *iif,
70 static int list_ifaces(struct ip_fw_chain *ch, ip_fw3_opheader *op3,
96 struct ip_fw_chain *ch; in ipfw_kifhandler() local
104 ch = &V_layer3_chain; in ipfw_kifhandler()
107 IPFW_UH_WLOCK(ch); in ipfw_kifhandler()
108 ii = CHAIN_TO_II(ch); in ipfw_kifhandler()
110 IPFW_UH_WUNLOCK(ch); in ipfw_kifhandler()
117 handle_ifattach(ch, iif, ifp->if_index); in ipfw_kifhandler()
[all …]
/freebsd/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_ulpi.c68 ng_l2cap_chan_p ch = NULL; in ng_l2cap_l2ca_con_req() local
107 ch = ng_l2cap_new_chan(l2cap, con, ip->psm, ip->idtype); in ng_l2cap_l2ca_con_req()
108 if (ch == NULL) { in ng_l2cap_l2ca_con_req()
114 cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(con), in ng_l2cap_l2ca_con_req()
117 ng_l2cap_free_chan(ch); in ng_l2cap_l2ca_con_req()
124 ng_l2cap_free_chan(ch); in ng_l2cap_l2ca_con_req()
139 _ng_l2cap_con_req(cmd->aux, cmd->ident, ch->psm, ch->scid); in ng_l2cap_l2ca_con_req()
143 ng_l2cap_free_chan(ch); in ng_l2cap_l2ca_con_req()
148 ch->state = NG_L2CAP_W4_L2CAP_CON_RSP; in ng_l2cap_l2ca_con_req()
151 ng_l2cap_link_cmd(ch->con, cmd); in ng_l2cap_l2ca_con_req()
[all …]
/freebsd/sys/contrib/dev/rtw89/
H A Dphy_be.c566 u8 band, u8 bw, u8 ntx, u8 rs, u8 ch) in fill_limit_nonbf_bf() argument
572 rs, bf, ch); in fill_limit_nonbf_bf()
592 u8 band, u8 ntx, u8 ch) in phy_fill_limit_20m_be() argument
595 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_CCK, ch); in phy_fill_limit_20m_be()
597 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_CCK, ch); in phy_fill_limit_20m_be()
599 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_OFDM, ch); in phy_fill_limit_20m_be()
601 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch); in phy_fill_limit_20m_be()
606 u8 band, u8 ntx, u8 ch, u8 pri_ch) in phy_fill_limit_40m_be() argument
609 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_CCK, ch - 2); in phy_fill_limit_40m_be()
611 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_CCK, ch); in phy_fill_limit_40m_be()
[all …]
/freebsd/sys/arm/ti/
H A Dti_sdma.c91 void (*callback)(unsigned int ch, uint32_t ch_status, void *data);
218 unsigned int ch, j; in ti_sdma_intr() local
231 for (ch = 0; ch < NUM_DMA_CHANNELS; ch++) { in ti_sdma_intr()
232 if (intr & (1 << ch)) { in ti_sdma_intr()
233 channel = &sc->sc_channel[ch]; in ti_sdma_intr()
236 csr = ti_sdma_read_4(sc, DMA4_CSR(ch)); in ti_sdma_intr()
239 "%d\n", ch); in ti_sdma_intr()
244 if ((sc->sc_active_channels & (1 << ch)) == 0) { in ti_sdma_intr()
246 "channel %d\n", j, ch); in ti_sdma_intr()
254 ch); in ti_sdma_intr()
[all …]

12345678910>>...95