Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 1963) sorted by relevance

12345678910>>...79

/drivers/mca/
Dmca-proc.c35 static int get_mca_info_helper(struct mca_device *mca_dev, char *page, int len) in get_mca_info_helper() argument
40 len += sprintf(page+len, "%02x ", in get_mca_info_helper()
42 len += sprintf(page+len, " %s\n", mca_dev ? mca_dev->name : ""); in get_mca_info_helper()
43 return len; in get_mca_info_helper()
49 int i, len = 0; in get_mca_info() local
58 len += sprintf(page+len, "Slot %d: ", i+1); in get_mca_info()
59 len = get_mca_info_helper(mca_dev, page, len); in get_mca_info()
65 len += sprintf(page+len, "Video : "); in get_mca_info()
66 len = get_mca_info_helper(mca_dev, page, len); in get_mca_info()
71 len += sprintf(page+len, "SCSI : "); in get_mca_info()
[all …]
/drivers/s390/
Dsysinfo.c31 static int stsi_1_1_1(struct sysinfo_1_1_1 *info, char *page, int len) in stsi_1_1_1() argument
34 return len; in stsi_1_1_1()
44 len += sprintf(page + len, "Manufacturer: %-16.16s\n", in stsi_1_1_1()
46 len += sprintf(page + len, "Type: %-4.4s\n", in stsi_1_1_1()
56 len += sprintf(page + len, in stsi_1_1_1()
60 len += sprintf(page + len, "Model: %-16.16s\n", in stsi_1_1_1()
62 len += sprintf(page + len, "Sequence Code: %-16.16s\n", in stsi_1_1_1()
64 len += sprintf(page + len, "Plant: %-4.4s\n", in stsi_1_1_1()
66 len += sprintf(page + len, "Model Capacity: %-16.16s %08u\n", in stsi_1_1_1()
69 len += sprintf(page + len, in stsi_1_1_1()
[all …]
/drivers/net/wireless/ath9k/
Ddebug.c51 unsigned int len = 0; in read_file_dma() local
61 len += snprintf(buf + len, sizeof(buf) - len, in read_file_dma()
66 len += snprintf(buf + len, sizeof(buf) - len, "\n"); in read_file_dma()
69 len += snprintf(buf + len, sizeof(buf) - len, "%d: %08x ", in read_file_dma()
73 len += snprintf(buf + len, sizeof(buf) - len, "\n\n"); in read_file_dma()
74 len += snprintf(buf + len, sizeof(buf) - len, in read_file_dma()
88 len += snprintf(buf + len, sizeof(buf) - len, in read_file_dma()
96 len += snprintf(buf + len, sizeof(buf) - len, "\n"); in read_file_dma()
98 len += snprintf(buf + len, sizeof(buf) - len, in read_file_dma()
101 len += snprintf(buf + len, sizeof(buf) - len, in read_file_dma()
[all …]
/drivers/pnp/pnpbios/
Drsparser.c57 int start, int len) in pnpbios_parse_allocated_ioresource() argument
60 int end = start + len - 1; in pnpbios_parse_allocated_ioresource()
62 if (len <= 0 || end >= 0x10003) in pnpbios_parse_allocated_ioresource()
69 int start, int len) in pnpbios_parse_allocated_memresource() argument
72 int end = start + len - 1; in pnpbios_parse_allocated_memresource()
74 if (len <= 0) in pnpbios_parse_allocated_memresource()
84 unsigned int len, tag; in pnpbios_parse_allocated_resource_data() local
98 len = (p[2] << 8) | p[1]; in pnpbios_parse_allocated_resource_data()
101 len = p[0] & 0x07; in pnpbios_parse_allocated_resource_data()
108 if (len != 9) in pnpbios_parse_allocated_resource_data()
[all …]
/drivers/pnp/
Dsupport.c79 int len; in dbg_pnp_show_resources() local
91 len = 0; in dbg_pnp_show_resources()
93 len += scnprintf(buf + len, sizeof(buf) - len, " %-3s ", in dbg_pnp_show_resources()
104 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_resources()
112 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_resources()
138 int len = 0, i; in dbg_pnp_show_option() local
145 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
150 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
156 len += scnprintf(buf + len, sizeof(buf) - len, "io min %#llx " in dbg_pnp_show_option()
165 len += scnprintf(buf + len, sizeof(buf) - len, "mem min %#llx " in dbg_pnp_show_option()
[all …]
/drivers/isdn/hardware/eicon/
Ddivasproc.c59 int len = 0; in divas_read() local
68 if (copy_to_user(buf + len, &tmpbuf, strlen(tmpbuf))) in divas_read()
70 len += strlen(tmpbuf); in divas_read()
82 if ((strlen(tmpbuf) + len) > count) in divas_read()
85 (buf + len, &tmpbuf, in divas_read()
87 len += strlen(tmpbuf); in divas_read()
91 *off += len; in divas_read()
92 return (len); in divas_read()
214 int len = 0; in read_d_l1_down() local
218 len += sprintf(page + len, "%s\n", in read_d_l1_down()
[all …]
/drivers/parisc/
Deisa_enumerator.c84 int len; in configure_memory() local
89 len=0; in configure_memory()
92 c = get_8(buf+len); in configure_memory()
98 res->start = mem_parent->start + get_24(buf+len+2); in configure_memory()
99 res->end = res->start + get_16(buf+len+5)*1024; in configure_memory()
109 len+=7; in configure_memory()
116 return len; in configure_memory()
122 int len; in configure_irq() local
126 len=0; in configure_irq()
129 c = get_8(buf+len); in configure_irq()
[all …]
/drivers/scsi/
Dgdth_proc.c154 int size = 0,len = 0; in gdth_get_info() local
190 size = sprintf(buffer+len,"Driver Parameters:\n"); in gdth_get_info()
191 len += size; pos = begin + len; in gdth_get_info()
202 size = sprintf(buffer+len, in gdth_get_info()
205 len += size; pos = begin + len; in gdth_get_info()
206 size = sprintf(buffer+len, in gdth_get_info()
209 len += size; pos = begin + len; in gdth_get_info()
212 size = sprintf(buffer+len,"\nDisk Array Controller Information:\n"); in gdth_get_info()
213 len += size; pos = begin + len; in gdth_get_info()
215 size = sprintf(buffer+len, in gdth_get_info()
[all …]
Dmegaraid.c1733 mega_build_sglist(adapter_t *adapter, scb_t *scb, u32 *buf, u32 *len) in mega_build_sglist() argument
1753 *len = 0; in mega_build_sglist()
1759 *len = sg_dma_len(sg); in mega_build_sglist()
1766 *len += scb->sgl64[idx].length = sg_dma_len(sg); in mega_build_sglist()
1769 *len += scb->sgl[idx].length = sg_dma_len(sg); in mega_build_sglist()
2143 int len = 0; in proc_read_config() local
2145 len += sprintf(page+len, "%s", MEGARAID_VERSION); in proc_read_config()
2148 len += sprintf(page+len, "%s\n", in proc_read_config()
2151 len += sprintf(page+len, "Controller Type: "); in proc_read_config()
2154 len += sprintf(page+len, in proc_read_config()
[all …]
/drivers/scsi/lpfc/
Dlpfc_debugfs.c123 int len; member
151 int i, index, len, enable; in lpfc_debugfs_disc_trc_data() local
159 len = 0; in lpfc_debugfs_disc_trc_data()
170 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
181 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
186 return len; in lpfc_debugfs_disc_trc_data()
211 int i, index, len, enable; in lpfc_debugfs_slow_ring_trc_data() local
220 len = 0; in lpfc_debugfs_slow_ring_trc_data()
231 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
242 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
[all …]
/drivers/parport/
Dprocfs.c40 int len = 0; in do_active_device() local
52 len += sprintf(buffer, "%s\n", dev->name); in do_active_device()
56 if(!len) { in do_active_device()
57 len += sprintf(buffer, "%s\n", "none"); in do_active_device()
60 if (len > *lenp) in do_active_device()
61 len = *lenp; in do_active_device()
63 *lenp = len; in do_active_device()
65 *ppos += len; in do_active_device()
67 return copy_to_user(result, buffer, len) ? -EFAULT : 0; in do_active_device()
77 int len = 0; in do_autoprobe() local
[all …]
/drivers/w1/
Dw1_netlink.c43 m->len = sizeof(struct w1_netlink_msg); in w1_netlink_send()
57 avail = dev->priv_size - cmd->len; in w1_send_slave()
60 u64 *data = (void *)(cmd + 1) + cmd->len; in w1_send_slave()
63 cmd->len += 8; in w1_send_slave()
64 hdr->len += 8; in w1_send_slave()
65 msg->len += 8; in w1_send_slave()
72 msg->len = sizeof(struct w1_netlink_msg) + sizeof(struct w1_netlink_cmd); in w1_send_slave()
73 hdr->len = sizeof(struct w1_netlink_cmd); in w1_send_slave()
74 cmd->len = 0; in w1_send_slave()
110 cmd->len, GFP_KERNEL); in w1_send_read_reply()
[all …]
/drivers/mtd/ubi/
Dupd.c232 void *buf, int len, int used_ebs) in write_leb() argument
237 int l = ALIGN(len, ubi->min_io_size); in write_leb()
239 memset(buf + len, 0xFF, l - len); in write_leb()
240 len = ubi_calc_data_len(ubi, buf, l); in write_leb()
241 if (len == 0) { in write_leb()
242 dbg_gen("all %d bytes contain 0xFF - skip", len); in write_leb()
246 err = ubi_eba_write_leb(ubi, vol, lnum, buf, 0, len, in write_leb()
258 memset(buf + len, 0, vol->usable_leb_size - len); in write_leb()
259 err = ubi_eba_write_leb_st(ubi, vol, lnum, buf, len, in write_leb()
282 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() local
[all …]
/drivers/media/dvb/b2c2/
Dflexcop-eeprom.c12 static int eeprom_write(struct adapter *adapter, u16 addr, u8 *buf, u16 len)
14 return flex_i2c_write(adapter, 0x20000000, 0x50, addr, buf, len);
17 static int eeprom_lrc_write(struct adapter *adapter, u32 addr, u32 len, u8 *wbuf, u8 *rbuf, int ret…
22 if (eeprom_write(adapter, addr, wbuf, len) == len) {
23 if (eeprom_lrc_read(adapter, addr, len, rbuf, retries) == 1)
33 static int eeprom_writeKey(struct adapter *adapter, u8 *key, u32 len)
38 if (len != 16)
41 memcpy(wbuf, key, len);
51 static int eeprom_readKey(struct adapter *adapter, u8 *key, u32 len)
55 if (len != 16)
[all …]
/drivers/media/video/pvrusb2/
Dpvrusb2-ctrl.c288 unsigned int *len) in pvr2_ctrl_custom_value_to_sym() argument
292 return cptr->info->val_to_sym(cptr,mask,val,buf,maxlen,len); in pvr2_ctrl_custom_value_to_sym()
298 const char *buf,unsigned int len, in pvr2_ctrl_custom_sym_to_value() argument
303 return cptr->info->sym_to_val(cptr,buf,len,maskptr,valptr); in pvr2_ctrl_custom_sym_to_value()
309 char *ptr,unsigned int len) in gen_bitmask_string() argument
325 cnt = scnprintf(ptr,len,"%s%s%s", in gen_bitmask_string()
330 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
339 cnt = scnprintf(ptr,len,"%s0x%lx", in gen_bitmask_string()
342 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
345 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string()
[all …]
/drivers/media/video/em28xx/
Dem28xx-i2c.c65 char *buf, int len) in em2800_i2c_send_max4() argument
70 BUG_ON(len < 1 || len > 4); in em2800_i2c_send_max4()
71 b2[5] = 0x80 + len - 1; in em2800_i2c_send_max4()
74 if (len > 1) in em2800_i2c_send_max4()
76 if (len > 2) in em2800_i2c_send_max4()
78 if (len > 3) in em2800_i2c_send_max4()
81 ret = dev->em28xx_write_regs(dev, 4 - len, &b2[4 - len], 2 + len); in em2800_i2c_send_max4()
82 if (ret != 2 + len) { in em2800_i2c_send_max4()
89 if (ret == 0x80 + len - 1) in em2800_i2c_send_max4()
90 return len; in em2800_i2c_send_max4()
[all …]
/drivers/cpufreq/
Dcpufreq_stats.c84 ssize_t len = 0; in show_time_in_state() local
91 len += sprintf(buf + len, "%u %llu\n", stat->freq_table[i], in show_time_in_state()
94 return len; in show_time_in_state()
101 ssize_t len = 0; in show_trans_table() local
108 len += snprintf(buf + len, PAGE_SIZE - len, " From : To\n"); in show_trans_table()
109 len += snprintf(buf + len, PAGE_SIZE - len, " : "); in show_trans_table()
111 if (len >= PAGE_SIZE) in show_trans_table()
113 len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", in show_trans_table()
116 if (len >= PAGE_SIZE) in show_trans_table()
119 len += snprintf(buf + len, PAGE_SIZE - len, "\n"); in show_trans_table()
[all …]
/drivers/mtd/devices/
Dphram.c40 if (instr->addr + instr->len > mtd->size) in phram_erase()
43 memset(start + instr->addr, 0xff, instr->len); in phram_erase()
57 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len, in phram_point() argument
60 if (from + len > mtd->size) in phram_point()
68 *retlen = len; in phram_point()
72 static void phram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in phram_unpoint() argument
76 static int phram_read(struct mtd_info *mtd, loff_t from, size_t len, in phram_read() argument
84 if (len > mtd->size - from) in phram_read()
85 len = mtd->size - from; in phram_read()
87 memcpy(buf, start + from, len); in phram_read()
[all …]
/drivers/isdn/pcbit/
Dcapi.c56 ushort len; in capi_conn_req() local
74 len = 18 + strlen(calledPN); in capi_conn_req()
77 len++; in capi_conn_req()
79 if ((*skb = dev_alloc_skb(len)) == NULL) { in capi_conn_req()
131 return len; in capi_conn_req()
298 data_len = skb->len; in capi_tdata_req()
335 return (*skb)->len; in capi_tdata_resp()
385 int CIlen, len; in capi_decode_conn_ind() local
418 len = skb->data[0]; in capi_decode_conn_ind()
420 if (len > 0) { in capi_decode_conn_ind()
[all …]
Dcallbacks.c47 int len; in cb_out_1() local
60 if ((len = capi_conn_req(cbdata->data.setup.CalledPN, &skb, in cb_out_1()
75 pcbit_l2_write(dev, MSG_CONN_REQ, refnum, skb, len); in cb_out_1()
90 int len; in cb_out_2() local
93 if ((len=capi_conn_active_resp(chan, &skb)) < 0) in cb_out_2()
102 pcbit_l2_write(dev, MSG_CONN_ACTV_RESP, refnum, skb, len); in cb_out_2()
114 if ((len=capi_select_proto_req(chan, &skb, 1 /*outgoing*/)) < 0) { in cb_out_2()
122 pcbit_l2_write(dev, MSG_SELP_REQ, refnum, skb, len); in cb_out_2()
137 int len; in cb_in_1() local
174 if ((len=capi_conn_resp(chan, &skb)) < 0) { in cb_in_1()
[all …]
/drivers/xen/xenfs/
Dxenbus.c75 unsigned int len; member
99 unsigned int len; member
115 size_t len, loff_t *ppos) in xenbus_file_read() argument
134 while (i < len) { in xenbus_file_read()
135 unsigned sz = min((unsigned)len - i, rb->len - rb->cons); in xenbus_file_read()
149 if (rb->cons == rb->len) { in xenbus_file_read()
171 static int queue_reply(struct list_head *queue, const void *data, size_t len) in queue_reply() argument
175 if (len == 0) in queue_reply()
178 rb = kmalloc(sizeof(*rb) + len, GFP_KERNEL); in queue_reply()
183 rb->len = len; in queue_reply()
[all …]
/drivers/usb/storage/
Dshuttle_usbat.c132 unsigned int len, in usbat_bulk_read() argument
135 if (len == 0) in usbat_bulk_read()
138 US_DEBUGP("usbat_bulk_read: len = %d\n", len); in usbat_bulk_read()
139 return usb_stor_bulk_transfer_sg(us, us->recv_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_read()
147 unsigned int len, in usbat_bulk_write() argument
150 if (len == 0) in usbat_bulk_write()
153 US_DEBUGP("usbat_bulk_write: len = %d\n", len); in usbat_bulk_write()
154 return usb_stor_bulk_transfer_sg(us, us->send_bulk_pipe, buf, len, use_sg, NULL); in usbat_bulk_write()
164 unsigned int len) in usbat_execute_command() argument
168 commands, len); in usbat_execute_command()
[all …]
/drivers/media/dvb/dvb-core/
Ddvb_ringbuffer.c42 void dvb_ringbuffer_init(struct dvb_ringbuffer *rbuf, void *data, size_t len) in dvb_ringbuffer_init() argument
46 rbuf->size=len; in dvb_ringbuffer_init()
110 ssize_t dvb_ringbuffer_read_user(struct dvb_ringbuffer *rbuf, u8 __user *buf, size_t len) in dvb_ringbuffer_read_user() argument
112 size_t todo = len; in dvb_ringbuffer_read_user()
115 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read_user()
128 return len; in dvb_ringbuffer_read_user()
131 void dvb_ringbuffer_read(struct dvb_ringbuffer *rbuf, u8 *buf, size_t len) in dvb_ringbuffer_read() argument
133 size_t todo = len; in dvb_ringbuffer_read()
136 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read()
149 ssize_t dvb_ringbuffer_write(struct dvb_ringbuffer *rbuf, const u8 *buf, size_t len) in dvb_ringbuffer_write() argument
[all …]
/drivers/xen/xenbus/
Dxenbus_comms.c67 char *buf, uint32_t *len) in get_output_chunk() argument
69 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in get_output_chunk()
70 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in get_output_chunk()
71 *len = XENSTORE_RING_SIZE - (prod - cons); in get_output_chunk()
77 const char *buf, uint32_t *len) in get_input_chunk() argument
79 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in get_input_chunk()
80 if ((prod - cons) < *len) in get_input_chunk()
81 *len = prod - cons; in get_input_chunk()
92 int xb_write(const void *data, unsigned len) in xb_write() argument
98 while (len != 0) { in xb_write()
[all …]
/drivers/mtd/nand/
Dnand_bbt.c76 static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_pattern() argument
91 for (i = 0; i < td->len; i++) { in check_pattern()
97 p += td->len; in check_pattern()
98 end += td->len; in check_pattern()
99 for (i = end; i < len; i++) { in check_pattern()
123 for (i = 0; i < td->len; i++) { in check_short_pattern()
148 size_t retlen, len, totlen; in read_bbt() local
156 len = min(totlen, (size_t) (1 << this->bbt_erase_shift)); in read_bbt()
157 res = mtd->read(mtd, from, len, &retlen, buf); in read_bbt()
159 if (retlen != len) { in read_bbt()
[all …]

12345678910>>...79