/linux-2.4.37.9/drivers/acpi/executer/ |
D | exstorob.c | 72 u32 length; in acpi_ex_store_buffer_to_buffer() local 83 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer() 89 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer() 91 target_desc->buffer.pointer = ACPI_MEM_ALLOCATE (length); in acpi_ex_store_buffer_to_buffer() 97 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer() 104 if (length <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer() 107 ACPI_MEMSET (target_desc->buffer.pointer, 0, target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() 108 ACPI_MEMCPY (target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer() 114 ACPI_MEMCPY (target_desc->buffer.pointer, buffer, target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() 118 length, target_desc->buffer.length)); in acpi_ex_store_buffer_to_buffer() [all …]
|
D | exfield.c | 77 acpi_size length; in acpi_ex_read_data_from_field() local 139 length = (acpi_size) ACPI_ROUND_BITS_UP_TO_BYTES (obj_desc->field.bit_length); in acpi_ex_read_data_from_field() 140 if (length > acpi_gbl_integer_byte_width) { in acpi_ex_read_data_from_field() 143 buffer_desc = acpi_ut_create_buffer_object (length); in acpi_ex_read_data_from_field() 157 length = acpi_gbl_integer_byte_width; in acpi_ex_read_data_from_field() 164 obj_desc, ACPI_GET_OBJECT_TYPE (obj_desc), buffer, (u32) length)); in acpi_ex_read_data_from_field() 177 status = acpi_ex_extract_from_field (obj_desc, buffer, (u32) length); in acpi_ex_read_data_from_field() 213 u32 length; in acpi_ex_write_data_to_field() local 256 if (source_desc->buffer.length < ACPI_SMBUS_BUFFER_SIZE) { in acpi_ex_write_data_to_field() 258 ACPI_SMBUS_BUFFER_SIZE, source_desc->buffer.length)); in acpi_ex_write_data_to_field() [all …]
|
D | exoparg3.c | 166 acpi_size length; in acpi_ex_opcode_3A_1T_1R() local 188 length = (acpi_size) operand[2]->integer.value; in acpi_ex_opcode_3A_1T_1R() 194 if ((index < operand[0]->string.length) && in acpi_ex_opcode_3A_1T_1R() 195 (length > 0)) { in acpi_ex_opcode_3A_1T_1R() 198 if ((index + length) > in acpi_ex_opcode_3A_1T_1R() 199 operand[0]->string.length) { in acpi_ex_opcode_3A_1T_1R() 200 length = (acpi_size) operand[0]->string.length - index; in acpi_ex_opcode_3A_1T_1R() 205 buffer = ACPI_MEM_CALLOCATE ((acpi_size) length + 1); in acpi_ex_opcode_3A_1T_1R() 214 length); in acpi_ex_opcode_3A_1T_1R() 219 return_desc->string.length = (u32) length; in acpi_ex_opcode_3A_1T_1R()
|
/linux-2.4.37.9/drivers/ieee1394/ |
D | ieee1394_transactions.c | 41 static void fill_async_readblock(struct hpsb_packet *packet, u64 addr, int length) in fill_async_readblock() argument 44 packet->header[3] = length << 16; in fill_async_readblock() 59 static void fill_async_writeblock(struct hpsb_packet *packet, u64 addr, int length) in fill_async_writeblock() argument 62 packet->header[3] = length << 16; in fill_async_writeblock() 65 packet->data_size = length + (length % 4 ? 4 - (length % 4) : 0); in fill_async_writeblock() 69 int length) in fill_async_lock() argument 72 packet->header[3] = (length << 16) | extcode; in fill_async_lock() 74 packet->data_size = length; in fill_async_lock() 78 static void fill_iso_packet(struct hpsb_packet *packet, int length, int channel, in fill_iso_packet() argument 81 packet->header[0] = (length << 16) | (tag << 14) | (channel << 8) in fill_iso_packet() [all …]
|
/linux-2.4.37.9/drivers/net/arcnet/ |
D | arc-rawmode.c | 39 struct archdr *pkthdr, int length); 42 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 93 struct archdr *pkthdr, int length) in rx() argument 100 BUGMSG(D_DURING, "it's a raw packet (length=%d)\n", length); in rx() 102 if (length >= MinTU) in rx() 103 ofs = 512 - length; in rx() 105 ofs = 256 - length; in rx() 107 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 113 skb_put(skb, length + ARC_HDR_SIZE); in rx() 123 if (length > sizeof(pkt->soft)) in rx() [all …]
|
D | rfc1051.c | 39 struct archdr *pkthdr, int length); 42 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 130 struct archdr *pkthdr, int length) in rx() argument 137 BUGMSG(D_DURING, "it's a raw packet (length=%d)\n", length); in rx() 139 if (length >= MinTU) in rx() 140 ofs = 512 - length; in rx() 142 ofs = 256 - length; in rx() 144 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 150 skb_put(skb, length + ARC_HDR_SIZE); in rx() 157 if (length > sizeof(pkt->soft)) in rx() [all …]
|
/linux-2.4.37.9/drivers/hotplug/ |
D | acpiphp_res.c | 82 ((*head)->length > (*head)->next->length)) { in sort_by_size() 93 if (current_res->next->length > current_res->next->next->length) { in sort_by_size() 129 ((*head)->length < (*head)->next->length)) { in sort_by_max_size() 140 if (current_res->next->length < current_res->next->next->length) { in sort_by_max_size() 185 if (node->length < size) in acpiphp_get_io_resource() 194 if ((node->length - (temp_qword - node->base)) < size) in acpiphp_get_io_resource() 203 node->length -= split_node->length; in acpiphp_get_io_resource() 211 if (node->length > size) { in acpiphp_get_io_resource() 214 split_node = acpiphp_make_resource(node->base + size, node->length - size); in acpiphp_get_io_resource() 219 node->length = size; in acpiphp_get_io_resource() [all …]
|
/linux-2.4.37.9/net/atm/ |
D | mpoa_proc.c | 105 int length = 0; in proc_mpc_read() local 118 atm_mpoa_disp_qos((char *)page, &length); in proc_mpc_read() 120 length += print_header((char *)page + length, mpc); in proc_mpc_read() 121 …length += sprintf((char *)page + length,"Ingress Entries:\nIP address State Holding time… in proc_mpc_read() 126 …length += sprintf((char *)page + length,"%-16s%s%-14lu%-12u", ip_string, ingress_state_string(in_e… in proc_mpc_read() 128 …length += sprintf((char *)page + length," %-3d %-3d",in_entry->shortcut->vpi,in_entry->shortcut… in proc_mpc_read() 129 length += sprintf((char *)page + length,"\n"); in proc_mpc_read() 132 length += sprintf((char *)page + length,"\n"); in proc_mpc_read() 134 …length += sprintf((char *)page + length,"Egress Entries:\nIngress MPC ATM addr\nCache-id St… in proc_mpc_read() 137 … length += sprintf((char *)page + length,"%02x",eg_entry->ctrl_info.in_MPC_data_ATM_addr[i]);} in proc_mpc_read() [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | eata_dma_proc.h | 29 __u16 length; member 38 __u8 length; /* 0x24 */ member 53 __u8 length; /* 0x28 */ member 69 __u8 length; /* 0x30 */ member 76 __u8 length; /* 0x34 */ member 83 __u8 length; /* 0x10 */ member 95 __u8 length; /* 0x02 */ member 109 __u8 length; /* 0x02 */ member 118 __u8 length; /* 0x04 */ member 125 __u8 length; /* 0x04 */ member [all …]
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_dir2_data.c | 109 if (INT_ISZERO(bf[0].length, ARCH_CONVERT)) { in xfs_dir2_data_check() 113 if (INT_ISZERO(bf[1].length, ARCH_CONVERT)) { in xfs_dir2_data_check() 117 if (INT_ISZERO(bf[2].length, ARCH_CONVERT)) { in xfs_dir2_data_check() 121 ASSERT(INT_GET(bf[0].length, ARCH_CONVERT) >= INT_GET(bf[1].length, ARCH_CONVERT)); in xfs_dir2_data_check() 122 ASSERT(INT_GET(bf[1].length, ARCH_CONVERT) >= INT_GET(bf[2].length, ARCH_CONVERT)); in xfs_dir2_data_check() 143 ASSERT(INT_GET(dup->length, ARCH_CONVERT) <= INT_GET(bf[2].length, ARCH_CONVERT)); in xfs_dir2_data_check() 144 p += INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_data_check() 221 ASSERT(INT_ISZERO(dfp->length, ARCH_CONVERT)); in xfs_dir2_data_freefind() 228 ASSERT(INT_GET(dfp->length, ARCH_CONVERT) == INT_GET(dup->length, ARCH_CONVERT)); in xfs_dir2_data_freefind() 230 ASSERT(off + INT_GET(dup->length, ARCH_CONVERT) <= INT_GET(dfp->offset, ARCH_CONVERT)); in xfs_dir2_data_freefind() [all …]
|
/linux-2.4.37.9/drivers/char/ |
D | scan_keyb.c | 30 int length; member 38 unsigned char *new, unsigned char *old, int length) in check_kbd() argument 43 while(length-->0) { in check_kbd() 77 kbd->s0, kbd->s1, kbd->length); in scan_kbd() 79 memcpy(kbd->s0, kbd->s1, kbd->length); in scan_kbd() 84 kbd->s1, kbd->s0, kbd->length); in scan_kbd() 86 memcpy(kbd->s1, kbd->s0, kbd->length); in scan_kbd() 101 int length) in register_scan_keyboard() argument 111 kbd->length=length; in register_scan_keyboard() 113 kbd->s0 = kmalloc(length, GFP_KERNEL); in register_scan_keyboard() [all …]
|
/linux-2.4.37.9/drivers/acpi/utilities/ |
D | utcopy.c | 109 external_object->string.length = internal_object->string.length; in acpi_ut_copy_isimple_to_esimple() 110 …*buffer_space_used = ACPI_ROUND_UP_TO_NATIVE_WORD ((acpi_size) internal_object->string.length + 1); in acpi_ut_copy_isimple_to_esimple() 113 (acpi_size) internal_object->string.length + 1); in acpi_ut_copy_isimple_to_esimple() 120 external_object->buffer.length = internal_object->buffer.length; in acpi_ut_copy_isimple_to_esimple() 121 *buffer_space_used = ACPI_ROUND_UP_TO_NATIVE_WORD (internal_object->string.length); in acpi_ut_copy_isimple_to_esimple() 124 internal_object->buffer.length); in acpi_ut_copy_isimple_to_esimple() 160 external_object->processor.pblk_length = internal_object->processor.length; in acpi_ut_copy_isimple_to_esimple() 260 info->length += object_space; in acpi_ut_copy_ielement_to_eelement() 306 info.length = ACPI_ROUND_UP_TO_NATIVE_WORD (sizeof (union acpi_object)); in acpi_ut_copy_ipackage_to_epackage() 319 info.length += (acpi_size) external_object->package.count * in acpi_ut_copy_ipackage_to_epackage() [all …]
|
D | utobject.c | 184 buffer_desc->buffer.length = (u32) buffer_size; in acpi_ut_create_buffer_object() 364 acpi_size length; in acpi_ut_get_simple_object_size() local 380 length = sizeof (union acpi_object); in acpi_ut_get_simple_object_size() 385 *obj_length = ACPI_ROUND_UP_TO_NATIVE_WORD (length); in acpi_ut_get_simple_object_size() 398 length += (acpi_size) internal_object->string.length + 1; in acpi_ut_get_simple_object_size() 404 length += (acpi_size) internal_object->buffer.length; in acpi_ut_get_simple_object_size() 427 …length += ACPI_ROUND_UP_TO_NATIVE_WORD (acpi_ns_get_pathname_length (internal_object->reference.no… in acpi_ut_get_simple_object_size() 460 *obj_length = ACPI_ROUND_UP_TO_NATIVE_WORD (length); in acpi_ut_get_simple_object_size() 501 info->length += object_space; in acpi_ut_get_element_length() 554 info.length = 0; in acpi_ut_get_package_object_size() [all …]
|
/linux-2.4.37.9/drivers/usb/storage/ |
D | scsiglue.c | 345 do { if (pos < buffer+length) pos += sprintf(pos, ## args); } while (0) 347 static int proc_info (char *buffer, char **start, off_t offset, int length, in proc_info() argument 355 return length; in proc_info() 399 else if ((pos - buffer - offset) < length) in proc_info() 402 return (length); in proc_info() 494 int length=0; in usb_stor_scsiSense10to6() local 507 &length ); in usb_stor_scsiSense10to6() 514 if ( outputBufferSize > length ) in usb_stor_scsiSense10to6() 520 outputBufferSize, length ); in usb_stor_scsiSense10to6() 522 outputBufferSize = length; in usb_stor_scsiSense10to6() [all …]
|
/linux-2.4.37.9/include/acpi/ |
D | acdisasm.h | 303 u32 length, 309 u32 length, 315 u32 length, 321 u32 length, 327 u32 length, 333 u32 length, 339 u32 length, 345 u32 length, 351 u32 length, 362 u32 length, [all …]
|
/linux-2.4.37.9/fs/hfs/ |
D | file_hdr.c | 172 hfs_u32 length = descr->length; in dlength() local 175 if (length == ~0) { in dlength() 179 length = entry->u.file.data_fork.lsize; in dlength() 181 length = 0; in dlength() 187 length = entry->u.file.rsrc_fork.lsize; in dlength() 189 length = 0; in dlength() 194 length = entry->key.CName.Len; in dlength() 199 length = 0; in dlength() 202 return length; in dlength() 265 layout->descr[lcv].length = hfs_get_hl(descrs + 8); in init_layout() [all …]
|
D | extent.c | 77 e->start + e->length[0] - 1, in dump_ext() 78 e->start + e->length[0], in dump_ext() 79 e->start + e->length[0] + e->length[1] - 1, in dump_ext() 80 e->start + e->length[0] + e->length[1], in dump_ext() 104 to->length[0] = hfs_get_hs(from->length1); in read_extent() 106 to->length[1] = hfs_get_hs(from->length2); in read_extent() 108 to->length[2] = hfs_get_hs(from->length3); in read_extent() 109 to->end = start + to->length[0] + to->length[1] + to->length[2] - 1; in read_extent() 125 hfs_put_hs(from->length[0], to->length1); in write_extent() 127 hfs_put_hs(from->length[1], to->length2); in write_extent() [all …]
|
/linux-2.4.37.9/fs/ncpfs/ |
D | symlink.c | 49 int error, length, len, cnt; in ncp_symlink_readpage() local 64 0,NCP_MAX_SYMLINK_SIZE,link,&length); in ncp_symlink_readpage() 72 if (length<NCP_MIN_SYMLINK_SIZE || in ncp_symlink_readpage() 78 error = ncp_vol2io(NCP_SERVER(inode), buf, &len, link+8, length-8, 0); in ncp_symlink_readpage() 109 int length, err, i; in ncp_symlink() local 118 if ((length=strlen(symname))>NCP_MAX_SYMLINK_SIZE-8) in ncp_symlink() 121 if ((link=(char *)kmalloc(length+9,GFP_NFS))==NULL) in ncp_symlink() 138 length += 1; in ncp_symlink() 139 err = ncp_io2vol(NCP_SERVER(inode),link+8,&length,symname,length-1,0); in ncp_symlink() 144 0, length+8, link, &i) || i!=length+8) { in ncp_symlink()
|
/linux-2.4.37.9/arch/ia64/kernel/ |
D | efivars.c | 130 unsigned long length = 0; in utf8_strlen() local 131 while (*data++ != 0 && length < maxlength) in utf8_strlen() 132 length++; in utf8_strlen() 133 return length; in utf8_strlen() 363 ssize_t size, length; in efi_systab_read() local 376 length = 0; in efi_systab_read() 378 length += sprintf(proc_buffer + length, "MPS=0x%lx\n", __pa(efi.mps)); in efi_systab_read() 380 length += sprintf(proc_buffer + length, "ACPI20=0x%lx\n", __pa(efi.acpi20)); in efi_systab_read() 382 length += sprintf(proc_buffer + length, "ACPI=0x%lx\n", __pa(efi.acpi)); in efi_systab_read() 384 length += sprintf(proc_buffer + length, "SMBIOS=0x%lx\n", __pa(efi.smbios)); in efi_systab_read() [all …]
|
/linux-2.4.37.9/drivers/usb/gadget/ |
D | rndis.c | 87 static rndis_resp_t *rndis_add_response (int configNr, u32 length); 94 u32 length = 0; in gen_ndis_query_resp() local 111 length = sizeof (oid_supported_list); in gen_ndis_query_resp() 112 count = length / sizeof (u32); in gen_ndis_query_resp() 122 length = 4; in gen_ndis_query_resp() 136 length = 4; in gen_ndis_query_resp() 145 length = 4; in gen_ndis_query_resp() 156 length = 4; in gen_ndis_query_resp() 169 length = 4; in gen_ndis_query_resp() 183 length = 4; in gen_ndis_query_resp() [all …]
|
/linux-2.4.37.9/drivers/acpi/resources/ |
D | rscreate.c | 93 byte_stream_buffer_length = byte_stream_buffer->buffer.length; in acpi_rs_create_resource_list() 125 output_buffer->pointer, (u32) output_buffer->length)); in acpi_rs_create_resource_list() 210 buffer += user_prt->length; in acpi_rs_create_pci_routing_table() 218 user_prt->length = (sizeof (struct acpi_pci_routing_table) - 4); in acpi_rs_create_pci_routing_table() 292 path_buffer.length = output_buffer->length - in acpi_rs_create_pci_routing_table() 299 user_prt->length += (u32) ACPI_STRLEN (user_prt->source) + 1; /* include null terminator */ in acpi_rs_create_pci_routing_table() 309 user_prt->length += obj_desc->string.length + 1; in acpi_rs_create_pci_routing_table() 320 user_prt->length += sizeof (u32); in acpi_rs_create_pci_routing_table() 334 user_prt->length = (u32) ACPI_ROUND_UP_to_64_bITS (user_prt->length); in acpi_rs_create_pci_routing_table() 356 output_buffer->pointer, (u32) output_buffer->length)); in acpi_rs_create_pci_routing_table() [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | emi26.c | 22 __u32 length; member 41 static int emi26_writememory( struct usb_device *dev, int address, unsigned char *data, int length,… 51 static int emi26_writememory (struct usb_device *dev, int address, unsigned char *data, int length,… in emi26_writememory() argument 54 unsigned char *buffer = kmalloc (length, GFP_KERNEL); in emi26_writememory() 57 printk(KERN_ERR "emi26: kmalloc(%d) failed.", length); in emi26_writememory() 60 memcpy (buffer, data, length); in emi26_writememory() 63 …result = usb_control_msg (dev, usb_sndctrlpipe(dev, 0), request, 0x40, address, 0, buffer, length,… in emi26_writememory() 98 …err = emi26_writememory(dev, g_Loader[i].address, g_Loader[i].data, g_Loader[i].length, ANCHOR_LOA… in emi26_load_firmware() 116 while ((g_bitstream[pos].type == 0) && (i + g_bitstream[pos].length < sizeof(buf))) { in emi26_load_firmware() 117 memcpy(buf + i, g_bitstream[pos].data, g_bitstream[pos].length); in emi26_load_firmware() [all …]
|
/linux-2.4.37.9/drivers/acpi/tables/ |
D | tbconvrt.c | 91 return ((RSDT->length - sizeof (struct acpi_table_header)) / pointer_size); in acpi_tb_get_table_count() 134 new_table->length = (u32) table_size; in acpi_tb_convert_to_xsdt() 156 table_info->length = table_size; in acpi_tb_convert_to_xsdt() 433 if (acpi_gbl_FADT->length < sizeof (struct fadt_descriptor_rev1)) { in acpi_tb_convert_table_fadt() 434 ACPI_REPORT_ERROR (("Invalid FADT table length: 0x%X\n", acpi_gbl_FADT->length)); in acpi_tb_convert_table_fadt() 439 if (acpi_gbl_FADT->length < sizeof (struct fadt_descriptor_rev2)) { in acpi_tb_convert_table_fadt() 443 acpi_gbl_FADT->length, acpi_gbl_FADT->revision)); in acpi_tb_convert_table_fadt() 463 acpi_gbl_FADT->length = sizeof (FADT_DESCRIPTOR); in acpi_tb_convert_table_fadt() 474 table_desc->length = sizeof (struct fadt_descriptor_rev2); in acpi_tb_convert_table_fadt() 480 acpi_gbl_FADT->length, acpi_gbl_FADT->length)); in acpi_tb_convert_table_fadt() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | ioport.c | 24 int length = low_index + extent; in set_bitmap() local 28 if (length < 32) in set_bitmap() 29 mask &= ~(~0 << length); in set_bitmap() 34 length -= 32; in set_bitmap() 38 while (length >= 32) { in set_bitmap() 40 length -= 32; in set_bitmap() 43 if (length > 0) { in set_bitmap() 44 mask = ~(~0 << length); in set_bitmap()
|
/linux-2.4.37.9/drivers/acorn/scsi/ |
D | arxescsi.c | 163 unsigned int length, io, error=0; in arxescsi_dma_pseudo() local 166 length = SCp->this_residual; in arxescsi_dma_pseudo() 172 while (length > 256) { in arxescsi_dma_pseudo() 179 length -= 256; in arxescsi_dma_pseudo() 183 while (length > 0) { in arxescsi_dma_pseudo() 193 if (length > 1) { in arxescsi_dma_pseudo() 195 length -= 2; in arxescsi_dma_pseudo() 198 length -= 1; in arxescsi_dma_pseudo() 204 while (length >= 256) { in arxescsi_dma_pseudo() 215 length -= 256; in arxescsi_dma_pseudo() [all …]
|