Home
last modified time | relevance | path

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

12345678910>>...91

/freebsd-src/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-src/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 tag);
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_
105 ahci_ch_detval(struct ahci_channel * ch,uint32_t val) ahci_ch_detval() argument
721 ahci_attached(device_t dev,struct ahci_channel * ch) ahci_attached() argument
731 ahci_detached(device_t dev,struct ahci_channel * ch) ahci_detached() argument
746 struct ahci_channel *ch; ahci_getch() local
758 ahci_putch(struct ahci_channel * ch) ahci_putch() argument
775 struct ahci_channel *ch; ahci_ch_disablephy_proc() local
801 struct ahci_channel *ch = device_get_softc(dev); ahci_ch_attach() local
946 struct ahci_channel *ch = device_get_softc(dev); ahci_ch_detach() local
979 struct ahci_channel *ch = device_get_softc(dev); ahci_ch_init() local
1004 struct ahci_channel *ch = device_get_softc(dev); ahci_ch_deinit() local
1025 struct ahci_channel *ch = device_get_softc(dev); ahci_ch_suspend() local
1045 struct ahci_channel *ch = device_get_softc(dev); ahci_ch_resume() local
1078 struct ahci_channel *ch = device_get_softc(dev); ahci_dmainit() local
1151 struct ahci_channel *ch = device_get_softc(dev); ahci_dmafini() local
1178 struct ahci_channel *ch = device_get_softc(dev); ahci_slotsalloc() local
1201 struct ahci_channel *ch = device_get_softc(dev); ahci_slotsfree() local
1217 ahci_phy_check_events(struct ahci_channel * ch,u_int32_t serr) ahci_phy_check_events() argument
1247 ahci_cpd_check_events(struct ahci_channel * ch) ahci_cpd_check_events() argument
1279 ahci_notify_events(struct ahci_channel * ch,u_int32_t status) ahci_notify_events() argument
1300 ahci_done(struct ahci_channel * ch,union ccb * ccb) ahci_done() argument
1316 struct ahci_channel *ch = (struct ahci_channel *)arg; ahci_ch_intr() local
1330 struct ahci_channel *ch = (struct ahci_channel *)arg; ahci_ch_intr_direct() local
1357 struct ahci_channel *ch = (struct ahci_channel *)arg; ahci_ch_pm() local
1371 ahci_ch_intr_main(struct ahci_channel * ch,uint32_t istatus) ahci_ch_intr_main() argument
1530 ahci_check_collision(struct ahci_channel * ch,union ccb * ccb) ahci_check_collision() argument
1580 ahci_begin_transaction(struct ahci_channel * ch,union ccb * ccb) ahci_begin_transaction() argument
1633 struct ahci_channel *ch = slot->ch; ahci_dmasetprd() local
1663 struct ahci_channel *ch = slot->ch; ahci_execute_transaction() local
1817 ahci_process_timeout(struct ahci_channel * ch) ahci_process_timeout() argument
1833 ahci_rearm_timeout(struct ahci_channel * ch) ahci_rearm_timeout() argument
1857 struct ahci_channel *ch = slot->ch; ahci_timeout() local
1936 struct ahci_channel *ch = slot->ch; ahci_end_transaction() local
2147 ahci_issue_recovery(struct ahci_channel * ch) ahci_issue_recovery() argument
2224 ahci_process_read_log(struct ahci_channel * ch,union ccb * ccb) ahci_process_read_log() argument
2283 ahci_process_request_sense(struct ahci_channel * ch,union ccb * ccb) ahci_process_request_sense() argument
2304 ahci_start(struct ahci_channel * ch,int fbs) ahci_start() argument
2330 ahci_stop(struct ahci_channel * ch) ahci_stop() argument
2351 ahci_clo(struct ahci_channel * ch) ahci_clo() argument
2373 ahci_stop_fr(struct ahci_channel * ch) ahci_stop_fr() argument
2393 ahci_start_fr(struct ahci_channel * ch) ahci_start_fr() argument
2403 ahci_wait_ready(struct ahci_channel * ch,int t,int t0) ahci_wait_ready() argument
2431 struct ahci_channel *ch = arg; ahci_reset_to() local
2453 ahci_reset(struct ahci_channel * ch) ahci_reset() argument
2544 ahci_setup_fis(struct ahci_channel * ch,struct ahci_cmd_tab * ctp,union ccb * ccb,int tag) ahci_setup_fis() argument
2601 ahci_sata_connect(struct ahci_channel * ch) ahci_sata_connect() argument
2648 ahci_sata_phy_reset(struct ahci_channel * ch) ahci_sata_phy_reset() argument
2691 ahci_check_ids(struct ahci_channel * ch,union ccb * ccb) ahci_check_ids() argument
2710 struct ahci_channel *ch; ahciaction() local
2894 struct ahci_channel *ch = (struct ahci_channel *)cam_sim_softc(sim); ahcipoll() local
[all...]
/freebsd-src/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-src/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()
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 in siis_ch_attach()
458 struct siis_channel *ch = device_get_softc(dev); siis_ch_attach() local
549 struct siis_channel *ch = device_get_softc(dev); siis_ch_detach() local
574 struct siis_channel *ch = device_get_softc(dev); siis_ch_init() local
591 struct siis_channel *ch = device_get_softc(dev); siis_ch_deinit() local
601 struct siis_channel *ch = device_get_softc(dev); siis_ch_suspend() local
615 struct siis_channel *ch = device_get_softc(dev); siis_ch_resume() local
646 struct siis_channel *ch; siis_ch_led() local
665 struct siis_channel *ch = device_get_softc(dev); siis_dmainit() local
710 struct siis_channel *ch = device_get_softc(dev); siis_dmafini() local
732 struct siis_channel *ch = device_get_softc(dev); siis_slotsalloc() local
755 struct siis_channel *ch = device_get_softc(dev); siis_slotsfree() local
773 struct siis_channel *ch = device_get_softc(dev); siis_notify_events() local
805 struct siis_channel *ch = device_get_softc(dev); siis_phy_check_events() local
837 struct siis_channel *ch = device_get_softc(dev); siis_ch_intr_locked() local
848 struct siis_channel *ch = device_get_softc(dev); siis_ch_intr() local
950 struct siis_channel *ch = device_get_softc(dev); siis_check_collision() local
976 struct siis_channel *ch = device_get_softc(dev); siis_begin_transaction() local
1015 struct siis_channel *ch = device_get_softc(slot->dev); siis_dmasetprd() local
1056 struct siis_channel *ch = device_get_softc(dev); siis_execute_transaction() local
1126 struct siis_channel *ch = device_get_softc(dev); siis_process_timeout() local
1147 struct siis_channel *ch = device_get_softc(dev); siis_rearm_timeout() local
1171 struct siis_channel *ch = device_get_softc(dev); siis_timeout() local
1210 struct siis_channel *ch = device_get_softc(dev); siis_end_transaction() local
1365 struct siis_channel *ch = device_get_softc(dev); siis_issue_recovery() local
1443 struct siis_channel *ch = device_get_softc(dev); siis_process_read_log() local
1501 struct siis_channel *ch = device_get_softc(dev); siis_process_request_sense() local
1522 struct siis_channel *ch = device_get_softc(dev); siis_portinit() local
1539 struct siis_channel *ch = device_get_softc(dev); siis_devreset() local
1559 struct siis_channel *ch = device_get_softc(dev); siis_wait_ready() local
1578 struct siis_channel *ch = device_get_softc(dev); siis_reset() local
1685 struct siis_channel *ch = device_get_softc(dev); siis_setup_fis() local
1741 siis_sata_connect(struct siis_channel * ch) siis_sata_connect() argument
1804 struct siis_channel *ch; siisaction() local
1981 struct siis_channel *ch = (struct siis_channel *)cam_sim_softc(sim); siispoll() local
[all...]
/freebsd-src/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-src/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-src/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-src/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-src/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-src/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-src/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 in tr_enaint()
356 tr_selch(struct tr_chinfo * ch) tr_selch() argument
368 tr_startch(struct tr_chinfo * ch) tr_startch() argument
379 tr_stopch(struct tr_chinfo * ch) tr_stopch() argument
390 tr_wrch(struct tr_chinfo * ch) tr_wrch() argument
440 tr_rdch(struct tr_chinfo * ch) tr_rdch() argument
503 struct tr_chinfo *ch; trpchan_init() local
520 struct tr_chinfo *ch = data; trpchan_setformat() local
530 struct tr_chinfo *ch = data; trpchan_setspeed() local
539 struct tr_chinfo *ch = data; trpchan_setblocksize() local
548 struct tr_chinfo *ch = data; trpchan_trigger() local
581 struct tr_chinfo *ch = data; trpchan_getptr() local
612 struct tr_rchinfo *ch; trrchan_init() local
628 struct tr_rchinfo *ch = data; trrchan_setformat() local
646 struct tr_rchinfo *ch = data; trrchan_setspeed() local
660 struct tr_rchinfo *ch = data; trrchan_setblocksize() local
670 struct tr_rchinfo *ch = data; trrchan_trigger() local
702 struct tr_rchinfo *ch = data; trrchan_getptr() local
734 struct tr_chinfo *ch; tr_intr() local
[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()
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()
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 in hdspechan_setgain()
230 hdspe_hw_mixer(struct sc_chinfo * ch,unsigned int dst,unsigned int src,unsigned short data) hdspe_hw_mixer() argument
252 hdspechan_setgain(struct sc_chinfo * ch) hdspechan_setgain() argument
319 struct sc_chinfo *ch; hdspemixer_set() local
351 hdspechan_enable(struct sc_chinfo * ch,int value) hdspechan_enable() argument
391 struct sc_chinfo *ch; hdspe_running() local
537 buffer_copy(struct sc_chinfo * ch) buffer_copy() argument
617 clean(struct sc_chinfo * ch) clean() argument
658 struct sc_chinfo *ch; hdspechan_init() local
715 struct sc_chinfo *ch; hdspechan_trigger() local
759 struct sc_chinfo *ch; hdspechan_getptr() local
781 struct sc_chinfo *ch; hdspechan_free() local
809 struct sc_chinfo *ch; hdspechan_setformat() local
828 struct sc_chinfo *ch; hdspechan_setspeed() local
902 struct sc_chinfo *ch; hdspechan_setblocksize() local
975 struct sc_chinfo *ch; hdspechan_getcaps() local
1017 struct sc_chinfo *ch; hdspe_pcm_intr() local
[all...]
/freebsd-src/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-src/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-src/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 in dpaa2_chan_setup()
298 dpaa2_chan_setup_fq(device_t dev,struct dpaa2_channel * ch,enum dpaa2_ni_queue_type queue_type) dpaa2_chan_setup_fq() argument
350 dpaa2_chan_next_frame(struct dpaa2_channel * ch,struct dpaa2_dq ** dq) dpaa2_chan_next_frame() argument
379 dpaa2_chan_setup_dma(device_t dev,struct dpaa2_channel * ch,bus_size_t alignment) dpaa2_chan_setup_dma() argument
459 dpaa2_chan_alloc_storage(device_t dev,struct dpaa2_channel * ch,bus_size_t size,int mapflags,bus_size_t alignment) dpaa2_chan_alloc_storage() argument
527 struct dpaa2_channel *ch = (struct dpaa2_channel *)arg; dpaa2_chan_bp_task() local
[all...]
/freebsd-src/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 …]
H A Dnat64clat_control.c93 nat64clat_export_config(struct ip_fw_chain *ch, struct nat64clat_cfg *cfg, in nat64clat_export_config() argument
106 struct ip_fw_chain *ch; member
118 nat64clat_export_config(da->ch, (struct nat64clat_cfg *)no, uc); in export_config_cb()
141 nat64clat_create(struct ip_fw_chain *ch, ip_fw3_opheader *op3, in nat64clat_create() argument
163 ni = CHAIN_TO_SRV(ch); in nat64clat_create()
165 IPFW_UH_RLOCK(ch); in nat64clat_create()
167 IPFW_UH_RUNLOCK(ch); in nat64clat_create()
170 IPFW_UH_RUNLOCK(ch); in nat64clat_create()
182 IPFW_UH_WLOCK(ch); in nat64clat_create()
185 IPFW_UH_WUNLOCK(ch); in nat64clat_create()
[all …]
/freebsd-src/sys/netpfil/ipfw/
H A Dip_fw_iface.c60 #define CHAIN_TO_II(ch) ((struct namedobj_instance *)ch->ifcfg) argument
64 static void handle_ifdetach(struct ip_fw_chain *ch, struct ipfw_iface *iif,
66 static void handle_ifattach(struct ip_fw_chain *ch, struct ipfw_iface *iif,
68 static int list_ifaces(struct ip_fw_chain *ch, ip_fw3_opheader *op3,
94 struct ip_fw_chain *ch; in ipfw_kifhandler() local
102 ch = &V_layer3_chain; in ipfw_kifhandler()
105 IPFW_UH_WLOCK(ch); in ipfw_kifhandler()
106 ii = CHAIN_TO_II(ch); in ipfw_kifhandler()
108 IPFW_UH_WUNLOCK(ch); in ipfw_kifhandler()
115 handle_ifattach(ch, iif, ifp->if_index); in ipfw_kifhandler()
[all …]
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,
115 static int swap_tables(struct ip_fw_chain *ch, struct tid_info *a,
119 static int check_table_space(struct ip_fw_chain *ch, struct tableop_state *ts,
121 static int destroy_table(struct ip_fw_chain *ch, struct tid_info *ti);
[all …]
/freebsd-src/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-src/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 …]
/freebsd-src/sys/cddl/contrib/opensolaris/common/util/
H A Dstrtolctype.h49 #define isalnum(ch) (isalpha(ch) || isdigit(ch)) argument
50 #define isalpha(ch) (isupper(ch) || islower(ch)) argument
51 #define isdigit(ch) ((ch) >= '0' && (ch) <= '9') argument
52 #define islower(ch) ((ch) >= 'a' && (ch) <= 'z') argument
53 #define isspace(ch) (((ch) == ' ') || ((ch) == '\r') || ((ch) == '\n') || \ argument
54 ((ch) == '\t') || ((ch) == '\f'))
55 #define isupper(ch) ((ch) >= 'A' && (ch) <= 'Z') argument
56 #define isxdigit(ch) (isdigit(ch) || ((ch) >= 'a' && (ch) <= 'f') || \ argument
57 ((ch) >= 'A' && (ch) <= 'F'))
/freebsd-src/cddl/contrib/opensolaris/common/util/
H A Dstrtolctype.h49 #define isalnum(ch) (isalpha(ch) || isdigit(ch)) argument
50 #define isalpha(ch) (isupper(ch) || islower(ch)) argument
51 #define isdigit(ch) ((ch) >= '0' && (ch) <= '9') argument
52 #define islower(ch) ((ch) >= 'a' && (ch) <= 'z') argument
53 #define isspace(ch) (((ch) == ' ') || ((ch) == '\r') || ((ch) == '\n') || \ argument
54 ((ch) == '\t') || ((ch) == '\f'))
55 #define isupper(ch) ((ch) >= 'A' && (ch) <= 'Z') argument
56 #define isxdigit(ch) (isdigit(ch) || ((ch) >= 'a' && (ch) <= 'f') || \ argument
57 ((ch) >= 'A' && (ch) <= 'F'))

12345678910>>...91