Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 1752) sorted by relevance

12345678910>>...71

/freebsd-12.1/sys/dev/ahci/
H A Dahci.c704 ctlr->ch[ch->unit] = ch; in ahci_attached()
715 ctlr->ch[ch->unit] = NULL; in ahci_detached()
728 ch = ctlr->ch[n]; in ahci_getch()
818 ch->curr[i] = ch->user[i]; in ahci_ch_attach()
859 ch, &ch->ih))) { in ahci_ch_attach()
1166 slot->ch = ch; in ahci_slotsalloc()
2113 if (ch->frozen && !ahci_check_collision(ch, ch->frozen)) { in ahci_end_transaction()
2150 ahci_done(ch, ch->hold[i]); in ahci_issue_recovery()
2276 ahci_done(ch, ch->hold[i]); in ahci_process_request_sense()
2290 ch->start(ch); in ahci_start()
[all …]
/freebsd-12.1/sys/dev/mvs/
H A Dmvs.c131 callout_init_mtx(&ch->pm_timer, &ch->mtx, 0); in mvs_ch_attach()
140 ch->curr[i] = ch->user[i]; in mvs_ch_attach()
239 bus_teardown_intr(dev, ch->r_irq, ch->ih); in mvs_ch_detach()
348 ch->dma.workrq, ch->dma.workrq_map); in mvs_dmainit()
365 ch->dma.workrp, ch->dma.workrp_map); in mvs_dmainit()
406 ch->dma.workrp, ch->dma.workrp_map); in mvs_dmafini()
417 ch->dma.workrq, ch->dma.workrq_map); in mvs_dmafini()
434 bzero(ch->slot, sizeof(ch->slot)); in mvs_slotsalloc()
891 ch->donecount += ch->transfersize; in mvs_legacy_intr()
1602 if ((ch->rslots & ~ch->toslots) == 0) in mvs_timeout()
[all …]
/freebsd-12.1/contrib/binutils/gas/
H A Dapp.c505 else if (ch >= '0' && ch <= '9') in do_scrub_chars()
520 while (ch != EOF && ch != '\n') in do_scrub_chars()
655 if (ch == 'f' || ch == 'F') in do_scrub_chars()
721 if (ch != '\0' && (*symver_state == ch)) in do_scrub_chars()
1028 ch = process_escape (ch); in do_scrub_chars()
1101 while (ch != EOF && ch != '\n'); in do_scrub_chars()
1166 while (ch != EOF && !IS_NEWLINE (ch)) in do_scrub_chars()
1206 || (ch != '!' && ch != '*'))) in do_scrub_chars()
1209 && (ch == '!' || ch == '*' || ch == '#') in do_scrub_chars()
1241 while (ch != EOF && !IS_NEWLINE (ch)); in do_scrub_chars()
[all …]
/freebsd-12.1/sys/powerpc/mpc85xx/
H A Dfsl_sata.c375 ch->curr[i] = ch->user[i]; in fsl_sata_attach()
398 fsl_sata_intr, ch, &ch->ih))) { in fsl_sata_attach()
611 bus_dmamem_free(ch->dma.work_tag, ch->dma.work, ch->dma.work_map); in fsl_sata_dmainit()
652 bus_dmamem_free(ch->dma.work_tag, ch->dma.work, ch->dma.work_map); in fsl_sata_dmafini()
669 bzero(ch->slot, sizeof(ch->slot)); in fsl_sata_slotsalloc()
673 slot->ch = ch; in fsl_sata_slotsalloc()
1197 ch->rslots & ~ch->toslots); in fsl_sata_timeout()
1380 if (ch->frozen && !fsl_sata_check_collision(ch, ch->frozen)) { in fsl_sata_end_transaction()
1417 fsl_sata_done(ch, ch->hold[i]); in fsl_sata_issue_recovery()
1543 fsl_sata_done(ch, ch->hold[i]); in fsl_sata_process_request_sense()
[all …]
/freebsd-12.1/contrib/openpam/lib/libpam/
H A Dopenpam_ctype.h39 (ch >= '0' && ch <= '9')
45 ((ch >= '0' && ch <= '9') || \
46 (ch >= 'a' && ch <= 'f') || \
47 (ch >= 'A' && ch <= 'F'))
53 (ch >= 'A' && ch <= 'Z')
59 (ch >= 'a' && ch <= 'z')
65 (is_upper(ch) || is_lower(ch))
73 (ch == ' ' || ch == '\t' || ch == '\f' || ch == '\r')
79 (is_lws(ch) || ch == '\n')
86 (ch >= '!' && ch <= '~')
[all …]
/freebsd-12.1/lib/libiconv_modules/ZW/
H A Dcitrus_zw.c137 psenc->ch[psenc->chlen++] = ch; \ in _citrus_ZW_mbrtowc_priv()
156 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv()
166 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv()
168 if (ch != '\n' && ch != '\0') in _citrus_ZW_mbrtowc_priv()
226 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_mbrtowc_priv()
230 if (ch < 0x21 || ch > 0x7E) { in _citrus_ZW_mbrtowc_priv()
268 if (ch == '\0' || ch == '\n') in _citrus_ZW_wcrtomb_priv()
316 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_wcrtomb_priv()
318 psenc->ch[psenc->chlen++] = ch; in _citrus_ZW_wcrtomb_priv()
320 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_wcrtomb_priv()
[all …]
/freebsd-12.1/sys/arm/ti/
H A Dti_sdma.c222 unsigned int ch, j; in ti_sdma_intr() local
236 for (ch = 0; ch < NUM_DMA_CHANNELS; ch++) { in ti_sdma_intr()
237 if (intr & (1 << ch)) { in ti_sdma_intr()
244 "%d\n", ch); in ti_sdma_intr()
259 ch); in ti_sdma_intr()
331 if (ch == NULL) in ti_sdma_activate_channel()
346 *ch = i; in ti_sdma_activate_channel()
383 for (addr = DMA4_CCR(*ch); addr <= DMA4_COLOR(*ch); addr += 4) in ti_sdma_activate_channel()
438 for (addr = DMA4_CCR(ch); addr <= DMA4_COLOR(ch); addr += 4) in ti_sdma_deactivate_channel()
483 irq_enable &= ~(1 << ch); in ti_sdma_disable_channel_irq()
[all …]
/freebsd-12.1/sys/dev/siis/
H A Dsiis.c480 ch->curr[i] = ch->user[i]; in siis_ch_attach()
564 bus_teardown_intr(dev, ch->r_irq, ch->ih); in siis_ch_detach()
681 if (bus_dmamap_load(ch->dma.work_tag, ch->dma.work_map, ch->dma.work, in siis_dmainit()
683 bus_dmamem_free(ch->dma.work_tag, ch->dma.work, ch->dma.work_map); in siis_dmainit()
723 bus_dmamem_free(ch->dma.work_tag, ch->dma.work, ch->dma.work_map); in siis_dmafini()
741 bzero(ch->slot, sizeof(ch->slot)); in siis_slotsalloc()
890 if (!ch->recoverycmd && !ch->recovery) { in siis_ch_intr()
1138 if (!ch->recoverycmd && !ch->recovery) { in siis_process_timeout()
1205 if ((ch->rslots & ~ch->toslots) == 0) in siis_timeout()
1209 ch->rslots & ~ch->toslots); in siis_timeout()
[all …]
/freebsd-12.1/sys/dev/ata/
H A Data-dma.c84 ch->dma.alignment = 2; in ata_dmainit()
94 ch->dma.dma_slots = 1; in ata_dmainit()
109 if (bus_dmamem_alloc(ch->dma.work_tag, (void **)&ch->dma.work, in ata_dmainit()
111 &ch->dma.work_map)) in ata_dmainit()
114 if (bus_dmamap_load(ch->dma.work_tag, ch->dma.work_map, ch->dma.work, in ata_dmainit()
117 bus_dmamem_free(ch->dma.work_tag, ch->dma.work, ch->dma.work_map); in ata_dmainit()
134 bus_dmamap_unload(ch->dma.work_tag, ch->dma.work_map); in ata_dmafini()
135 bus_dmamem_free(ch->dma.work_tag, ch->dma.work, ch->dma.work_map); in ata_dmafini()
136 ch->dma.work_bus = 0; in ata_dmafini()
137 ch->dma.work = NULL; in ata_dmafini()
[all …]
H A Data-lowlevel.c79 ch->hw.pm_read = NULL; in ata_generic_hw()
80 ch->hw.pm_write = NULL; in ata_generic_hw()
127 ch->hw.tf_read(request); in ata_begin_transaction()
155 ch->dma.start && ch->dma.start(request)) { in ata_begin_transaction()
171 ch->dma.start && ch->dma.start(request)) { in ata_begin_transaction()
223 if (ch->dma.start && ch->dma.start(request)) { in ata_begin_transaction()
233 if (ch->dma.unload) { in ata_begin_transaction()
334 if (ch->dma.stop) in ata_end_transaction()
359 length = ATA_IDX_INB(ch, ATA_CYL_LSB)|(ATA_IDX_INB(ch, ATA_CYL_MSB)<<8); in ata_end_transaction()
450 if (ch->dma.stop) in ata_end_transaction()
[all …]
H A Data-all.c143 ch->curr[i] = ch->user[i]; in ata_attach()
169 ata_interrupt, ch, &ch->ih))) { in ata_attach()
176 callout_reset(&ch->poll_callout, hz, ata_periodic_poll, ch); in ata_attach()
186 ch->sim = cam_sim_alloc(ataaction, atapoll, "ata", ch, in ata_attach()
248 bus_teardown_intr(dev, ch->r_irq, ch->ih); in ata_detach()
324 msleep(ch, &ch->state_mtx, PRIBIO, "atasusp", hz/100); in ata_suspend()
365 if (ch->hw.status && !ch->hw.status(ch->dev)) in ata_interrupt_locked()
418 ch->r_io[ATA_ERROR].res = ch->r_io[ATA_FEATURE].res; in ata_default_registers()
420 ch->r_io[ATA_IREASON].res = ch->r_io[ATA_COUNT].res; in ata_default_registers()
422 ch->r_io[ATA_STATUS].res = ch->r_io[ATA_COMMAND].res; in ata_default_registers()
[all …]
/freebsd-12.1/contrib/llvm/lib/Support/
H A DConvertUTF.cpp152 UTF32 ch; in ConvertUTF32toUTF16() local
205 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) { in ConvertUTF16toUTF32()
255 UTF32 ch; in ConvertUTF16toUTF8() local
565 case 3: ch += *source++; ch <<= 6; in ConvertUTF8toUTF16()
566 case 2: ch += *source++; ch <<= 6; in ConvertUTF8toUTF16()
567 case 1: ch += *source++; ch <<= 6; in ConvertUTF8toUTF16()
667 case 5: ch += *source++; ch <<= 6; in ConvertUTF8toUTF32Impl()
668 case 4: ch += *source++; ch <<= 6; in ConvertUTF8toUTF32Impl()
669 case 3: ch += *source++; ch <<= 6; in ConvertUTF8toUTF32Impl()
670 case 2: ch += *source++; ch <<= 6; in ConvertUTF8toUTF32Impl()
[all …]
/freebsd-12.1/sys/arm/broadcom/bcm2835/
H A Dbcm2835_dma.c183 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_reset()
270 ch->ch = i; in bcm_dma_init()
363 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_free()
391 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_setup_intr()
425 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_setup_src()
475 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_setup_dst()
530 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_reg_dump()
557 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_start()
601 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_length()
641 bcm_dma_reset(sc->sc_dev, ch->ch); in bcm_dma_intr()
[all …]
/freebsd-12.1/usr.bin/mkimg/
H A Dimage.c147 ch = TAILQ_NEXT(ch, ch_list); in image_chunk_find()
186 ch->ch_size = (blk - ch->ch_block) * secsz; in image_chunk_memory()
221 from = (ch != NULL) ? ch->ch_block + (ch->ch_size / secsz) : 0LL; in image_chunk_skipto()
236 from = ch->ch_block + (ch->ch_size / secsz); in image_chunk_skipto()
238 ch = malloc(sizeof(*ch)); in image_chunk_skipto()
241 memset(ch, 0, sizeof(*ch)); in image_chunk_skipto()
263 blk = ch->ch_block + (ch->ch_size / secsz); in image_chunk_append()
264 ofs = ch->ch_u.file.ofs + ch->ch_size; in image_chunk_append()
267 ch = malloc(sizeof(*ch)); in image_chunk_append()
270 memset(ch, 0, sizeof(*ch)); in image_chunk_append()
[all …]
/freebsd-12.1/sys/arm/allwinner/
H A Da10_hdmiaudio.c151 error = SUNXI_DMA_TRANSFER(ch->dmac, ch->dmachan, in a10hdmiaudio_transfer()
152 ch->physaddr + ch->pos, TX_FIFO, ch->blocksize); in a10hdmiaudio_transfer()
154 ch->run = 0; in a10hdmiaudio_transfer()
174 SUNXI_DMA_SET_CONFIG(ch->dmac, ch->dmachan, &conf); in a10hdmiaudio_dmaconfig()
185 ch->pos += ch->blocksize; in a10hdmiaudio_dmaintr()
198 ch->pos = 0; in a10hdmiaudio_start()
211 SUNXI_DMA_HALT(ch->dmac, ch->dmachan); in a10hdmiaudio_stop()
231 ch->dmachan = SUNXI_DMA_ALLOC(ch->dmac, true, a10hdmiaudio_dmaintr, ch); in a10hdmiaudio_chan_init()
256 return (ch); in a10hdmiaudio_chan_init()
265 SUNXI_DMA_FREE(ch->dmac, ch->dmachan); in a10hdmiaudio_chan_free()
[all …]
/freebsd-12.1/sys/dev/sound/pci/
H A Dhdspe-pcm.c110 hdspe_hw_mixer(ch, ch->lslot, ch->lslot, in hdspechan_setgain()
112 hdspe_hw_mixer(ch, ch->rslot, ch->rslot, in hdspechan_setgain()
358 ch->data = malloc(ch->size, M_HDSPE, M_NOWAIT); in hdspechan_init()
368 if (sndbuf_setup(ch->buffer, ch->data, ch->size) != 0) { in hdspechan_init()
383 ch = data; in hdspechan_trigger()
428 ch = data; in hdspechan_getptr()
449 ch = data; in hdspechan_free()
472 ch = data; in hdspechan_setformat()
495 ch = data; in hdspechan_setspeed()
565 ch = data; in hdspechan_setblocksize()
[all …]
H A Dt4dwave.c414 cr[3]=(ch->fmc<<14) | (ch->rvol<<7) | (ch->cvol); in tr_wrch()
415 cr[4]=(ch->gvsel<<31) | (ch->pan<<24) | (ch->vol<<16) | (ch->ctrl<<12) | (ch->ec); in tr_wrch()
423 cr[0]=(ch->cso<<16) | (ch->alpha<<4) | (ch->fms); in tr_wrch()
424 cr[2]=(ch->eso<<16) | (ch->delta); in tr_wrch()
429 cr[0]=((ch->delta & 0xff)<<24) | (ch->cso); in tr_wrch()
430 cr[2]=((ch->delta>>8)<<24) | (ch->eso); in tr_wrch()
431 cr[3]|=(ch->alpha<<20) | (ch->fms<<16) | (ch->fmc<<14); in tr_wrch()
561 ch->lba = sndbuf_getbufaddr(ch->buffer); in trpchan_trigger()
563 ch->eso = (sndbuf_getsize(ch->buffer) / sndbuf_getalign(ch->buffer)) - 1; in trpchan_trigger()
564 ch->rvol = ch->cvol = 0x7f; in trpchan_trigger()
[all …]
H A Dmaestro.c853 wpwa = (ch->phys - ch->base) >> 1; in aggch_start_dac()
968 wpwa2 = (ch->srcphys + ch->parent->bufsz/2 - ch->base) >> 1; in aggch_start_adc()
973 wpwa = (ch->phys - ch->base) >> 1; in aggch_start_adc()
1132 mixdown(ch->src + last, ch->sink + last, ch->buflen - last); in aggch_feed_adc_mono()
1133 mixdown(ch->src, ch->sink, cur); in aggch_feed_adc_mono()
1168 cp1 = (ch->stereo? ch->parent->bufsz >> 2 : ch->parent->bufsz >> 1) in suppress_rec_jitter()
1192 return (48000 * (ch->blklen << (!ch->qs16 + !ch->stereo)) in calc_timer_div()
1376 ch->stereo = ch->qs16 = ch->us = 0; in aggpch_setformat()
1404 blkcnt = (ch->speed << (ch->stereo + ch->qs16)) / (50 * blocksize); in aggpch_setblocksize()
1450 return ch->qs16 && ch->stereo in aggpch_getptr()
[all …]
/freebsd-12.1/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-12.1/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-12.1/sys/netpfil/ipfw/
H A Dip_fw_iface.c62 #define CHAIN_TO_II(ch) ((struct namedobj_instance *)ch->ifcfg) argument
107 IPFW_UH_WLOCK(ch); in ipfw_kifhandler()
237 IPFW_UH_WLOCK(ch); in vnet_ipfw_iface_init()
239 ch->ifcfg = ii; in vnet_ipfw_iface_init()
272 IPFW_UH_WLOCK(ch); in vnet_ipfw_iface_destroy()
274 ch->ifcfg = NULL; in vnet_ipfw_iface_destroy()
433 IPFW_WLOCK(ch); in handle_ifattach()
436 IPFW_WUNLOCK(ch); in handle_ifattach()
450 IPFW_WLOCK(ch); in handle_ifdetach()
453 IPFW_WUNLOCK(ch); in handle_ifdetach()
[all …]
H A Dip_fw_eaction.c202 IPFW_UH_WLOCK(ch); in create_eaction_obj()
222 IPFW_WLOCK(ch); in create_eaction_obj()
224 IPFW_WUNLOCK(ch); in create_eaction_obj()
242 IPFW_WLOCK(ch); in destroy_eaction_obj()
245 IPFW_WUNLOCK(ch); in destroy_eaction_obj()
271 IPFW_WLOCK(ch); in reset_eaction_rules()
284 if (ipfw_reset_eaction(ch, ch->map[i], eaction_id, in reset_eaction_rules()
295 IPFW_WUNLOCK(ch); in reset_eaction_rules()
324 IPFW_UH_WLOCK(ch); in ipfw_eaction_uninit()
361 IPFW_UH_WLOCK(ch); in ipfw_del_eaction()
[all …]
/freebsd-12.1/lib/libc/iconv/
H A Dcitrus_prop.c129 if (ch == 'x' || ch == 'X') { \ in _CITRUS_PROP_READ_UINT_COMMON()
152 int base, ch; local
156 *result = ch;
290 (ch == ';' || _bcs_isspace(ch)))) { in _citrus_prop_read_str()
302 s[n] = ch; in _citrus_prop_read_str()
324 int ch; in _citrus_prop_read_symbol() local
329 if (ch != '_' && _bcs_isalnum(ch) == 0) in _citrus_prop_read_symbol()
331 s[m] = ch; in _citrus_prop_read_symbol()
334 if (ch == '_' || _bcs_isalnum(ch) != 0) in _citrus_prop_read_symbol()
365 if (ch != '=' && ch != ':') in _citrus_prop_parse_element()
[all …]
/freebsd-12.1/contrib/less/
H A Dcharset.c481 LWCHAR ch; in prutfchar()
487 else if (ch < 128 && control_char(ch))
511 utf_len(ch) in utf_len() argument
640 LWCHAR ch;
693 LWCHAR ch; local
709 ch = 0;
723 ch = 0;
726 return ch;
763 LWCHAR ch; in is_in_table()
793 LWCHAR ch; in is_composing_char()
[all …]
/freebsd-12.1/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_ulpi.c254 ch = NULL; in ng_l2cap_l2ca_con_rsp_req()
294 ch->state = ((ch->scid == NG_L2CAP_ATT_CID)|| in ng_l2cap_l2ca_con_rsp_req()
305 ch = NULL; in ng_l2cap_l2ca_con_rsp_req()
511 ch->scid); in ng_l2cap_l2ca_cfg_req()
518 bcopy(&ip->oflow, &ch->oflow, sizeof(ch->oflow)); in ng_l2cap_l2ca_cfg_req()
538 cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(ch->con), in ng_l2cap_l2ca_cfg_req()
563 ch->state = ((ch->scid == NG_L2CAP_ATT_CID)|| in ng_l2cap_l2ca_cfg_req()
696 bcopy(&ip->iflow, &ch->iflow, sizeof(ch->iflow)); in ng_l2cap_l2ca_cfg_rsp_req()
709 cmd = ng_l2cap_new_cmd(ch->con, ch, ch->ident, NG_L2CAP_CFG_RSP, in ng_l2cap_l2ca_cfg_rsp_req()
1059 ch->imtu, ch->scid); in ng_l2cap_l2ca_receive()
[all …]

12345678910>>...71