Home
last modified time | relevance | path

Searched refs:rx (Results 1 – 25 of 751) sorted by relevance

12345678910>>...31

/drivers/net/ethernet/google/gve/
Dgve_rx_dqo.c35 static struct gve_rx_buf_state_dqo *gve_alloc_buf_state(struct gve_rx_ring *rx) in gve_alloc_buf_state() argument
40 buffer_id = rx->dqo.free_buf_states; in gve_alloc_buf_state()
44 buf_state = &rx->dqo.buf_states[buffer_id]; in gve_alloc_buf_state()
47 rx->dqo.free_buf_states = buf_state->next; in gve_alloc_buf_state()
55 static bool gve_buf_state_is_allocated(struct gve_rx_ring *rx, in gve_buf_state_is_allocated() argument
58 s16 buffer_id = buf_state - rx->dqo.buf_states; in gve_buf_state_is_allocated()
63 static void gve_free_buf_state(struct gve_rx_ring *rx, in gve_free_buf_state() argument
66 s16 buffer_id = buf_state - rx->dqo.buf_states; in gve_free_buf_state()
68 buf_state->next = rx->dqo.free_buf_states; in gve_free_buf_state()
69 rx->dqo.free_buf_states = buffer_id; in gve_free_buf_state()
[all …]
Dgve_rx.c26 static void gve_rx_unfill_pages(struct gve_priv *priv, struct gve_rx_ring *rx) in gve_rx_unfill_pages() argument
28 u32 slots = rx->mask + 1; in gve_rx_unfill_pages()
31 if (rx->data.raw_addressing) { in gve_rx_unfill_pages()
33 gve_rx_free_buffer(&priv->pdev->dev, &rx->data.page_info[i], in gve_rx_unfill_pages()
34 &rx->data.data_ring[i]); in gve_rx_unfill_pages()
37 page_ref_sub(rx->data.page_info[i].page, in gve_rx_unfill_pages()
38 rx->data.page_info[i].pagecnt_bias - 1); in gve_rx_unfill_pages()
39 gve_unassign_qpl(priv, rx->data.qpl->id); in gve_rx_unfill_pages()
40 rx->data.qpl = NULL; in gve_rx_unfill_pages()
42 for (i = 0; i < rx->qpl_copy_pool_mask + 1; i++) { in gve_rx_unfill_pages()
[all …]
Dgve_ethtool.c191 if (priv->rx) { in gve_get_ethtool_stats()
193 struct gve_rx_ring *rx = &priv->rx[ring]; in gve_get_ethtool_stats() local
196 u64_stats_fetch_begin(&priv->rx[ring].statss); in gve_get_ethtool_stats()
197 tmp_rx_pkts = rx->rpackets; in gve_get_ethtool_stats()
198 tmp_rx_bytes = rx->rbytes; in gve_get_ethtool_stats()
199 tmp_rx_skb_alloc_fail = rx->rx_skb_alloc_fail; in gve_get_ethtool_stats()
200 tmp_rx_buf_alloc_fail = rx->rx_buf_alloc_fail; in gve_get_ethtool_stats()
202 rx->rx_desc_err_dropped_pkt; in gve_get_ethtool_stats()
203 } while (u64_stats_fetch_retry(&priv->rx[ring].statss, in gve_get_ethtool_stats()
269 if (priv->rx) { in gve_get_ethtool_stats()
[all …]
/drivers/infiniband/hw/hfi1/
Dnetdev_rx.c20 static int hfi1_netdev_setup_ctxt(struct hfi1_netdev_rx *rx, in hfi1_netdev_setup_ctxt() argument
24 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_setup_ctxt()
121 static int hfi1_netdev_allot_ctxt(struct hfi1_netdev_rx *rx, in hfi1_netdev_allot_ctxt() argument
125 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_allot_ctxt()
133 rc = hfi1_netdev_setup_ctxt(rx, *ctxt); in hfi1_netdev_allot_ctxt()
186 static int hfi1_netdev_rxq_init(struct hfi1_netdev_rx *rx) in hfi1_netdev_rxq_init() argument
190 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_rxq_init()
191 struct net_device *dev = &rx->rx_napi; in hfi1_netdev_rxq_init()
193 rx->num_rx_q = dd->num_netdev_contexts; in hfi1_netdev_rxq_init()
194 rx->rxq = kcalloc_node(rx->num_rx_q, sizeof(*rx->rxq), in hfi1_netdev_rxq_init()
[all …]
/drivers/net/ethernet/engleder/
Dtsnep_main.c891 static void tsnep_rx_ring_cleanup(struct tsnep_rx *rx) in tsnep_rx_ring_cleanup() argument
893 struct device *dmadev = rx->adapter->dmadev; in tsnep_rx_ring_cleanup()
898 entry = &rx->entry[i]; in tsnep_rx_ring_cleanup()
899 if (!rx->xsk_pool && entry->page) in tsnep_rx_ring_cleanup()
900 page_pool_put_full_page(rx->page_pool, entry->page, in tsnep_rx_ring_cleanup()
902 if (rx->xsk_pool && entry->xdp) in tsnep_rx_ring_cleanup()
908 if (rx->page_pool) in tsnep_rx_ring_cleanup()
909 page_pool_destroy(rx->page_pool); in tsnep_rx_ring_cleanup()
911 memset(rx->entry, 0, sizeof(rx->entry)); in tsnep_rx_ring_cleanup()
914 if (rx->page[i]) { in tsnep_rx_ring_cleanup()
[all …]
/drivers/net/ethernet/microchip/lan966x/
Dlan966x_fdma.c14 static struct page *lan966x_fdma_rx_alloc_page(struct lan966x_rx *rx, in lan966x_fdma_rx_alloc_page() argument
19 page = page_pool_dev_alloc_pages(rx->page_pool); in lan966x_fdma_rx_alloc_page()
28 static void lan966x_fdma_rx_free_pages(struct lan966x_rx *rx) in lan966x_fdma_rx_free_pages() argument
34 page_pool_put_full_page(rx->page_pool, in lan966x_fdma_rx_free_pages()
35 rx->page[i][j], false); in lan966x_fdma_rx_free_pages()
39 static void lan966x_fdma_rx_free_page(struct lan966x_rx *rx) in lan966x_fdma_rx_free_page() argument
43 page = rx->page[rx->dcb_index][rx->db_index]; in lan966x_fdma_rx_free_page()
47 page_pool_recycle_direct(rx->page_pool, page); in lan966x_fdma_rx_free_page()
50 static void lan966x_fdma_rx_add_dcb(struct lan966x_rx *rx, in lan966x_fdma_rx_add_dcb() argument
63 dcb->info = FDMA_DCB_INFO_DATAL(PAGE_SIZE << rx->page_order); in lan966x_fdma_rx_add_dcb()
[all …]
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_fdma.c79 static void sparx5_fdma_rx_add_dcb(struct sparx5_rx *rx, in sparx5_fdma_rx_add_dcb() argument
93 rx->last_entry->nextptr = nextptr; in sparx5_fdma_rx_add_dcb()
94 rx->last_entry = dcb; in sparx5_fdma_rx_add_dcb()
113 static void sparx5_fdma_rx_activate(struct sparx5 *sparx5, struct sparx5_rx *rx) in sparx5_fdma_rx_activate() argument
116 spx5_wr(((u64)rx->dma) & GENMASK(31, 0), sparx5, in sparx5_fdma_rx_activate()
117 FDMA_DCB_LLP(rx->channel_id)); in sparx5_fdma_rx_activate()
118 spx5_wr(((u64)rx->dma) >> 32, sparx5, FDMA_DCB_LLP1(rx->channel_id)); in sparx5_fdma_rx_activate()
124 sparx5, FDMA_CH_CFG(rx->channel_id)); in sparx5_fdma_rx_activate()
136 spx5_rmw(BIT(rx->channel_id), in sparx5_fdma_rx_activate()
137 BIT(rx->channel_id) & FDMA_INTR_DB_ENA_INTR_DB_ENA, in sparx5_fdma_rx_activate()
[all …]
/drivers/firmware/tegra/
Divc.c68 } rx; member
103 u32 rx = tegra_ivc_header_read_field(map, rx.count); in tegra_ivc_empty() local
115 if (tx - rx > ivc->num_frames) in tegra_ivc_empty()
118 return tx == rx; in tegra_ivc_empty()
124 u32 rx = tegra_ivc_header_read_field(map, rx.count); in tegra_ivc_full() local
130 return tx - rx >= ivc->num_frames; in tegra_ivc_full()
136 u32 rx = tegra_ivc_header_read_field(map, rx.count); in tegra_ivc_available() local
144 return tx - rx; in tegra_ivc_available()
161 unsigned int count = tegra_ivc_header_read_field(&ivc->rx.map, rx.count); in tegra_ivc_advance_rx()
163 tegra_ivc_header_write_field(&ivc->rx.map, rx.count, count + 1); in tegra_ivc_advance_rx()
[all …]
/drivers/staging/gdm724x/
Dgdm_mux.c111 static struct mux_rx *get_rx_struct(struct rx_cxt *rx) in get_rx_struct() argument
116 spin_lock_irqsave(&rx->free_list_lock, flags); in get_rx_struct()
118 if (list_empty(&rx->rx_free_list)) { in get_rx_struct()
119 spin_unlock_irqrestore(&rx->free_list_lock, flags); in get_rx_struct()
123 r = list_entry(rx->rx_free_list.prev, struct mux_rx, free_list); in get_rx_struct()
126 spin_unlock_irqrestore(&rx->free_list_lock, flags); in get_rx_struct()
131 static void put_rx_struct(struct rx_cxt *rx, struct mux_rx *r) in put_rx_struct() argument
135 spin_lock_irqsave(&rx->free_list_lock, flags); in put_rx_struct()
136 list_add_tail(&r->free_list, &rx->rx_free_list); in put_rx_struct()
137 spin_unlock_irqrestore(&rx->free_list_lock, flags); in put_rx_struct()
[all …]
Dgdm_usb.c212 static struct usb_rx *get_rx_struct(struct rx_cxt *rx, int *no_spc) in get_rx_struct() argument
217 spin_lock_irqsave(&rx->rx_lock, flags); in get_rx_struct()
219 if (list_empty(&rx->free_list)) { in get_rx_struct()
220 spin_unlock_irqrestore(&rx->rx_lock, flags); in get_rx_struct()
224 r = list_entry(rx->free_list.next, struct usb_rx, free_list); in get_rx_struct()
227 rx->avail_count--; in get_rx_struct()
229 *no_spc = list_empty(&rx->free_list) ? 1 : 0; in get_rx_struct()
231 spin_unlock_irqrestore(&rx->rx_lock, flags); in get_rx_struct()
236 static void put_rx_struct(struct rx_cxt *rx, struct usb_rx *r) in put_rx_struct() argument
240 spin_lock_irqsave(&rx->rx_lock, flags); in put_rx_struct()
[all …]
/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c184 bfi_msgq_mhdr_set(req->mh, BFI_MC_ENET, req_type, 0, rxf->rx->rid); in bna_bfi_ucast_req()
190 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_ucast_req()
200 0, rxf->rx->rid); in bna_bfi_mcast_add_req()
206 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_add_req()
216 0, rxf->rx->rid); in bna_bfi_mcast_del_req()
222 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_del_req()
231 BFI_ENET_H2I_MAC_MCAST_FILTER_REQ, 0, rxf->rx->rid); in bna_bfi_mcast_filter_req()
237 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_filter_req()
246 BFI_ENET_H2I_RX_PROMISCUOUS_REQ, 0, rxf->rx->rid); in bna_bfi_rx_promisc_req()
252 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_rx_promisc_req()
[all …]
/drivers/media/radio/wl128x/
Dfmdrv_rx.c17 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_reset_rds_cache()
18 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_reset_rds_cache()
19 fmdev->rx.rds.wr_idx = 0; in fm_rx_reset_rds_cache()
20 fmdev->rx.rds.rd_idx = 0; in fm_rx_reset_rds_cache()
22 if (fmdev->rx.af_mode == FM_RX_RDS_AF_SWITCH_MODE_ON) in fm_rx_reset_rds_cache()
28 fmdev->rx.stat_info.picode = FM_NO_PI_CODE; in fm_rx_reset_station_info()
29 fmdev->rx.stat_info.afcache_size = 0; in fm_rx_reset_station_info()
30 fmdev->rx.stat_info.af_list_max = 0; in fm_rx_reset_station_info()
41 if (freq < fmdev->rx.region.bot_freq || freq > fmdev->rx.region.top_freq) { in fm_rx_set_freq()
62 payload = (freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_set_freq()
[all …]
Dfmdrv_common.c243 fmdev->rx.region = region_configs[region_to_set]; in fmc_update_region_info()
628 struct tuned_station_info *stat_info = &fmdev->rx.stat_info; in fm_rx_update_af_cache()
629 u8 reg_idx = fmdev->rx.region.fm_band; in fm_rx_update_af_cache()
635 fmdev->rx.stat_info.af_list_max = (af - FM_RDS_1_AF_FOLLOWS + 1); in fm_rx_update_af_cache()
636 fmdev->rx.stat_info.afcache_size = 0; in fm_rx_update_af_cache()
637 fmdbg("No of expected AF : %d\n", fmdev->rx.stat_info.af_list_max); in fm_rx_update_af_cache()
648 freq = fmdev->rx.region.bot_freq + (af * 100); in fm_rx_update_af_cache()
649 if (freq == fmdev->rx.freq) { in fm_rx_update_af_cache()
651 fmdev->rx.freq, freq); in fm_rx_update_af_cache()
703 struct fm_rds *rds = &fmdev->rx.rds; in fm_irq_handle_rdsdata_getcmd_resp()
[all …]
/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.c100 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
101 self->stats.rx.pg_flips++; in aq_get_rxpages()
102 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
110 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
111 self->stats.rx.pg_losts++; in aq_get_rxpages()
112 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
116 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
117 self->stats.rx.pg_reuses++; in aq_get_rxpages()
118 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
125 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
[all …]
/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c83 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_beacon_early_term, "%u");
84 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_out_of_mpdu_nodes, "%u");
85 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_hdr_overflow, "%u");
86 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_dropped_frame, "%u");
87 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_done, "%u");
88 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_defrag, "%u");
89 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_defrag_end, "%u");
90 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_cmplt, "%u");
91 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_pre_complt, "%u");
92 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_cmplt_task, "%u");
[all …]
/drivers/net/usb/
Dasix_common.c115 static void reset_asix_rx_fixup_info(struct asix_rx_fixup_info *rx) in reset_asix_rx_fixup_info() argument
122 if (rx->ax_skb) { in reset_asix_rx_fixup_info()
124 kfree_skb(rx->ax_skb); in reset_asix_rx_fixup_info()
125 rx->ax_skb = NULL; in reset_asix_rx_fixup_info()
131 rx->remaining = 0; in reset_asix_rx_fixup_info()
132 rx->split_head = false; in reset_asix_rx_fixup_info()
133 rx->header = 0; in reset_asix_rx_fixup_info()
137 struct asix_rx_fixup_info *rx) in asix_rx_fixup_internal() argument
151 if (rx->remaining && (rx->remaining + sizeof(u32) <= skb->len)) { in asix_rx_fixup_internal()
152 offset = ((rx->remaining + 1) & 0xfffe); in asix_rx_fixup_internal()
[all …]
/drivers/net/ethernet/microchip/
Dlan743x_main.c261 struct lan743x_rx *rx = context; in lan743x_rx_isr() local
262 struct lan743x_adapter *adapter = rx->adapter; in lan743x_rx_isr()
267 INT_BIT_DMA_RX_(rx->channel_number)); in lan743x_rx_isr()
270 if (int_sts & INT_BIT_DMA_RX_(rx->channel_number)) { in lan743x_rx_isr()
271 u32 rx_frame_bit = DMAC_INT_BIT_RXFRM_(rx->channel_number); in lan743x_rx_isr()
288 napi_schedule(&rx->napi); in lan743x_rx_isr()
296 INT_BIT_DMA_RX_(rx->channel_number)); in lan743x_rx_isr()
311 lan743x_rx_isr(&adapter->rx[channel], in lan743x_intr_shared_isr()
731 &adapter->rx[index]); in lan743x_intr_open()
2438 static int lan743x_rx_next_index(struct lan743x_rx *rx, int index) in lan743x_rx_next_index() argument
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c1130 bool inner, bool rx) in mlx5dr_ste_build_eth_l2_src_dst() argument
1132 sb->rx = rx; in mlx5dr_ste_build_eth_l2_src_dst()
1140 bool inner, bool rx) in mlx5dr_ste_build_eth_l3_ipv6_dst() argument
1142 sb->rx = rx; in mlx5dr_ste_build_eth_l3_ipv6_dst()
1150 bool inner, bool rx) in mlx5dr_ste_build_eth_l3_ipv6_src() argument
1152 sb->rx = rx; in mlx5dr_ste_build_eth_l3_ipv6_src()
1160 bool inner, bool rx) in mlx5dr_ste_build_eth_l3_ipv4_5_tuple() argument
1162 sb->rx = rx; in mlx5dr_ste_build_eth_l3_ipv4_5_tuple()
1170 bool inner, bool rx) in mlx5dr_ste_build_eth_l2_src() argument
1172 sb->rx = rx; in mlx5dr_ste_build_eth_l2_src()
[all …]
Ddr_matcher.c413 bool inner, rx; in dr_matcher_set_ste_builders() local
418 rx = nic_dmn->type == DR_DOMAIN_NIC_TYPE_RX; in dr_matcher_set_ste_builders()
451 rx && mask.misc.source_port) { in dr_matcher_set_ste_builders()
467 &mask, inner, rx); in dr_matcher_set_ste_builders()
471 &mask, inner, rx); in dr_matcher_set_ste_builders()
475 &mask, inner, rx); in dr_matcher_set_ste_builders()
481 &mask, dmn, inner, rx); in dr_matcher_set_ste_builders()
487 &mask, inner, rx); in dr_matcher_set_ste_builders()
492 &mask, inner, rx); in dr_matcher_set_ste_builders()
496 &mask, inner, rx); in dr_matcher_set_ste_builders()
[all …]
/drivers/staging/most/i2c/
Di2c.c38 struct rx { struct
43 } rx; member
92 dev->rx.int_disabled = false; in configure_channel()
102 dev->rx.delay = delay ? delay : 1; in configure_channel()
103 pr = MSEC_PER_SEC / jiffies_to_msecs(dev->rx.delay); in configure_channel()
134 cancel_delayed_work_sync(&dev->rx.dwork); in enqueue()
135 list_add_tail(&mbo->list, &dev->rx.list); in enqueue()
136 if (dev->rx.int_disabled || polling_rate) in enqueue()
137 pending_rx_work(&dev->rx.dwork.work); in enqueue()
178 cancel_delayed_work_sync(&dev->rx.dwork); in poison_channel()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_fs.c132 struct mlx5e_ipsec_rx *rx) in ipsec_rx_status_drop_destroy() argument
134 mlx5_del_flow_rules(rx->status_drop.rule); in ipsec_rx_status_drop_destroy()
135 mlx5_destroy_flow_group(rx->status_drop.group); in ipsec_rx_status_drop_destroy()
136 mlx5_fc_destroy(ipsec->mdev, rx->status_drop_cnt); in ipsec_rx_status_drop_destroy()
140 struct mlx5e_ipsec_rx *rx) in ipsec_rx_status_pass_destroy() argument
142 mlx5_del_flow_rules(rx->status.rule); in ipsec_rx_status_pass_destroy()
144 if (rx != ipsec->rx_esw) in ipsec_rx_status_pass_destroy()
153 struct mlx5e_ipsec_rx *rx) in ipsec_rx_status_drop_create() argument
156 struct mlx5_flow_table *ft = rx->ft.status; in ipsec_rx_status_drop_create()
195 if (rx == ipsec->rx_esw) in ipsec_rx_status_drop_create()
[all …]
/drivers/staging/wlan-ng/
Dp80211netdev.c860 wlandev->rx.mgmt++; in p80211_rx_typedrop()
863 wlandev->rx.assocreq++; in p80211_rx_typedrop()
866 wlandev->rx.assocresp++; in p80211_rx_typedrop()
869 wlandev->rx.reassocreq++; in p80211_rx_typedrop()
872 wlandev->rx.reassocresp++; in p80211_rx_typedrop()
875 wlandev->rx.probereq++; in p80211_rx_typedrop()
878 wlandev->rx.proberesp++; in p80211_rx_typedrop()
881 wlandev->rx.beacon++; in p80211_rx_typedrop()
884 wlandev->rx.atim++; in p80211_rx_typedrop()
887 wlandev->rx.disassoc++; in p80211_rx_typedrop()
[all …]
/drivers/net/wireless/ath/ath9k/
Drecv.c63 if (sc->rx.rxlink) in ath_rx_buf_link()
64 *sc->rx.rxlink = bf->bf_daddr; in ath_rx_buf_link()
68 sc->rx.rxlink = &ds->ds_link; in ath_rx_buf_link()
74 if (sc->rx.buf_hold) in ath_rx_buf_relink()
75 ath_rx_buf_link(sc, sc->rx.buf_hold, flush); in ath_rx_buf_relink()
77 sc->rx.buf_hold = bf; in ath_rx_buf_relink()
84 sc->rx.defant = antenna; in ath_setdefantenna()
85 sc->rx.rxotherant = 0; in ath_setdefantenna()
118 rx_edma = &sc->rx.rx_edma[qtype]; in ath_rx_edma_buf_link()
122 bf = list_first_entry(&sc->rx.rxbuf, struct ath_rxbuf, list); in ath_rx_edma_buf_link()
[all …]
/drivers/spi/
Dspi-dln2.c192 } rx; in dln2_spi_get_cs_num() local
193 unsigned rx_len = sizeof(rx); in dln2_spi_get_cs_num()
197 &rx, &rx_len); in dln2_spi_get_cs_num()
200 if (rx_len < sizeof(rx)) in dln2_spi_get_cs_num()
203 *cs_num = le16_to_cpu(rx.cs_count); in dln2_spi_get_cs_num()
218 } rx; in dln2_spi_get_speed() local
219 unsigned rx_len = sizeof(rx); in dln2_spi_get_speed()
223 ret = dln2_transfer(dln2->pdev, cmd, &tx, sizeof(tx), &rx, &rx_len); in dln2_spi_get_speed()
226 if (rx_len < sizeof(rx)) in dln2_spi_get_speed()
229 *freq = le32_to_cpu(rx.speed); in dln2_spi_get_speed()
[all …]
/drivers/iio/imu/bno055/
Dbno055_ser_core.c156 } rx; member
348 priv->rx.databuf_count != priv->expected_data_len) { in bno055_ser_handle_rx()
392 switch (priv->rx.state) { in bno055_ser_receive_buf()
404 priv->rx.type = buf[0]; in bno055_ser_receive_buf()
405 priv->rx.state = RX_START; in bno055_ser_receive_buf()
408 priv->rx.databuf_count = 0; in bno055_ser_receive_buf()
419 if (priv->rx.type == 0xEE) { in bno055_ser_receive_buf()
427 priv->rx.state = RX_IDLE; in bno055_ser_receive_buf()
432 priv->rx.state = RX_DATA; in bno055_ser_receive_buf()
433 priv->rx.expected_len = buf[0]; in bno055_ser_receive_buf()
[all …]

12345678910>>...31