Searched refs:new_head (Results 1 – 8 of 8) sorted by relevance
| /linux/lib/ |
| H A D | llist.c | 83 struct llist_node *new_head = NULL; in llist_reverse_order() local 88 tmp->next = new_head; in llist_reverse_order() 89 new_head = tmp; in llist_reverse_order() 92 return new_head; in llist_reverse_order()
|
| /linux/drivers/net/wwan/iosm/ |
| H A D | iosm_ipc_protocol_ops.c | 14 u32 new_head = (head + 1) % IPC_MEM_MSG_ENTRIES; in ipc_protocol_free_msg_get() local 17 if (new_head == le32_to_cpu(ipc_protocol->p_ap_shm->msg_tail)) { in ipc_protocol_free_msg_get() 39 u32 new_head = (head + 1) % IPC_MEM_MSG_ENTRIES; in ipc_protocol_msg_hp_update() local 42 ipc_protocol->p_ap_shm->msg_head = cpu_to_le32(new_head); in ipc_protocol_msg_hp_update() 328 u32 head, new_head; in ipc_protocol_dl_td_prepare() local 338 new_head = head + 1; in ipc_protocol_dl_td_prepare() 339 if (new_head >= pipe->nr_of_entries) in ipc_protocol_dl_td_prepare() 340 new_head = 0; in ipc_protocol_dl_td_prepare() 342 if (new_head == tail) in ipc_protocol_dl_td_prepare() 361 cpu_to_le32(new_head); in ipc_protocol_dl_td_prepare()
|
| /linux/drivers/net/ethernet/qualcomm/ |
| H A D | qca_spi.c | 273 u16 new_head; in qcaspi_transmit() local 316 new_head = qca->txr.head + 1; in qcaspi_transmit() 317 if (new_head >= qca->txr.count) in qcaspi_transmit() 318 new_head = 0; in qcaspi_transmit() 319 qca->txr.head = new_head; in qcaspi_transmit()
|
| /linux/drivers/hid/ |
| H A D | hidraw.c | 579 int new_head = (list->head + 1) & (HIDRAW_BUFFER_SIZE - 1); in hidraw_report_event() local 581 if (hidraw_is_revoked(list) || new_head == list->tail) in hidraw_report_event() 589 list->head = new_head; in hidraw_report_event()
|
| /linux/drivers/input/ |
| H A D | mousedev.c | 266 unsigned int new_head; in mousedev_notify_readers() local 277 new_head = (client->head + 1) % PACKET_QUEUE_LEN; in mousedev_notify_readers() 278 if (new_head != client->tail) { in mousedev_notify_readers() 279 p = &client->packets[client->head = new_head]; in mousedev_notify_readers()
|
| /linux/kernel/trace/ |
| H A D | ring_buffer.c | 3296 unsigned long new_head; in rb_update_meta_head() local 3299 new_head = (unsigned long)next_page->page; in rb_update_meta_head() 3305 (void)cmpxchg(&meta->head_buffer, old_head, new_head); in rb_update_meta_head() 3339 struct buffer_page *new_head; in rb_handle_head_page() local 3425 new_head = next_page; in rb_handle_head_page() 3426 rb_inc_page(&new_head); in rb_handle_head_page() 3428 ret = rb_head_page_set_head(cpu_buffer, new_head, next_page, in rb_handle_head_page() 3469 rb_head_page_set_normal(cpu_buffer, new_head, in rb_handle_head_page()
|
| /linux/mm/ |
| H A D | huge_memory.c | 3503 struct page *new_head = &folio->page + i; in __split_folio_to_order() local 3508 struct folio *new_folio = (struct folio *)new_head; in __split_folio_to_order() 3510 VM_BUG_ON_PAGE(atomic_read(&new_folio->_mapcount) != -1, new_head); in __split_folio_to_order() 3546 page_range_has_hwpoisoned(new_head, new_nr_pages)) in __split_folio_to_order() 3564 clear_compound_head(new_head); in __split_folio_to_order() 3566 prep_compound_page(new_head, new_order); in __split_folio_to_order()
|
| /linux/fs/xfs/ |
| H A D | xfs_log.c | 112 xfs_lsn_t new_head) in xlog_grant_return_space() argument 114 int64_t diff = xlog_lsn_sub(log, new_head, old_head); in xlog_grant_return_space()
|