Lines Matching refs:PKT_FIELD
15 #define PKT_FIELD(vsk, field_name) (vmci_trans(vsk)->notify.pkt.field_name) macro
23 if (!PKT_FIELD(vsk, peer_waiting_write)) in vmci_transport_notify_waiting_write()
34 if (!PKT_FIELD(vsk, peer_waiting_write_detected)) { in vmci_transport_notify_waiting_write()
35 PKT_FIELD(vsk, peer_waiting_write_detected) = true; in vmci_transport_notify_waiting_write()
36 if (PKT_FIELD(vsk, write_notify_window) < PAGE_SIZE) { in vmci_transport_notify_waiting_write()
37 PKT_FIELD(vsk, write_notify_window) = in vmci_transport_notify_waiting_write()
38 PKT_FIELD(vsk, write_notify_min_window); in vmci_transport_notify_waiting_write()
40 PKT_FIELD(vsk, write_notify_window) -= PAGE_SIZE; in vmci_transport_notify_waiting_write()
41 if (PKT_FIELD(vsk, write_notify_window) < in vmci_transport_notify_waiting_write()
42 PKT_FIELD(vsk, write_notify_min_window)) in vmci_transport_notify_waiting_write()
43 PKT_FIELD(vsk, write_notify_window) = in vmci_transport_notify_waiting_write()
44 PKT_FIELD(vsk, write_notify_min_window); in vmci_transport_notify_waiting_write()
49 PKT_FIELD(vsk, write_notify_window); in vmci_transport_notify_waiting_write()
77 PKT_FIELD(vsk, peer_waiting_write_detected) = false; in vmci_transport_notify_waiting_write()
89 if (!PKT_FIELD(vsk, peer_waiting_read)) in vmci_transport_notify_waiting_read()
116 PKT_FIELD(vsk, peer_waiting_read) = true; in vmci_transport_handle_waiting_read()
117 memcpy(&PKT_FIELD(vsk, peer_waiting_read_info), &pkt->u.wait, in vmci_transport_handle_waiting_read()
118 sizeof(PKT_FIELD(vsk, peer_waiting_read_info))); in vmci_transport_handle_waiting_read()
129 PKT_FIELD(vsk, peer_waiting_read) = false; in vmci_transport_handle_waiting_read()
146 PKT_FIELD(vsk, peer_waiting_write) = true; in vmci_transport_handle_waiting_write()
147 memcpy(&PKT_FIELD(vsk, peer_waiting_write_info), &pkt->u.wait, in vmci_transport_handle_waiting_write()
148 sizeof(PKT_FIELD(vsk, peer_waiting_write_info))); in vmci_transport_handle_waiting_write()
159 PKT_FIELD(vsk, peer_waiting_write) = false; in vmci_transport_handle_waiting_write()
174 PKT_FIELD(vsk, sent_waiting_write) = false; in vmci_transport_handle_read()
192 if (PKT_FIELD(vsk, sent_waiting_read)) in send_waiting_read()
195 if (PKT_FIELD(vsk, write_notify_window) < in send_waiting_read()
197 PKT_FIELD(vsk, write_notify_window) = in send_waiting_read()
198 min(PKT_FIELD(vsk, write_notify_window) + PAGE_SIZE, in send_waiting_read()
206 PKT_FIELD(vsk, consume_q_generation) + 1; in send_waiting_read()
209 waiting_info.generation = PKT_FIELD(vsk, consume_q_generation); in send_waiting_read()
214 PKT_FIELD(vsk, sent_waiting_read) = true; in send_waiting_read()
234 if (PKT_FIELD(vsk, sent_waiting_write)) in send_waiting_write()
242 waiting_info.generation = PKT_FIELD(vsk, produce_q_generation); in send_waiting_write()
246 PKT_FIELD(vsk, produce_q_generation) - 1; in send_waiting_write()
251 PKT_FIELD(vsk, sent_waiting_write) = true; in send_waiting_write()
293 PKT_FIELD(vsk, peer_waiting_write) = false; in vmci_transport_send_read_notification()
308 PKT_FIELD(vsk, sent_waiting_read) = false; in vmci_transport_handle_wrote()
317 PKT_FIELD(vsk, write_notify_window) = PAGE_SIZE; in vmci_transport_notify_pkt_socket_init()
318 PKT_FIELD(vsk, write_notify_min_window) = PAGE_SIZE; in vmci_transport_notify_pkt_socket_init()
319 PKT_FIELD(vsk, peer_waiting_read) = false; in vmci_transport_notify_pkt_socket_init()
320 PKT_FIELD(vsk, peer_waiting_write) = false; in vmci_transport_notify_pkt_socket_init()
321 PKT_FIELD(vsk, peer_waiting_write_detected) = false; in vmci_transport_notify_pkt_socket_init()
322 PKT_FIELD(vsk, sent_waiting_read) = false; in vmci_transport_notify_pkt_socket_init()
323 PKT_FIELD(vsk, sent_waiting_write) = false; in vmci_transport_notify_pkt_socket_init()
324 PKT_FIELD(vsk, produce_q_generation) = 0; in vmci_transport_notify_pkt_socket_init()
325 PKT_FIELD(vsk, consume_q_generation) = 0; in vmci_transport_notify_pkt_socket_init()
327 memset(&PKT_FIELD(vsk, peer_waiting_read_info), 0, in vmci_transport_notify_pkt_socket_init()
328 sizeof(PKT_FIELD(vsk, peer_waiting_read_info))); in vmci_transport_notify_pkt_socket_init()
329 memset(&PKT_FIELD(vsk, peer_waiting_write_info), 0, in vmci_transport_notify_pkt_socket_init()
330 sizeof(PKT_FIELD(vsk, peer_waiting_write_info))); in vmci_transport_notify_pkt_socket_init()
404 if (PKT_FIELD(vsk, write_notify_min_window) < target + 1) { in vmci_transport_notify_pkt_recv_init()
405 PKT_FIELD(vsk, write_notify_min_window) = target + 1; in vmci_transport_notify_pkt_recv_init()
406 if (PKT_FIELD(vsk, write_notify_window) < in vmci_transport_notify_pkt_recv_init()
407 PKT_FIELD(vsk, write_notify_min_window)) { in vmci_transport_notify_pkt_recv_init()
415 PKT_FIELD(vsk, write_notify_window) = in vmci_transport_notify_pkt_recv_init()
416 PKT_FIELD(vsk, write_notify_min_window); in vmci_transport_notify_pkt_recv_init()
494 PKT_FIELD(vsk, consume_q_generation)++; in vmci_transport_notify_pkt_recv_post_dequeue()
565 PKT_FIELD(vsk, produce_q_generation)++; in vmci_transport_notify_pkt_send_post_enqueue()
590 PKT_FIELD(vsk, peer_waiting_read) = false; in vmci_transport_notify_pkt_send_post_enqueue()
637 PKT_FIELD(vsk, write_notify_window) = vmci_trans(vsk)->consume_size; in vmci_transport_notify_pkt_process_request()
639 PKT_FIELD(vsk, write_notify_min_window)) in vmci_transport_notify_pkt_process_request()
640 PKT_FIELD(vsk, write_notify_min_window) = in vmci_transport_notify_pkt_process_request()
648 PKT_FIELD(vsk, write_notify_window) = vmci_trans(vsk)->consume_size; in vmci_transport_notify_pkt_process_negotiate()
650 PKT_FIELD(vsk, write_notify_min_window)) in vmci_transport_notify_pkt_process_negotiate()
651 PKT_FIELD(vsk, write_notify_min_window) = in vmci_transport_notify_pkt_process_negotiate()