/drivers/usb/core/ |
D | devices.c | 171 static char *usb_dump_endpoint_descriptor(int speed, char *start, char *end, in usb_dump_endpoint_descriptor() argument 177 if (start > end) in usb_dump_endpoint_descriptor() 236 static char *usb_dump_interface_descriptor(char *start, char *end, in usb_dump_interface_descriptor() argument 245 if (start > end) in usb_dump_interface_descriptor() 267 static char *usb_dump_interface(int speed, char *start, char *end, in usb_dump_interface() argument 274 start = usb_dump_interface_descriptor(start, end, intfc, iface, setno); in usb_dump_interface() 276 if (start > end) in usb_dump_interface() 279 start, end, &desc->endpoint[i].desc); in usb_dump_interface() 284 static char *usb_dump_iad_descriptor(char *start, char *end, in usb_dump_iad_descriptor() argument 287 if (start > end) in usb_dump_iad_descriptor() [all …]
|
/drivers/pnp/ |
D | resource.c | 155 #define length(start, end) (*(end) - *(start) + 1) argument 169 resource_size_t *port, *end, *tport, *tend; in pnp_check_port() local 172 end = &res->end; in pnp_check_port() 181 if (__check_region(&ioport_resource, *port, length(port, end))) in pnp_check_port() 189 if (ranged_conflict(port, end, &rport, &rend)) in pnp_check_port() 197 tend = &tres->end; in pnp_check_port() 198 if (ranged_conflict(port, end, tport, tend)) in pnp_check_port() 214 tend = &tres->end; in pnp_check_port() 215 if (ranged_conflict(port, end, tport, tend)) in pnp_check_port() 229 resource_size_t *addr, *end, *taddr, *tend; in pnp_check_mem() local [all …]
|
D | manager.c | 30 (unsigned long long) res->end, res->flags); in pnp_assign_port() 37 res->end = 0; in pnp_assign_port() 46 res->end = res->start + rule->size - 1; in pnp_assign_port() 50 res->end = res->start + rule->size - 1; in pnp_assign_port() 61 pnp_add_io_resource(dev, res->start, res->end, res->flags); in pnp_assign_port() 73 (unsigned long long) res->end, res->flags); in pnp_assign_mem() 80 res->end = 0; in pnp_assign_mem() 98 res->end = res->start + rule->size - 1; in pnp_assign_mem() 102 res->end = res->start + rule->size - 1; in pnp_assign_mem() 113 pnp_add_mem_resource(dev, res->start, res->end, res->flags); in pnp_assign_mem() [all …]
|
D | system.c | 26 resource_size_t end, int port) in reserve_range() argument 38 res = request_region(start, end - start + 1, regionid); in reserve_range() 40 res = request_mem_region(start, end - start + 1, regionid); in reserve_range() 53 (unsigned long long) start, (unsigned long long) end, in reserve_range() 77 if (res->end < res->start) in reserve_resources_of_dev() 80 reserve_range(dev, res->start, res->end, 1); in reserve_resources_of_dev() 87 reserve_range(dev, res->start, res->end, 0); in reserve_resources_of_dev()
|
/drivers/net/wireless/ |
D | strip.c | 487 __u8 * end) in DumpData() argument 494 while (ptr < end && p < &pkt_text[MAX_DumpData - 4]) { in DumpData() 509 if (ptr == end) in DumpData() 560 __u8 *end = src + length; in StuffData() local 575 while (src < end) { in StuffData() 695 static __u8 *UnStuffData(__u8 * src, __u8 * end, __u8 * dst, in UnStuffData() argument 700 if (!src || !end || !dst || !dst_length) in UnStuffData() 702 while (src < end && dst < dst_end) { in UnStuffData() 706 if (src + 1 + count >= end) in UnStuffData() 724 if (src + 1 + count >= end) in UnStuffData() [all …]
|
/drivers/staging/meilhaus/ |
D | mecirc_buf.h | 57 int end; in me_circ_buf_values_to_end() local 61 end = buf->mask + 1 - buf->tail; in me_circ_buf_values_to_end() 62 n = (buf->head + end) & (buf->mask); in me_circ_buf_values_to_end() 63 return (n < end) ? n : end; in me_circ_buf_values_to_end() 68 int end; in me_circ_buf_space_to_end() local 73 end = buf->mask - buf->head; in me_circ_buf_space_to_end() 74 n = (end + buf->tail) & (buf->mask); in me_circ_buf_space_to_end() 75 return (n <= end) ? n : (end + 1); in me_circ_buf_space_to_end()
|
/drivers/zorro/ |
D | zorro.c | 40 { .name = "Zorro II exp", .start = 0x00e80000, .end = 0x00efffff }, 41 { .name = "Zorro II mem", .start = 0x00200000, .end = 0x009fffff }, 43 { .name = "Zorro III exp", .start = 0xff000000, .end = 0xffffffff }, 44 { .name = "Zorro III cfg", .start = 0x40000000, .end = 0x7fffffff } 88 static void __init mark_region(unsigned long start, unsigned long end, in mark_region() argument 94 end += Z2RAM_CHUNKMASK; in mark_region() 96 end &= ~Z2RAM_CHUNKMASK; in mark_region() 98 if (end <= Z2RAM_START || start >= Z2RAM_END) in mark_region() 101 end = end > Z2RAM_END ? Z2RAM_SIZE : end-Z2RAM_START; in mark_region() 102 while (start < end) { in mark_region() [all …]
|
/drivers/pci/hotplug/ |
D | rpadlpar_sysfs.c | 36 char *end; in add_slot_store() local 44 end = strchr(drc_name, '\n'); in add_slot_store() 45 if (!end) in add_slot_store() 46 end = &drc_name[nbytes]; in add_slot_store() 47 *end = '\0'; in add_slot_store() 68 char *end; in remove_slot_store() local 75 end = strchr(drc_name, '\n'); in remove_slot_store() 76 if (!end) in remove_slot_store() 77 end = &drc_name[nbytes]; in remove_slot_store() 78 *end = '\0'; in remove_slot_store()
|
D | ibmphp_res.c | 89 rs->end = curr->end_addr; in alloc_resources() 130 newrange->end = curr->end_addr; in alloc_bus_range() 137 … Primary Bus inserted on bus %x [%x - %x]\n", flag, newbus->busno, newrange->start, newrange->end); in alloc_bus_range() 146 …bug ("First Memory Primary on bus %x, [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range() 156 … debug ("First IO Primary on bus %x, [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range() 166 …ebug ("1st PFMemory Primary on Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range() 230 …"gbuses = NULL, Memory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in ibmphp_rsrc_init() 244 …ebug ("New Bus, Memory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in ibmphp_rsrc_init() 254 …buses = NULL, PFMemory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in ibmphp_rsrc_init() 267 …ug ("1st Bus, PFMemory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in ibmphp_rsrc_init() [all …]
|
/drivers/s390/cio/ |
D | itcw.c | 120 static inline void *fit_chunk(addr_t *start, addr_t end, size_t len, in fit_chunk() argument 130 if (addr + len > end) in fit_chunk() 167 addr_t end; in itcw_init() local 171 end = start + size; in itcw_init() 172 if (end > (1 << 31)) in itcw_init() 176 chunk = fit_chunk(&start, end, sizeof(struct itcw), 1, 0); in itcw_init() 183 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0); in itcw_init() 191 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0); in itcw_init() 200 chunk = fit_chunk(&start, end, sizeof(struct tidaw) * in itcw_init() 208 chunk = fit_chunk(&start, end, sizeof(struct tidaw) * in itcw_init() [all …]
|
/drivers/pci/ |
D | setup-bus.c | 63 res->end = 0; in pbus_assign_resources_sorted() 88 (unsigned long)region.end); in pci_setup_cardbus() 92 region.end); in pci_setup_cardbus() 99 (unsigned long)region.end); in pci_setup_cardbus() 103 region.end); in pci_setup_cardbus() 110 (unsigned long)region.end); in pci_setup_cardbus() 114 region.end); in pci_setup_cardbus() 121 (unsigned long)region.end); in pci_setup_cardbus() 125 region.end); in pci_setup_cardbus() 156 l |= region.end & 0xf000; in pci_setup_bridge() [all …]
|
/drivers/firmware/ |
D | memmap.c | 35 resource_size_t end; /* end of the memory range (incl.) */ member 60 static struct memmap_attribute memmap_end_attr = __ATTR_RO(end); 104 static int firmware_map_add_entry(resource_size_t start, resource_size_t end, in firmware_map_add_entry() argument 108 BUG_ON(start > end); in firmware_map_add_entry() 111 entry->end = end; in firmware_map_add_entry() 135 int firmware_map_add(resource_size_t start, resource_size_t end, in firmware_map_add() argument 144 return firmware_map_add_entry(start, end, type, entry); in firmware_map_add() 160 int __init firmware_map_add_early(resource_size_t start, resource_size_t end, in firmware_map_add_early() argument 169 return firmware_map_add_entry(start, end, type, entry); in firmware_map_add_early() 185 (unsigned long long)entry->end); in end_show()
|
/drivers/ieee1394/ |
D | highlevel.c | 325 u64 start, u64 end) in hpsb_allocate_and_register_addrspace() argument 343 end == CSR1212_INVALID_ADDR_SPACE) { in hpsb_allocate_and_register_addrspace() 345 end = CSR1212_ALL_SPACE_END; in hpsb_allocate_and_register_addrspace() 348 if (((start|end) & ~align_mask) || (start >= end) || in hpsb_allocate_and_register_addrspace() 349 (end > CSR1212_ALL_SPACE_END)) { in hpsb_allocate_and_register_addrspace() 352 (unsigned long long)start,(unsigned long long)end); in hpsb_allocate_and_register_addrspace() 375 a1ea = (a1->end + alignment -1) & align_mask; in hpsb_allocate_and_register_addrspace() 377 a2ea = (a2->end + alignment -1) & align_mask; in hpsb_allocate_and_register_addrspace() 382 as->end = as->start + size; in hpsb_allocate_and_register_addrspace() 411 u64 start, u64 end) in hpsb_register_addrspace() argument [all …]
|
/drivers/pnp/pnpbios/ |
D | rsparser.c | 60 int end = start + len - 1; in pnpbios_parse_allocated_ioresource() local 62 if (len <= 0 || end >= 0x10003) in pnpbios_parse_allocated_ioresource() 65 pnp_add_io_resource(dev, start, end, flags); in pnpbios_parse_allocated_ioresource() 72 int end = start + len - 1; in pnpbios_parse_allocated_memresource() local 77 pnp_add_mem_resource(dev, start, end, flags); in pnpbios_parse_allocated_memresource() 82 unsigned char *end) in pnpbios_parse_allocated_resource_data() argument 94 while ((char *)p < (char *)end) { in pnpbios_parse_allocated_resource_data() 317 pnpbios_parse_resource_option_data(unsigned char *p, unsigned char *end, in pnpbios_parse_resource_option_data() argument 329 while ((char *)p < (char *)end) { in pnpbios_parse_resource_option_data() 432 unsigned char *end, in pnpbios_parse_compatible_ids() argument [all …]
|
/drivers/s390/char/ |
D | sclp_tty.c | 412 sclp_get_input(unsigned char *start, unsigned char *end) in sclp_get_input() argument 416 count = end - start; in sclp_get_input() 428 find_gds_vector(struct gds_vector *start, struct gds_vector *end, u16 id) in find_gds_vector() argument 432 for (vec = start; vec < end; vec = (void *) vec + vec->length) in find_gds_vector() 440 struct gds_subvector *end, u8 key) in find_gds_subvector() argument 444 for (subvec = start; subvec < end; in find_gds_subvector() 453 struct gds_subvector *end) in sclp_eval_selfdeftextmsg() argument 458 while (subvec < end) { in sclp_eval_selfdeftextmsg() 459 subvec = find_gds_subvector(subvec, end, 0x30); in sclp_eval_selfdeftextmsg() 470 struct gds_subvector *end) in sclp_eval_textcmd() argument [all …]
|
/drivers/parisc/ |
D | lba_pci.c | 171 (long)r->start, (long)r->end, r->flags); in lba_dump_res() 576 unsigned long end = new->end; in truncate_pat_collision() local 579 if (end <= start || start < root->start || !tmp) in truncate_pat_collision() 583 while (tmp && tmp->end < start) in truncate_pat_collision() 592 if (tmp->start >= end) return 0; in truncate_pat_collision() 596 new->start = tmp->end + 1; in truncate_pat_collision() 598 if (tmp->end >= end) { in truncate_pat_collision() 604 if (tmp->end < end ) { in truncate_pat_collision() 606 new->end = tmp->start - 1; in truncate_pat_collision() 611 start, end, in truncate_pat_collision() [all …]
|
/drivers/net/ixp2000/ |
D | ixp2400_rx.uc | 80 .end 89 .end 111 .end 125 .end 139 .end 147 .end 161 .end 184 .end 221 .end 246 .end [all …]
|
/drivers/media/video/ |
D | btcx-risc.c | 192 int end, maxline; in btcx_calc_skips() local 216 if (0 == skip || clips[clip].c.left > skips[skip-1].end) { in btcx_calc_skips() 221 skips[skip].end = clips[clip].c.left + clips[clip].c.width; in btcx_calc_skips() 222 if (skips[skip].end > width) in btcx_calc_skips() 223 skips[skip].end = width; in btcx_calc_skips() 227 end = clips[clip].c.left + clips[clip].c.width; in btcx_calc_skips() 228 if (skips[skip-1].end < end) in btcx_calc_skips() 229 skips[skip-1].end = end; in btcx_calc_skips() 230 if (skips[skip-1].end > width) in btcx_calc_skips() 231 skips[skip-1].end = width; in btcx_calc_skips() [all …]
|
/drivers/staging/android/ |
D | binder.c | 570 void *start, void *end, struct vm_area_struct *vma) in binder_update_page_range() argument 580 proc->pid, allocate ? "allocate" : "free", start, end); in binder_update_page_range() 582 if (end <= start) in binder_update_page_range() 604 for (page_addr = start; page_addr < end; page_addr += PAGE_SIZE) { in binder_update_page_range() 644 for (page_addr = end - PAGE_SIZE; page_addr >= start; in binder_update_page_range() 1739 void __user *end = buffer + size; in binder_thread_write() local 1741 while (ptr < end && thread->return_error == BR_OK) { in binder_thread_write() 2143 void __user *end = buffer + size; in binder_thread_read() local 2157 if (thread->return_error != BR_OK && ptr < end) { in binder_thread_read() 2162 if (ptr == end) in binder_thread_read() [all …]
|
/drivers/mtd/devices/ |
D | pmc551.c | 110 unsigned long end; in pmc551_erase() local 119 end = instr->addr + instr->len - 1; in pmc551_erase() 122 if (end > mtd->size) { in pmc551_erase() 125 (long)end, (long)mtd->size); in pmc551_erase() 130 eoff_hi = end & ~(priv->asize - 1); in pmc551_erase() 132 eoff_lo = end & (priv->asize - 1); in pmc551_erase() 223 unsigned long end; in pmc551_read() local 232 end = from + len - 1; in pmc551_read() 235 if (end > mtd->size) { in pmc551_read() 238 (long)end, (long)mtd->size); in pmc551_read() [all …]
|
/drivers/telephony/ |
D | phonedev.c | 69 goto end; in phone_open() 81 end: in phone_open() 93 int end; in phone_register_device() local 97 end = PHONE_NUM_DEVICES - 1; in phone_register_device() 101 end = unit + 1; /* enter the loop at least one time */ in phone_register_device() 105 for (i = base; i < end; i++) { in phone_register_device()
|
/drivers/acpi/ |
D | processor_perflib.c | 207 goto end; in acpi_processor_get_performance_control() 221 goto end; in acpi_processor_get_performance_control() 237 goto end; in acpi_processor_get_performance_control() 243 end: in acpi_processor_get_performance_control() 270 goto end; in acpi_processor_get_performance_states() 282 goto end; in acpi_processor_get_performance_states() 300 goto end; in acpi_processor_get_performance_states() 317 goto end; in acpi_processor_get_performance_states() 321 end: in acpi_processor_get_performance_states() 448 goto end; in acpi_processor_get_psd() [all …]
|
D | sbs.c | 385 goto end; in acpi_battery_get_state() 387 end: in acpi_battery_get_state() 411 goto end; in acpi_battery_set_alarm() 419 goto end; in acpi_battery_set_alarm() 424 end: in acpi_battery_set_alarm() 544 goto end; in acpi_battery_read_info() 566 end: in acpi_battery_read_info() 586 goto end; in acpi_battery_read_state() 605 end: in acpi_battery_read_state() 625 goto end; in acpi_battery_read_alarm() [all …]
|
D | pci_bind.c | 151 goto end; in acpi_pci_bind() 199 goto end; in acpi_pci_bind() 207 goto end; in acpi_pci_bind() 237 goto end; in acpi_pci_bind() 260 end: in acpi_pci_bind() 292 goto end; in acpi_pci_unbind() 301 goto end; in acpi_pci_unbind() 308 end: in acpi_pci_unbind() 350 goto end; in acpi_pci_bind_root() 353 end: in acpi_pci_bind_root()
|
/drivers/acpi/acpica/ |
D | psargs.c | 159 u8 *end = parser_state->aml; in acpi_ps_get_next_namestring() local 165 while (acpi_ps_is_prefix_char(*end)) { in acpi_ps_get_next_namestring() 166 end++; in acpi_ps_get_next_namestring() 171 switch (*end) { in acpi_ps_get_next_namestring() 176 if (end == start) { in acpi_ps_get_next_namestring() 179 end++; in acpi_ps_get_next_namestring() 186 end += 1 + (2 * ACPI_NAME_SIZE); in acpi_ps_get_next_namestring() 193 end += 2 + (*(end + 1) * ACPI_NAME_SIZE); in acpi_ps_get_next_namestring() 200 end += ACPI_NAME_SIZE; in acpi_ps_get_next_namestring() 204 parser_state->aml = end; in acpi_ps_get_next_namestring()
|