Home
last modified time | relevance | path

Searched refs:descs (Results 1 – 25 of 106) sorted by relevance

12345

/Linux-v5.4/drivers/gpio/
Dgpiolib-devres.c34 struct gpio_descs **descs = res; in devm_gpiod_release_array() local
36 gpiod_put_array(*descs); in devm_gpiod_release_array()
288 struct gpio_descs *descs; in devm_gpiod_get_array() local
295 descs = gpiod_get_array(dev, con_id, flags); in devm_gpiod_get_array()
296 if (IS_ERR(descs)) { in devm_gpiod_get_array()
298 return descs; in devm_gpiod_get_array()
301 *dr = descs; in devm_gpiod_get_array()
304 return descs; in devm_gpiod_get_array()
323 struct gpio_descs *descs; in devm_gpiod_get_array_optional() local
325 descs = devm_gpiod_get_array(dev, con_id, flags); in devm_gpiod_get_array_optional()
[all …]
Dgpiolib.c119 return &gdev->descs[gpio - gdev->base]; in gpio_to_desc()
150 return &gdev->descs[hwnum]; in gpiochip_get_desc()
165 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio()
302 struct gpio_desc *desc = &gdev->descs[i]; in gpio_name_to_desc()
346 gdev->descs[i].name = gc->names[i]; in gpiochip_set_desc_names()
417 struct gpio_desc *descs[GPIOHANDLES_MAX]; member
442 lh->descs, in linehandle_ioctl()
461 if (!test_bit(FLAG_IS_OUT, &lh->descs[0]->flags)) in linehandle_ioctl()
475 lh->descs, in linehandle_ioctl()
497 gpiod_free(lh->descs[i]); in linehandle_release()
[all …]
Dgpio-moxtet.c21 static const struct moxtet_gpio_desc descs[] = { variable
124 if (id >= ARRAY_SIZE(descs)) { in moxtet_gpio_probe()
136 chip->desc = &descs[id]; in moxtet_gpio_probe()
Dgpio-max3191x.c335 struct gpio_descs *descs; in devm_gpiod_get_array_optional_count() local
347 descs = devm_gpiod_get_array_optional(dev, con_id, flags); in devm_gpiod_get_array_optional_count()
349 if (IS_ERR(descs)) { in devm_gpiod_get_array_optional_count()
351 con_id, PTR_ERR(descs)); in devm_gpiod_get_array_optional_count()
355 return descs; in devm_gpiod_get_array_optional_count()
/Linux-v5.4/drivers/dma/ioat/
Dprep.c31 static void xor_set_src(struct ioat_raw_descriptor *descs[2], in xor_set_src()
34 struct ioat_raw_descriptor *raw = descs[xor_idx_to_desc >> idx & 1]; in xor_set_src()
39 static dma_addr_t pq_get_src(struct ioat_raw_descriptor *descs[2], int idx) in pq_get_src()
41 struct ioat_raw_descriptor *raw = descs[pq_idx_to_desc >> idx & 1]; in pq_get_src()
53 static void pq_set_src(struct ioat_raw_descriptor *descs[2], in pq_set_src()
56 struct ioat_pq_descriptor *pq = (struct ioat_pq_descriptor *) descs[0]; in pq_set_src()
57 struct ioat_raw_descriptor *raw = descs[pq_idx_to_desc >> idx & 1]; in pq_set_src()
192 struct ioat_raw_descriptor *descs[2]; in __ioat_prep_xor_lock() local
207 descs[0] = (struct ioat_raw_descriptor *) xor; in __ioat_prep_xor_lock()
208 descs[1] = (struct ioat_raw_descriptor *) xor_ex; in __ioat_prep_xor_lock()
[all …]
Ddma.c338 pos = (u8 *)ioat_chan->descs[chunk].virt + offs; in ioat_alloc_ring_ent()
339 phys = ioat_chan->descs[chunk].hw + offs; in ioat_alloc_ring_ent()
376 struct ioat_descs *descs = &ioat_chan->descs[i]; in ioat_alloc_ring() local
378 descs->virt = dma_alloc_coherent(to_dev(ioat_chan), in ioat_alloc_ring()
379 SZ_2M, &descs->hw, flags); in ioat_alloc_ring()
380 if (!descs->virt && (i > 0)) { in ioat_alloc_ring()
385 descs->virt, descs->hw); in ioat_alloc_ring()
386 descs->virt = NULL; in ioat_alloc_ring()
387 descs->hw = 0; in ioat_alloc_ring()
407 ioat_chan->descs[idx].virt, in ioat_alloc_ring()
[all …]
/Linux-v5.4/drivers/rpmsg/
Dqcom_glink_smem.c193 __le32 *descs; in qcom_glink_smem_register() local
233 descs = qcom_smem_get(remote_pid, in qcom_glink_smem_register()
235 if (IS_ERR(descs)) { in qcom_glink_smem_register()
237 ret = PTR_ERR(descs); in qcom_glink_smem_register()
247 tx_pipe->tail = &descs[0]; in qcom_glink_smem_register()
248 tx_pipe->head = &descs[1]; in qcom_glink_smem_register()
249 rx_pipe->tail = &descs[2]; in qcom_glink_smem_register()
250 rx_pipe->head = &descs[3]; in qcom_glink_smem_register()
/Linux-v5.4/drivers/staging/comedi/drivers/
Dmite.c671 desc = &ring->descs[i]; in mite_init_ring_descriptors()
680 desc = &ring->descs[i]; in mite_init_ring_descriptors()
700 struct mite_dma_desc *descs = ring->descs; in mite_free_dma_descs() local
702 if (descs) { in mite_free_dma_descs()
704 ring->n_links * sizeof(*descs), in mite_free_dma_descs()
705 descs, ring->dma_addr); in mite_free_dma_descs()
706 ring->descs = NULL; in mite_free_dma_descs()
720 struct mite_dma_desc *descs; in mite_buf_change() local
730 descs = dma_alloc_coherent(ring->hw_dev, in mite_buf_change()
731 n_links * sizeof(*descs), in mite_buf_change()
[all …]
/Linux-v5.4/drivers/net/ethernet/cirrus/
Dep93xx_eth.c158 struct ep93xx_descs *descs; member
241 rstat = ep->descs->rstat + entry; in ep93xx_rx()
283 struct ep93xx_rdesc *rxd = &ep->descs->rdesc[entry]; in ep93xx_rx()
346 txd = &ep->descs->tdesc[entry]; in ep93xx_xmit()
381 tstat = ep->descs->tstat + entry; in ep93xx_tx_complete()
395 int length = ep->descs->tdesc[entry].tdesc1 & 0xfff; in ep93xx_tx_complete()
450 if (!ep->descs) in ep93xx_free_buffers()
456 d = ep->descs->rdesc[i].buf_addr; in ep93xx_free_buffers()
466 d = ep->descs->tdesc[i].buf_addr; in ep93xx_free_buffers()
473 dma_free_coherent(dev, sizeof(struct ep93xx_descs), ep->descs, in ep93xx_free_buffers()
[all …]
/Linux-v5.4/sound/firewire/motu/
Damdtp-motu.c314 const struct pkt_desc *descs, in probe_tracepoints_events() argument
320 const struct pkt_desc *desc = descs + i; in probe_tracepoints_events()
330 const struct pkt_desc *descs, in process_ir_ctx_payloads() argument
340 const struct pkt_desc *desc = descs + i; in process_ir_ctx_payloads()
356 probe_tracepoints_events(s, descs, packets); in process_ir_ctx_payloads()
404 const struct pkt_desc *descs, in process_it_ctx_payloads() argument
414 const struct pkt_desc *desc = descs + i; in process_it_ctx_payloads()
436 probe_tracepoints_events(s, descs, packets); in process_it_ctx_payloads()
/Linux-v5.4/drivers/clk/mvebu/
Dclk-corediv.c41 const struct clk_corediv_desc *descs; member
195 .descs = mvebu_corediv_desc,
211 .descs = mvebu_corediv_desc,
227 .descs = mvebu_corediv_desc,
239 .descs = mv98dx3236_corediv_desc,
293 corediv[i].desc = soc_desc->descs + i; in mvebu_corediv_clk_init()
/Linux-v5.4/sound/firewire/fireface/
Damdtp-ff.c116 const struct pkt_desc *descs, in process_it_ctx_payloads() argument
124 const struct pkt_desc *desc = descs + i; in process_it_ctx_payloads()
140 const struct pkt_desc *descs, in process_ir_ctx_payloads() argument
148 const struct pkt_desc *desc = descs + i; in process_ir_ctx_payloads()
/Linux-v5.4/drivers/net/ethernet/ibm/
Dibmveth.c984 union ibmveth_buf_desc *descs, unsigned long mss) in ibmveth_send() argument
998 descs[0].desc, descs[1].desc, in ibmveth_send()
999 descs[2].desc, descs[3].desc, in ibmveth_send()
1000 descs[4].desc, descs[5].desc, in ibmveth_send()
1019 union ibmveth_buf_desc descs[6]; in ibmveth_start_xmit() local
1073 memset(descs, 0, sizeof(descs)); in ibmveth_start_xmit()
1085 descs[0].fields.flags_len = desc_flags | skb->len; in ibmveth_start_xmit()
1086 descs[0].fields.address = adapter->bounce_buffer_dma; in ibmveth_start_xmit()
1088 if (ibmveth_send(adapter, descs, 0)) { in ibmveth_start_xmit()
1105 descs[0].fields.flags_len = desc_flags | skb_headlen(skb); in ibmveth_start_xmit()
[all …]
/Linux-v5.4/tools/lib/bpf/
Dxsk.h67 struct xdp_desc *descs = (struct xdp_desc *)tx->ring; in xsk_ring_prod__tx_desc() local
69 return &descs[idx & tx->mask]; in xsk_ring_prod__tx_desc()
75 const struct xdp_desc *descs = (const struct xdp_desc *)rx->ring; in xsk_ring_cons__rx_desc() local
77 return &descs[idx & rx->mask]; in xsk_ring_cons__rx_desc()
/Linux-v5.4/drivers/regulator/
Dltc3589.c388 struct regulator_desc *descs; in ltc3589_probe() local
404 descs = ltc3589->regulator_descs; in ltc3589_probe()
405 memcpy(descs, ltc3589_regulators, sizeof(ltc3589_regulators)); in ltc3589_probe()
407 descs[LTC3589_LDO3].fixed_uV = 1800000; in ltc3589_probe()
408 descs[LTC3589_LDO4].volt_table = ltc3589_ldo4; in ltc3589_probe()
410 descs[LTC3589_LDO3].fixed_uV = 2800000; in ltc3589_probe()
411 descs[LTC3589_LDO4].volt_table = ltc3589_12_ldo4; in ltc3589_probe()
/Linux-v5.4/drivers/scsi/fnic/
Dvnic_cq_copy.h35 desc = (struct fcpio_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_copy_service()
50 desc = (struct fcpio_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_copy_service()
Dvnic_wq_copy.h48 struct fcpio_host_req *desc = wq->ring.descs; in vnic_wq_copy_next_desc()
88 struct fcpio_host_req *wq_desc = wq->ring.descs; in vnic_wq_copy_service()
/Linux-v5.4/drivers/scsi/snic/
Dvnic_cq_fw.h35 desc = (struct snic_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_fw_service()
50 desc = (struct snic_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_fw_service()
Dvnic_cq.h71 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in svnic_cq_service()
88 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in svnic_cq_service()
/Linux-v5.4/drivers/vhost/
Dvringh.c154 struct vring_desc **descs, int *desc_max) in move_to_indirect() argument
175 *descs = addr; in move_to_indirect()
210 struct vring_desc **descs, int *desc_max) in return_from_indirect() argument
215 *descs = vrh->vring.desc; in return_from_indirect()
268 struct vring_desc desc, *descs; in __vringh_iov() local
273 descs = vrh->vring.desc; in __vringh_iov()
291 err = slow_copy(vrh, &desc, &descs[i], rcheck, getrange, in __vringh_iov()
294 err = copy(&desc, &descs[i], sizeof(desc)); in __vringh_iov()
317 &descs, &desc_max); in __vringh_iov()
324 vringh_bad("Descriptor loop in %p", descs); in __vringh_iov()
[all …]
/Linux-v5.4/drivers/net/ethernet/faraday/
Dftmac100.c55 struct ftmac100_descs *descs; member
299 return &priv->descs->rxdes[priv->rx_pointer]; in ftmac100_current_rxdes()
565 return &priv->descs->txdes[priv->tx_pointer]; in ftmac100_current_txdes()
570 return &priv->descs->txdes[priv->tx_clean_pointer]; in ftmac100_current_clean_txdes()
693 struct ftmac100_rxdes *rxdes = &priv->descs->rxdes[i]; in ftmac100_free_buffers()
705 struct ftmac100_txdes *txdes = &priv->descs->txdes[i]; in ftmac100_free_buffers()
717 priv->descs, priv->descs_dma_addr); in ftmac100_free_buffers()
724 priv->descs = dma_alloc_coherent(priv->dev, in ftmac100_alloc_buffers()
727 if (!priv->descs) in ftmac100_alloc_buffers()
731 ftmac100_rxdes_set_end_of_ring(&priv->descs->rxdes[RX_QUEUE_ENTRIES - 1]); in ftmac100_alloc_buffers()
[all …]
/Linux-v5.4/sound/firewire/tascam/
Damdtp-tascam.c179 const struct pkt_desc *descs, in process_ir_ctx_payloads() argument
187 const struct pkt_desc *desc = descs + i; in process_ir_ctx_payloads()
203 const struct pkt_desc *descs, in process_it_ctx_payloads() argument
211 const struct pkt_desc *desc = descs + i; in process_it_ctx_payloads()
/Linux-v5.4/drivers/media/pci/pt3/
Dpt3_dma.c140 adap->desc_buf[i].descs, adap->desc_buf[i].b_addr); in pt3_free_dmabuf()
179 adap->desc_buf[i].descs = p; in pt3_alloc_dmabuf()
183 d = &adap->desc_buf[i - 1].descs[DESCS_IN_PAGE - 1]; in pt3_alloc_dmabuf()
189 d = &adap->desc_buf[i].descs[j]; in pt3_alloc_dmabuf()
/Linux-v5.4/include/linux/gpio/
Dconsumer.h85 void gpiod_put_array(struct gpio_descs *descs);
108 void devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs);
252 static inline void gpiod_put_array(struct gpio_descs *descs) in gpiod_put_array() argument
257 WARN_ON(descs); in gpiod_put_array()
314 struct gpio_descs *descs) in devm_gpiod_put_array() argument
319 WARN_ON(descs); in devm_gpiod_put_array()
/Linux-v5.4/sound/firewire/digi00x/
Damdtp-dot.c345 const struct pkt_desc *descs, in process_ir_ctx_payloads() argument
353 const struct pkt_desc *desc = descs + i; in process_ir_ctx_payloads()
369 const struct pkt_desc *descs, in process_it_ctx_payloads() argument
377 const struct pkt_desc *desc = descs + i; in process_it_ctx_payloads()

12345