Home
last modified time | relevance | path

Searched refs:rlen (Results 1 – 25 of 142) sorted by relevance

123456

/linux-6.1.9/tools/perf/util/
Ddemangle-java.c47 int rlen = 0; in __demangle_java_sym() local
57 if (rlen == (maxlen - 1)) in __demangle_java_sym()
65 rlen += scnprintf(buf + rlen, maxlen - rlen, ", "); in __demangle_java_sym()
73 buf[rlen++] = *q; in __demangle_java_sym()
85 rlen += scnprintf(buf + rlen, maxlen - rlen, ", "); in __demangle_java_sym()
86 rlen += scnprintf(buf + rlen, maxlen - rlen, "%s", base_types[*q - 'A']); in __demangle_java_sym()
88 rlen += scnprintf(buf + rlen, maxlen - rlen, "[]"); in __demangle_java_sym()
92 buf[rlen++] = *q; in __demangle_java_sym()
96 rlen += scnprintf(buf + rlen, maxlen - rlen, "void"); in __demangle_java_sym()
98 rlen += scnprintf(buf + rlen, maxlen - rlen, "[]"); in __demangle_java_sym()
[all …]
/linux-6.1.9/arch/s390/kernel/
Dcpcmd.c37 static int diag8_response(int cmdlen, char *response, int *rlen) in diag8_response() argument
45 ry.odd = *rlen; in diag8_response()
54 *rlen += ry.odd; in diag8_response()
56 *rlen = ry.odd; in diag8_response()
64 int __cpcmd(const char *cmd, char *response, int rlen, int *response_code) in __cpcmd() argument
77 memset(response, 0, rlen); in __cpcmd()
78 response_len = rlen; in __cpcmd()
79 rc = diag8_response(cmdlen, response, &rlen); in __cpcmd()
86 return rlen; in __cpcmd()
90 int cpcmd(const char *cmd, char *response, int rlen, int *response_code) in cpcmd() argument
[all …]
/linux-6.1.9/drivers/gpu/drm/msm/dp/
Ddp_link.c191 ssize_t rlen; in dp_link_parse_audio_pattern_type() local
194 rlen = drm_dp_dpcd_readb(link->aux, in dp_link_parse_audio_pattern_type()
196 if (rlen < 0) { in dp_link_parse_audio_pattern_type()
197 DRM_ERROR("failed to read link audio mode. rlen=%zd\n", rlen); in dp_link_parse_audio_pattern_type()
198 return rlen; in dp_link_parse_audio_pattern_type()
218 ssize_t rlen; in dp_link_parse_audio_mode() local
224 rlen = drm_dp_dpcd_readb(link->aux, DP_TEST_AUDIO_MODE, &data); in dp_link_parse_audio_mode()
225 if (rlen < 0) { in dp_link_parse_audio_mode()
226 DRM_ERROR("failed to read link audio mode. rlen=%zd\n", rlen); in dp_link_parse_audio_mode()
227 return rlen; in dp_link_parse_audio_mode()
[all …]
Ddp_panel.c27 ssize_t rlen; in dp_panel_read_dpcd() local
38 rlen = drm_dp_dpcd_read(panel->aux, offset, in dp_panel_read_dpcd()
40 if (rlen < (DP_RECEIVER_CAP_SIZE + 1)) { in dp_panel_read_dpcd()
41 DRM_ERROR("dpcd read failed, rlen=%zd\n", rlen); in dp_panel_read_dpcd()
42 if (rlen == -ETIMEDOUT) in dp_panel_read_dpcd()
43 rc = rlen; in dp_panel_read_dpcd()
59 rlen = drm_dp_dpcd_read(panel->aux, offset, in dp_panel_read_dpcd()
61 if (rlen < (DP_RECEIVER_CAP_SIZE + 1)) { in dp_panel_read_dpcd()
62 DRM_ERROR("dpcd read failed, rlen=%zd\n", rlen); in dp_panel_read_dpcd()
63 if (rlen == -ETIMEDOUT) in dp_panel_read_dpcd()
[all …]
/linux-6.1.9/drivers/media/usb/pvrusb2/
Dpvrusb2-i2c-core.c94 u16 rlen) /* Amount of data to read */ in pvr2_i2c_read() argument
108 if (res && (rlen > (sizeof(hdw->cmd_buffer) - 1))) { in pvr2_i2c_read()
112 rlen,(unsigned int)(sizeof(hdw->cmd_buffer) - 1)); in pvr2_i2c_read()
124 hdw->cmd_buffer[2] = rlen; /* answer length. Device will send one in pvr2_i2c_read()
134 rlen + 1); in pvr2_i2c_read()
146 if (res && rlen) { in pvr2_i2c_read()
149 memset(res, 0, rlen); in pvr2_i2c_read()
151 memcpy(res, hdw->cmd_buffer + 1, rlen); in pvr2_i2c_read()
167 u16 rlen) in pvr2_i2c_basic_op() argument
169 if (!rdata) rlen = 0; in pvr2_i2c_basic_op()
[all …]
/linux-6.1.9/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_urb.c12 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usb_v2_generic_io() argument
39 if (rbuf && rlen) { in dvb_usb_v2_generic_io()
47 rbuf, rlen, &actual_length, 2000); in dvb_usb_v2_generic_io()
61 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw() argument
66 ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw()
86 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw_locked() argument
88 return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw_locked()
Dzd1301.c26 unsigned int wlen, u8 *rbuf, unsigned int rlen) in zd1301_ctrl_msg() argument
45 if (rlen) { in zd1301_ctrl_msg()
47 dev->buf, rlen, &actual_length, 1000); in zd1301_ctrl_msg()
56 if (actual_length != rlen) { in zd1301_ctrl_msg()
65 dev->buf, rlen, &actual_length, in zd1301_ctrl_msg()
77 memcpy(rbuf, dev->buf, rlen); in zd1301_ctrl_msg()
Dau6610.c15 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument
67 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument
70 u8 wo = (rbuf == NULL || rlen == 0); /* write-only */ in au6610_i2c_msg()
78 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
/linux-6.1.9/arch/powerpc/kernel/
Disa-bridge.c83 int rlen = 0; in pci_process_ISA_OF_ranges() local
85 range = of_get_property(isa_node, "ranges", &rlen); in pci_process_ISA_OF_ranges()
86 if (range == NULL || (rlen < sizeof(struct isa_range))) in pci_process_ISA_OF_ranges()
99 rlen -= sizeof(struct isa_range); in pci_process_ISA_OF_ranges()
100 if (rlen < sizeof(struct isa_range)) in pci_process_ISA_OF_ranges()
190 int rlen, i, rs; in isa_bridge_init_non_pci() local
215 ranges = of_get_property(np, "ranges", &rlen); in isa_bridge_init_non_pci()
216 if (ranges == NULL || rlen < rs) { in isa_bridge_init_non_pci()
223 for (i = 0; (i + rs - 1) < rlen; i += rs) { in isa_bridge_init_non_pci()
/linux-6.1.9/tools/virtio/virtio-trace/
Dtrace-agent-ctl.c91 ssize_t rlen; in rw_ctl_loop() local
106 rlen = read(ctl_fd, buf, sizeof(buf)); in rw_ctl_loop()
107 if (rlen < 0) { in rw_ctl_loop()
112 if (rlen == 2 && buf[0] == '1') { in rw_ctl_loop()
120 } else if (rlen == 2 && buf[0] == '0') { in rw_ctl_loop()
Dtrace-agent-rw.c106 ssize_t rlen, wlen; in rw_thread_main() local
127 rlen = splice(ts->in_fd, NULL, ts->read_pipe, NULL, in rw_thread_main()
130 if (rlen < 0) { in rw_thread_main()
133 } else if (rlen == 0) { in rw_thread_main()
149 rlen - wlen, in rw_thread_main()
168 } while (wlen < rlen); in rw_thread_main()
/linux-6.1.9/drivers/mtd/spi-nor/
Dotp.c313 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_read_write() local
357 rofs = ofs & (rlen - 1); in spi_nor_mtd_otp_read_write()
360 len = min_t(size_t, total_len, rlen - rofs); in spi_nor_mtd_otp_read_write()
399 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_erase() local
415 if (!IS_ALIGNED(len, rlen) || !IS_ALIGNED(from, rlen)) in spi_nor_mtd_otp_erase()
438 len -= rlen; in spi_nor_mtd_otp_erase()
439 from += rlen; in spi_nor_mtd_otp_erase()
452 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_lock() local
460 if (!IS_ALIGNED(len, rlen) || !IS_ALIGNED(from, rlen)) in spi_nor_mtd_otp_lock()
473 len -= rlen; in spi_nor_mtd_otp_lock()
[all …]
/linux-6.1.9/drivers/media/tuners/
Dsi2157.c36 if (cmd->rlen) { in si2157_cmd_execute()
41 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2157_cmd_execute()
44 } else if (ret != cmd->rlen) { in si2157_cmd_execute()
125 cmd.rlen = 1; in si2157_load_firmware()
160 cmd.rlen = 13; in si2157_find_and_load_firmware()
230 cmd.rlen = 4; in si2157_init()
253 cmd.rlen = 1; in si2157_init()
275 cmd.rlen = 1; in si2157_init()
283 cmd.rlen = 10; in si2157_init()
294 cmd.rlen = 1; in si2157_init()
[all …]
/linux-6.1.9/drivers/scsi/
Dscsi_netlink.c36 u32 rlen; in scsi_nl_rcv_msg() local
50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
51 if (rlen > skb->len) in scsi_nl_rcv_msg()
52 rlen = skb->len; in scsi_nl_rcv_msg()
102 skb_pull(skb, rlen); in scsi_nl_rcv_msg()
/linux-6.1.9/drivers/of/
Dfdt_address.c115 int rlen; in fdt_translate_one() local
119 ranges = fdt_getprop(blob, parent, rprop, &rlen); in fdt_translate_one()
122 if (rlen == 0) { in fdt_translate_one()
132 rlen /= 4; in fdt_translate_one()
134 for (; rlen >= rone; rlen -= rone, ranges += rone) { in fdt_translate_one()
/linux-6.1.9/drivers/scsi/qedf/
Dqedf_fip.c85 ssize_t rlen; in qedf_fcoe_process_vlan_resp() local
90 rlen = ntohs(fiph->fip_dl_len) * 4; in qedf_fcoe_process_vlan_resp()
92 while (rlen > 0) { in qedf_fcoe_process_vlan_resp()
100 rlen -= dlen; in qedf_fcoe_process_vlan_resp()
176 size_t rlen, dlen; in qedf_fip_recv() local
231 rlen = ntohs(fiph->fip_dl_len) * FIP_BPW; in qedf_fip_recv()
233 while (rlen >= sizeof(*desc)) { in qedf_fip_recv()
280 rlen -= dlen; in qedf_fip_recv()
/linux-6.1.9/sound/aoa/soundbus/i2sbus/
Dcore.c159 int i, layout = 0, rlen, ok = force; in i2sbus_add_dev() local
272 rlen = resource_size(r); in i2sbus_add_dev()
273 if (rlen < sizeof(struct i2s_interface_regs)) in i2sbus_add_dev()
275 dev->intfregs = ioremap(r->start, rlen); in i2sbus_add_dev()
278 rlen = resource_size(r); in i2sbus_add_dev()
279 if (rlen < sizeof(struct dbdma_regs)) in i2sbus_add_dev()
281 dev->out.dbdma = ioremap(r->start, rlen); in i2sbus_add_dev()
284 rlen = resource_size(r); in i2sbus_add_dev()
285 if (rlen < sizeof(struct dbdma_regs)) in i2sbus_add_dev()
287 dev->in.dbdma = ioremap(r->start, rlen); in i2sbus_add_dev()
/linux-6.1.9/drivers/usb/misc/
Duss720.c505 int rlen = 0; in parport_uss720_epp_write_data() local
512 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buf, length, &rlen, 20000); in parport_uss720_epp_write_data()
514 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buf, length, rlen); in parport_uss720_epp_write_data()
516 return rlen; in parport_uss720_epp_write_data()
566 int rlen = 0; in parport_uss720_ecp_write_data() local
573 i = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), (void *)buffer, len, &rlen, 20000); in parport_uss720_ecp_write_data()
575 printk(KERN_ERR "uss720: sendbulk ep 1 buf %p len %zu rlen %u\n", buffer, len, rlen); in parport_uss720_ecp_write_data()
577 return rlen; in parport_uss720_ecp_write_data()
584 int rlen = 0; in parport_uss720_ecp_read_data() local
591 i = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, 2), buffer, len, &rlen, 20000); in parport_uss720_ecp_read_data()
[all …]
/linux-6.1.9/fs/xfs/libxfs/
Dxfs_alloc.c409 xfs_extlen_t rlen; in xfs_alloc_fix_len() local
412 rlen = args->len; in xfs_alloc_fix_len()
413 ASSERT(rlen >= args->minlen); in xfs_alloc_fix_len()
414 ASSERT(rlen <= args->maxlen); in xfs_alloc_fix_len()
415 if (args->prod <= 1 || rlen < args->mod || rlen == args->maxlen || in xfs_alloc_fix_len()
416 (args->mod == 0 && rlen < args->prod)) in xfs_alloc_fix_len()
418 k = rlen % args->prod; in xfs_alloc_fix_len()
422 rlen = rlen - (k - args->mod); in xfs_alloc_fix_len()
424 rlen = rlen - args->prod + (args->mod - k); in xfs_alloc_fix_len()
426 if ((int)rlen < (int)args->minlen) in xfs_alloc_fix_len()
[all …]
/linux-6.1.9/arch/ia64/kernel/
Dunwind_decoder.c165 unw_word rlen; in unw_decode_r1() local
167 rlen = (code & 0x1f); in unw_decode_r1()
168 UNW_DEC_PROLOGUE(R1, body, rlen, arg); in unw_decode_r1()
176 unw_word rlen; in unw_decode_r2() local
182 rlen = unw_decode_uleb128 (&dp); in unw_decode_r2()
183 UNW_DEC_PROLOGUE_GR(R2, rlen, mask, grsave, arg); in unw_decode_r2()
190 unw_word rlen; in unw_decode_r3() local
192 rlen = unw_decode_uleb128 (&dp); in unw_decode_r3()
193 UNW_DEC_PROLOGUE(R3, ((code & 0x3) == 1), rlen, arg); in unw_decode_r3()
/linux-6.1.9/fs/ext4/
Ddir.c85 const int rlen = ext4_rec_len_from_disk(de->rec_len, in __ext4_check_dir_entry() local
87 const int next_offset = ((char *) de - buf) + rlen; in __ext4_check_dir_entry()
91 if (unlikely(rlen < ext4_dir_rec_len(1, fake ? NULL : dir))) in __ext4_check_dir_entry()
93 else if (unlikely(rlen % 4 != 0)) in __ext4_check_dir_entry()
95 else if (unlikely(rlen < ext4_dir_rec_len(de->name_len, in __ext4_check_dir_entry()
115 rlen, size, fake); in __ext4_check_dir_entry()
121 rlen, size, fake); in __ext4_check_dir_entry()
647 int rlen; in ext4_check_all_de() local
657 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_check_all_de()
658 de = (struct ext4_dir_entry_2 *)((char *)de + rlen); in ext4_check_all_de()
[all …]
/linux-6.1.9/arch/s390/include/asm/
Dcpcmd.h15 int __cpcmd(const char *cmd, char *response, int rlen, int *response_code);
30 int cpcmd(const char *cmd, char *response, int rlen, int *response_code);
/linux-6.1.9/drivers/i2c/busses/
Di2c-xlp9xx.c183 u8 rlen, *buf = priv->msg_buf; in xlp9xx_i2c_drain_rx_fifo() local
191 rlen = xlp9xx_read_i2c_reg(priv, XLP9XX_I2C_MRXFIFO); in xlp9xx_i2c_drain_rx_fifo()
206 if (rlen > I2C_SMBUS_BLOCK_MAX || rlen == 0) { in xlp9xx_i2c_drain_rx_fifo()
207 rlen = 0; /*abort transfer */ in xlp9xx_i2c_drain_rx_fifo()
214 *buf++ = rlen; in xlp9xx_i2c_drain_rx_fifo()
216 ++rlen; /* account for error check byte */ in xlp9xx_i2c_drain_rx_fifo()
218 priv->msg_buf_remaining = rlen; in xlp9xx_i2c_drain_rx_fifo()
219 priv->msg_len = rlen + 1; in xlp9xx_i2c_drain_rx_fifo()
/linux-6.1.9/drivers/bus/
Duniphier-system-bus.c182 int pna, bank, rlen, rone, ret; in uniphier_system_bus_probe() local
216 ranges = of_get_property(dev->of_node, "ranges", &rlen); in uniphier_system_bus_probe()
222 rlen /= sizeof(*ranges); in uniphier_system_bus_probe()
225 for (; rlen >= rone; rlen -= rone) { in uniphier_system_bus_probe()
/linux-6.1.9/drivers/gpu/drm/i915/gt/shaders/clear_kernel/
Dhsw.asm73 … render MsgDesc: media block read MsgCtrl = 0x0 Surface = 1 mlen 1 rlen 1 { align1 1Q };
78 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 1 mlen 2 rlen 0 { align1 1Q };
106 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q };
109 … render MsgDesc: media block write MsgCtrl = 0x0 Surface = 0 mlen 9 rlen 0 { align1 1Q };
119 thread_spawner MsgDesc: mlen 1 rlen 0 { align1 1Q EOT };

123456