/linux-master/fs/erofs/ |
H A D | data.c | 229 erofs_off_t startoff, length; local 234 length = erofs_pos(sb, dif->blocks); 237 map->m_pa < startoff + length) { 252 static int erofs_iomap_begin(struct inode *inode, loff_t offset, loff_t length, argument 261 map.m_llen = length; 280 iomap->length = map.m_llen; 287 if (!iomap->length) 288 iomap->length = length; 311 static int erofs_iomap_end(struct inode *inode, loff_t pos, loff_t length, argument [all...] |
/linux-master/drivers/usb/fotg210/ |
H A D | fotg210-udc.c | 271 /* set transfer length and direction */ 343 u32 length; local 348 length = req->req.length; 351 length = ioread32(ep->fotg210->reg + 353 if (length > req->req.length - req->req.actual) 354 length = req->req.length - req->req.actual; 358 if (req->req.length 574 u32 length = 8; local [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_iomap.c | 70 * length. 129 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); 157 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); 483 * length, then use the current offset as the basis. This ensures that 791 loff_t length, 800 xfs_fileoff_t end_fsb = xfs_iomap_end_fsb(mp, offset, length); 817 if (offset + length > i_size_read(inode)) 843 length = XFS_FSB_TO_B(mp, end_fsb) - offset; 870 ((offset | length) & mp->m_blockmask)) 876 trace_xfs_iomap_found(ip, offset, length, XFS_DATA_FOR 788 xfs_direct_write_iomap_begin( struct inode *inode, loff_t offset, loff_t length, unsigned flags, struct iomap *iomap, struct iomap *srcmap) argument 935 xfs_dax_write_iomap_end( struct inode *inode, loff_t pos, loff_t length, ssize_t written, unsigned flags, struct iomap *iomap) argument 1225 xfs_buffered_write_delalloc_punch( struct inode *inode, loff_t offset, loff_t length) argument 1230 xfs_bmap_punch_delalloc_range(XFS_I(inode), offset, offset + length); local 1235 xfs_buffered_write_iomap_end( struct inode *inode, loff_t offset, loff_t length, ssize_t written, unsigned flags, struct iomap *iomap) argument 1272 xfs_read_iomap_begin( struct inode *inode, loff_t offset, loff_t length, unsigned flags, struct iomap *iomap, struct iomap *srcmap) argument 1317 xfs_seek_iomap_begin( struct inode *inode, loff_t offset, loff_t length, unsigned flags, struct iomap *iomap, struct iomap *srcmap) argument 1405 xfs_xattr_iomap_begin( struct inode *inode, loff_t offset, loff_t length, unsigned flags, struct iomap *iomap, struct iomap *srcmap) argument [all...] |
/linux-master/drivers/net/ethernet/smsc/ |
H A D | smc9194.c | 472 word length; local 488 length = skb->len; 490 if (length < ETH_ZLEN) { 495 length = ETH_ZLEN; 502 ** Pkt size for allocating is data length +6 (for additional status words, 503 ** length and ctl!) If odd size last byte is included in this header. 505 numPages = ((length & 0xfffe) + 6) / 256; 570 . Set the length word in the chip's memory 572 . Check if a last byte is needed ( odd length packet ) 583 word length; local [all...] |
/linux-master/drivers/usb/core/ |
H A D | config.c | 277 "invalid endpoint descriptor of length %d, skipping\n", 629 "type = 0x%X, length = %d\n", cfgidx, 645 /* Go through the descriptors, checking their length and counting the 662 "of length %d, skipping remainder of the config\n", 674 "interface descriptor of length %d, " 717 "config %d has an invalid interface association descriptor of length %d, skipping\n", 865 unsigned int cfgno, length; local 881 length = ncfg * sizeof(struct usb_host_config); 882 dev->config = kzalloc(length, GFP_KERNEL); 886 length 985 int length, total_len, num, i, ssac; local [all...] |
/linux-master/tools/testing/selftests/net/openvswitch/ |
H A D | ovs-dpctl.py | 716 length=None, 725 length=length, 828 length=None, 837 length=length, 881 length=None, 890 length=length, 932 length [all...] |
/linux-master/drivers/media/usb/cx231xx/ |
H A D | cx231xx-audio.c | 118 int length = urb->iso_frame_desc[i].actual_length / local 123 if (!length) 127 if (oldptr + length >= runtime->buffer_size) { 134 length * stride - cnt * stride); 137 length * stride); 142 dev->adev.hwptr_done_capture += length; 148 dev->adev.capture_transfer_done += length; 209 int length = urb->actual_length / local 214 if (oldptr + length >= runtime->buffer_size) { 221 length * strid [all...] |
/linux-master/drivers/platform/surface/aggregator/ |
H A D | trace.h | 107 * @uid_str: A buffer of length SSAM_PTR_UID_LEN where the UID will be stored. 402 __field(u16, length) 410 __entry->length = packet->data.len; 419 __entry->length, 440 __field(u16, length) 449 __entry->length = packet->data.len; 458 __entry->length, 640 TP_PROTO(size_t length), 642 TP_ARGS(length), 645 __field(size_t, length) [all...] |
/linux-master/tools/power/acpi/os_specific/service_layers/ |
H A D | oslinuxtbl.c | 701 (u8)((gbl_xsdt->header.length - 710 (u8)((gbl_rsdt->header.length - 797 * careful about the FADT length and validate table addresses. 802 if ((gbl_fadt->header.length >= 809 if ((gbl_fadt->header.length >= 820 if ((gbl_fadt->header.length >= 827 if ((gbl_fadt->header.length >= 891 (u8)((gbl_xsdt->header.length - 901 (u8)((gbl_rsdt->header.length - 930 table_length = mapped_table->length; 1058 u32 length; local [all...] |
/linux-master/drivers/parport/ |
H A D | parport_pc.c | 267 size_t length, int flags) 273 size_t left = length; 281 while (!(status & 0x08) && got < length) { 308 if ((length > 1) && ((flags & PARPORT_EPP_FAST_32) 312 && !(((long)buf | length) & 0x03)) 313 insl(EPPDATA(port), buf, (length >> 2)); 315 && !(((long)buf | length) & 0x01)) 316 insw(EPPDATA(port), buf, length >> 1); local 318 insb(EPPDATA(port), buf, length); local 323 return length; 266 parport_pc_epp_read_data(struct parport *port, void *buf, size_t length, int flags) argument 338 parport_pc_epp_write_data(struct parport *port, const void *buf, size_t length, int flags) argument 351 outsw(EPPDATA(port), buf, length >> 1); local 353 outsb(EPPDATA(port), buf, length); local 372 parport_pc_epp_read_addr(struct parport *port, void *buf, size_t length, int flags) argument 378 insb(EPPADDR(port), buf, length); local 397 parport_pc_epp_write_addr(struct parport *port, const void *buf, size_t length, int flags) argument 404 outsb(EPPADDR(port), buf, length); local 423 parport_pc_ecpepp_read_data(struct parport *port, void *buf, size_t length, int flags) argument 437 parport_pc_ecpepp_write_data(struct parport *port, const void *buf, size_t length, int flags) argument 452 parport_pc_ecpepp_read_addr(struct parport *port, void *buf, size_t length, int flags) argument 466 parport_pc_ecpepp_write_addr(struct parport *port, const void *buf, size_t length, int flags) argument 483 parport_pc_fifo_write_block_pio(struct parport *port, const void *buf, size_t length) argument 581 parport_pc_fifo_write_block_dma(struct parport *port, const void *buf, size_t length) argument 710 parport_pc_fifo_write_block(struct parport *port, const void *buf, size_t length) argument 721 parport_pc_compat_write_block_pio(struct parport *port, const void *buf, size_t length, int flags) argument 795 parport_pc_ecp_write_block_pio(struct parport *port, const void *buf, size_t length, int flags) argument [all...] |
/linux-master/drivers/media/platform/amphion/ |
H A D | vpu_dbg.c | 192 inst->stream_buffer.length, 194 inst->stream_buffer.length); 246 &core->fw.phys, core->fw.length); 250 &core->rpc.phys, core->rpc.length, core->rpc.bytesused); 254 &core->log.phys, core->log.length); 307 int length; local 322 length = wptr - rptr; 324 length = print_buf->bytes + wptr - rptr; 326 if (s->count + length >= s->size) { 331 if (rptr + length > [all...] |
/linux-master/drivers/acpi/ |
H A D | tables.c | 374 static u8 __init acpi_table_checksum(u8 *buffer, u32 length) argument 377 u8 *end = buffer + length; 453 if (file.size != table->length) { 454 pr_err("ACPI OVERRIDE: File length does not match table length [%s%s]\n", 458 if (acpi_table_checksum(file.data, table->length)) { 465 table->signature, cpio_path, file.name, table->length); 467 all_tables_size += table->length; 533 acpi_physical_address *address, u32 *length) 540 *length 532 acpi_table_initrd_override(struct acpi_table_header *existing_table, acpi_physical_address *address, u32 *length) argument [all...] |
H A D | viot.c | 63 end = ACPI_ADD_PTR(struct acpi_viot_header, viot, viot->header.length); 70 if (hdr->length < sizeof(*hdr)) { 152 if (hdr->length < sizeof(node->pci)) 159 if (hdr->length < sizeof(node->mmio)) 202 if (hdr->length < sizeof(node->pci)) { 216 if (hdr->length < sizeof(node->mmio)) { 301 node->length);
|
/linux-master/drivers/firewire/ |
H A D | core-cdev.c | 118 size_t length; member in struct:inbound_transaction_resource 550 u32 response_tstamp, void *payload, size_t length, void *data) 567 if (length < rsp->length) 568 rsp->length = length; 570 memcpy(rsp->data, payload, rsp->length); 579 if (rsp->length <= sizeof(*rsp) - offsetof(typeof(*rsp), data)) 580 queue_event(client, &e->event, rsp, sizeof(*rsp), rsp->data, rsp->length); 582 queue_event(client, &e->event, rsp, sizeof(*rsp) + rsp->length, NUL 549 complete_transaction(struct fw_card *card, int rcode, u32 request_tstamp, u32 response_tstamp, void *payload, size_t length, void *data) argument 708 handle_request(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) argument [all...] |
/linux-master/drivers/platform/chrome/ |
H A D | cros_ec_lpc.c | 65 * @read: Copy length bytes from EC address offset into buffer dest. Returns 67 * @write: Copy length bytes from buffer msg into EC address offset. Returns 71 u8 (*read)(unsigned int offset, unsigned int length, u8 *dest); 72 u8 (*write)(unsigned int offset, unsigned int length, const u8 *msg); 81 static u8 cros_ec_lpc_read_bytes(unsigned int offset, unsigned int length, argument 87 for (i = 0; i < length; ++i) { 100 static u8 cros_ec_lpc_write_bytes(unsigned int offset, unsigned int length, argument 106 for (i = 0; i < length; ++i) { 119 static u8 cros_ec_lpc_mec_read_bytes(unsigned int offset, unsigned int length, argument 122 int in_range = cros_ec_lpc_mec_in_range(offset, length); 138 cros_ec_lpc_mec_write_bytes(unsigned int offset, unsigned int length, const u8 *msg) argument [all...] |
/linux-master/arch/x86/kernel/ |
H A D | amd_gart_64.c | 283 if (!s->dma_length || !s->length) 303 if (nonforced_iommu(dev, addr, s->length)) { 304 addr = dma_map_area(dev, addr, s->length, dir, 0); 314 s->dma_length = s->length; 342 sout->dma_length = s->length; 344 sout->dma_length += s->length; 348 pages = iommu_num_pages(s->offset, s->length, PAGE_SIZE); 367 sout->dma_length = start->length; 401 BUG_ON(s->length == 0); 403 nextneed = need_iommu(dev, addr, s->length); [all...] |
/linux-master/drivers/thermal/intel/int340x_thermal/ |
H A D | int3400_thermal.c | 121 int length = 0; local 128 length += sysfs_emit_at(buf, length, "%s\n", int3400_thermal_uuids[i]); 131 return length; 138 int i, length = 0; local 146 length += sysfs_emit_at(buf, length, "%s\n", int3400_thermal_uuids[i]); 149 if (length) 150 return length; 163 .cap.length [all...] |
/linux-master/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_mr.c | 104 * @length: length of region 111 struct ib_mr *pvrdma_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, argument 124 if (length == 0 || length > dev->dsr->caps.max_mr_size) { 125 dev_warn(&dev->pdev->dev, "invalid mem region length\n"); 129 umem = ib_umem_get(pd->device, start, length, access_flags); 151 mr->mmr.size = length; 168 cmd->length = length; [all...] |
/linux-master/drivers/nfc/ |
H A D | mei_phy.c | 205 static int mei_nfc_send(struct nfc_mei_phy *phy, const u8 *buf, size_t length) argument 212 mei_buf = kzalloc(length + MEI_NFC_HEADER_SIZE, GFP_KERNEL); 221 hdr->data_size = length; 225 memcpy(mei_buf + MEI_NFC_HEADER_SIZE, buf, length); 226 err = mei_cldev_send(phy->cldev, mei_buf, length + MEI_NFC_HEADER_SIZE); 261 static int mei_nfc_recv(struct nfc_mei_phy *phy, u8 *buf, size_t length) argument 266 received_length = mei_cldev_recv(phy->cldev, buf, length);
|
/linux-master/sound/firewire/ |
H A D | fcp.c | 318 const void *response, size_t length) 333 if (--length == 0) 341 void *data, size_t length, void *callback_data) 346 if (length < 1 || (*(const u8 *)data & 0xf0) != CTS_AVC) 360 is_matching_response(t, data, length)) { 365 t->response_size = min_t(unsigned int, length, 377 .length = 0x200, 317 is_matching_response(struct fcp_transaction *transaction, const void *response, size_t length) argument 338 fcp_response(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) argument
|
/linux-master/drivers/acpi/acpica/ |
H A D | nsxfname.c | 189 dest->length = source->length; 193 memcpy(string_area, source->string, source->length); 194 return (string_area + source->length); 290 info_size += hid->length; 298 info_size += uid->length; 319 info_size += cls->length; 325 * Now that we have the variable-length data, we can allocate the 334 /* Get the fixed-length data */ 390 * Copy the HID, UID, and CIDs to the return buffer. The variable-length [all...] |
H A D | dsobject.c | 202 * The buffer length (number of bytes) will be the larger of: 203 * 1) The specified buffer length and 204 * 2) The length of the initializer byte list 206 obj_desc->buffer.length = buffer_length; 208 obj_desc->buffer.length = byte_list_length; 213 if (obj_desc->buffer.length == 0) { 216 "Buffer defined with zero length in AML, creating\n")); 219 ACPI_ALLOCATE_ZEROED(obj_desc->buffer.length); 350 obj_desc->buffer.aml_length = op->named.length; 370 obj_desc->package.aml_length = op->named.length; [all...] |
/linux-master/drivers/staging/nvec/ |
H A D | nvec_power.c | 70 u8 length; member in struct:bat_response 196 memcpy(power->bat_manu, &res->plc, res->length - 2); 197 power->bat_model[res->length - 2] = '\0'; 200 memcpy(power->bat_model, &res->plc, res->length - 2); 201 power->bat_model[res->length - 2] = '\0'; 204 memcpy(power->bat_type, &res->plc, res->length - 2); 205 power->bat_type[res->length - 2] = '\0';
|
/linux-master/drivers/mtd/nand/spi/ |
H A D | gigadevice.c | 73 region->length = 8; 86 region->length = 8; 90 region->length = 7; 131 region->length = 64; 144 region->length = 63; 162 oobregion->length = 128; 174 oobregion->length = 127;
|
/linux-master/fs/nfsd/ |
H A D | blocklayout.c | 47 error = sb->s_export_op->map_blocks(inode, seg->offset, seg->length, 56 if (iomap.length < args->lg_minlength) { 100 bex->len = iomap.length; 103 seg->length = iomap.length; 109 seg->length = 0; 112 seg->length = 0;
|