Home
last modified time | relevance | path

Searched refs:chp (Results 1 – 25 of 29) sorted by relevance

12

/titanic_50/usr/src/uts/common/io/chxge/
H A Dch.c84 static void ch_free_dma_handles(ch_t *chp);
85 static void ch_set_name(ch_t *chp, int unit);
86 static void ch_free_name(ch_t *chp);
87 static void ch_get_prop(ch_t *chp);
90 static void ch_free_dvma_handles(ch_t *chp);
364 ch_t *chp; in ch_attach() local
399 chp = (ch_t *)kmem_zalloc(sizeof (ch_t), KM_SLEEP); in ch_attach()
401 if (chp == NULL) { in ch_attach()
412 gchp[unit] = chp; in ch_attach()
415 PRINT(("attach macinfo: %p chp: %p\n", macinfo, chp)); in ch_attach()
[all …]
H A Dpe.c85 static int ch_set_config_data(ch_t *chp);
86 void pe_rbuf_pool_free(ch_t *chp);
89 static int pe_change_mtu(ch_t *chp);
109 static int pe_make_fake_arp(ch_t *chp, unsigned char *arpp);
660 rm.chp = sa; in pe_set_promiscuous()
714 rm.chp = sa; in pe_set_mc()
907 pe_attach(ch_t *chp) in pe_attach() argument
913 (void) ch_set_config_data(chp); in pe_attach()
915 bi = pe_sa_init(chp); in pe_attach()
919 if (t1_init_sw_modules(chp, bi) < 0) in pe_attach()
[all …]
H A Dglue.c170 pe_ioctl(ch_t *chp, queue_t *q, mblk_t *mp) in pe_ioctl() argument
220 pe->pe_reg_val = reg = t1_sge_get_ptimeout(chp); in pe_ioctl()
222 pe->pe_reg_val = reg = t1_read_reg_4(chp, pe->addr); in pe_ioctl()
237 t1_sge_set_ptimeout(chp, pe->pe_reg_val); in pe_ioctl()
240 reg = t1_read_reg_4(chp, pe->addr); in pe_ioctl()
244 t1_write_reg_4(chp, pe->addr, pe->pe_reg_val); in pe_ioctl()
264 pe->pe_reg_val = reg = pci_config_get32(chp->ch_hpci, pe->addr); in pe_ioctl()
278 reg = pci_config_get32(chp->ch_hpci, pe->addr); in pe_ioctl()
282 pci_config_put32(chp->ch_hpci, pe->addr, pe->pe_reg_val); in pe_ioctl()
297 sep = sge_get_stat(chp->sge); in pe_ioctl()
[all …]
H A Dosdep.h85 #define adapter_name(chp) (chp->ch_name) argument
100 struct ch *chp; member
104 #define t1_rx_mode_promisc(rmp) (rmp->chp->ch_flags & PEPROMISC)
105 #define t1_rx_mode_allmulti(rmp) (rmp->chp->ch_flags & PEALLMULTI)
106 #define t1_rx_mode_mc_cnt(rmp) (rmp->chp->ch_mc_cnt)
H A Dch.h329 void t1_fatal_err(ch_t *chp);
340 void pe_mark_freelists(ch_t *chp);
/titanic_50/usr/src/lib/libadm/common/
H A Dckitem.c234 struct _choice_ *chp; local
261 chp = menup->choice;
262 for (i = 1; chp; i++) {
268 choice[nchoice++] = chp->token;
270 chp = chp->next;
276 chp = menup->choice;
277 for (i = 0; chp; i++) {
279 if (strncmp(chp->token, strval, (size_t)len) == 0) {
280 if (chp->token[len] == '\0') {
281 found = chp->token;
[all …]
/titanic_50/usr/src/uts/common/os/
H A Devchannels.c306 evch_chan_t *chp; in evch_zonefree() local
315 while ((chp = evch_dl_next(&eg->evch_list, NULL)) != NULL) { in evch_zonefree()
321 mutex_enter(&chp->ch_mutex); in evch_zonefree()
322 ASSERT(chp->ch_bindings == 0); in evch_zonefree()
323 ASSERT(evch_dl_getnum(&chp->ch_subscr) != 0 || in evch_zonefree()
324 chp->ch_holdpend == CH_HOLD_PEND_INDEF); in evch_zonefree()
327 while ((sdp = evch_dl_next(&chp->ch_subscr, NULL)) != NULL) { in evch_zonefree()
338 evch_evq_unsub(chp->ch_queue, sdp->sd_msub); in evch_zonefree()
346 evch_dl_del(&chp->ch_subscr, &sdp->sd_link); in evch_zonefree()
353 ASSERT(evch_dl_getnum(&chp->ch_subscr) == 0); in evch_zonefree()
[all …]
/titanic_50/usr/src/lib/libc/port/aio/
H A Daio_alloc.c68 chunk_t *chp = NULL; in chunk_alloc() local
75 chp = ptr; in chunk_alloc()
76 chp->chunk_next = chunk_list; in chunk_alloc()
77 chunk_list = chp; in chunk_alloc()
78 chp->chunk_size = size; in chunk_alloc()
82 return (chp); in chunk_alloc()
97 chunk_t *chp; in _aio_worker_alloc() local
106 if ((chp = chunk_alloc(chunksize)) == NULL) { in _aio_worker_alloc()
111 worker_freelist = (aio_worker_t *)(uintptr_t)(chp + 1); in _aio_worker_alloc()
167 chunk_t *chp; in _aio_req_alloc() local
[all …]
/titanic_50/usr/src/stand/lib/fs/common/
H A Dcache.c96 get_cache(cache_t *cap, head_t *chp) in get_cache() argument
117 if ((x_dev == cap->dev) && (*chp->cmp)(cap)) { in get_cache()
126 cap->link[Prev] = (cache_t *)chp->aged; in get_cache()
127 cap->link[Next] = chp->aged[Frst]; in get_cache()
128 chp->aged[Frst]->link[Prev] = cap; in get_cache()
129 chp->aged[Frst] = cap; in get_cache()
130 chp->hits += 1; in get_cache()
137 chp->searches += 1; in get_cache()
142 reclaim_cache(head_t *chp, int dev) in reclaim_cache() argument
154 cache_t *cpp = (cache_t *)chp; in reclaim_cache()
[all …]
/titanic_50/usr/src/tools/stabs/
H A Dmain.c227 struct child *chp; in find_child() local
229 for (chp = np->child; chp != NULL; chp = chp->next) { in find_child()
230 if (strcmp(chp->name, w) == 0) in find_child()
231 return (chp); in find_child()
258 struct child *chp; in addchild() local
261 chp = malloc(sizeof (*chp)); in addchild()
263 chp->name = w; in addchild()
266 if (chp->name == NULL) { in addchild()
271 chp->format = uc(chp->name); in addchild()
273 chp->format = w; in addchild()
[all …]
H A Dgenassym.c81 struct child *chp; in genassym_do_sou() local
108 chp = find_child(np, mlp->name); in genassym_do_sou()
109 if (chp == NULL) in genassym_do_sou()
111 format = uc(chp->format); in genassym_do_sou()
H A Dforth.c72 struct child *chp; in forth_do_sou() local
92 chp = find_child(np, mlp->name); in forth_do_sou()
93 if (chp == NULL) in forth_do_sou()
95 format = chp->format; in forth_do_sou()
/titanic_50/usr/src/cmd/fm/fmd/common/
H A Dfmd_case.c161 fmd_case_hash_t *chp = fmd_alloc(sizeof (fmd_case_hash_t), FMD_SLEEP); in fmd_case_hash_create() local
163 (void) pthread_rwlock_init(&chp->ch_lock, NULL); in fmd_case_hash_create()
164 chp->ch_hashlen = fmd.d_str_buckets; in fmd_case_hash_create()
165 chp->ch_hash = fmd_zalloc(sizeof (void *) * chp->ch_hashlen, FMD_SLEEP); in fmd_case_hash_create()
166 chp->ch_code_hash = fmd_zalloc(sizeof (void *) * chp->ch_hashlen, in fmd_case_hash_create()
168 chp->ch_count = 0; in fmd_case_hash_create()
170 return (chp); in fmd_case_hash_create()
180 fmd_case_hash_destroy(fmd_case_hash_t *chp) in fmd_case_hash_destroy() argument
182 fmd_free(chp->ch_hash, sizeof (void *) * chp->ch_hashlen); in fmd_case_hash_destroy()
183 fmd_free(chp->ch_code_hash, sizeof (void *) * chp->ch_hashlen); in fmd_case_hash_destroy()
[all …]
/titanic_50/usr/src/uts/common/io/
H A Dsysevent.c57 evchan_t *chp; member
160 if (ctl == NULL || ctl->chp == NULL) in sysevent_publish()
193 return (evch_usrpostevent(ctl->chp, ev, uargs.flags)); in sysevent_publish()
239 ctl->chp = evch_usrchanopen((const char *)chan_name, in sysevent_chan_open()
260 if (ctl == NULL || ctl->chp == NULL) in sysevent_chan_control()
269 rc = evch_usrcontrol_get(ctl->chp, uargs.cmd, &uargs.value); in sysevent_chan_control()
278 rc = evch_usrcontrol_set(ctl->chp, uargs.cmd, uargs.value); in sysevent_chan_control()
297 if (ctl == NULL || ctl->chp == NULL) in sysevent_subscribe()
338 rc = evch_usrsubscribe(ctl->chp, sid, class_info, in sysevent_subscribe()
359 if (ctl == NULL || ctl->chp == NULL) in sysevent_unsubscribe()
[all …]
/titanic_50/usr/src/uts/common/inet/sctp/
H A Dsctp_init.c148 sctp_chunk_hdr_t *chp; in sctp_init_mp() local
162 initlen = sizeof (*chp) + sizeof (*icp); in sctp_init_mp()
191 chp = (sctp_chunk_hdr_t *)mp->b_wptr; in sctp_init_mp()
192 chp->sch_id = CHUNK_INIT; in sctp_init_mp()
193 chp->sch_flags = 0; in sctp_init_mp()
195 U16_TO_ABE16(schlen, &(chp->sch_len)); in sctp_init_mp()
199 icp = (sctp_init_chunk_t *)(chp + 1); in sctp_init_mp()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c2131 struct subprocess *chp; local
2135 chp = (struct subprocess *) malloc(sizeof(struct subprocess));
2136 if (chp == NULL) {
2139 chp->pid = pid;
2140 chp->prog = prog;
2141 chp->done = done;
2142 chp->arg = arg;
2143 chp->next = children;
2144 children = chp;
2159 struct subprocess *chp, **prevp; local
[all …]
/titanic_50/usr/src/lib/libpkg/common/
H A Dgpkglist.c115 struct _choice_ *chp; in gpkglist() local
171 chp = menup->choice; in gpkglist()
172 for (n = 0; chp; /* void */) { in gpkglist()
173 nwpkg[n] = strdup(chp->token); in gpkglist()
175 chp = chp->next; in gpkglist()
/titanic_50/usr/src/cmd/sgs/libld/common/
H A Dutil.c105 Ld_heap *chp = ld_heap; in libld_malloc() local
113 if ((chp == NULL) || in libld_malloc()
114 (((size_t)chp->lh_end - (size_t)chp->lh_free) <= asize)) { in libld_malloc()
128 nhp->lh_next = chp; in libld_malloc()
132 ld_heap = chp = nhp; in libld_malloc()
134 vptr = chp->lh_free; in libld_malloc()
146 chp->lh_free = (void *)S_ROUND((size_t)chp->lh_free + asize, in libld_malloc()
H A Dldmain.c521 Ld_heap *chp, *php; in ld_ofl_cleanup() local
553 for (chp = ld_heap, php = NULL; chp; php = chp, chp = chp->lh_next) { in ld_ofl_cleanup()
/titanic_50/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_chkpnt.c72 snap_param_t *chp = (snap_param_t *)data; in ndmp_has_backup() local
76 strstr(name, chp->snp_name) == NULL) { in ndmp_has_backup()
81 chp->snp_found = 1; in ndmp_has_backup()
/titanic_50/usr/src/common/smbios/
H A Dsmb_info.c487 smbios_info_chassis(smbios_hdl_t *shp, id_t id, smbios_chassis_t *chp) in smbios_info_chassis() argument
501 bzero(chp, sizeof (smb_base_chassis_t)); in smbios_info_chassis()
503 bzero(chp->smbc_sku, sizeof (chp->smbc_sku)); in smbios_info_chassis()
506 chp->smbc_oemdata = ch->smbch_oemdata; in smbios_info_chassis()
507 chp->smbc_lock = (ch->smbch_type & SMB_CHT_LOCK) != 0; in smbios_info_chassis()
508 chp->smbc_type = ch->smbch_type & ~SMB_CHT_LOCK; in smbios_info_chassis()
509 chp->smbc_bustate = ch->smbch_bustate; in smbios_info_chassis()
510 chp->smbc_psstate = ch->smbch_psstate; in smbios_info_chassis()
511 chp->smbc_thstate = ch->smbch_thstate; in smbios_info_chassis()
512 chp->smbc_security = ch->smbch_security; in smbios_info_chassis()
[all …]
/titanic_50/usr/src/uts/sun4u/montecarlo/io/
H A Dpcf8574_nct.c453 pcf8574_channel_t *chp; in pcf8574_do_attach() local
545 chp = unitp->props.channels_in_use; i; --i, ++chp) { in pcf8574_do_attach()
547 (chp->io_dir == I2C_PROP_IODIR_IN || in pcf8574_do_attach()
548 chp->io_dir == I2C_PROP_IODIR_INOUT) << chp->port); in pcf8574_do_attach()
550 (chp->io_dir == I2C_PROP_IODIR_OUT || in pcf8574_do_attach()
551 chp->io_dir == I2C_PROP_IODIR_INOUT) << chp->port); in pcf8574_do_attach()
/titanic_50/usr/src/uts/common/fs/nfs/
H A Dnfs4_subr.c825 struct chtab **chp, struct nfs4_clnt *nfscl) in clget4() argument
833 if (newcl == NULL || chp == NULL || ci == NULL) in clget4()
837 *chp = NULL; in clget4()
928 *chp = cp; in clget4()
987 *chp = cp; in clget4()
993 struct chtab **chp, struct nfs4_clnt *nfscl) in nfs_clget4() argument
1030 error = clget4(&ci, svp, cr, newcl, chp, nfscl); in nfs_clget4()
2790 chhead_t *chp, *next; in clfini4_zone() local
2798 for (chp = nfscl->nfscl_chtable4; chp != NULL; chp = next) { in clfini4_zone()
2799 ASSERT(chp->ch_list == NULL); in clfini4_zone()
[all …]
H A Dnfs_subr.c309 struct chtab **chp, struct nfs_clnt *nfscl) in clget_impl() argument
317 if (newcl == NULL || chp == NULL || ci == NULL) in clget_impl()
321 *chp = NULL; in clget_impl()
409 *chp = cp; in clget_impl()
465 *chp = cp; in clget_impl()
471 struct chtab **chp) in clget() argument
478 return (clget_impl(ci, svp, cr, newcl, chp, nfscl)); in clget()
483 struct chtab **chp, struct nfs_clnt *nfscl) in acl_clget() argument
516 error = clget_impl(&ci, svp, cr, newcl, chp, nfscl); in acl_clget()
544 struct chtab **chp, struct nfs_clnt *nfscl) in nfs_clget() argument
[all …]
/titanic_50/usr/src/uts/common/io/scsi/targets/
H A Dses_ses.c627 ses_enchdr(uchar_t *buffer, int amt, uchar_t SubEncId, SesEncHdr *chp) in ses_enchdr() argument
638 gget8(buffer, off+1, chp->Subencid); in ses_enchdr()
639 gget8(buffer, off+2, chp->Ntypes); in ses_enchdr()
640 gget8(buffer, off+3, chp->VEnclen); in ses_enchdr()

12