Home
last modified time | relevance | path

Searched refs:xd (Results 1 – 25 of 165) sorted by relevance

1234567

/openbmc/linux/drivers/thunderbolt/
H A Dxdomain.c165 int tb_xdomain_response(struct tb_xdomain *xd, const void *response, in tb_xdomain_response() argument
168 return __tb_xdomain_response(xd->tb->ctl, response, size, type); in tb_xdomain_response()
217 int tb_xdomain_request(struct tb_xdomain *xd, const void *request, in tb_xdomain_request() argument
222 return __tb_xdomain_request(xd->tb->ctl, request, request_size, in tb_xdomain_request()
415 struct tb_xdomain *xd, u8 sequence, const struct tb_xdp_properties *req) in tb_xdp_properties_response() argument
427 if (!uuid_equal(xd->local_uuid, &req->dst_uuid)) { in tb_xdp_properties_response()
428 tb_xdp_error_response(ctl, xd->route, sequence, in tb_xdp_properties_response()
433 mutex_lock(&xd->lock); in tb_xdp_properties_response()
435 if (req->offset >= xd->local_property_block_len) { in tb_xdp_properties_response()
436 mutex_unlock(&xd->lock); in tb_xdp_properties_response()
[all …]
H A Dicm.c560 static int icm_fr_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, in icm_fr_approve_xdomain_paths() argument
570 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link; in icm_fr_approve_xdomain_paths()
571 memcpy(&request.remote_uuid, xd->remote_uuid, sizeof(*xd->remote_uuid)); in icm_fr_approve_xdomain_paths()
590 static int icm_fr_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, in icm_fr_disconnect_xdomain_paths() argument
597 phy_port = tb_phy_port_from_link(xd->link); in icm_fr_disconnect_xdomain_paths()
683 struct tb_xdomain *xd; in add_xdomain() local
687 xd = tb_xdomain_alloc(sw->tb, &sw->dev, route, local_uuid, remote_uuid); in add_xdomain()
688 if (!xd) in add_xdomain()
691 xd->link = link; in add_xdomain()
692 xd->depth = depth; in add_xdomain()
[all …]
H A Ddma_test.c94 struct tb_xdomain *xd; member
125 tb_xdomain_release_in_hopid(dt->xd, dt->rx_hopid); in dma_test_free_rings()
130 tb_xdomain_release_out_hopid(dt->xd, dt->tx_hopid); in dma_test_free_rings()
139 struct tb_xdomain *xd = dt->xd; in dma_test_start_rings() local
152 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, DMA_TEST_TX_RING_SIZE, in dma_test_start_rings()
160 ret = tb_xdomain_alloc_out_hopid(xd, -1); in dma_test_start_rings()
175 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, DMA_TEST_RX_RING_SIZE, in dma_test_start_rings()
185 ret = tb_xdomain_alloc_in_hopid(xd, -1); in dma_test_start_rings()
194 ret = tb_xdomain_enable_paths(dt->xd, dt->tx_hopid, in dma_test_start_rings()
220 ret = tb_xdomain_disable_paths(dt->xd, dt->tx_hopid, in dma_test_stop_rings()
[all …]
H A Dtb.h508 int (*approve_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
511 int (*disconnect_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
748 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
751 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
1201 void tb_xdomain_add(struct tb_xdomain *xd);
1202 void tb_xdomain_remove(struct tb_xdomain *xd);
1206 static inline struct tb_switch *tb_xdomain_parent(struct tb_xdomain *xd) in tb_xdomain_parent() argument
1208 return tb_to_switch(xd->dev.parent); in tb_xdomain_parent()
1217 static inline struct tb_port *tb_xdomain_downstream_port(struct tb_xdomain *xd) in tb_xdomain_downstream_port() argument
1219 return tb_port_at(xd->route, tb_xdomain_parent(xd)); in tb_xdomain_downstream_port()
[all …]
H A Ddomain.c798 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, in tb_domain_approve_xdomain_paths() argument
805 return tb->cm_ops->approve_xdomain_paths(tb, xd, transmit_path, in tb_domain_approve_xdomain_paths()
825 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, in tb_domain_disconnect_xdomain_paths() argument
832 return tb->cm_ops->disconnect_xdomain_paths(tb, xd, transmit_path, in tb_domain_disconnect_xdomain_paths()
838 struct tb_xdomain *xd; in disconnect_xdomain() local
842 xd = tb_to_xdomain(dev); in disconnect_xdomain()
843 if (xd && xd->tb == tb) in disconnect_xdomain()
844 ret = tb_xdomain_disable_all_paths(xd); in disconnect_xdomain()
H A Dtb.c529 static int tb_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd) in tb_port_configure_xdomain() argument
532 return usb4_port_configure_xdomain(port, xd); in tb_port_configure_xdomain()
550 struct tb_xdomain *xd; in tb_scan_xdomain() local
557 xd = tb_xdomain_find_by_route(tb, route); in tb_scan_xdomain()
558 if (xd) { in tb_scan_xdomain()
559 tb_xdomain_put(xd); in tb_scan_xdomain()
563 xd = tb_xdomain_alloc(tb, &sw->dev, route, tb->root_switch->uuid, in tb_scan_xdomain()
565 if (xd) { in tb_scan_xdomain()
566 tb_port_at(route, sw)->xdomain = xd; in tb_scan_xdomain()
567 tb_port_configure_xdomain(port, xd); in tb_scan_xdomain()
[all …]
/openbmc/linux/fs/jffs2/
H A Dxattr.c71 static int is_xattr_datum_unchecked(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in is_xattr_datum_unchecked() argument
77 for (raw=xd->node; raw != (void *)xd; raw=raw->next_in_ino) { in is_xattr_datum_unchecked()
87 static void unload_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in unload_xattr_datum() argument
90 D1(dbg_xattr("%s: xid=%u, version=%u\n", __func__, xd->xid, xd->version)); in unload_xattr_datum()
91 if (xd->xname) { in unload_xattr_datum()
92 c->xdatum_mem_usage -= (xd->name_len + 1 + xd->value_len); in unload_xattr_datum()
93 kfree(xd->xname); in unload_xattr_datum()
96 list_del_init(&xd->xindex); in unload_xattr_datum()
97 xd->hashkey = 0; in unload_xattr_datum()
98 xd->xname = NULL; in unload_xattr_datum()
[all …]
H A Dmalloc.c279 struct jffs2_xattr_datum *xd; in jffs2_alloc_xattr_datum() local
280 xd = kmem_cache_zalloc(xattr_datum_cache, GFP_KERNEL); in jffs2_alloc_xattr_datum()
281 dbg_memalloc("%p\n", xd); in jffs2_alloc_xattr_datum()
282 if (!xd) in jffs2_alloc_xattr_datum()
285 xd->class = RAWNODE_CLASS_XATTR_DATUM; in jffs2_alloc_xattr_datum()
286 xd->node = (void *)xd; in jffs2_alloc_xattr_datum()
287 INIT_LIST_HEAD(&xd->xindex); in jffs2_alloc_xattr_datum()
288 return xd; in jffs2_alloc_xattr_datum()
291 void jffs2_free_xattr_datum(struct jffs2_xattr_datum *xd) in jffs2_free_xattr_datum() argument
293 dbg_memalloc("%p\n", xd); in jffs2_free_xattr_datum()
[all …]
H A Dxattr.h59 struct jffs2_xattr_datum *xd; /* reference to jffs2_xattr_datum */ member
84 extern int jffs2_garbage_collect_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd,
89 extern void jffs2_release_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd);
H A Dscan.c334 struct jffs2_xattr_datum *xd; in jffs2_scan_xattr_node() local
360 xd = jffs2_setup_xattr_datum(c, xid, version); in jffs2_scan_xattr_node()
361 if (IS_ERR(xd)) in jffs2_scan_xattr_node()
362 return PTR_ERR(xd); in jffs2_scan_xattr_node()
364 if (xd->version > version) { in jffs2_scan_xattr_node()
367 raw->next_in_ino = xd->node->next_in_ino; in jffs2_scan_xattr_node()
368 xd->node->next_in_ino = raw; in jffs2_scan_xattr_node()
370 xd->version = version; in jffs2_scan_xattr_node()
371 xd->xprefix = rx->xprefix; in jffs2_scan_xattr_node()
372 xd->name_len = rx->name_len; in jffs2_scan_xattr_node()
[all …]
/openbmc/linux/arch/powerpc/sysdev/xive/
H A Dcommon.c92 static bool xive_is_store_eoi(struct xive_irq_data *xd) in xive_is_store_eoi() argument
94 return xd->flags & XIVE_IRQ_FLAG_STORE_EOI && xive_store_eoi; in xive_is_store_eoi()
217 static notrace u8 xive_esb_read(struct xive_irq_data *xd, u32 offset) in xive_esb_read() argument
221 if (offset == XIVE_ESB_SET_PQ_10 && xive_is_store_eoi(xd)) in xive_esb_read()
224 if ((xd->flags & XIVE_IRQ_FLAG_H_INT_ESB) && xive_ops->esb_rw) in xive_esb_read()
225 val = xive_ops->esb_rw(xd->hw_irq, offset, 0, 0); in xive_esb_read()
227 val = in_be64(xd->eoi_mmio + offset); in xive_esb_read()
232 static void xive_esb_write(struct xive_irq_data *xd, u32 offset, u64 data) in xive_esb_write() argument
234 if ((xd->flags & XIVE_IRQ_FLAG_H_INT_ESB) && xive_ops->esb_rw) in xive_esb_write()
235 xive_ops->esb_rw(xd->hw_irq, offset, data, 1); in xive_esb_write()
[all …]
/openbmc/linux/drivers/dma/
H A Duniphier-xdmac.c89 struct uniphier_xdmac_desc *xd; member
132 struct uniphier_xdmac_desc *xd) in uniphier_xdmac_chan_start() argument
140 src_addr = xd->nodes[xd->cur_node].src; in uniphier_xdmac_chan_start()
141 dst_addr = xd->nodes[xd->cur_node].dst; in uniphier_xdmac_chan_start()
142 its = xd->nodes[xd->cur_node].burst_size; in uniphier_xdmac_chan_start()
143 tnum = xd->nodes[xd->cur_node].nr_burst; in uniphier_xdmac_chan_start()
149 if (xd->dir == DMA_DEV_TO_MEM) { in uniphier_xdmac_chan_start()
158 if (xd->dir == DMA_MEM_TO_DEV) { in uniphier_xdmac_chan_start()
220 struct uniphier_xdmac_desc *xd; in uniphier_xdmac_start() local
222 xd = uniphier_xdmac_next_desc(xc); in uniphier_xdmac_start()
[all …]
/openbmc/qemu/tcg/loongarch64/
H A Dtcg-insn-defs.c.inc1087 encode_xdj_insn(LoongArchInsn opc, TCGReg xd, TCGReg j)
1089 tcg_debug_assert(xd >= 0x20 && xd <= 0x3f);
1091 return encode_dj_slots(opc, xd & 0x1f, j);
1095 encode_xdjk_insn(LoongArchInsn opc, TCGReg xd, TCGReg j, TCGReg k)
1097 tcg_debug_assert(xd >= 0x20 && xd <= 0x3f);
1100 return encode_djk_slots(opc, xd & 0x1f, j, k);
1104 encode_xdjsk10_insn(LoongArchInsn opc, TCGReg xd, TCGReg j, int32_t sk10)
1106 tcg_debug_assert(xd >= 0x20 && xd <= 0x3f);
1109 return encode_djk_slots(opc, xd & 0x1f, j, sk10 & 0x3ff);
1113 encode_xdjsk11_insn(LoongArchInsn opc, TCGReg xd, TCGReg j, int32_t sk11)
[all …]
/openbmc/linux/include/linux/
H A Dthunderbolt.h274 int tb_xdomain_lane_bonding_enable(struct tb_xdomain *xd);
275 void tb_xdomain_lane_bonding_disable(struct tb_xdomain *xd);
276 int tb_xdomain_alloc_in_hopid(struct tb_xdomain *xd, int hopid);
277 void tb_xdomain_release_in_hopid(struct tb_xdomain *xd, int hopid);
278 int tb_xdomain_alloc_out_hopid(struct tb_xdomain *xd, int hopid);
279 void tb_xdomain_release_out_hopid(struct tb_xdomain *xd, int hopid);
280 int tb_xdomain_enable_paths(struct tb_xdomain *xd, int transmit_path,
283 int tb_xdomain_disable_paths(struct tb_xdomain *xd, int transmit_path,
287 static inline int tb_xdomain_disable_all_paths(struct tb_xdomain *xd) in tb_xdomain_disable_all_paths() argument
289 return tb_xdomain_disable_paths(xd, -1, -1, -1, -1); in tb_xdomain_disable_all_paths()
[all …]
/openbmc/linux/drivers/net/thunderbolt/
H A Dmain.c182 struct tb_xdomain *xd; member
244 struct tb_xdomain *xd = net->xd; in tbnet_login_response() local
247 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_login_response()
248 xd->remote_uuid, TBIP_LOGIN_RESPONSE, sizeof(reply), in tbnet_login_response()
253 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_login_response()
261 struct tb_xdomain *xd = net->xd; in tbnet_login_request() local
264 tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid, in tbnet_login_request()
265 xd->remote_uuid, TBIP_LOGIN, sizeof(request), in tbnet_login_request()
271 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_login_request()
281 struct tb_xdomain *xd = net->xd; in tbnet_logout_response() local
[all …]
/openbmc/qemu/scripts/
H A Dxen-detect.c10 xendevicemodel_handle *xd; in main() local
13 xd = xendevicemodel_open(0, 0); in main()
14 xendevicemodel_pin_memory_cacheattr(xd, 0, 0, 0, 0); in main()
41 xendevicemodel_handle *xd; in main() local
43 xd = xendevicemodel_open(0, 0); in main()
44 xendevicemodel_close(xd); in main()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_xive.c33 #define __x_eoi_page(xd) ((void __iomem *)((xd)->eoi_mmio)) argument
34 #define __x_trig_page(xd) ((void __iomem *)((xd)->trig_mmio)) argument
80 static u8 xive_vm_esb_load(struct xive_irq_data *xd, u32 offset) in xive_vm_esb_load() argument
84 if (offset == XIVE_ESB_SET_PQ_10 && xd->flags & XIVE_IRQ_FLAG_STORE_EOI) in xive_vm_esb_load()
87 val = __raw_readq(__x_eoi_page(xd) + offset); in xive_vm_esb_load()
95 static void xive_vm_source_eoi(u32 hw_irq, struct xive_irq_data *xd) in xive_vm_source_eoi() argument
98 if (xd->flags & XIVE_IRQ_FLAG_STORE_EOI) in xive_vm_source_eoi()
99 __raw_writeq(0, __x_eoi_page(xd) + XIVE_ESB_STORE_EOI); in xive_vm_source_eoi()
100 else if (xd->flags & XIVE_IRQ_FLAG_LSI) { in xive_vm_source_eoi()
106 __raw_readq(__x_eoi_page(xd) + XIVE_ESB_LOAD_EOI); in xive_vm_source_eoi()
[all …]
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dsve-test.S92 .macro _adrz xd, xn, nrtmp
93 ldr \xd, =zref
95 madd \xd, x\nrtmp, \xn, \xd
99 .macro _adrp xd, xn, nrtmp
100 ldr \xd, =pref
104 madd \xd, x\nrtmp, \xn, \xd
H A Dfpsimd-test.S66 .macro _adrv xd, xn, nrtmp
67 ldr \xd, =vref
69 madd \xd, x\nrtmp, \xn, \xd
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dvas.c54 struct xive_irq_data *xd; in init_vas_instance() local
124 xd = irq_get_handler_data(vinst->virq); in init_vas_instance()
125 if (!xd) { in init_vas_instance()
131 vinst->irq_port = xd->trig_page; in init_vas_instance()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dgddr5.c37 int pd, lf, xd, vh, vr, vo, l3; in nvkm_gddr5_calc() local
41 xd = !ram->next->bios.ramcfg_DLLoff; in nvkm_gddr5_calc()
81 ram->mr[1] |= (xd & 0x01) << 7; in nvkm_gddr5_calc()
/openbmc/linux/drivers/misc/ocxl/
H A Dafu_irq.c199 struct xive_irq_data *xd; in ocxl_afu_irq_get_addr() local
206 xd = irq_get_handler_data(irq->virq); in ocxl_afu_irq_get_addr()
207 addr = xd ? xd->trig_page : 0; in ocxl_afu_irq_get_addr()
/openbmc/qemu/pc-bios/keymaps/
H A Dsv218 acute 0xd
219 dead_acute 0xd
220 grave 0xd shift
221 dead_grave 0xd shift
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dpm8010.dtsi73 reg = <0xd SPMI_USID>;
80 interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
/openbmc/qemu/hw/ppc/
H A Dpnv_xscom.c248 PnvXScomInterface *xd = PNV_XSCOM_INTERFACE(child); in xscom_dt_child() local
249 PnvXScomInterfaceClass *xc = PNV_XSCOM_INTERFACE_GET_CLASS(xd); in xscom_dt_child()
255 _FDT((xc->dt_xscom(xd, args->fdt, args->xscom_offset))); in xscom_dt_child()

1234567