Home
last modified time | relevance | path

Searched refs:destid (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v4.19/drivers/rapidio/
Drio-scan.c62 int destid; in rio_destid_alloc() local
66 destid = find_first_zero_bit(idtab->table, idtab->max); in rio_destid_alloc()
68 if (destid < idtab->max) { in rio_destid_alloc()
69 set_bit(destid, idtab->table); in rio_destid_alloc()
70 destid += idtab->start; in rio_destid_alloc()
72 destid = RIO_INVALID_DESTID; in rio_destid_alloc()
75 return (u16)destid; in rio_destid_alloc()
86 static int rio_destid_reserve(struct rio_net *net, u16 destid) in rio_destid_reserve() argument
91 destid -= idtab->start; in rio_destid_reserve()
93 oldbit = test_and_set_bit(destid, idtab->table); in rio_destid_reserve()
[all …]
Drio.c737 int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase, in rio_map_outb_region() argument
747 rc = mport->ops->map_outb(mport, destid, rbase, size, in rio_map_outb_region()
761 void rio_unmap_outb_region(struct rio_mport *mport, u16 destid, u64 rstart) in rio_unmap_outb_region() argument
769 mport->ops->unmap_outb(mport, destid, rstart); in rio_unmap_outb_region()
785 u16 destid, u8 hopcount, u32 *rmap) in rio_mport_get_physefb() argument
790 ext_ftr_ptr = rio_mport_get_efb(port, local, destid, hopcount, 0); in rio_mport_get_physefb()
797 rio_mport_read_config_32(port, destid, hopcount, in rio_mport_get_physefb()
824 ext_ftr_ptr = rio_mport_get_efb(port, local, destid, in rio_mport_get_physefb()
903 int local, u16 destid, in rio_enable_rx_tx_port() argument
915 "%d, port_num = %d)\n", local, destid, hopcount, port_num); in rio_enable_rx_tx_port()
[all …]
Drio.h22 extern u32 rio_mport_get_feature(struct rio_mport *mport, int local, u16 destid,
25 u16 destid, u8 hopcount, u32 *rmap);
26 extern u32 rio_mport_get_efb(struct rio_mport *port, int local, u16 destid,
28 extern int rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid,
30 extern int rio_lock_device(struct rio_mport *port, u16 destid,
32 extern int rio_unlock_device(struct rio_mport *port, u16 destid, u8 hopcount);
45 extern int rio_enable_rx_tx_port(struct rio_mport *port, int local, u16 destid,
Drio-access.c88 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \
93 res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \
109 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \
112 return mport->ops->cwrite(mport, mport->id, destid, hopcount, \
140 int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) in rio_mport_send_doorbell() argument
142 return mport->ops->dsend(mport, mport->id, destid, data); in rio_mport_send_doorbell()
Drio_cm.c218 u32 destid; /* requester destID */ member
411 req->destid = ntohl(hh->bhdr.src_id); in riocm_req_handler()
765 buffer, rdev->destid, cm->tx_slot, cm->tx_cnt); in riocm_post_send()
985 hdr->bhdr.dst_id = htonl(peer->rdev->destid); in riocm_ch_connect()
1153 new_ch->rem_destid = req->destid; in riocm_ch_accept()
1164 if (peer->rdev->destid == new_ch->rem_destid) { in riocm_ch_accept()
1604 *entry_ptr = (u32)peer->rdev->destid; in cm_ep_get_list()
1819 if (peer->rdev->destid == chan.remote_destid) { in cm_chan_connect()
/Linux-v4.19/drivers/rapidio/switches/
Dtsi568.c37 tsi568_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_add_entry() argument
41 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
43 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
46 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
49 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
59 tsi568_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_get_entry() argument
66 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
68 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
71 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
74 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
[all …]
Dtsi57x.c46 tsi57x_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_add_entry() argument
50 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
52 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
55 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
57 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
67 tsi57x_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_get_entry() argument
76 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
81 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
83 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
94 tsi57x_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_clr_table() argument
[all …]
Didtcps.c25 idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_add_entry() argument
34 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
37 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
41 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
49 idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_get_entry() argument
55 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_get_entry()
58 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_get_entry()
72 idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_clr_table() argument
79 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table()
81 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table()
[all …]
Didt_gen3.c41 idtg3_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_add_entry() argument
59 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
68 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
76 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
83 idtg3_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_get_entry() argument
92 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_get_entry()
107 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_get_entry()
122 idtg3_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_clr_table() argument
131 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_clr_table()
141 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_clr_table()
[all …]
Didt_gen2.c91 idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_add_entry() argument
105 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
111 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
115 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
124 idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_get_entry() argument
137 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
140 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
144 rio_mport_read_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
156 idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_clr_table() argument
169 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table()
[all …]
/Linux-v4.19/include/linux/
Drio_drv.h36 extern int rio_mport_read_config_32(struct rio_mport *port, u16 destid,
38 extern int rio_mport_write_config_32(struct rio_mport *port, u16 destid,
40 extern int rio_mport_read_config_16(struct rio_mport *port, u16 destid,
42 extern int rio_mport_write_config_16(struct rio_mport *port, u16 destid,
44 extern int rio_mport_read_config_8(struct rio_mport *port, u16 destid,
46 extern int rio_mport_write_config_8(struct rio_mport *port, u16 destid,
152 return rio_mport_read_config_32(rdev->net->hport, rdev->destid, in rio_read_config_32()
168 return rio_mport_write_config_32(rdev->net->hport, rdev->destid, in rio_write_config_32()
184 return rio_mport_read_config_16(rdev->net->hport, rdev->destid, in rio_read_config_16()
200 return rio_mport_write_config_16(rdev->net->hport, rdev->destid, in rio_write_config_16()
[all …]
Drio.h126 int (*add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
128 int (*get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
130 int (*clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,
132 int (*set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
134 int (*get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
204 u16 destid; member
408 int (*cread) (struct rio_mport *mport, int index, u16 destid,
410 int (*cwrite) (struct rio_mport *mport, int index, u16 destid,
412 int (*dsend) (struct rio_mport *mport, int index, u16 destid, u16 data);
429 int (*map_outb)(struct rio_mport *mport, u16 destid, u64 rstart,
[all …]
/Linux-v4.19/drivers/net/
Drionet.c178 u16 destid; in rionet_start_xmit() local
208 destid = RIONET_GET_DESTID(eth->h_dest); in rionet_start_xmit()
209 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit()
211 nets[rnet->mport->id].active[destid]); in rionet_start_xmit()
245 if (peer->rdev->destid == sid) { in rionet_dbell_event()
389 if (nets[netid].active[peer->rdev->destid]) { in rionet_close()
391 nets[netid].active[peer->rdev->destid] = NULL; in rionet_close()
421 if (nets[netid].active[rdev->destid]) { in rionet_remove_dev()
428 nets[netid].active[rdev->destid] = NULL; in rionet_remove_dev()
654 if (nets[i].active[peer->rdev->destid]) { in rionet_shutdown()
[all …]
/Linux-v4.19/arch/powerpc/sysdev/
Dfsl_rio.c185 fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_read() argument
196 index, destid, hopcount, offset, len); in fsl_rio_config_read()
206 (destid << 22) | (hopcount << 12) | (offset >> 12)); in fsl_rio_config_read()
207 out_be32(&priv->maint_atmu_regs->rowtear, (destid >> 10)); in fsl_rio_config_read()
227 err, destid, hopcount, offset); in fsl_rio_config_read()
250 fsl_rio_config_write(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_write() argument
261 index, destid, hopcount, offset, len, val); in fsl_rio_config_write()
271 (destid << 22) | (hopcount << 12) | (offset >> 12)); in fsl_rio_config_write()
272 out_be32(&priv->maint_atmu_regs->rowtear, (destid >> 10)); in fsl_rio_config_write()
Dfsl_rmu.c629 int index, u16 destid, u16 data) in fsl_rio_doorbell_send() argument
634 index, destid, data); in fsl_rio_doorbell_send()
643 out_be32(&dbell->dbell_regs->oddpr, destid << 16); in fsl_rio_doorbell_send()
674 "%p len %8.8zx\n", rdev->destid, mbox, buffer, len); in fsl_add_outb_message()
688 desc->dport = (rdev->destid << 16) | (mbox & 0x3); in fsl_add_outb_message()
Dfsl_rio.h136 int index, u16 destid, u16 data);
/Linux-v4.19/arch/mips/sgi-ip27/
Dip27-smp.c147 static void ip27_send_ipi_single(int destid, unsigned int action) in ip27_send_ipi_single() argument
162 irq += cputoslice(destid); in ip27_send_ipi_single()
169 REMOTE_HUB_SEND_INTR(COMPACT_TO_NASID_NODEID(cpu_to_node(destid)), irq); in ip27_send_ipi_single()
/Linux-v4.19/security/keys/
Dpersistent.c131 long keyctl_get_persistent(uid_t _uid, key_serial_t destid) in keyctl_get_persistent() argument
156 dest_ref = lookup_user_key(destid, KEY_LOOKUP_CREATE, KEY_NEED_WRITE); in keyctl_get_persistent()
/Linux-v4.19/drivers/rapidio/devices/
Drio_mport_cdev.c1685 u16 destid; in rio_mport_add_riodev() local
1693 dev_info.comptag, dev_info.destid, dev_info.hopcount); in rio_mport_add_riodev()
1702 destid = dev_info.destid; in rio_mport_add_riodev()
1705 if (rio_mport_read_config_32(mport, destid, hopcount, in rio_mport_add_riodev()
1710 rio_mport_read_config_32(mport, destid, hopcount, in rio_mport_add_riodev()
1746 rio_mport_read_config_32(mport, destid, hopcount, in rio_mport_add_riodev()
1750 rio_mport_read_config_32(mport, destid, hopcount, RIO_DEV_INFO_CAR, in rio_mport_add_riodev()
1752 rio_mport_read_config_32(mport, destid, hopcount, RIO_ASM_ID_CAR, in rio_mport_add_riodev()
1756 rio_mport_read_config_32(mport, destid, hopcount, RIO_ASM_INFO_CAR, in rio_mport_add_riodev()
1762 rdev->phys_efptr = rio_mport_get_physefb(mport, 0, destid, in rio_mport_add_riodev()
[all …]
Dtsi721.c123 u16 destid, u8 hopcount, u32 offset, int len, in tsi721_maint_dma() argument
143 bd_ptr[0].type_id = cpu_to_le32((DTYPE2 << 29) | (op << 19) | destid); in tsi721_maint_dma()
183 destid, hopcount, offset); in tsi721_maint_dma()
226 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma() argument
231 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cread_dma()
249 static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cwrite_dma() argument
255 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cwrite_dma()
355 u16 destid, u16 data) in tsi721_dsend() argument
361 (destid << 2); in tsi721_dsend()
364 "Send Doorbell 0x%04x to destID 0x%x", data, destid); in tsi721_dsend()
[all …]
Dtsi721_dma.c354 (desc->rtype << 19) | desc->destid); in tsi721_desc_fill_init()
513 bdma_chan->id, bd_ptr, desc->destid, desc->rio_addr); in tsi721_submit_sg()
600 bdma_chan->id, dmac_sts, desc->destid, desc->rio_addr); in tsi721_dma_tasklet()
884 desc->destid = rext->destid; in tsi721_prep_rio_sg()
Dtsi721.h689 u16 destid; member
874 u16 destid; member
/Linux-v4.19/arch/mips/alchemy/common/
Ddbdma.c252 u32 au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid, in au1xxx_dbdma_chan_alloc() argument
274 dtp = find_dbdev_id(destid); in au1xxx_dbdma_chan_alloc()
393 u32 desc_base, srcid, destid; in au1xxx_dbdma_ring_alloc() local
443 destid = dtp->dev_id; in au1xxx_dbdma_ring_alloc()
449 cmd0 |= DSCR_CMD0_DID(destid); in au1xxx_dbdma_ring_alloc()
456 ((DSCR_CUSTOM2DEV_ID(destid) == DSCR_CMD0_THROTTLE) || in au1xxx_dbdma_ring_alloc()
457 (DSCR_CUSTOM2DEV_ID(destid) == DSCR_CMD0_ALWAYS))) in au1xxx_dbdma_ring_alloc()
/Linux-v4.19/include/uapi/linux/
Drio_mport_cdev.h219 __u16 destid; member
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-bus-rapidio79 What: /sys/bus/rapidio/devices/nn:d:iiii/destid
138 What: /sys/bus/rapidio/devices/nn:s:iiii/destid

12