Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/rapidio/
Drio-scan.c64 int destid; in rio_destid_alloc() local
68 destid = find_first_zero_bit(idtab->table, idtab->max); in rio_destid_alloc()
70 if (destid < idtab->max) { in rio_destid_alloc()
71 set_bit(destid, idtab->table); in rio_destid_alloc()
72 destid += idtab->start; in rio_destid_alloc()
74 destid = RIO_INVALID_DESTID; in rio_destid_alloc()
77 return (u16)destid; in rio_destid_alloc()
88 static int rio_destid_reserve(struct rio_net *net, u16 destid) in rio_destid_reserve() argument
93 destid -= idtab->start; in rio_destid_reserve()
95 oldbit = test_and_set_bit(destid, idtab->table); in rio_destid_reserve()
[all …]
Drio.c495 u16 destid, u8 hopcount) in rio_mport_get_physefb() argument
500 ext_ftr_ptr = rio_mport_get_efb(port, local, destid, hopcount, 0); in rio_mport_get_physefb()
507 rio_mport_read_config_32(port, destid, hopcount, in rio_mport_get_physefb()
527 ext_ftr_ptr = rio_mport_get_efb(port, local, destid, in rio_mport_get_physefb()
606 int local, u16 destid, in rio_enable_rx_tx_port() argument
617 "%d, port_num = %d)\n", local, destid, hopcount, port_num); in rio_enable_rx_tx_port()
619 ext_ftr_ptr = rio_mport_get_physefb(port, local, destid, hopcount); in rio_enable_rx_tx_port()
626 if (rio_mport_read_config_32(port, destid, hopcount, in rio_enable_rx_tx_port()
645 if (rio_mport_write_config_32(port, destid, hopcount, in rio_enable_rx_tx_port()
683 p_port = prev->rswitch->route_table[rdev->destid]; in rio_chk_dev_route()
[all …]
Drio.h22 extern u32 rio_mport_get_feature(struct rio_mport *mport, int local, u16 destid,
25 u16 destid, u8 hopcount);
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,
31 extern int rio_lock_device(struct rio_mport *port, u16 destid,
33 extern int rio_unlock_device(struct rio_mport *port, u16 destid, u8 hopcount);
42 extern int rio_enable_rx_tx_port(struct rio_mport *port, int local, u16 destid,
Drio-access.c104 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \
111 res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \
128 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \
134 res = mport->ops->cwrite(mport, mport->id, destid, hopcount, offset, len, value); \
163 int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) in rio_mport_send_doorbell() argument
169 res = mport->ops->dsend(mport, mport->id, destid, data); in rio_mport_send_doorbell()
Drio-sysfs.c38 rio_config_attr(destid, "0x%04x\n");
/linux-4.1.27/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_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-4.1.27/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,
194 u16 destid; member
342 int (*cread) (struct rio_mport *mport, int index, u16 destid,
344 int (*cwrite) (struct rio_mport *mport, int index, u16 destid,
346 int (*dsend) (struct rio_mport *mport, int index, u16 destid, u16 data);
431 u16 destid; member
/linux-4.1.27/drivers/net/
Drionet.c173 u16 destid; in rionet_start_xmit() local
207 destid = RIONET_GET_DESTID(eth->h_dest); in rionet_start_xmit()
208 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit()
210 nets[rnet->mport->id].active[destid]); in rionet_start_xmit()
243 if (peer->rdev->destid == sid) { in rionet_dbell_event()
384 if (nets[rnet->mport->id].active[peer->rdev->destid]) { in rionet_close()
386 nets[rnet->mport->id].active[peer->rdev->destid] = NULL; in rionet_close()
408 if (nets[netid].active[rdev->destid]) { in rionet_remove_dev()
409 nets[netid].active[rdev->destid] = NULL; in rionet_remove_dev()
/linux-4.1.27/arch/powerpc/sysdev/
Dfsl_rio.c185 fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_read() argument
195 index, destid, hopcount, offset, len); in fsl_rio_config_read()
203 (destid << 22) | (hopcount << 12) | (offset >> 12)); in fsl_rio_config_read()
204 out_be32(&priv->maint_atmu_regs->rowtear, (destid >> 10)); in fsl_rio_config_read()
223 err, destid, hopcount, offset); in fsl_rio_config_read()
245 fsl_rio_config_write(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_write() argument
253 index, destid, hopcount, offset, len, val); in fsl_rio_config_write()
261 (destid << 22) | (hopcount << 12) | (offset >> 12)); in fsl_rio_config_write()
262 out_be32(&priv->maint_atmu_regs->rowtear, (destid >> 10)); in fsl_rio_config_write()
Dfsl_rmu.c623 int index, u16 destid, u16 data) in fsl_rio_doorbell_send() argument
626 index, destid, data); in fsl_rio_doorbell_send()
633 out_be32(&dbell->dbell_regs->oddpr, destid << 16); in fsl_rio_doorbell_send()
662 "%p len %8.8zx\n", rdev->destid, mbox, buffer, len); in fsl_add_outb_message()
676 desc->dport = (rdev->destid << 16) | (mbox & 0x3); in fsl_add_outb_message()
Dfsl_rio.h135 int index, u16 destid, u16 data);
/linux-4.1.27/arch/mips/sgi-ip27/
Dip27-smp.c143 static void ip27_send_ipi_single(int destid, unsigned int action) in ip27_send_ipi_single() argument
158 irq += cputoslice(destid); in ip27_send_ipi_single()
165 REMOTE_HUB_SEND_INTR(COMPACT_TO_NASID_NODEID(cpu_to_node(destid)), irq); in ip27_send_ipi_single()
/linux-4.1.27/security/keys/
Dpersistent.c129 long keyctl_get_persistent(uid_t _uid, key_serial_t destid) in keyctl_get_persistent() argument
154 dest_ref = lookup_user_key(destid, KEY_LOOKUP_CREATE, KEY_NEED_WRITE); in keyctl_get_persistent()
/linux-4.1.27/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-4.1.27/drivers/rapidio/devices/
Dtsi721.c108 u16 destid, u8 hopcount, u32 offset, int len, in tsi721_maint_dma() argument
125 bd_ptr[0].type_id = cpu_to_le32((DTYPE2 << 29) | (op << 19) | destid); in tsi721_maint_dma()
163 do_wr ? MAINT_WR : MAINT_RD, destid, hopcount, offset); in tsi721_maint_dma()
204 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma() argument
209 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cread_dma()
227 static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cwrite_dma() argument
233 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cwrite_dma()
349 u16 destid, u16 data) in tsi721_dsend() argument
355 (destid << 2); in tsi721_dsend()
358 "Send Doorbell 0x%04x to destID 0x%x\n", data, destid); in tsi721_dsend()
[all …]
Dtsi721_dma.c347 (desc->rtype << 19) | desc->destid); in tsi721_desc_fill_init()
507 bd_ptr, desc->destid, desc->rio_addr); in tsi721_submit_sg()
801 desc->destid = rext->destid; in tsi721_prep_rio_sg()
Dtsi721.h649 u16 destid; member
/linux-4.1.27/Documentation/rapidio/
Dsysfs.txt39 destid - returns device destination ID assigned by the enumeration routine
77 destid - device destination ID that defines a route to the switch
/linux-4.1.27/arch/mips/include/asm/mach-au1x00/
Dau1xxx_dbdma.h348 extern u32 au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid,