/drivers/usb/host/ |
D | u132-hcd.c | 207 struct u132_endp *endp[MAX_U132_ENDPS]; member 335 struct u132_endp *endp = kref_to_u132_endp(kref); in u132_endp_delete() local 336 struct u132 *u132 = endp->u132; in u132_endp_delete() 337 u8 usb_addr = endp->usb_addr; in u132_endp_delete() 338 u8 usb_endp = endp->usb_endp; in u132_endp_delete() 341 u8 endp_number = endp->endp_number; in u132_endp_delete() 342 struct usb_host_endpoint *hep = endp->hep; in u132_endp_delete() 343 struct u132_ring *ring = endp->ring; in u132_endp_delete() 344 struct list_head *head = &endp->endp_ring; in u132_endp_delete() 346 if (endp == ring->curr_endp) { in u132_endp_delete() [all …]
|
/drivers/usb/misc/ |
D | usb_u132.h | 72 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, 73 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, 77 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, 78 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, 82 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, 83 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, 87 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, 88 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, 92 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, 93 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, [all …]
|
D | ftdi-elan.c | 133 void *endp; member 145 void (*callback)(void *endp, struct urb *urb, u8 *buf, int len, 853 (*callback) (target->endp, urb, buffer, length, toggle_bits, in ftdi_elan_do_callback() 1489 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, in ftdi_elan_edset_setup() argument 1490 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, in ftdi_elan_edset_setup() 1517 target->endp = endp; in ftdi_elan_edset_setup() 1533 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, in usb_ftdi_elan_edset_setup() argument 1534 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, in usb_ftdi_elan_edset_setup() 1539 return ftdi_elan_edset_setup(ftdi, ed_number, endp, urb, address, in usb_ftdi_elan_edset_setup() 1546 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, in ftdi_elan_edset_input() argument [all …]
|
/drivers/staging/media/lirc/ |
D | lirc_zilog.c | 140 unsigned char *endp; member 511 unsigned char *endp, unsigned int *val) in read_uint32() argument 513 if (*data + 4 > endp) in read_uint32() 523 unsigned char *endp, unsigned char *val) in read_uint8() argument 525 if (*data + 1 > endp) in read_uint8() 533 unsigned char *endp, unsigned int distance) in skip() argument 535 if (*data + distance > endp) in skip() 545 unsigned char *data, *endp, *diffs, *key_block; in get_key_data() local 554 if (!read_uint32(&data, tx_data->endp, &i)) in get_key_data() 569 endp = pos < tx_data->num_code_sets - 1 ? in get_key_data() [all …]
|
/drivers/mtd/devices/ |
D | block2mtd.c | 331 static int ustrtoul(const char *cp, char **endp, unsigned int base) in ustrtoul() argument 333 unsigned long result = simple_strtoul(cp, endp, base); in ustrtoul() 334 switch (**endp) { in ustrtoul() 343 if ((*endp)[1] == 'i') { in ustrtoul() 344 if ((*endp)[2] == 'B') in ustrtoul() 345 (*endp) += 3; in ustrtoul() 347 (*endp) += 2; in ustrtoul() 356 char *endp; in parse_num() local 359 n = (size_t) ustrtoul(token, &endp, 0); in parse_num() 360 if (*endp) in parse_num()
|
/drivers/macintosh/ |
D | windfarm_core.c | 197 char *endp; in wf_store_control() local 199 val = simple_strtoul(buf, &endp, 0); in wf_store_control() 200 while (endp < buf + count && (*endp == ' ' || *endp == '\n')) in wf_store_control() 201 ++endp; in wf_store_control() 202 if (endp - buf < count) in wf_store_control()
|
/drivers/s390/block/ |
D | dasd_devmap.c | 191 dasd_feature_list(char *str, char **endp) in dasd_feature_list() argument 197 *endp = str; in dasd_feature_list() 232 *endp = str; in dasd_feature_list() 731 char *endp; in dasd_ff_store() local 737 val = simple_strtoul(buf, &endp, 0); in dasd_ff_store() 738 if (((endp + 1) < (buf + count)) || (val > 1)) in dasd_ff_store() 778 char *endp; in dasd_ro_store() local 784 val = simple_strtoul(buf, &endp, 0); in dasd_ro_store() 785 if (((endp + 1) < (buf + count)) || (val > 1)) in dasd_ro_store() 829 char *endp; in dasd_erplog_store() local [all …]
|
/drivers/s390/char/ |
D | sclp_cpi_sys.c | 334 char *endp; in system_level_store() local 336 level = simple_strtoull(buf, &endp, 16); in system_level_store() 338 if (endp == buf) in system_level_store() 340 if (*endp == '\n') in system_level_store() 341 endp++; in system_level_store() 342 if (*endp) in system_level_store()
|
/drivers/staging/lustre/lustre/libcfs/ |
D | libcfs_string.c | 232 char *endp; in cfs_str2num_check() local 235 *num = simple_strtoul(str, &endp, 0); in cfs_str2num_check() 236 if (endp == str) in cfs_str2num_check() 239 for (; endp < str + nob; endp++) { in cfs_str2num_check() 240 if (!isspace(*endp)) in cfs_str2num_check()
|
/drivers/media/tuners/ |
D | tuner-xc2028.c | 308 const unsigned char *p, *endp; in load_all_firmwares() local 316 endp = p + fw->size; in load_all_firmwares() 347 while (p < endp) { in load_all_firmwares() 360 if (endp - p < sizeof(type) + sizeof(id) + sizeof(size)) in load_all_firmwares() 372 if (endp - p < sizeof(size)) in load_all_firmwares() 379 if (!size || size > endp - p) { in load_all_firmwares() 385 (unsigned)(endp - p), size); in load_all_firmwares() 550 unsigned char *p, *endp, buf[MAX_XFER_SIZE]; in load_firmware() local 567 endp = p + priv->firm[pos].size; in load_firmware() 569 while (p < endp) { in load_firmware() [all …]
|
D | xc4000.c | 728 const unsigned char *p, *endp; in xc4000_fwupload() local 765 endp = p + fw->size; in xc4000_fwupload() 796 while (p < endp) { in xc4000_fwupload() 809 if (endp - p < sizeof(type) + sizeof(id) + sizeof(size)) in xc4000_fwupload() 821 if (endp - p < sizeof(size)) in xc4000_fwupload() 828 if (!size || size > endp - p) { in xc4000_fwupload() 831 (unsigned)(endp - p), size); in xc4000_fwupload()
|
/drivers/net/usb/ |
D | ipheth.c | 488 struct usb_endpoint_descriptor *endp; in ipheth_probe() local 516 endp = &hintf->endpoint[i].desc; in ipheth_probe() 517 if (usb_endpoint_is_bulk_in(endp)) in ipheth_probe() 518 dev->bulk_in = endp->bEndpointAddress; in ipheth_probe() 519 else if (usb_endpoint_is_bulk_out(endp)) in ipheth_probe() 520 dev->bulk_out = endp->bEndpointAddress; in ipheth_probe()
|
D | hso.c | 211 struct usb_endpoint_descriptor *endp; member 1455 tiocmget->endp-> in tiocmget_submit_urb() 1460 tiocmget->endp->bInterval); in tiocmget_submit_urb() 2667 tiocmget->endp = hso_get_ep(interface, in hso_create_bulk_serial_device() 2670 if (!tiocmget->endp) { in hso_create_bulk_serial_device() 3176 struct usb_endpoint_descriptor *endp; in hso_get_ep() local 3179 endp = &iface->endpoint[i].desc; in hso_get_ep() 3180 if (((endp->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == dir) && in hso_get_ep() 3181 (usb_endpoint_type(endp) == type)) in hso_get_ep() 3182 return endp; in hso_get_ep()
|
/drivers/mtd/ubi/ |
D | build.c | 1202 char *endp; in open_mtd_device() local 1204 mtd_num = simple_strtoul(mtd_dev, &endp, 0); in open_mtd_device() 1205 if (*endp != '\0' || mtd_dev == endp) { in open_mtd_device() 1361 char *endp; in bytes_str_to_int() local 1364 result = simple_strtoul(str, &endp, 0); in bytes_str_to_int() 1365 if (str == endp || result >= INT_MAX) { in bytes_str_to_int() 1370 switch (*endp) { in bytes_str_to_int() 1377 if (endp[1] == 'i' && endp[2] == 'B') in bytes_str_to_int() 1378 endp += 2; in bytes_str_to_int()
|
/drivers/video/fbdev/ |
D | sh_mobile_lcdcfb.c | 1344 char *endp; in overlay_alpha_store() local 1346 alpha = simple_strtoul(buf, &endp, 10); in overlay_alpha_store() 1347 if (isspace(*endp)) in overlay_alpha_store() 1348 endp++; in overlay_alpha_store() 1350 if (endp - buf != count) in overlay_alpha_store() 1382 char *endp; in overlay_mode_store() local 1384 mode = simple_strtoul(buf, &endp, 10); in overlay_mode_store() 1385 if (isspace(*endp)) in overlay_mode_store() 1386 endp++; in overlay_mode_store() 1388 if (endp - buf != count) in overlay_mode_store() [all …]
|
/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 137 u8 *ptr = data, *endp = data+len; in copy_streams() local 157 for (ptr = data; ptr < endp;) { in copy_streams() 172 if (ptr + 3 >= endp) { in copy_streams() 174 dev->isoc_ctl.tmp_buf_len = endp - ptr; in copy_streams() 180 for (; ptr < endp - 3; ptr++) { in copy_streams() 248 cpysize = (endp - ptr > size) ? size : endp - ptr; in copy_streams() 278 if (ptr + pktsize > endp) { in copy_streams() 287 dev->isoc_ctl.pktsize = pktsize - (endp - ptr); in copy_streams() 288 ptr += endp - ptr; in copy_streams() 588 dev->isoc_in.endp->desc.bEndpointAddress & in tm6000_prepare_isoc() [all …]
|
D | tm6000-input.c | 356 dev->int_in.endp->desc.bEndpointAddress in __tm6000_ir_int_start() 367 dprintk(1, "int interval: %d\n", dev->int_in.endp->desc.bInterval); in __tm6000_ir_int_start() 372 dev->int_in.endp->desc.bInterval); in __tm6000_ir_int_start() 449 if (dev->int_in.endp) { in tm6000_ir_init()
|
/drivers/spi/ |
D | spi-tle62x0.c | 157 char *endp; in tle62x0_gpio_store() local 159 val = simple_strtoul(buf, &endp, 0); in tle62x0_gpio_store() 160 if (buf == endp) in tle62x0_gpio_store()
|
/drivers/staging/lustre/lustre/obdclass/ |
D | obd_config.c | 123 char *endp; in class_parse_value() local 135 endp = strpbrk(buf, ",: /"); in class_parse_value() 136 if (!endp) in class_parse_value() 137 endp = buf + strlen(buf); in class_parse_value() 139 tmp = *endp; in class_parse_value() 140 *endp = '\0'; in class_parse_value() 151 *endp = tmp; in class_parse_value() 155 *endh = endp; in class_parse_value()
|
/drivers/mtd/ |
D | mtdoops.c | 402 char *endp; in mtdoops_init() local 419 mtd_index = simple_strtoul(mtddev, &endp, 0); in mtdoops_init() 420 if (*endp == '\0') in mtdoops_init()
|
/drivers/scsi/ |
D | scsi_transport_spi.c | 458 char *endp; in store_spi_transport_period_helper() local 460 picosec = simple_strtoul(buf, &endp, 10) * 1000; in store_spi_transport_period_helper() 461 if (*endp == '.') { in store_spi_transport_period_helper() 464 endp++; in store_spi_transport_period_helper() 465 if (!isdigit(*endp)) in store_spi_transport_period_helper() 467 picosec += (*endp - '0') * mult; in store_spi_transport_period_helper()
|
/drivers/usb/storage/ |
D | transport.c | 238 int endp = usb_pipeendpoint(pipe); in usb_stor_clear_halt() local 241 endp |= USB_DIR_IN; in usb_stor_clear_halt() 245 USB_ENDPOINT_HALT, endp, in usb_stor_clear_halt() 249 usb_reset_endpoint(us->pusb_dev, endp); in usb_stor_clear_halt()
|
/drivers/char/ipmi/ |
D | ipmi_watchdog.c | 197 char *endp; in set_param_timeout() local 203 l = simple_strtoul(val, &endp, 0); in set_param_timeout() 204 if (endp == val) in set_param_timeout()
|
/drivers/of/ |
D | fdt.c | 911 const __be32 *reg, *endp; in early_init_dt_scan_memory() local 931 endp = reg + (l / sizeof(__be32)); in early_init_dt_scan_memory() 935 while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { in early_init_dt_scan_memory()
|
/drivers/usb/serial/ |
D | keyspan.c | 2406 int endp; in keyspan_port_probe() local 2445 endp = d_details->indat_endpoints[port_num]; in keyspan_port_probe() 2446 for (i = 0; i <= d_details->indat_endp_flip; ++i, ++endp) { in keyspan_port_probe() 2447 p_priv->in_urbs[i] = keyspan_setup_urb(serial, endp, in keyspan_port_probe() 2454 endp = d_details->outdat_endpoints[port_num]; in keyspan_port_probe() 2455 for (i = 0; i <= d_details->outdat_endp_flip; ++i, ++endp) { in keyspan_port_probe() 2456 p_priv->out_urbs[i] = keyspan_setup_urb(serial, endp, in keyspan_port_probe()
|