/drivers/net/wireless/ath/wil6210/ |
H A D | ethtool.c | 45 struct ethtool_coalesce *cp) 56 cp->rx_coalesce_usecs = itr_val; 62 struct ethtool_coalesce *cp) 66 wil_dbg_misc(wil, "%s(%d usec)\n", __func__, cp->rx_coalesce_usecs); 77 if (cp->rx_coalesce_usecs > WIL6210_ITR_TRSH_MAX) 80 wil->itr_trsh = cp->rx_coalesce_usecs; 88 cp, sizeof(*cp), false); 44 wil_ethtoolops_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *cp) argument 61 wil_ethtoolops_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *cp) argument
|
/drivers/s390/char/ |
H A D | keyboard.h | 51 kbd_puts_queue(struct tty_port *port, char *cp) argument 53 while (*cp) 54 tty_insert_flip_char(port, *cp++, 0);
|
/drivers/isdn/gigaset/ |
H A D | asyncdata.c | 463 unsigned char *cp; local 469 cp = skb->data; 472 if (muststuff(*cp)) 474 fcs = crc_ccitt_byte(fcs, *cp++); 540 unsigned char *cp; local 559 cp = skb->data; 562 c = bitrev8(*cp++);
|
/drivers/mtd/chips/ |
H A D | gen_probe.c | 17 struct chip_probe *cp); 18 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp, 21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) argument 27 cfi = genprobe_ident_chips(map, cp); 59 static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chip_probe *cp) argument 71 if (!genprobe_new_chip(map, cp, &cfi)) { 74 cp->name, map->name); 130 cp->probe_chip(map, i << cfi.chipshift, chip_map, &cfi); 165 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp, argument 186 if (cp [all...] |
/drivers/tty/ |
H A D | n_tracerouter.c | 163 * @cp: buffer, block of characters to be eventually read by 166 * @count: number of characters (aka, bytes) in cp. 168 * This function takes the input buffer, cp, and passes it to 172 const unsigned char *cp, 176 n_tracesink_datadrain((u8 *) cp, count); 171 n_tracerouter_receivebuf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
|
/drivers/usb/gadget/ |
H A D | config.c | 86 struct usb_config_descriptor *cp = buf; local 92 *cp = *config; 104 cp->bLength = USB_DT_CONFIG_SIZE; 105 cp->bDescriptorType = USB_DT_CONFIG; 106 cp->wTotalLength = cpu_to_le16(len); 107 cp->bmAttributes |= USB_CONFIG_ATT_ONE;
|
/drivers/isdn/divert/ |
H A D | divert_procfs.c | 41 put_info_buffer(char *cp) argument 48 if (!cp) 50 if (!*cp) 52 if (!(ib = kmalloc(sizeof(struct divert_info) + strlen(cp), GFP_ATOMIC))) 54 strcpy(ib->info_start, cp); /* set output string */ 189 char *cp; local 205 cp = divert_if.drv_to_name(dioctl.getid.drvid); 206 if (!cp) 208 if (!*cp) 210 strcpy(dioctl.getid.drvnam, cp); [all...] |
/drivers/isdn/hysdn/ |
H A D | hysdn_boot.c | 337 EvalSysrTokData(hysdn_card *card, unsigned char *cp, int len) argument 349 for (p = cp, crc = 0; p < (cp + len - 2); p++) 355 if (crc != *(cp + len - 1)) { 362 if (*cp == SYSR_TOK_END) 365 if (len < (*(cp + 1) + 2)) { 366 hysdn_addlog(card, "token 0x%x invalid length %d", *cp, *(cp + 1)); 369 switch (*cp) { 371 if (*(cp [all...] |
H A D | hysdn_procconf.c | 55 unsigned char *cp = cnf->conf_line; local 59 hysdn_addlog(cnf->card, "conf line: %s", cp); 61 if (*cp == '-') { /* option */ 62 cp++; /* point to option char */ 64 if (*cp++ != 'c') 67 while ((*cp <= '9') && (*cp >= '0')) 68 i = i * 10 + *cp++ - '0'; /* get decimal number */ 77 if (*cp == '*') { /* line to send */ 79 hysdn_addlog(cnf->card, "conf chan=%d %s", cnf->channel, cp); 98 unsigned char ch, *cp; local 214 char *cp; local 233 char *cp, *tmp; local [all...] |
H A D | hysdn_proclog.c | 27 static void put_log_buffer(hysdn_card *card, char *cp); 72 char *cp; local 78 cp = pd->logtmp; 79 cp += sprintf(cp, "HYSDN: card %d ", card->myid); 82 cp += vsprintf(cp, fmt, args); 84 *cp++ = '\n'; 85 *cp = 0; 101 put_log_buffer(hysdn_card *card, char *cp) argument [all...] |
/drivers/media/usb/au0828/ |
H A D | au0828-core.c | 53 u16 index, unsigned char *cp, u16 size); 82 /* cp must be memory that has been allocated by kmalloc */ 103 u16 index, unsigned char *cp, u16 size) 123 is why we didn't just pass "cp" into usb_control_msg */ 124 memcpy(cp, dev->ctrlmsg, size); 102 recv_control_msg(struct au0828_dev *dev, u16 request, u32 value, u16 index, unsigned char *cp, u16 size) argument
|
/drivers/mtd/maps/ |
H A D | physmap_of.c | 119 const char *cp; local 125 cp = of_get_property(dp, "linux,part-probe", &cplen); 126 if (cp == NULL) 131 if (cp[l] == 0) 137 res[count] = cp; 138 l = strlen(cp) + 1; 139 cp += l;
|
/drivers/of/ |
H A D | fdt_address.c | 74 u64 cp, s, da; local 76 cp = of_read_number(range, na); 80 pr_debug("FDT: default map, cp=%llx, s=%llx, da=%llx\n", 81 cp, s, da); 83 if (da < cp || da >= (cp + s)) 85 return da - cp;
|
H A D | of_mdio.c | 31 const char *cp; local 34 of_property_for_each_string(device, "compatible", prop, cp) { 35 if (sscanf(cp, "ethernet-phy-id%4x.%4x", &upper, &lower) == 2) {
|
/drivers/s390/cio/ |
H A D | ccwreq.c | 78 struct ccw1 *cp = req->cp; local 89 rc = cio_start(sch, cp, (u8) req->mask);
|
H A D | device_id.c | 202 struct ccw1 *cp = cdev->private->iccws; local 209 cp->cmd_code = CCW_CMD_SENSE_ID; 210 cp->cda = (u32) (addr_t) &cdev->private->senseid; 211 cp->count = sizeof(struct senseid); 212 cp->flags = CCW_FLAG_SLI; 215 req->cp = cp;
|
/drivers/base/ |
H A D | class.c | 30 struct subsys_private *cp = to_subsys_private(kobj); local 34 ret = class_attr->show(cp->class, class_attr, buf); 42 struct subsys_private *cp = to_subsys_private(kobj); local 46 ret = class_attr->store(cp->class, class_attr, buf, count); 52 struct subsys_private *cp = to_subsys_private(kobj); local 53 struct class *class = cp->class; 63 kfree(cp); 68 struct subsys_private *cp = to_subsys_private(kobj); local 69 struct class *class = cp->class; 167 struct subsys_private *cp; local [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_qsfp.c | 271 int qib_refresh_qsfp_cache(struct qib_pportdata *ppd, struct qib_qsfp_cache *cp) argument 279 memset(cp, 0, sizeof(*cp)); 308 ret = qsfp_read(ppd, QSFP_MOD_ID_OFFS, &cp->id, 1); 311 if ((cp->id & 0xFE) != 0x0C) 313 "QSFP ID byte is 0x%02X, S/B 0x0C/D\n", cp->id); 314 cks = cp->id; 316 ret = qsfp_read(ppd, QSFP_MOD_PWR_OFFS, &cp->pwr, 1); 319 cks += cp->pwr; 326 ret = qsfp_read(ppd, QSFP_MOD_LEN_OFFS, &cp [all...] |
/drivers/input/serio/ |
H A D | serport.c | 124 static void serport_ldisc_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument 153 serio_interrupt(serport->serio, cp[i], ch_flags);
|
/drivers/isdn/pcbit/ |
H A D | drv.c | 1000 char *cp, *sp; local 1024 cp = strchr(sp, ','); 1025 if (cp) 1026 len = cp - sp; 1057 } while (cp);
|
/drivers/media/i2c/ |
H A D | vs6624.c | 663 struct v4l2_captureparm *cp = &parms->parm.capture; local 668 memset(cp, 0, sizeof(*cp)); 669 cp->capability = V4L2_CAP_TIMEPERFRAME; 670 cp->timeperframe.numerator = sensor->frame_rate.denominator; 671 cp->timeperframe.denominator = sensor->frame_rate.numerator; 678 struct v4l2_captureparm *cp = &parms->parm.capture; local 679 struct v4l2_fract *tpf = &cp->timeperframe; 683 if (cp->extendedmode != 0)
|
/drivers/media/platform/ti-vpe/ |
H A D | sc.c | 71 const u16 *cp; local 94 cp = scaler_hs_coeffs[idx]; 98 *coeff_h++ = *cp++; 124 const u16 *cp; local 140 cp = scaler_vs_coeffs[idx]; 144 *coeff_v++ = *cp++;
|
/drivers/media/usb/cx231xx/ |
H A D | cx231xx-audio.c | 109 unsigned char *cp; local 141 cp = (unsigned char *)urb->transfer_buffer + 152 memcpy(runtime->dma_area + oldptr * stride, cp, 154 memcpy(runtime->dma_area, cp + cnt * stride, 157 memcpy(runtime->dma_area + oldptr * stride, cp, 197 unsigned char *cp; local 229 cp = (unsigned char *)urb->transfer_buffer; 236 memcpy(runtime->dma_area + oldptr * stride, cp, 238 memcpy(runtime->dma_area, cp + cnt * stride, 241 memcpy(runtime->dma_area + oldptr * stride, cp, [all...] |
/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-context.c | 250 struct pvr2_channel *cp; local 254 for (cp = mp->mc_first; cp; cp = cp->mc_next) { 255 if (!cp->input_mask) continue; 256 tmsk &= cp->input_mask; 288 void pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp) argument 291 cp->hdw = mp->hdw; 292 cp 305 pvr2_channel_disclaim_stream(struct pvr2_channel *cp) argument 314 pvr2_channel_done(struct pvr2_channel *cp) argument 336 pvr2_channel_limit_inputs(struct pvr2_channel *cp,unsigned int cmsk) argument 381 pvr2_channel_get_limited_inputs(struct pvr2_channel *cp) argument 387 pvr2_channel_claim_stream(struct pvr2_channel *cp, struct pvr2_context_stream *sp) argument 414 struct pvr2_ioread *cp; local [all...] |
H A D | pvrusb2-ioread.c | 53 static int pvr2_ioread_init(struct pvr2_ioread *cp) argument 57 cp->stream = NULL; 58 mutex_init(&cp->mutex); 61 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL); 62 if (!(cp->buffer_storage[idx])) break; 68 if (!(cp->buffer_storage[idx])) continue; 69 kfree(cp->buffer_storage[idx]); 76 static void pvr2_ioread_done(struct pvr2_ioread *cp) argument 80 pvr2_ioread_setup(cp,NULL); 82 if (!(cp 89 struct pvr2_ioread *cp; local 100 pvr2_ioread_destroy(struct pvr2_ioread *cp) argument 112 pvr2_ioread_set_sync_key(struct pvr2_ioread *cp, const char *sync_key_ptr, unsigned int sync_key_len) argument 140 pvr2_ioread_stop(struct pvr2_ioread *cp) argument 160 pvr2_ioread_start(struct pvr2_ioread *cp) argument 197 pvr2_ioread_get_stream(struct pvr2_ioread *cp) argument 202 pvr2_ioread_setup(struct pvr2_ioread *cp,struct pvr2_stream *sp) argument 243 pvr2_ioread_set_enabled(struct pvr2_ioread *cp,int fl) argument 258 pvr2_ioread_get_buffer(struct pvr2_ioread *cp) argument 309 pvr2_ioread_filter(struct pvr2_ioread *cp) argument 368 pvr2_ioread_avail(struct pvr2_ioread *cp) argument 404 pvr2_ioread_read(struct pvr2_ioread *cp,void __user *buf,unsigned int cnt) argument [all...] |