| /netbsd-src/sys/arch/x68k/dev/ |
| H A D | ite.c | 87 #define SUBR_INIT(ip) ip->isw->ite_init(ip) argument 88 #define SUBR_DEINIT(ip) ip->isw->ite_deinit(ip) argument 89 #define SUBR_PUTC(ip,c,dy,dx,m) ip->isw->ite_putc(ip,c,dy,dx,m) argument 90 #define SUBR_CURSOR(ip,fl argument 91 SUBR_CLEAR(ip,sy,sx,h,w) global() argument 92 SUBR_SCROLL(ip,sy,sx,count,dir) global() argument 204 struct ite_softc *ip; iteattach() local 244 struct ite_softc *ip; iteinit() local 286 struct ite_softc *ip; iteon() local 324 struct ite_softc *ip; iteoff() local 364 struct ite_softc *ip; iteopen() local 551 struct ite_softc *ip; ite_reinit() local 564 ite_reset(struct ite_softc * ip) ite_reset() argument 919 ite_sendstr(struct ite_softc * ip,const char * str) ite_sendstr() argument 927 alignment_display(struct ite_softc * ip) alignment_display() argument 938 snap_cury(struct ite_softc * ip) snap_cury() argument 950 ite_dnchar(struct ite_softc * ip,int n) ite_dnchar() argument 965 ite_inchar(struct ite_softc * ip,int n) ite_inchar() argument 983 ite_clrtoeol(struct ite_softc * ip) ite_clrtoeol() argument 994 ite_clrtobol(struct ite_softc * ip) ite_clrtobol() argument 1003 ite_clrline(struct ite_softc * ip) ite_clrline() argument 1012 ite_clrtoeos(struct ite_softc * ip) ite_clrtoeos() argument 1024 ite_clrtobos(struct ite_softc * ip) ite_clrtobos() argument 1035 ite_clrscreen(struct ite_softc * ip) ite_clrscreen() argument 1043 ite_dnline(struct ite_softc * ip,int n) ite_dnline() argument 1064 ite_inline(struct ite_softc * ip,int n) ite_inline() argument 1089 ite_index(struct ite_softc * ip) ite_index() argument 1102 ite_lf(struct ite_softc * ip) ite_lf() argument 1125 ite_crlf(struct ite_softc * ip) ite_crlf() argument 1133 ite_cr(struct ite_softc * ip) ite_cr() argument 1142 ite_rlf(struct ite_softc * ip) ite_rlf() argument 1165 ite_argnum(struct ite_softc * ip) ite_argnum() argument 1182 ite_zargnum(struct ite_softc * ip) ite_zargnum() argument 1201 struct ite_softc *ip; ite_putstr() local 1218 iteputchar(int c,struct ite_softc * ip) iteputchar() argument 2359 iteprecheckwrap(struct ite_softc * ip) iteprecheckwrap() argument 2376 itecheckwrap(struct ite_softc * ip) itecheckwrap() argument 2504 struct ite_softc *ip; itecninit() local 2519 itecnfinish(struct ite_softc * ip) itecnfinish() argument 2545 struct ite_softc *ip = getitesp(dev); itecnputc() local [all...] |
| /netbsd-src/sys/arch/amiga/dev/ |
| H A D | ite.c | 88 #define SUBR_INIT(ip) (ip)->grf->g_iteinit(ip) argument 89 #define SUBR_DEINIT(ip) (ip)->grf->g_itedeinit(ip) argument 90 #define SUBR_PUTC(ip,c,dy,dx,m) (ip)->grf->g_iteputc(ip,c,dy,dx,m) argument 91 #define SUBR_CURSOR(ip,flg) (ip)->grf->g_itecursor(ip,flg) argument 92 #define SUBR_CLEAR(ip,sy,sx,h,w) (ip)->grf->g_iteclear(ip,sy,sx,h,w) argument 93 #define SUBR_SCROLL(ip,sy,sx,count,dir) \ argument 94 (ip)->grf->g_itescroll(ip,sy,sx,count,dir) 119 void iteputchar(int c, struct ite_softc *ip); 202 struct ite_softc *ip; in iteattach() local 207 ip = device_private(self); in iteattach() [all …]
|
| H A D | ite_ul.c | 103 #define UL_FG(ip) 0xFFFF argument 104 #define UL_BG(ip) 0x0000 argument 140 ulowell_init(struct ite_softc *ip) in ulowell_init() argument 149 ba = (volatile struct gspregs *) ip->grf->g_regkva; in ulowell_init() 151 ip->font = kernel_font; in ulowell_init() 152 ip->font_lo = kernel_font_lo; in ulowell_init() 153 ip->font_hi = kernel_font_hi; in ulowell_init() 154 ip->ftwidth = kernel_font_width; in ulowell_init() 155 ip->ftheight = kernel_font_height; in ulowell_init() 156 ip->ftbaseline = kernel_font_baseline; in ulowell_init() [all …]
|
| H A D | ite_rh.c | 95 rh_init(struct ite_softc *ip) in rh_init() argument 100 if (ip->grf == 0) in rh_init() 101 ip->grf = &grf_softc[ip - ite_softc]; in rh_init() 104 ip->priv = ip->grf->g_data; in rh_init() 105 md = (struct MonDef *) ip->priv; in rh_init() 107 ip->cols = md->TX; in rh_init() 108 ip->rows = md->TY; in rh_init() 113 rh_cursor(struct ite_softc *ip, int flag) in rh_cursor() argument 116 volatile u_char *ba = ip->grf->g_regkva; in rh_cursor() 129 int pos = ip->curx + ip->cury * ip->cols; in rh_cursor() [all …]
|
| H A D | ite_cl.c | 65 void cl_init(struct ite_softc *ip); 66 void cl_cursor(struct ite_softc *ip, int flag); 67 void cl_deinit(struct ite_softc *ip); 68 void cl_putc(struct ite_softc *ip, int c, int dy, int dx, int mode); 69 void cl_clear(struct ite_softc *ip, int sy, int sx, int h, int w); 70 void cl_scroll(struct ite_softc *ip, int sy, int sx, int count, int dir); 105 cl_init(struct ite_softc *ip) in cl_init() argument 109 ip->priv = ip->grf->g_data; in cl_init() 110 md = (struct grfcltext_mode *) ip->priv; in cl_init() 112 ip->cols = md->cols; in cl_init() [all …]
|
| H A D | ite_et.c | 65 void et_init(struct ite_softc *ip); 66 void et_cursor(struct ite_softc *ip, int flag); 67 void et_deinit(struct ite_softc *ip); 68 void et_putc(struct ite_softc *ip, int c, int dy, int dx, int mode); 69 void et_clear(struct ite_softc *ip, int sy, int sx, int h, int w); 70 void et_scroll(struct ite_softc *ip, int sy, int sx, int count, int dir); 108 et_init(struct ite_softc *ip) in et_init() argument 112 ip->priv = ip->grf->g_data; in et_init() 113 md = (struct grfettext_mode *) ip->priv; in et_init() 115 ip->cols = md->cols; in et_init() [all …]
|
| /netbsd-src/tests/ipf/expected/ |
| H A D | n5 | 1 > zx0 ip #0 20(20) 255 10.1.1.0 > 10.1.1.2 2 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.1.2 3 > zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 4 > zx0 ip #0 40(20) 6 10.1.1.2,1025 > 10.1.1.1,1025 5 > zx0 ip #0 40(20) 6 10.1.1.2,1026 > 10.1.1.1,1025 6 > zx0 ip #0 20(20) 255 10.2.2.1 > 10.1.2.1 7 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.2.1 8 < zx0 ip #0 20(20) 255 10.1.1.1 > 10.1.1.2 9 < zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 10 < zx0 ip #0 20(20) 255 10.2.2.1 > 10.2.1.1 [all …]
|
| H A D | n1 | 1 > zx0 ip #0 20(20) 255 10.1.1.0 > 10.1.1.2 2 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.1.2 3 > zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 4 > zx0 ip #0 40(20) 6 10.1.1.2,1025 > 10.1.1.1,1025 5 > zx0 ip #0 40(20) 6 10.1.1.2,1026 > 10.1.1.1,1025 6 > zx0 ip #0 20(20) 255 10.2.2.1 > 10.1.2.1 7 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.2.1 8 < zx0 ip #0 20(20) 255 10.1.1.1 > 10.1.1.2 9 < zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 10 < zx0 ip #0 20(20) 255 10.2.2.1 > 10.2.1.1 [all …]
|
| H A D | n2 | 1 > zx0 ip #0 40(20) 6 10.2.2.2,10000 > 10.1.1.1,1025 2 > zx0 ip #0 40(20) 6 10.2.2.2,10001 > 10.1.1.2,1025 3 > zx0 ip #0 20(20) 0 10.1.1.0 > 10.1.1.2 4 > zx0 ip #0 20(20) 0 10.1.1.1 > 10.1.2.1 5 > zx0 ip #0 40(20) 6 10.1.1.2,1025 > 10.1.1.1,1025 6 > zx0 ip #0 40(20) 6 10.1.1.2,1025 > 10.1.1.1,1025 7 > zx0 ip #0 40(20) 6 10.1.1.2,1026 > 10.1.1.1,1025 8 > zx0 ip #0 28(20) 17 10.1.1.2,1025 > 10.1.1.1,1025 9 > zx0 ip #0 40(20) 6 10.1.1.3,2000 > 10.1.2.1,80 10 > zx0 ip #0 40(20) 6 10.1.1.3,2001 > 10.1.3.1,80 [all …]
|
| H A D | n6 | 1 < zx0 ip #0 40(20) 6 10.2.2.2,12345 > 10.2.2.1,10023 2 < zx0 ip #0 40(20) 6 10.2.2.2,12345 > 10.1.1.2,23 3 < zx0 ip #0 40(20) 6 10.3.0.1,12345 > 10.1.2.2,23 4 < zx0 ip #0 40(20) 6 10.3.0.1,12345 > 10.2.2.2,23 5 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.2.2.1,10023 6 < zx0 ip #0 40(20) 6 10.2.2.2,12345 > 10.1.1.1,53 7 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.1.1.1,53 8 < zx0 ip #0 40(20) 6 10.2.2.2,12345 > 10.1.0.0,23 9 < zx0 ip #0 40(20) 6 10.3.3.3,12345 > 10.1.0.0,23 10 < zx0 ip #0 28(20) 17 10.2.2.2,12345 > 10.1.1.0,53 [all …]
|
| H A D | n11 | 1 > zx0 ip #0 20(20) 255 10.1.1.0 > 10.1.1.2 2 > zx0 ip #0 20(20) 255 1.6.7.8 > 10.1.1.2 3 > zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 4 > zx0 ip #0 20(20) 255 10.2.2.1 > 10.1.2.1 5 > zx0 ip #0 20(20) 255 10.2.2.2 > 10.1.2.1 6 < zx0 ip #0 20(20) 255 10.1.1.1 > 10.1.1.2 7 < zx0 ip #0 20(20) 255 10.1.1.2 > 10.1.1.1 8 < zx0 ip #0 20(20) 255 10.2.2.1 > 10.2.1.1 9 < zx0 ip #0 20(20) 255 10.2.2.2 > 10.2.1.1 10 < zx0 ip #0 20(20) 255 10.2.2.3 > 10.1.1.1 [all …]
|
| /netbsd-src/sys/arch/hp300/stand/common/ |
| H A D | ite_subr.c | 53 ite_fontinfo(struct ite_data *ip) in ite_fontinfo() argument 55 u_long fontaddr = getword(ip, getword(ip, FONTROM) + FONTADDR); in ite_fontinfo() 57 ip->ftheight = getbyte(ip, fontaddr + FONTHEIGHT); in ite_fontinfo() 58 ip->ftwidth = getbyte(ip, fontaddr + FONTWIDTH); in ite_fontinfo() 59 ip->rows = ip->dheight / ip->ftheight; in ite_fontinfo() 60 ip->cols = ip->dwidth / ip->ftwidth; in ite_fontinfo() 62 if (ip->fbwidth > ip->dwidth) { in ite_fontinfo() 66 ip->fontx = ip->dwidth; in ite_fontinfo() 67 ip->fonty = 0; in ite_fontinfo() 68 ip->cpl = (ip->fbwidth - ip->dwidth) / ip->ftwidth; in ite_fontinfo() [all …]
|
| H A D | ite_dumb.c | 73 static void dumb_fontinit(struct ite_data *ip); 75 static void dumb_flip_cursor(struct ite_data *ip); 82 dumb_init(struct ite_data *ip) in dumb_init() argument 85 ip->bmv = dumb_windowmove; /* unused */ in dumb_init() 86 ite_fontinfo(ip); in dumb_init() 87 dumb_clear(ip, 0, 0, ip->rows, ip->cols); in dumb_init() 88 dumb_fontinit(ip); in dumb_init() 92 dumb_fontinit(struct ite_data *ip) in dumb_fontinit() argument 94 int bytewidth = (((ip->ftwidth - 1) / 8) + 1); in dumb_fontinit() 95 int glyphsize = bytewidth * ip->ftheight; in dumb_fontinit() [all …]
|
| H A D | ite.c | 133 struct ite_data *ip; in iteconfig() local 151 ip = &ite_data[i]; in iteconfig() 152 ip->isw = &itesw[dtype]; in iteconfig() 153 ip->regbase = (void *)fb; in iteconfig() 155 ip->fbbase = (void *)(*((u_char *)ip->regbase + fboff) << 16); in iteconfig() 157 if (ip->regbase >= (void *)DIOIIBASE) in iteconfig() 158 ip->fbbase = (char*)ip->fbbase + (int)ip->regbase; in iteconfig() 159 ip->fbwidth = fb->fbwmsb << 8 | fb->fbwlsb; in iteconfig() 160 ip->fbheight = fb->fbhmsb << 8 | fb->fbhlsb; in iteconfig() 161 ip->dwidth = fb->dwmsb << 8 | fb->dwlsb; in iteconfig() [all …]
|
| /netbsd-src/bin/stty/ |
| H A D | key.c | 119 ksearch(char ***argvp, struct info *ip) in ksearch() argument 126 ip->off = 1; in ksearch() 129 ip->off = 0; in ksearch() 135 if (!(kp->flags & F_OFFOK) && ip->off) { in ksearch() 139 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) { in ksearch() 143 kp->f(ip); in ksearch() 148 f_all(struct info *ip) in f_all() argument 150 print(&ip->t, &ip->win, ip->queue, ip->ldisc, STTY_BSD); in f_all() 154 f_cbreak(struct info *ip) in f_cbreak() argument 156 if (ip->off) in f_cbreak() [all …]
|
| /netbsd-src/external/bsd/ipf/dist/ipsend/ |
| H A D | iptests.c | 128 void ip_test1(dev, mtu, ip, gwip, ptest) in ip_test1() argument 131 ip_t *ip; 143 IP_HL_A(ip, sizeof(*ip) >> 2); 144 IP_V_A(ip, IPVERSION); 145 ip->ip_tos = 0; 146 ip->ip_off = 0; 147 ip->ip_ttl = 60; 148 ip->ip_p = IPPROTO_UDP; 149 ip->ip_sum = 0; 150 u = (udphdr_t *)(ip + 1); [all …]
|
| H A D | ip.c | 89 int send_ip(nfd, mtu, ip, gwip, frag) in send_ip() argument 91 ip_t *ip; 128 bcopy((char *)ip, (char *)&ipsv, sizeof(*ip)); 130 iplen = ip->ip_len; 131 ip->ip_len = htons(iplen); 133 if (!IP_V(ip)) 134 IP_V_A(ip, IPVERSION); 135 if (!ip->ip_id) 136 ip->ip_id = htons(id++); 137 if (!ip->ip_ttl) [all …]
|
| H A D | ipsend.c | 99 static void do_icmp(ip, args) in do_icmp() argument 100 ip_t *ip; in do_icmp() 106 ip->ip_p = IPPROTO_ICMP; 107 ip->ip_len += sizeof(*ic); 108 ic = (struct icmp *)(ip + 1); 150 int send_packets(dev, mtu, ip, gwip) in send_packets() argument 153 ip_t *ip; 161 return send_packet(wfd, mtu, ip, gwip); 165 udpcksum(ip_t *ip, struct udphdr *udp, int len) in udpcksum() argument 183 ph.h.src = ip->ip_src.s_addr; in udpcksum() [all …]
|
| /netbsd-src/usr.sbin/lpr/lpd/ |
| H A D | key.c | 104 ksearch(char ***argvp, struct info *ip) in ksearch() argument 111 ip->off = 1; in ksearch() 114 ip->off = 0; in ksearch() 120 if (!(kp->flags & F_OFFOK) && ip->off) { in ksearch() 124 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) { in ksearch() 129 kp->f(ip); in ksearch() 134 f_cbreak(struct info *ip) in f_cbreak() argument 137 if (ip->off) in f_cbreak() 138 f_sane(ip); in f_cbreak() 140 ip->t.c_iflag |= BRKINT|IXON|IMAXBEL; in f_cbreak() [all …]
|
| /netbsd-src/sys/arch/arm/arm/ |
| H A D | cpu_in_cksum_buffer.S | 66 adds ip, r2, #0 /* initialize accumulator/clear carry */ 117 adcs ip, ip, r4 118 adcs ip, ip, r5 120 adcs ip, ip, r6 121 adcs ip, ip, r7 123 adcs ip, ip, r4 124 adcs ip, ip, r5 126 adcs ip, ip, r6 127 adcs ip, ip, r7 129 adcs ip, ip, r4 [all …]
|
| /netbsd-src/sys/lib/libsa/ |
| H A D | ip.c | 65 _sendip(struct iodesc *d, struct ip *ip, size_t len) in _sendip() argument 69 if (ip->ip_dst.s_addr == INADDR_BROADCAST || ip->ip_src.s_addr == 0 || in _sendip() 70 netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask)) { in _sendip() 71 ea = arpwhohas(d, ip->ip_dst); in _sendip() 76 return sendether(d, ip, len, ea, ETHERTYPE_IP); in _sendip() 87 struct ip *ip; in sendip() local 89 ip = (struct ip *)pkt - 1; in sendip() 90 len += sizeof(*ip); in sendip() 92 memset(ip, 0, sizeof(*ip)); in sendip() 94 ip->ip_v = IPVERSION; in sendip() [all …]
|
| /netbsd-src/common/lib/libc/arch/arm/string/ |
| H A D | memset.S | 112 mov ip, r0 116 ands r2, ip, #0x03 /* Get the bottom two bits */ 125 tst ip, #0x04 /* Quad-align for Xscale */ 134 strne r3, [ip], #0x04 146 strdhs r2, r3, [ip], #0x08 147 strdhs r2, r3, [ip], #0x08 148 strdhs r2, r3, [ip], #0x08 149 strdhs r2, r3, [ip], #0x08 150 strdhs r2, r3, [ip], #0x08 151 strdhs r2, r3, [ip], #0x08 [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | cidr_match.c | 188 VSTRING *cidr_match_parse(CIDR_MATCH *ip, char *pattern, int match, in cidr_match_parse() argument 227 ip->addr_family = CIDR_MATCH_ADDR_FAMILY(pattern); in cidr_match_parse() 228 ip->addr_bit_count = CIDR_MATCH_ADDR_BIT_COUNT(ip->addr_family); in cidr_match_parse() 229 ip->addr_byte_count = CIDR_MATCH_ADDR_BYTE_COUNT(ip->addr_family); in cidr_match_parse() 232 } else if ((ip->mask_shift = atoi(mask)) > ip->addr_bit_count) { in cidr_match_parse() 234 } else if (inet_pton(ip->addr_family, pattern, ip->net_bytes) != 1) { in cidr_match_parse() 244 if (ip->mask_shift > 0) { in cidr_match_parse() 246 memset(ip->mask_bytes, ~0U, ip->addr_byte_count); in cidr_match_parse() 247 mask_addr(ip->mask_bytes, ip->addr_byte_count, ip->mask_shift); in cidr_match_parse() 249 memset(ip->mask_bytes, 0, ip->addr_byte_count); in cidr_match_parse() [all …]
|
| /netbsd-src/external/bsd/liblzf/dist/ |
| H A D | lzf_c.c | 108 const u8 *ip = (const u8 *)in_data; in lzf_compress_r() local 110 const u8 *in_end = ip + in_len; in lzf_compress_r() 136 *hslot++ = ip; in lzf_compress_r() 142 hval = FRST (ip); in lzf_compress_r() 143 while (ip < in_end - 2) in lzf_compress_r() 145 hval = NEXT (hval, ip); in lzf_compress_r() 147 ref = *hslot; *hslot = ip; in lzf_compress_r() 151 && ref < ip /* the next test will actually take care of this, but this is faster */ in lzf_compress_r() 153 && (off = ip - ref - 1) < MAX_OFF in lzf_compress_r() 154 && ip + 4 < in_end in lzf_compress_r() [all …]
|
| /netbsd-src/sys/arch/acorn32/stand/lib/ |
| H A D | riscoscalls.S | 35 mov ip, sp 36 stmfd sp!, {fp, ip, lr, pc} 37 sub fp, ip, #4 42 mov ip, sp 43 stmfd sp!, {fp, ip, lr, pc} 44 sub fp, ip, #4 49 mov ip, sp 50 stmfd sp!, {fp, ip, lr, pc} 51 sub fp, ip, #4 56 mov ip, sp [all …]
|