Lines Matching full:mailbox
17 * Send message to VF driver (0x0802) using mailbox
135 /* The mailbox overflow detection algorithm helps to check if there
138 * 1. The mailbox snapshot structure, ice_mbx_snapshot, is initialized during
141 * messages within the mailbox queue while looking for a malicious VF.
143 * 2. When the caller starts processing its mailbox queue in response to an
171 * in ice_mbx_snapshot for every new mailbox interrupt handled.
183 * ice_mbx_traverse - Pass through mailbox snapshot
187 * Traversing the mailbox static snapshot without checking
199 /* As mailbox buffer is circular, applying a mask in ice_mbx_traverse()
205 * Condition-1: If the number of iterations in the mailbox is equal to in ice_mbx_traverse()
206 * the mailbox head which would indicate that we have reached the end in ice_mbx_traverse()
208 * Condition-2: If the maximum messages serviced in the mailbox for a in ice_mbx_traverse()
212 * to the maximum number of mailbox entries serviced in current work item. in ice_mbx_traverse()
247 /* continue to iterate through the mailbox snapshot */ in ice_mbx_detect_malvf()
254 * ice_mbx_reset_snapshot - Reset mailbox snapshot structure
255 * @snap: pointer to mailbox snapshot structure in the ice_hw struct
257 * Reset the mailbox snapshot structure and clear VF counter array.
272 /* Reset mailbox snapshot for a new capture. */ in ice_mbx_reset_snapshot()
280 * @mbx_data: pointer to structure containing mailbox data
288 * snapshot. The data from any previous mailbox snapshot is
289 * cleared and a new capture of the mailbox head and tail is
314 /* When entering the mailbox state machine assume that the VF in ice_mbx_vf_state_handler()
326 * set for the number of asynchronous messages a VF can send to mailbox in ice_mbx_vf_state_handler()
328 * mailbox serviced in current interrupt. in ice_mbx_vf_state_handler()
339 /* Clear any previously held data in mailbox snapshot structure. */ in ice_mbx_vf_state_handler()
344 * Mailbox for current interrupt. in ice_mbx_vf_state_handler()
350 /* Capture a new static snapshot of the mailbox by logging the in ice_mbx_vf_state_handler()
361 * mailbox queue. Comparing this value against the watermark in ice_mbx_vf_state_handler()
406 * detected in any previous mailbox iterations.
432 * @snap: pointer to the mailbox snapshot structure
461 /* Clear the VF counter in the mailbox snapshot structure for that VF ID. in ice_mbx_clear_malvf()
465 * values in the mailbox overflow detection algorithm. in ice_mbx_clear_malvf()
473 * ice_mbx_init_snapshot - Initialize mailbox snapshot structure
477 * Clear the mailbox snapshot structure and allocate memory
507 /* Clear mbx_buf in the mailbox snaphot structure and setting the in ice_mbx_init_snapshot()
508 * mailbox snapshot state to a new capture. in ice_mbx_init_snapshot()
517 * ice_mbx_deinit_snapshot - Free mailbox snapshot structure
520 * Clear the mailbox snapshot structure and free the VF counter array.
530 /* Clear mbx_buf in the mailbox snaphot structure */ in ice_mbx_deinit_snapshot()