Home
last modified time | relevance | path

Searched refs:lpos (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/kernel/printk/
Dprintk_ringbuffer.c315 #define DATA_INDEX(data_ring, lpos) ((lpos) & DATA_SIZE_MASK(data_ring)) argument
321 #define DATA_WRAPS(data_ring, lpos) ((lpos) >> (data_ring)->size_bits) argument
324 #define LPOS_DATALESS(lpos) ((lpos) & 1UL) argument
329 #define DATA_THIS_WRAP_START_LPOS(data_ring, lpos) \ argument
330 ((lpos) & ~DATA_SIZE_MASK(data_ring))
632 static bool data_push_tail(struct printk_ringbuffer *rb, unsigned long lpos) in data_push_tail() argument
640 if (LPOS_DATALESS(lpos)) in data_push_tail()
670 while ((lpos - tail_lpos) - 1 < DATA_SIZE(data_ring)) { in data_push_tail()
675 if (!data_make_reusable(rb, tail_lpos, lpos, &next_lpos)) { in data_push_tail()
1003 unsigned long lpos, unsigned int size) in get_next_lpos() argument
[all …]
/linux-6.6.21/sound/soc/sof/
Dipc3-dtrace.c323 loff_t lpos = *ppos; in dfsentry_dtrace_read() local
331 if (lpos < 0) in dfsentry_dtrace_read()
337 lpos_64 = lpos; in dfsentry_dtrace_read()
338 lpos = do_div(lpos_64, buffer_size); in dfsentry_dtrace_read()
341 avail = sof_wait_dtrace_avail(sdev, lpos, buffer_size); in dfsentry_dtrace_read()
363 rem = copy_to_user(buffer, ((u8 *)(dfse->buf) + lpos), count); in dfsentry_dtrace_read()
Dipc4-mtrace.c195 loff_t lpos = *ppos; in sof_ipc4_mtrace_dfs_read() local
200 if (lpos < 0) in sof_ipc4_mtrace_dfs_read()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras_eeprom.c1097 loff_t lpos; in amdgpu_ras_debugfs_table_read() local
1108 lpos = *pos - strlen(tbl_hdr_str); in amdgpu_ras_debugfs_table_read()
1109 if (copy_to_user(buf, &data[lpos], data_len)) in amdgpu_ras_debugfs_table_read()
1118 loff_t lpos; in amdgpu_ras_debugfs_table_read() local
1122 lpos = *pos - strlen(tbl_hdr_str) - tbl_hdr_fmt_size; in amdgpu_ras_debugfs_table_read()
1123 if (copy_to_user(buf, &rec_hdr_str[lpos], data_len)) in amdgpu_ras_debugfs_table_read()
/linux-6.6.21/lib/
Dbtree.c519 unsigned long *parent, int lpos) in merge() argument
529 setval(geo, parent, lpos, right); in merge()
530 setval(geo, parent, lpos + 1, left); in merge()
532 btree_remove_level(head, geo, bkey(geo, parent, lpos), level + 1); in merge()
/linux-6.6.21/drivers/net/wireless/intersil/hostap/
Dhostap_ap.c1501 char body[12], *p, *lpos; in handle_assoc() local
1652 lpos = p; in handle_assoc()
1656 (*lpos)++; in handle_assoc()
1660 (*lpos)++; in handle_assoc()
1665 (*lpos)++; in handle_assoc()
1670 (*lpos)++; in handle_assoc()
/linux-6.6.21/drivers/usb/dwc3/
Dgadget.c4422 event.raw = *(u32 *) (evt->cache + evt->lpos); in dwc3_process_event_buf()
4435 evt->lpos = (evt->lpos + 4) % evt->length; in dwc3_process_event_buf()
4512 amount = min(count, evt->length - evt->lpos); in dwc3_check_event_buf()
4513 memcpy(evt->cache + evt->lpos, evt->buf + evt->lpos, amount); in dwc3_check_event_buf()
Dcore.c510 evt->lpos = 0; in dwc3_event_buffers_setup()
528 evt->lpos = 0; in dwc3_event_buffers_cleanup()
Dcore.h679 unsigned int lpos; member