attach
placebc(int attach)
if(attach){
int len, attach = 0;
attach = 1;
attach = 1;
if (attach == 0) {
(*csc->sc_opns->attach)(sc, PCI_PRODUCT(ca->ca_id));
int (*attach)(void *, int);
struct gpio_attach *attach;
attach = (struct gpio_attach *)data;
ga.ga_dvname = attach->ga_dvname;
ga.ga_offset = attach->ga_offset;
ga.ga_mask = attach->ga_mask;
ga.ga_flags = attach->ga_flags;
attach = (struct gpio_attach *)data;
if (strcmp(gdev->sc_dev->dv_xname, attach->ga_dvname)
if ((error = host_if->attach(host_if->arg, &as->codec_if))) {
int (*attach)(void *arg, struct ac97_codec_if *codecif);
.attach = anxdp_bridge_attach,
ar5k_attach_t *attach = NULL;
ar5k_known_products[i].attach != NULL)
attach = ar5k_known_products[i].attach;
if (attach == NULL) {
if ((attach)(device, hal, st, sh, status) == NULL)
ar5k_attach_t (*attach);
.attach = dwhdmi_bridge_attach,
if (attach)
if (attach)
if (attach) {
if (maddr != 0 && msize != 0 && (rv == 0 || !attach))
if (rv == 0 || !attach)
lemac_isa_find(struct lemac_softc *sc, struct isa_attach_args *ia, int attach)
sc->host_if.attach = auacer_attach_codec;
sc->host_if.attach = auglx_attach_codec;
sc->host_if.attach = auich_attach_codec;
codec->host_if.attach = auixp_attach_codec;
codec->host_if.attach = autri_attach_codec;
sc->host_if.attach = auvia_attach_codec;
sc->host_if.attach = cs4280_attach_codec;
sc->host_if.attach = cs4281_attach_codec;
pci_p2pdma_distance(adev->pdev, attach->dev, false) < 0)
attach->peer2peer = false;
static int amdgpu_dma_buf_pin(struct dma_buf_attachment *attach)
struct dma_buf *dmabuf = attach->dmabuf;
list_for_each_entry(attach, &dmabuf->attachments, node)
if (!attach->peer2peer)
static void amdgpu_dma_buf_unpin(struct dma_buf_attachment *attach)
struct drm_gem_object *obj = attach->dmabuf->priv;
static struct sg_table *amdgpu_dma_buf_map(struct dma_buf_attachment *attach,
struct dma_buf *dma_buf = attach->dmabuf;
attach->peer2peer) {
if (dma_map_sgtable(attach->dev, sgt, dir,
dma_buf_attach_adev(attach), bo)))
bo->tbo.base.size, attach->dev,
static void amdgpu_dma_buf_unmap(struct dma_buf_attachment *attach,
dma_unmap_sgtable(attach->dev, sgt, dir, 0);
amdgpu_vram_mgr_free_sgt(attach->dev, dir, sgt);
.attach = amdgpu_dma_buf_attach,
amdgpu_dma_buf_move_notify(struct dma_buf_attachment *attach)
struct drm_gem_object *obj = attach->importer_priv;
struct dma_buf_attachment *attach;
attach = dma_buf_dynamic_attach(dma_buf, dev->dev,
if (IS_ERR(attach)) {
return ERR_CAST(attach);
attach = NULL;
obj->import_attach = attach;
static struct amdgpu_device *dma_buf_attach_adev(struct dma_buf_attachment *attach)
if (attach->importer_ops == &amdgpu_dma_buf_attach_ops) {
struct drm_gem_object *obj = attach->importer_priv;
struct dma_buf_attachment *attach)
struct amdgpu_device *attach_adev = dma_buf_attach_adev(attach);
attach->peer2peer = false;
struct dma_buf_attachment *attach;
attach = gtt->gobj->import_attach;
dma_buf_unmap_attachment(attach, ttm->sg, DMA_BIDIRECTIONAL);
struct dma_buf_attachment *attach;
attach = gtt->gobj->import_attach;
sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL);
if (bridge->funcs->attach) {
ret = bridge->funcs->attach(bridge, encoder, flags);
struct dma_buf_attachment *attach, struct sg_table *sgt)
if (!ops || !ops->attach)
ret = ops->attach(dsi->host, dsi);
struct dma_buf_attachment *attach;
attach = dma_buf_attach(dma_buf, attach_dev);
if (IS_ERR(attach))
return ERR_CAST(attach);
sgt = dma_buf_map_attachment_unlocked(attach, DMA_BIDIRECTIONAL);
obj = dev->driver->gem_prime_import_sg_table(dev, attach, sgt);
obj->import_attach = attach;
dma_buf_unmap_attachment_unlocked(attach, sgt, DMA_BIDIRECTIONAL);
dma_buf_detach(dma_buf, attach);
struct dma_buf_attachment *attach;
attach = obj->import_attach;
dma_buf_unmap_attachment_unlocked(attach, sg, DMA_BIDIRECTIONAL);
dma_buf = attach->dmabuf;
dma_buf_detach(attach->dmabuf, attach);
struct dma_buf_attachment *attach)
struct dma_buf_attachment *attach)
struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach,
struct drm_gem_object *obj = attach->dmabuf->priv;
ret = dma_map_sgtable(attach->dev, sgt, dir,
void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
dma_unmap_sgtable(attach->dev, sgt, dir, DMA_ATTR_SKIP_CPU_SYNC);
.attach = drm_gem_map_attach,
.attach = gen11_dsi_host_attach,
.attach = intel_dsi_host_attach,
struct dma_buf_attachment *attach)
struct dma_buf_attachment *attach)
.attach = i915_gem_dmabuf_attach,
static struct sg_table *i915_gem_map_dma_buf(struct dma_buf_attachment *attach,
struct dma_buf_attachment *attach;
attach = dma_buf_attach(dma_buf, dev->dev);
struct drm_i915_gem_object *obj = dma_buf_to_obj(attach->dmabuf);
if (IS_ERR(attach))
return ERR_CAST(attach);
obj->base.import_attach = attach;
dma_buf_detach(dma_buf, attach);
ret = dma_map_sgtable(attach->dev, sgt, dir, DMA_ATTR_SKIP_CPU_SYNC);
int (*attach)(struct drm_bridge *bridge, struct drm_encoder *encoder,
struct dma_buf_attachment *attach,
int (*attach)(struct mipi_dsi_host *, struct mipi_dsi_device *);
struct dma_buf_attachment *attach);
struct dma_buf_attachment *attach);
struct sg_table *drm_gem_map_dma_buf(struct dma_buf_attachment *attach,
void drm_gem_unmap_dma_buf(struct dma_buf_attachment *attach,
struct dma_buf_attachment *attach,
struct dma_resv *resv = attach->dmabuf->resv;
ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false,
sc->host_if.attach = eap1371_attach_codec;
sc->hostif.attach = emuxki_ac97_attach;
sc->host_if.attach = envy_ac97_attach_codec;
sc->host_if.attach = esa_attach_codec;
sc->host_if.attach = fms_attach_codec;
(*psc->sc_opns->attach)(sc, PCI_PRODUCT(pa->pa_id));
int (*attach)(void *, int);
sc->host_if.attach = maestro_attach_codec;
sc->host_if.attach = neo_attach_codec;
goto attach;
attach:
codec->host_if.attach = yds_attach_codec;
umb_packet_service(struct umb_softc *sc, int attach)
attach ? "attach" : "detach");
s.action = htole32(attach ?
error = (*scr->scr_syncops->attach)(scr->scr_synccookie, waitok,
(void)(*dconf->wsemul->attach)(1, 0, 0, 0, 0, scr, 0);
dconf->wsemulcookie = (*dconf->wsemul->attach)(0, type, cookie,
int (*attach)(void *, int, void (*)(void *, int, int), void *);
void *(*attach)(int, const struct wsscreen_descr *, void *,
attach(gp);
static void attach(GS *);
ex_N_edit(SCR *sp, EXCMD *cmdp, FREF *frp, int attach)
if (attach) {
int attach, setalt;
attach = 0;
attach = 1;
attach = 0;
return (ex_N_edit(sp, cmdp, frp, attach));
struct gpio_attach attach;
memset(&attach, 0, sizeof(attach));
strlcpy(attach.ga_dvname, dvname, sizeof(attach.ga_dvname));
attach.ga_offset = offset;
attach.ga_mask = mask;
attach.ga_flags = flags;
if (ioctl(devfd, GPIOATTACH, &attach) == -1)
struct gpio_attach attach;
memset(&attach, 0, sizeof(attach));
strlcpy(attach.ga_dvname, dvname, sizeof(attach.ga_dvname));
if (ioctl(devfd, GPIODETACH, &attach) == -1)