Home
last modified time | relevance | path

Searched refs:sidx (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/drivers/irqchip/
Dirq-aspeed-vic.c110 unsigned int sidx = d->hwirq >> 5; in avic_ack_irq() local
114 if (vic->edge_sources[sidx] & sbit) in avic_ack_irq()
115 writel(sbit, vic->base + AVIC_EDGE_CLR + sidx * 4); in avic_ack_irq()
121 unsigned int sidx = d->hwirq >> 5; in avic_mask_irq() local
124 writel(sbit, vic->base + AVIC_INT_ENABLE_CLR + sidx * 4); in avic_mask_irq()
130 unsigned int sidx = d->hwirq >> 5; in avic_unmask_irq() local
133 writel(sbit, vic->base + AVIC_INT_ENABLE + sidx * 4); in avic_unmask_irq()
140 unsigned int sidx = d->hwirq >> 5; in avic_mask_ack_irq() local
144 writel(sbit, vic->base + AVIC_INT_ENABLE_CLR + sidx * 4); in avic_mask_ack_irq()
147 if (vic->edge_sources[sidx] & sbit) in avic_mask_ack_irq()
[all …]
/linux-6.1.9/drivers/net/wireless/purelifi/plfxlc/
Dmac.c304 u8 sidx; in plfxlc_op_tx() local
308 for (sidx = 0; sidx < MAX_STA_NUM; sidx++) { in plfxlc_op_tx()
309 if (!(tx->station[sidx].flag & STATION_CONNECTED_FLAG)) in plfxlc_op_tx()
311 if (memcmp(tx->station[sidx].mac, dst_mac, ETH_ALEN)) in plfxlc_op_tx()
319 sidx = STA_BROADCAST_INDEX; in plfxlc_op_tx()
322 if (skb_queue_len(&tx->station[sidx].data_list) > 60) in plfxlc_op_tx()
326 if (skb_queue_len(&tx->station[sidx].data_list) > 256) in plfxlc_op_tx()
328 skb_queue_tail(&tx->station[sidx].data_list, skb); in plfxlc_op_tx()
411 int sidx; in plfxlc_mac_rx() local
454 for (sidx = 0; sidx < MAX_STA_NUM - 1; sidx++) { in plfxlc_mac_rx()
[all …]
Dusb.c44 last_served_sidx = usb->sidx; in plfxlc_send_packet_from_data_queue()
46 usb->sidx = (usb->sidx + 1) % MAX_STA_NUM; in plfxlc_send_packet_from_data_queue()
47 if (!(tx->station[usb->sidx].flag & STATION_CONNECTED_FLAG)) in plfxlc_send_packet_from_data_queue()
49 if (!(tx->station[usb->sidx].flag & STATION_FIFO_FULL_FLAG)) in plfxlc_send_packet_from_data_queue()
50 skb = skb_peek(&tx->station[usb->sidx].data_list); in plfxlc_send_packet_from_data_queue()
51 } while ((usb->sidx != last_served_sidx) && (!skb)); in plfxlc_send_packet_from_data_queue()
54 skb = skb_dequeue(&tx->station[usb->sidx].data_list); in plfxlc_send_packet_from_data_queue()
57 if (skb_queue_len(&tx->station[usb->sidx].data_list) <= 60) in plfxlc_send_packet_from_data_queue()
76 u8 sidx; in rx_urb_complete() local
136 for (sidx = 0; sidx < MAX_STA_NUM; sidx++) in rx_urb_complete()
[all …]
Dusb.h133 u8 sidx; /* store last served */ member
/linux-6.1.9/drivers/ntb/test/
Dntb_tool.c237 int sidx; member
1167 ntb_spad_read(spad->tc->ntb, spad->sidx)); in tool_spad_read()
1188 ret = ntb_spad_write(spad->tc->ntb, spad->sidx, val); in tool_spad_write()
1208 ntb_peer_spad_read(spad->tc->ntb, spad->pidx, spad->sidx)); in tool_peer_spad_read()
1229 ret = ntb_peer_spad_write(spad->tc->ntb, spad->pidx, spad->sidx, val); in tool_peer_spad_write()
1240 int sidx, pidx; in tool_init_spads() local
1249 for (sidx = 0; sidx < tc->inspad_cnt; sidx++) { in tool_init_spads()
1250 tc->inspads[sidx].sidx = sidx; in tool_init_spads()
1251 tc->inspads[sidx].pidx = -1; in tool_init_spads()
1252 tc->inspads[sidx].tc = tc; in tool_init_spads()
[all …]
Dntb_perf.c699 int ret, sidx, scnt; in perf_enable_service() local
721 for (sidx = 0; sidx < scnt; sidx++) in perf_enable_service()
722 ntb_spad_write(perf->ntb, sidx, PERF_CMD_INVAL); in perf_enable_service()
/linux-6.1.9/include/linux/
Dntb.h314 u32 (*spad_read)(struct ntb_dev *ntb, int sidx);
315 int (*spad_write)(struct ntb_dev *ntb, int sidx, u32 val);
317 int (*peer_spad_addr)(struct ntb_dev *ntb, int pidx, int sidx,
319 u32 (*peer_spad_read)(struct ntb_dev *ntb, int pidx, int sidx);
320 int (*peer_spad_write)(struct ntb_dev *ntb, int pidx, int sidx,
1321 static inline u32 ntb_spad_read(struct ntb_dev *ntb, int sidx) in ntb_spad_read() argument
1326 return ntb->ops->spad_read(ntb, sidx); in ntb_spad_read()
1339 static inline int ntb_spad_write(struct ntb_dev *ntb, int sidx, u32 val) in ntb_spad_write() argument
1344 return ntb->ops->spad_write(ntb, sidx, val); in ntb_spad_write()
1359 static inline int ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx, in ntb_peer_spad_addr() argument
[all …]
/linux-6.1.9/drivers/ntb/hw/intel/
Dntb_hw_gen1.h178 u32 intel_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx);
179 int intel_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx,
181 int intel_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx,
Dntb_hw_gen1.c1180 int intel_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx, in intel_ntb_peer_spad_addr() argument
1185 return ndev_spad_addr(ndev, sidx, spad_addr, ndev->peer_addr, in intel_ntb_peer_spad_addr()
1189 u32 intel_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) in intel_ntb_peer_spad_read() argument
1193 return ndev_spad_read(ndev, sidx, in intel_ntb_peer_spad_read()
1198 int intel_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx, in intel_ntb_peer_spad_write() argument
1203 return ndev_spad_write(ndev, sidx, val, in intel_ntb_peer_spad_write()
/linux-6.1.9/drivers/phy/microchip/
Dsparx5_serdes.c687 __func__, macro->speed, macro->sidx, in sparx5_sd10g28_get_mode_preset()
1422 u32 lane_index = macro->sidx; in sparx5_sd10g28_apply_params()
1894 sparx5_sd10g28_reset(macro->priv->regs, macro->sidx); in sparx5_sd10g28_config()
1937 SD_LANE_MISC(macro->sidx)); in sparx5_serdes_clock_config()
2130 macro->sidx, in sparx5_serdes_config()
2144 macro->sidx, err); in sparx5_serdes_config()
2201 if (macro->sidx < SPX5_SERDES_10G_START && speed > SPEED_5000) in sparx5_serdes_set_speed()
2203 if (macro->sidx < SPX5_SERDES_25G_START && speed > SPEED_10000) in sparx5_serdes_set_speed()
2227 macro->sidx, err); in sparx5_serdes_reset()
2244 if (macro->sidx < SPX5_SERDES_10G_START && macro->speed > SPEED_5000) in sparx5_serdes_validate()
[all …]
Dsparx5_serdes.h39 u32 sidx; member
/linux-6.1.9/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c760 int sidx) in switchtec_ntb_peer_spad_read() argument
767 if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) in switchtec_ntb_peer_spad_read()
773 return ioread32(&sndev->peer_shared->spad[sidx]); in switchtec_ntb_peer_spad_read()
777 int sidx, u32 val) in switchtec_ntb_peer_spad_write() argument
784 if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) in switchtec_ntb_peer_spad_write()
790 iowrite32(val, &sndev->peer_shared->spad[sidx]); in switchtec_ntb_peer_spad_write()
796 int sidx, phys_addr_t *spad_addr) in switchtec_ntb_peer_spad_addr() argument
804 offset = (unsigned long)&sndev->peer_shared->spad[sidx] - in switchtec_ntb_peer_spad_addr()
/linux-6.1.9/drivers/ntb/hw/amd/
Dntb_hw_amd.c516 static u32 amd_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) in amd_ntb_peer_spad_read() argument
522 if (sidx < 0 || sidx >= ndev->spad_count) in amd_ntb_peer_spad_read()
525 offset = ndev->peer_spad + (sidx << 2); in amd_ntb_peer_spad_read()
530 int sidx, u32 val) in amd_ntb_peer_spad_write() argument
536 if (sidx < 0 || sidx >= ndev->spad_count) in amd_ntb_peer_spad_write()
539 offset = ndev->peer_spad + (sidx << 2); in amd_ntb_peer_spad_write()
/linux-6.1.9/drivers/hwmon/
Dasus-ec-sensors.c820 int sidx = find_ec_sensor_index(state, type, channel); in asus_ec_hwmon_read() local
822 if (sidx < 0) { in asus_ec_hwmon_read()
823 return sidx; in asus_ec_hwmon_read()
826 ret = get_cached_value_or_update(dev, sidx, state, &value); in asus_ec_hwmon_read()
829 get_sensor_info(state, sidx)->type); in asus_ec_hwmon_read()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dwmi.h4482 s32 sidx; member
Dwmi.c7725 ev->freq_offset, ev->sidx); in ath11k_wmi_pdev_dfs_radar_detected_event()