Home
last modified time | relevance | path

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

12345678910>>...21

/drivers/staging/gdm724x/
Dgdm_mux.c123 static struct mux_rx *get_rx_struct(struct rx_cxt *rx) in get_rx_struct() argument
128 spin_lock_irqsave(&rx->free_list_lock, flags); in get_rx_struct()
130 if (list_empty(&rx->rx_free_list)) { in get_rx_struct()
131 spin_unlock_irqrestore(&rx->free_list_lock, flags); in get_rx_struct()
135 r = list_entry(rx->rx_free_list.prev, struct mux_rx, free_list); in get_rx_struct()
138 spin_unlock_irqrestore(&rx->free_list_lock, flags); in get_rx_struct()
143 static void put_rx_struct(struct rx_cxt *rx, struct mux_rx *r) in put_rx_struct() argument
147 spin_lock_irqsave(&rx->free_list_lock, flags); in put_rx_struct()
148 list_add_tail(&r->free_list, &rx->rx_free_list); in put_rx_struct()
149 spin_unlock_irqrestore(&rx->free_list_lock, flags); in put_rx_struct()
[all …]
Dgdm_usb.c221 static struct usb_rx *get_rx_struct(struct rx_cxt *rx, int *no_spc) in get_rx_struct() argument
226 spin_lock_irqsave(&rx->rx_lock, flags); in get_rx_struct()
228 if (list_empty(&rx->free_list)) { in get_rx_struct()
229 spin_unlock_irqrestore(&rx->rx_lock, flags); in get_rx_struct()
233 r = list_entry(rx->free_list.next, struct usb_rx, free_list); in get_rx_struct()
236 rx->avail_count--; in get_rx_struct()
238 *no_spc = list_empty(&rx->free_list) ? 1 : 0; in get_rx_struct()
240 spin_unlock_irqrestore(&rx->rx_lock, flags); in get_rx_struct()
245 static void put_rx_struct(struct rx_cxt *rx, struct usb_rx *r) in put_rx_struct() argument
249 spin_lock_irqsave(&rx->rx_lock, flags); in put_rx_struct()
[all …]
/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c192 bfi_msgq_mhdr_set(req->mh, BFI_MC_ENET, req_type, 0, rxf->rx->rid); in bna_bfi_ucast_req()
198 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_ucast_req()
208 0, rxf->rx->rid); in bna_bfi_mcast_add_req()
214 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_add_req()
224 0, rxf->rx->rid); in bna_bfi_mcast_del_req()
230 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_del_req()
239 BFI_ENET_H2I_MAC_MCAST_FILTER_REQ, 0, rxf->rx->rid); in bna_bfi_mcast_filter_req()
245 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_filter_req()
254 BFI_ENET_H2I_RX_PROMISCUOUS_REQ, 0, rxf->rx->rid); in bna_bfi_rx_promisc_req()
260 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_rx_promisc_req()
[all …]
Dbna.h118 cbfn(cbarg, rxf->rx); \
330 void bna_bfi_rx_enet_start_rsp(struct bna_rx *rx,
332 void bna_bfi_rx_enet_stop_rsp(struct bna_rx *rx,
357 void bna_rx_destroy(struct bna_rx *rx);
358 void bna_rx_enable(struct bna_rx *rx);
359 void bna_rx_disable(struct bna_rx *rx, enum bna_cleanup_type type,
361 void bna_rx_cleanup_complete(struct bna_rx *rx);
362 void bna_rx_coalescing_timeo_set(struct bna_rx *rx, int coalescing_timeo);
365 enum bna_cb_status bna_rx_ucast_set(struct bna_rx *rx, const u8 *ucmac);
366 enum bna_cb_status bna_rx_ucast_listset(struct bna_rx *rx, int count,
[all …]
/drivers/usb/musb/
Dcppi_dma.c84 static void cppi_reset_rx(struct cppi_rx_stateram __iomem *rx) in cppi_reset_rx() argument
86 musb_writel(&rx->rx_skipbytes, 0, 0); in cppi_reset_rx()
87 musb_writel(&rx->rx_head, 0, 0); in cppi_reset_rx()
88 musb_writel(&rx->rx_sop, 0, 0); in cppi_reset_rx()
89 musb_writel(&rx->rx_current, 0, 0); in cppi_reset_rx()
90 musb_writel(&rx->rx_buf_current, 0, 0); in cppi_reset_rx()
91 musb_writel(&rx->rx_len_len, 0, 0); in cppi_reset_rx()
92 musb_writel(&rx->rx_cnt_cnt, 0, 0); in cppi_reset_rx()
163 for (i = 0; i < ARRAY_SIZE(controller->rx); i++) { in cppi_controller_start()
164 controller->rx[i].transmit = false; in cppi_controller_start()
[all …]
/drivers/media/radio/wl128x/
Dfmdrv_rx.c30 fmdev->rx.rds.flag = FM_RDS_DISABLE; in fm_rx_reset_rds_cache()
31 fmdev->rx.rds.last_blk_idx = 0; in fm_rx_reset_rds_cache()
32 fmdev->rx.rds.wr_idx = 0; in fm_rx_reset_rds_cache()
33 fmdev->rx.rds.rd_idx = 0; in fm_rx_reset_rds_cache()
35 if (fmdev->rx.af_mode == FM_RX_RDS_AF_SWITCH_MODE_ON) in fm_rx_reset_rds_cache()
41 fmdev->rx.stat_info.picode = FM_NO_PI_CODE; in fm_rx_reset_station_info()
42 fmdev->rx.stat_info.afcache_size = 0; in fm_rx_reset_station_info()
43 fmdev->rx.stat_info.af_list_max = 0; in fm_rx_reset_station_info()
54 if (freq < fmdev->rx.region.bot_freq || freq > fmdev->rx.region.top_freq) { in fm_rx_set_freq()
75 payload = (freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_set_freq()
[all …]
Dfmdrv_common.c253 fmdev->rx.region = region_configs[region_to_set]; in fmc_update_region_info()
641 struct tuned_station_info *stat_info = &fmdev->rx.stat_info; in fm_rx_update_af_cache()
642 u8 reg_idx = fmdev->rx.region.fm_band; in fm_rx_update_af_cache()
648 fmdev->rx.stat_info.af_list_max = (af - FM_RDS_1_AF_FOLLOWS + 1); in fm_rx_update_af_cache()
649 fmdev->rx.stat_info.afcache_size = 0; in fm_rx_update_af_cache()
650 fmdbg("No of expected AF : %d\n", fmdev->rx.stat_info.af_list_max); in fm_rx_update_af_cache()
661 freq = fmdev->rx.region.bot_freq + (af * 100); in fm_rx_update_af_cache()
662 if (freq == fmdev->rx.freq) { in fm_rx_update_af_cache()
664 fmdev->rx.freq, freq); in fm_rx_update_af_cache()
716 struct fm_rds *rds = &fmdev->rx.rds; in fm_irq_handle_rdsdata_getcmd_resp()
[all …]
/drivers/staging/gdm72xx/
Dgdm_usb.c82 static struct usb_rx *alloc_rx_struct(struct rx_cxt *rx) in alloc_rx_struct() argument
98 r->rx_cxt = rx; in alloc_rx_struct()
136 static struct usb_rx *get_rx_struct(struct rx_cxt *rx) in get_rx_struct() argument
140 if (list_empty(&rx->free_list)) { in get_rx_struct()
141 r = alloc_rx_struct(rx); in get_rx_struct()
145 list_add(&r->list, &rx->free_list); in get_rx_struct()
148 r = list_entry(rx->free_list.next, struct usb_rx, list); in get_rx_struct()
149 list_move_tail(&r->list, &rx->used_list); in get_rx_struct()
155 static void put_rx_struct(struct rx_cxt *rx, struct usb_rx *r) in put_rx_struct() argument
157 list_move(&r->list, &rx->free_list); in put_rx_struct()
[all …]
Dgdm_sdio.c67 static struct sdio_rx *alloc_rx_struct(struct rx_cxt *rx) in alloc_rx_struct() argument
72 r->rx_cxt = rx; in alloc_rx_struct()
105 static struct sdio_rx *get_rx_struct(struct rx_cxt *rx) in get_rx_struct() argument
109 if (list_empty(&rx->free_list)) in get_rx_struct()
112 r = list_entry(rx->free_list.prev, struct sdio_rx, list); in get_rx_struct()
119 static void put_rx_struct(struct rx_cxt *rx, struct sdio_rx *r) in put_rx_struct() argument
121 list_add_tail(&r->list, &rx->free_list); in put_rx_struct()
127 struct rx_cxt *rx = &sdev->rx; in release_sdio() local
148 kfree(rx->rx_buf); in release_sdio()
150 list_for_each_entry_safe(r, r_next, &rx->free_list, list) { in release_sdio()
[all …]
/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c95 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_beacon_early_term, "%u");
96 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_out_of_mpdu_nodes, "%u");
97 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_hdr_overflow, "%u");
98 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_dropped_frame, "%u");
99 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_done, "%u");
100 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_defrag, "%u");
101 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_defrag_end, "%u");
102 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_cmplt, "%u");
103 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_pre_complt, "%u");
104 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_cmplt_task, "%u");
[all …]
/drivers/staging/most/hdm-i2c/
Dhdm_i2c.c54 struct rx { struct
59 } rx; member
96 schedule_delayed_work(&dev->rx.dwork, in configure_channel()
126 mutex_lock(&dev->rx.list_mutex); in enqueue()
127 list_add_tail(&mbo->list, &dev->rx.list); in enqueue()
128 mutex_unlock(&dev->rx.list_mutex); in enqueue()
129 wake_up_interruptible(&dev->rx.waitq); in enqueue()
169 mutex_lock(&dev->rx.list_mutex); in poison_channel()
170 while (!list_empty(&dev->rx.list)) { in poison_channel()
171 mbo = list_first_mbo(&dev->rx.list); in poison_channel()
[all …]
/drivers/staging/media/lirc/
Dlirc_zilog.c112 struct IR_rx *rx; member
214 struct IR_rx *rx; in get_ir_rx() local
217 rx = ir->rx; in get_ir_rx()
218 if (rx != NULL) in get_ir_rx()
219 kref_get(&rx->ref); in get_ir_rx()
221 return rx; in get_ir_rx()
224 static void destroy_rx_kthread(struct IR_rx *rx, bool ir_devices_lock_held) in destroy_rx_kthread() argument
227 if (!IS_ERR_OR_NULL(rx->task)) { in destroy_rx_kthread()
228 kthread_stop(rx->task); in destroy_rx_kthread()
229 rx->task = NULL; in destroy_rx_kthread()
[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/net/usb/
Dasix_common.c54 struct asix_rx_fixup_info *rx) in asix_rx_fixup_internal() argument
68 if (rx->remaining && (rx->remaining + sizeof(u32) <= skb->len)) { in asix_rx_fixup_internal()
69 offset = ((rx->remaining + 1) & 0xfffe); in asix_rx_fixup_internal()
70 rx->header = get_unaligned_le32(skb->data + offset); in asix_rx_fixup_internal()
73 size = (u16)(rx->header & 0x7ff); in asix_rx_fixup_internal()
74 if (size != ((~rx->header >> 16) & 0x7ff)) { in asix_rx_fixup_internal()
76 rx->remaining); in asix_rx_fixup_internal()
77 if (rx->ax_skb) { in asix_rx_fixup_internal()
78 kfree_skb(rx->ax_skb); in asix_rx_fixup_internal()
79 rx->ax_skb = NULL; in asix_rx_fixup_internal()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Dnorm_desc.c79 if (unlikely(p->des01.rx.last_descriptor == 0)) { in ndesc_get_rx_status()
86 if (unlikely(p->des01.rx.error_summary)) { in ndesc_get_rx_status()
87 if (unlikely(p->des01.rx.descriptor_error)) in ndesc_get_rx_status()
89 if (unlikely(p->des01.rx.sa_filter_fail)) in ndesc_get_rx_status()
91 if (unlikely(p->des01.rx.overflow_error)) in ndesc_get_rx_status()
93 if (unlikely(p->des01.rx.ipc_csum_error)) in ndesc_get_rx_status()
95 if (unlikely(p->des01.rx.collision)) { in ndesc_get_rx_status()
99 if (unlikely(p->des01.rx.crc_error)) { in ndesc_get_rx_status()
105 if (unlikely(p->des01.rx.dribbling)) in ndesc_get_rx_status()
108 if (unlikely(p->des01.rx.length_error)) { in ndesc_get_rx_status()
[all …]
/drivers/staging/wlan-ng/
Dp80211netdev.c935 wlandev->rx.mgmt++; in p80211_rx_typedrop()
939 wlandev->rx.assocreq++; in p80211_rx_typedrop()
943 wlandev->rx.assocresp++; in p80211_rx_typedrop()
947 wlandev->rx.reassocreq++; in p80211_rx_typedrop()
951 wlandev->rx.reassocresp++; in p80211_rx_typedrop()
955 wlandev->rx.probereq++; in p80211_rx_typedrop()
959 wlandev->rx.proberesp++; in p80211_rx_typedrop()
963 wlandev->rx.beacon++; in p80211_rx_typedrop()
967 wlandev->rx.atim++; in p80211_rx_typedrop()
971 wlandev->rx.disassoc++; in p80211_rx_typedrop()
[all …]
/drivers/spi/
Dspi-dln2.c194 } rx; in dln2_spi_get_cs_num() local
195 unsigned rx_len = sizeof(rx); in dln2_spi_get_cs_num()
199 &rx, &rx_len); in dln2_spi_get_cs_num()
202 if (rx_len < sizeof(rx)) in dln2_spi_get_cs_num()
205 *cs_num = le16_to_cpu(rx.cs_count); in dln2_spi_get_cs_num()
220 } rx; in dln2_spi_get_speed() local
221 unsigned rx_len = sizeof(rx); in dln2_spi_get_speed()
225 ret = dln2_transfer(dln2->pdev, cmd, &tx, sizeof(tx), &rx, &rx_len); in dln2_spi_get_speed()
228 if (rx_len < sizeof(rx)) in dln2_spi_get_speed()
231 *freq = le32_to_cpu(rx.speed); in dln2_spi_get_speed()
[all …]
/drivers/net/wireless/zd1211rw/
Dzd_usb.c665 struct zd_usb_rx *rx; in rx_urb_complete() local
688 rx = &usb->rx; in rx_urb_complete()
690 tasklet_schedule(&rx->reset_timer_tasklet); in rx_urb_complete()
692 if (length%rx->usb_packet_size > rx->usb_packet_size-4) { in rx_urb_complete()
695 ZD_ASSERT(length <= ARRAY_SIZE(rx->fragment)); in rx_urb_complete()
696 spin_lock(&rx->lock); in rx_urb_complete()
697 memcpy(rx->fragment, buffer, length); in rx_urb_complete()
698 rx->fragment_length = length; in rx_urb_complete()
699 spin_unlock(&rx->lock); in rx_urb_complete()
703 spin_lock(&rx->lock); in rx_urb_complete()
[all …]
/drivers/mfd/
Dipaq-micro.c149 struct ipaq_micro_rxdev *rx = &micro->rx; in micro_process_char() local
151 switch (rx->state) { in micro_process_char()
154 rx->state = STATE_ID; /* Next byte is the id and len */ in micro_process_char()
157 rx->id = (ch & 0xf0) >> 4; in micro_process_char()
158 rx->len = (ch & 0x0f); in micro_process_char()
159 rx->index = 0; in micro_process_char()
160 rx->chksum = ch; in micro_process_char()
161 rx->state = (rx->len > 0) ? STATE_DATA : STATE_CHKSUM; in micro_process_char()
164 rx->chksum += ch; in micro_process_char()
165 rx->buf[rx->index] = ch; in micro_process_char()
[all …]
/drivers/net/wireless/ti/wl12xx/
Ddebugfs.c35 WL12XX_DEBUGFS_FWSTATS_FILE(rx, out_of_mem, "%u");
36 WL12XX_DEBUGFS_FWSTATS_FILE(rx, hdr_overflow, "%u");
37 WL12XX_DEBUGFS_FWSTATS_FILE(rx, hw_stuck, "%u");
38 WL12XX_DEBUGFS_FWSTATS_FILE(rx, dropped, "%u");
39 WL12XX_DEBUGFS_FWSTATS_FILE(rx, fcs_err, "%u");
40 WL12XX_DEBUGFS_FWSTATS_FILE(rx, xfr_hint_trig, "%u");
41 WL12XX_DEBUGFS_FWSTATS_FILE(rx, path_reset, "%u");
42 WL12XX_DEBUGFS_FWSTATS_FILE(rx, reset_counter, "%u");
145 DEBUGFS_FWSTATS_ADD(rx, out_of_mem); in wl12xx_debugfs_add_files()
146 DEBUGFS_FWSTATS_ADD(rx, hdr_overflow); in wl12xx_debugfs_add_files()
[all …]
/drivers/staging/iio/meter/
Dade7854-i2c.c116 ret = i2c_master_recv(st->i2c, st->rx, 1); in ade7854_i2c_read_reg_8()
120 *val = st->rx[0]; in ade7854_i2c_read_reg_8()
142 ret = i2c_master_recv(st->i2c, st->rx, 2); in ade7854_i2c_read_reg_16()
146 *val = (st->rx[0] << 8) | st->rx[1]; in ade7854_i2c_read_reg_16()
168 ret = i2c_master_recv(st->i2c, st->rx, 3); in ade7854_i2c_read_reg_24()
172 *val = (st->rx[0] << 16) | (st->rx[1] << 8) | st->rx[2]; in ade7854_i2c_read_reg_24()
194 ret = i2c_master_recv(st->i2c, st->rx, 3); in ade7854_i2c_read_reg_32()
198 *val = (st->rx[0] << 24) | (st->rx[1] << 16) | in ade7854_i2c_read_reg_32()
199 (st->rx[2] << 8) | st->rx[3]; in ade7854_i2c_read_reg_32()
/drivers/net/wireless/ti/wl1251/
Ddebugfs.c122 DEBUGFS_FWSTATS_FILE(rx, out_of_mem, 20, "%u");
123 DEBUGFS_FWSTATS_FILE(rx, hdr_overflow, 20, "%u");
124 DEBUGFS_FWSTATS_FILE(rx, hw_stuck, 20, "%u");
125 DEBUGFS_FWSTATS_FILE(rx, dropped, 20, "%u");
126 DEBUGFS_FWSTATS_FILE(rx, fcs_err, 20, "%u");
127 DEBUGFS_FWSTATS_FILE(rx, xfr_hint_trig, 20, "%u");
128 DEBUGFS_FWSTATS_FILE(rx, path_reset, 20, "%u");
129 DEBUGFS_FWSTATS_FILE(rx, reset_counter, 20, "%u");
262 DEBUGFS_FWSTATS_DEL(rx, out_of_mem); in wl1251_debugfs_delete_files()
263 DEBUGFS_FWSTATS_DEL(rx, hdr_overflow); in wl1251_debugfs_delete_files()
[all …]
/drivers/tty/serial/
Dmax3100.c196 static int max3100_sr(struct max3100_port *s, u16 tx, u16 *rx) in max3100_sr() argument
215 *rx = be16_to_cpu(erx); in max3100_sr()
216 s->tx_empty = (*rx & MAX3100_T) > 0; in max3100_sr()
217 dev_dbg(&s->spi->dev, "%04x - %04x\n", tx, *rx); in max3100_sr()
221 static int max3100_handlerx(struct max3100_port *s, u16 rx) in max3100_handlerx() argument
226 if (rx & MAX3100_R && s->rx_enabled) { in max3100_handlerx()
228 ch = rx & (s->parity & MAX3100_7BIT ? 0x7f : 0xff); in max3100_handlerx()
229 if (rx & MAX3100_RAFE) { in max3100_handlerx()
235 if (max3100_check_parity(s, rx)) { in max3100_handlerx()
236 s->port.icount.rx++; in max3100_handlerx()
[all …]
/drivers/net/
Dxen-netfront.c136 struct xen_netif_rx_front_ring rx; member
169 struct xen_netif_rx_response rx; member
280 RING_IDX req_prod = queue->rx.req_prod_pvt; in xennet_alloc_rx_buffers()
287 for (req_prod = queue->rx.req_prod_pvt; in xennet_alloc_rx_buffers()
288 req_prod - queue->rx.rsp_cons < NET_RX_RING_SIZE; in xennet_alloc_rx_buffers()
313 req = RING_GET_REQUEST(&queue->rx, req_prod); in xennet_alloc_rx_buffers()
322 queue->rx.req_prod_pvt = req_prod; in xennet_alloc_rx_buffers()
329 if (req_prod - queue->rx.rsp_cons < NET_RX_SLOTS_MIN || in xennet_alloc_rx_buffers()
337 RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&queue->rx, notify); in xennet_alloc_rx_buffers()
359 queue->rx.sring->rsp_event = queue->rx.rsp_cons + 1; in xennet_open()
[all …]
/drivers/staging/nvec/
Dnvec.c494 if (nvec->rx->pos != nvec_msg_size(nvec->rx)) { in nvec_rx_completed()
496 (uint) nvec_msg_size(nvec->rx), in nvec_rx_completed()
497 (uint) nvec->rx->pos); in nvec_rx_completed()
499 nvec_msg_free(nvec, nvec->rx); in nvec_rx_completed()
503 if (nvec->rx->data[0] == NVEC_BAT) in nvec_rx_completed()
513 list_add_tail(&nvec->rx->node, &nvec->rx_data); in nvec_rx_completed()
519 if (!nvec_msg_is_event(nvec->rx)) in nvec_rx_completed()
618 nvec->rx = nvec_msg_alloc(nvec, NVEC_MSG_RX); in nvec_interrupt()
620 if (unlikely(nvec->rx == NULL)) { in nvec_interrupt()
624 nvec->rx->data[0] = received; in nvec_interrupt()
[all …]

12345678910>>...21