Lines Matching refs:hw_rx_obj
121 const struct mcp251xfd_hw_rx_obj_canfd *hw_rx_obj, in mcp251xfd_hw_rx_obj_to_skb() argument
127 if (hw_rx_obj->flags & MCP251XFD_OBJ_FLAGS_IDE) { in mcp251xfd_hw_rx_obj_to_skb()
130 eid = FIELD_GET(MCP251XFD_OBJ_ID_EID_MASK, hw_rx_obj->id); in mcp251xfd_hw_rx_obj_to_skb()
131 sid = FIELD_GET(MCP251XFD_OBJ_ID_SID_MASK, hw_rx_obj->id); in mcp251xfd_hw_rx_obj_to_skb()
138 hw_rx_obj->id); in mcp251xfd_hw_rx_obj_to_skb()
141 dlc = FIELD_GET(MCP251XFD_OBJ_FLAGS_DLC_MASK, hw_rx_obj->flags); in mcp251xfd_hw_rx_obj_to_skb()
144 if (hw_rx_obj->flags & MCP251XFD_OBJ_FLAGS_FDF) { in mcp251xfd_hw_rx_obj_to_skb()
145 if (hw_rx_obj->flags & MCP251XFD_OBJ_FLAGS_ESI) in mcp251xfd_hw_rx_obj_to_skb()
148 if (hw_rx_obj->flags & MCP251XFD_OBJ_FLAGS_BRS) in mcp251xfd_hw_rx_obj_to_skb()
153 if (hw_rx_obj->flags & MCP251XFD_OBJ_FLAGS_RTR) in mcp251xfd_hw_rx_obj_to_skb()
160 if (!(hw_rx_obj->flags & MCP251XFD_OBJ_FLAGS_RTR)) in mcp251xfd_hw_rx_obj_to_skb()
161 memcpy(cfd->data, hw_rx_obj->data, cfd->len); in mcp251xfd_hw_rx_obj_to_skb()
167 const struct mcp251xfd_hw_rx_obj_canfd *hw_rx_obj) in mcp251xfd_handle_rxif_one() argument
184 timestamp = timecounter_cyc2time(&priv->tc, hw_rx_obj->ts); in mcp251xfd_handle_rxif_one()
192 if (hw_rx_obj->flags & MCP251XFD_OBJ_FLAGS_FDF) in mcp251xfd_handle_rxif_one()
203 mcp251xfd_hw_rx_obj_to_skb(priv, hw_rx_obj, skb); in mcp251xfd_handle_rxif_one()
204 err = can_rx_offload_queue_timestamp(&priv->offload, skb, hw_rx_obj->ts); in mcp251xfd_handle_rxif_one()
214 struct mcp251xfd_hw_rx_obj_canfd *hw_rx_obj, in mcp251xfd_rx_obj_read() argument
222 hw_rx_obj, in mcp251xfd_rx_obj_read()
265 struct mcp251xfd_hw_rx_obj_canfd *hw_rx_obj = ring->obj; in mcp251xfd_handle_rxif_ring() local
276 err = mcp251xfd_rx_obj_read(priv, ring, hw_rx_obj, in mcp251xfd_handle_rxif_ring()
283 (void *)hw_rx_obj + in mcp251xfd_handle_rxif_ring()