Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 257) sorted by relevance

1234567891011

/linux-2.4.37.9/arch/ppc/boot/simple/
Dembed_config.c107 aschex_to_byte(u_char *cp) in aschex_to_byte() argument
111 c = *cp++; in aschex_to_byte()
124 c = *cp; in aschex_to_byte()
141 rpx_eth(bd_t *bd, u_char *cp) in rpx_eth() argument
146 bd->bi_enetaddr[i] = aschex_to_byte(cp); in rpx_eth()
147 cp += 2; in rpx_eth()
153 rpx_baseten(u_char *cp) in rpx_baseten() argument
159 while (*cp != '\n') { in rpx_baseten()
161 retval += (*cp) - '0'; in rpx_baseten()
162 cp++; in rpx_baseten()
[all …]
Diic.c24 volatile cpm8xx_t *cp; in iic_init() local
29 cp = (cpm8xx_t *)&(immap->im_cpm); in iic_init()
37 cp->cp_cpcr = (CPM_CR_RST | CPM_CR_FLG); in iic_init()
41 while (cp->cp_cpcr & (CPM_CR_RST | CPM_CR_FLG)); in iic_init()
46 cp->cp_cpmcr1 = 0; in iic_init()
47 cp->cp_cpmcr2 = 0; in iic_init()
48 cp->cp_cpmcr3 = 0; in iic_init()
49 cp->cp_cpmcr4 = 0; in iic_init()
50 cp->cp_rccr = 0; in iic_init()
52 iip = (iic_t *)&cp->cp_dparam[PROFF_IIC]; in iic_init()
[all …]
Dm8xx_tty.c41 volatile cpm8xx_t *cp; local
47 cp = cpmp;
48 sp = (smc_t*)&(cp->cp_smc[SMC_INDEX]);
49 up = (smc_uart_t *)&cp->cp_dparam[PROFF_CONS];
79 cp->cp_pbpar |= 0x00000cc0;
80 cp->cp_pbdir &= ~0x00000cc0;
81 cp->cp_pbodr &= ~0x00000cc0;
97 rbdf = (cbd_t *)&cp->cp_dpmem[dpaddr];
125 cp->cp_simode = 0x10000000;
128 cp->cp_brgc2 =
[all …]
/linux-2.4.37.9/drivers/usb/
Dauermain.c129 struct auerswald *cp = in auerchar_ctrlwrite_complete() local
139 wake_up(&cp->bufferwait); in auerchar_ctrlwrite_complete()
146 struct auerswald *cp; in auerswald_ctrlread_wretcomplete() local
150 cp = ((struct auerswald *) ((char *) (bp->list) - in auerswald_ctrlread_wretcomplete()
156 if (!auerswald_status_retry(urb->status) || !cp->usbdev) { in auerswald_ctrlread_wretcomplete()
162 wake_up(&cp->bufferwait); in auerswald_ctrlread_wretcomplete()
172 FILL_CONTROL_URB(bp->urbp, cp->usbdev, in auerswald_ctrlread_wretcomplete()
173 usb_rcvctrlpipe(cp->usbdev, 0), in auerswald_ctrlread_wretcomplete()
179 ret = auerchain_submit_urb_list(&cp->controlchain, bp->urbp, 1); in auerswald_ctrlread_wretcomplete()
191 struct auerswald *cp; in auerswald_ctrlread_complete() local
[all …]
Dauerisdn.c96 struct auerswald *cp = in auerisdn_dcw_complete() local
108 wake_up(&cp->bufferwait); in auerisdn_dcw_complete()
113 static void auerisdn_translate_incoming(struct auerswald *cp, in auerisdn_translate_incoming() argument
138 bp = auerbuf_getbuf(&cp->bufctl); in auerisdn_translate_incoming()
146 cp->isdn.dchannelservice.id | AUH_DIRECT | AUH_UNSPLIT; in auerisdn_translate_incoming()
158 cpu_to_le16(cp->isdn.dchannelservice. in auerisdn_translate_incoming()
161 FILL_CONTROL_URB(bp->urbp, cp->usbdev, in auerisdn_translate_incoming()
162 usb_sndctrlpipe(cp->usbdev, 0), in auerisdn_translate_incoming()
166 ret = auerchain_submit_urb(&cp->controlchain, bp->urbp); in auerisdn_translate_incoming()
186 struct auerswald *cp = in auerisdn_dispatch_dc() local
[all …]
Dauerchar.c113 struct auerswald *cp = NULL; in auerchar_open() local
125 cp = auerdev_table[dtindex]; in auerchar_open()
126 if (cp == NULL) { in auerchar_open()
130 if (down_interruptible(&cp->mutex)) { in auerchar_open()
156 cp->maxControlLength + AUH_SIZE); in auerchar_open()
161 cp->open_count++; in auerchar_open()
162 ccp->auerdev = cp; in auerchar_open()
163 dbg("open %s as /dev/usb/%s", cp->dev_desc, cp->name); in auerchar_open()
164 up(&cp->mutex); in auerchar_open()
172 ofail:up(&cp->mutex); in auerchar_open()
[all …]
/linux-2.4.37.9/drivers/net/
D8139cp.c374 #define cpr8(reg) readb(cp->regs + (reg))
375 #define cpr16(reg) readw(cp->regs + (reg))
376 #define cpr32(reg) readl(cp->regs + (reg))
377 #define cpw8(reg,val) writeb((val), cp->regs + (reg))
378 #define cpw16(reg,val) writew((val), cp->regs + (reg))
379 #define cpw32(reg,val) writel((val), cp->regs + (reg))
381 writeb((val), cp->regs + (reg)); \
382 readb(cp->regs + (reg)); \
385 writew((val), cp->regs + (reg)); \
386 readw(cp->regs + (reg)); \
[all …]
Dslhc.c84 static unsigned char *encode(unsigned char *cp, unsigned short n);
86 static unsigned char * put16(unsigned char *cp, unsigned short x);
176 put16(unsigned char *cp, unsigned short x) in put16() argument
178 *cp++ = x >> 8; in put16()
179 *cp++ = x; in put16()
181 return cp; in put16()
187 encode(unsigned char *cp, unsigned short n) in encode() argument
190 *cp++ = 0; in encode()
191 cp = put16(cp,n); in encode()
193 *cp++ = n; in encode()
[all …]
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_conn.c137 static int ip_vs_conn_hash(struct ip_vs_conn *cp) in ip_vs_conn_hash() argument
143 hash = ip_vs_conn_hashkey(cp->protocol, cp->caddr, cp->cport); in ip_vs_conn_hash()
147 if (!(cp->flags & IP_VS_CONN_F_HASHED)) { in ip_vs_conn_hash()
148 list_add(&cp->c_list, &ip_vs_conn_tab[hash]); in ip_vs_conn_hash()
149 cp->flags |= IP_VS_CONN_F_HASHED; in ip_vs_conn_hash()
150 atomic_inc(&cp->refcnt); in ip_vs_conn_hash()
168 static int ip_vs_conn_unhash(struct ip_vs_conn *cp) in ip_vs_conn_unhash() argument
174 hash = ip_vs_conn_hashkey(cp->protocol, cp->caddr, cp->cport); in ip_vs_conn_unhash()
177 if (cp->flags & IP_VS_CONN_F_HASHED) { in ip_vs_conn_unhash()
178 list_del(&cp->c_list); in ip_vs_conn_unhash()
[all …]
Dip_vs_core.c87 ip_vs_in_stats(struct ip_vs_conn *cp, struct sk_buff *skb) in ip_vs_in_stats() argument
89 struct ip_vs_dest *dest = cp->dest; in ip_vs_in_stats()
110 ip_vs_out_stats(struct ip_vs_conn *cp, struct sk_buff *skb) in ip_vs_out_stats() argument
112 struct ip_vs_dest *dest = cp->dest; in ip_vs_out_stats()
133 ip_vs_conn_stats(struct ip_vs_conn *cp, struct ip_vs_service *svc) in ip_vs_conn_stats() argument
135 spin_lock(&cp->dest->stats.lock); in ip_vs_conn_stats()
136 cp->dest->stats.conns++; in ip_vs_conn_stats()
137 spin_unlock(&cp->dest->stats.lock); in ip_vs_conn_stats()
157 struct ip_vs_conn *cp = NULL; in ip_vs_sched_persist() local
296 cp = ip_vs_conn_new(iph->protocol, in ip_vs_sched_persist()
[all …]
Dip_vs_app.c149 struct ip_vs_app * ip_vs_bind_app(struct ip_vs_conn *cp) in ip_vs_bind_app() argument
154 if (IP_VS_FWD_METHOD(cp) != IP_VS_CONN_F_MASQ) in ip_vs_bind_app()
157 if (cp->protocol != IPPROTO_TCP && cp->protocol != IPPROTO_UDP) in ip_vs_bind_app()
163 if (cp->app != NULL) { in ip_vs_bind_app()
166 return cp->app; in ip_vs_bind_app()
169 vapp = ip_vs_app_get(cp->protocol, cp->vport); in ip_vs_bind_app()
172 cp->app = vapp; in ip_vs_bind_app()
175 vapp->init_conn(vapp, cp); in ip_vs_bind_app()
184 int ip_vs_unbind_app(struct ip_vs_conn *cp) in ip_vs_unbind_app() argument
186 struct ip_vs_app *vapp = cp->app; in ip_vs_unbind_app()
[all …]
Dip_vs_ftp.c64 ip_vs_ftp_init_conn(struct ip_vs_app *vapp, struct ip_vs_conn *cp) in ip_vs_ftp_init_conn() argument
71 ip_vs_ftp_done_conn(struct ip_vs_app *vapp, struct ip_vs_conn *cp) in ip_vs_ftp_done_conn() argument
144 struct ip_vs_conn *cp, struct sk_buff *skb) in ip_vs_ftp_out() argument
158 if (cp->state != IP_VS_S_ESTABLISHED) in ip_vs_ftp_out()
161 if (cp->app_data == &ip_vs_ftp_pasv) { in ip_vs_ftp_out()
176 NIPQUAD(from), ntohs(port), NIPQUAD(cp->caddr), 0); in ip_vs_ftp_out()
182 cp->caddr, 0); in ip_vs_ftp_out()
185 cp->caddr, 0, in ip_vs_ftp_out()
186 cp->vaddr, port, in ip_vs_ftp_out()
189 cp->dest); in ip_vs_ftp_out()
[all …]
/linux-2.4.37.9/fs/
Dbinfmt_script.c19 char *cp, *i_name, *i_arg; in load_script() local
37 if ((cp = strchr(bprm->buf, '\n')) == NULL) in load_script()
38 cp = bprm->buf+BINPRM_BUF_SIZE-1; in load_script()
39 *cp = '\0'; in load_script()
40 while (cp > bprm->buf) { in load_script()
41 cp--; in load_script()
42 if ((*cp == ' ') || (*cp == '\t')) in load_script()
43 *cp = '\0'; in load_script()
47 for (cp = bprm->buf+2; (*cp == ' ') || (*cp == '\t'); cp++); in load_script()
48 if (*cp == '\0') in load_script()
[all …]
/linux-2.4.37.9/drivers/block/
Dcciss_scsi.c275 print_cmd(CommandList_struct *cp)
277 printk("queue:%d\n", cp->Header.ReplyQueue);
278 printk("sglist:%d\n", cp->Header.SGList);
279 printk("sgtot:%d\n", cp->Header.SGTotal);
280 printk("Tag:0x%08x/0x%08x\n", cp->Header.Tag.upper,
281 cp->Header.Tag.lower);
283 cp->Header.LUN.LunAddrBytes[0],
284 cp->Header.LUN.LunAddrBytes[1],
285 cp->Header.LUN.LunAddrBytes[2],
286 cp->Header.LUN.LunAddrBytes[3],
[all …]
/linux-2.4.37.9/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c73 static void sym_complete_error (hcb_p np, ccb_p cp);
74 static void sym_complete_ok (hcb_p np, ccb_p cp);
75 static int sym_compute_residual(hcb_p np, ccb_p cp);
137 static void sym_print_msg (ccb_p cp, char *label, u_char *msg) in sym_print_msg() argument
139 PRINT_ADDR(cp); in sym_print_msg()
160 void sym_print_xerr(ccb_p cp, int x_status) in sym_print_xerr() argument
163 PRINT_ADDR(cp); in sym_print_xerr()
167 PRINT_ADDR(cp); in sym_print_xerr()
171 PRINT_ADDR(cp); in sym_print_xerr()
175 PRINT_ADDR(cp); in sym_print_xerr()
[all …]
/linux-2.4.37.9/arch/mips/arc/
Dcmdline.c41 static char * __init move_firmware_args(char* cp) in move_firmware_args() argument
54 strcat(cp, used_arc[i][1]); in move_firmware_args()
55 cp += strlen(used_arc[i][1]); in move_firmware_args()
60 strcpy(cp, s); in move_firmware_args()
61 cp += strlen(s); in move_firmware_args()
63 *cp++ = ' '; in move_firmware_args()
70 return cp; in move_firmware_args()
75 char *cp; in prom_init_cmdline() local
80 cp = arcs_cmdline; in prom_init_cmdline()
85 cp = move_firmware_args(cp); in prom_init_cmdline()
[all …]
/linux-2.4.37.9/arch/ppc/kernel/
Dprep_nvram.c84 char *cp; in prep_nvram_get_var() local
88 cp = prep_nvram_first_var(); in prep_nvram_get_var()
89 while (cp != NULL) { in prep_nvram_get_var()
90 if ((strncmp(name, cp, namelen) == 0) in prep_nvram_get_var()
91 && (cp[namelen] == '=')) in prep_nvram_get_var()
93 return cp+namelen+1; in prep_nvram_get_var()
95 cp = prep_nvram_next_var(cp); in prep_nvram_get_var()
115 char *cp; in prep_nvram_next_var() local
118 cp = name; in prep_nvram_next_var()
119 while (((cp - ((char *) nvram->GEArea)) < nvram->Header.GELength) in prep_nvram_next_var()
[all …]
/linux-2.4.37.9/arch/ia64/sn/fakeprom/
Dfw-emu.c419 u8 *cp, *cpe, checksum; in acpi_checksum() local
424 for (cp=(u8*)p, cpe=cp+p->length; cp<cpe; cp++) in acpi_checksum()
425 checksum += *cp; in acpi_checksum()
432 u8 *cp, *cpe, checksum; in acpi_checksum_rsdp20() local
438 for (cp=(u8*)p, cpe=cp+20; cp<cpe; cp++) in acpi_checksum_rsdp20()
439 checksum += *cp; in acpi_checksum_rsdp20()
443 for (cp=(u8*)p, cpe=cp+length; cp<cpe; cp++) in acpi_checksum_rsdp20()
444 checksum += *cp; in acpi_checksum_rsdp20()
487 static char *cp, *cmd_line, *vendor; in sys_fw_init() local
510 cp = fw_mem; in sys_fw_init()
[all …]
/linux-2.4.37.9/drivers/isdn/hysdn/
Dhysdn_procconf.c54 uchar *cp = cnf->conf_line; in process_line() local
58 hysdn_addlog(cnf->card, "conf line: %s", cp); in process_line()
60 if (*cp == '-') { /* option */ in process_line()
61 cp++; /* point to option char */ in process_line()
63 if (*cp++ != 'c') in process_line()
66 while ((*cp <= '9') && (*cp >= '0')) in process_line()
67 i = i * 10 + *cp++ - '0'; /* get decimal number */ in process_line()
76 if (*cp == '*') { /* line to send */ in process_line()
78 hysdn_addlog(cnf->card, "conf chan=%d %s", cnf->channel, cp); in process_line()
97 uchar ch, *cp; in hysdn_conf_write() local
[all …]
/linux-2.4.37.9/drivers/scsi/
Dncr53c8xx.c225 #define CCB_DONE_VALID(cp) (((u_long) cp) != CCB_DONE_EMPTY) argument
229 #define CCB_DONE_VALID(cp) \ argument
230 ((((u_long) cp) & 0xffffffff00000000ul) && \
231 (((u_long) cp) & 0xfffffffful) != CCB_DONE_EMPTY)
799 ccb_p cp; member
988 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument
1320 static void ncr_complete (ncb_p np, ccb_p cp);
1322 static void ncr_free_ccb (ncb_p np, ccb_p cp);
1323 static void ncr_init_ccb (ncb_p np, ccb_p cp);
1339 static int ncr_prepare_nego(ncb_p np, ccb_p cp, u_char *msgptr);
[all …]
Dsym53c8xx.c1995 #define CCB_PHYS(cp,lbl) (cp->p_ccb + offsetof(struct ccb, lbl)) argument
2474 static void ncr_complete (ncb_p np, ccb_p cp);
2476 static void ncr_free_ccb (ncb_p np, ccb_p cp);
2494 static int ncr_prepare_nego(ncb_p np, ccb_p cp, u_char *msgptr);
2496 static int ncr_ic_nego(ncb_p np, ccb_p cp, Scsi_Cmnd *cmd, u_char *msgptr);
2501 static int ncr_scatter_896R1 (ncb_p np, ccb_p cp, Scsi_Cmnd *cmd);
2502 static int ncr_scatter (ncb_p np, ccb_p cp, Scsi_Cmnd *cmd);
2505 static void ncr_setsync (ncb_p np, ccb_p cp, u_char scntl3, u_char sxfer, u_char scntl4);
2508 static void ncr_setwide (ncb_p np, ccb_p cp, u_char wide, u_char ack);
2509 static void ncr_setsyncwide (ncb_p np, ccb_p cp, u_char scntl3, u_char sxfer, u_char scntl4, u_char…
[all …]
/linux-2.4.37.9/drivers/mtd/chips/
Dgen_probe.c16 struct chip_probe *cp);
17 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp,
20 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) in mtd_do_chip_probe() argument
26 cfi = genprobe_ident_chips(map, cp); in mtd_do_chip_probe()
51 struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chip_probe *cp) in genprobe_ident_chips() argument
63 if (!genprobe_new_chip(map, cp, &cfi)) { in genprobe_ident_chips()
66 cp->name, map->name); in genprobe_ident_chips()
119 cp->probe_chip(map, base, &chip[0], &cfi); in genprobe_ident_chips()
148 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp, in genprobe_new_chip() argument
157 if (cp->probe_chip(map, 0, NULL, cfi)) in genprobe_new_chip()
[all …]
/linux-2.4.37.9/fs/xfs/
Dxfs_trans.h250 void xfs_lic_init(xfs_log_item_chunk_t *cp);
251 #define XFS_LIC_INIT(cp) xfs_lic_init(cp) argument
253 #define XFS_LIC_INIT(cp) ((cp)->lic_free = XFS_LIC_FREEMASK) argument
256 void xfs_lic_init_slot(xfs_log_item_chunk_t *cp, int slot);
257 #define XFS_LIC_INIT_SLOT(cp,slot) xfs_lic_init_slot(cp, slot) argument
259 #define XFS_LIC_INIT_SLOT(cp,slot) \ argument
260 ((cp)->lic_descs[slot].lid_index = (unsigned char)(slot))
263 int xfs_lic_vacancy(xfs_log_item_chunk_t *cp);
264 #define XFS_LIC_VACANCY(cp) xfs_lic_vacancy(cp) argument
266 #define XFS_LIC_VACANCY(cp) (((cp)->lic_free) & XFS_LIC_FREEMASK) argument
[all …]
/linux-2.4.37.9/lib/
Dvsprintf.c32 unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base) in simple_strtoul() argument
38 if (*cp == '0') { in simple_strtoul()
40 cp++; in simple_strtoul()
41 if ((*cp == 'x') && isxdigit(cp[1])) { in simple_strtoul()
42 cp++; in simple_strtoul()
47 while (isxdigit(*cp) && in simple_strtoul()
48 (value = isdigit(*cp) ? *cp-'0' : toupper(*cp)-'A'+10) < base) { in simple_strtoul()
50 cp++; in simple_strtoul()
53 *endp = (char *)cp; in simple_strtoul()
63 long simple_strtol(const char *cp,char **endp,unsigned int base) in simple_strtol() argument
[all …]
/linux-2.4.37.9/arch/mips/au1000/common/
Dprom.c65 char *cp; in prom_init_cmdline() local
70 cp = &(arcs_cmdline[0]); in prom_init_cmdline()
72 strcpy(cp, CONFIG_CMDLINE); in prom_init_cmdline()
73 cp += strlen(CONFIG_CMDLINE); in prom_init_cmdline()
74 *cp++ = ' '; in prom_init_cmdline()
77 strcpy(cp, prom_argv[actr]); in prom_init_cmdline()
78 cp += strlen(prom_argv[actr]); in prom_init_cmdline()
79 *cp++ = ' '; in prom_init_cmdline()
82 if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */ in prom_init_cmdline()
83 --cp; in prom_init_cmdline()
[all …]

1234567891011