Home
last modified time | relevance | path

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

1234

/Linux-v4.19/drivers/gpio/
Ddevres.c42 struct gpio_descs **descs = res; in devm_gpiod_release_array() local
44 gpiod_put_array(*descs); in devm_gpiod_release_array()
270 struct gpio_descs *descs; in devm_gpiod_get_array() local
277 descs = gpiod_get_array(dev, con_id, flags); in devm_gpiod_get_array()
278 if (IS_ERR(descs)) { in devm_gpiod_get_array()
280 return descs; in devm_gpiod_get_array()
283 *dr = descs; in devm_gpiod_get_array()
286 return descs; in devm_gpiod_get_array()
305 struct gpio_descs *descs; in devm_gpiod_get_array_optional() local
307 descs = devm_gpiod_get_array(dev, con_id, flags); in devm_gpiod_get_array_optional()
[all …]
Dgpiolib.c116 return &gdev->descs[gpio - gdev->base]; in gpio_to_desc()
147 return &gdev->descs[hwnum]; in gpiochip_get_desc()
162 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio()
299 struct gpio_desc *desc = &gdev->descs[i]; in gpio_name_to_desc()
343 gdev->descs[i].name = gc->names[i]; in gpiochip_set_desc_names()
413 struct gpio_desc *descs[GPIOHANDLES_MAX]; member
438 lh->descs, in linehandle_ioctl()
456 if (!test_bit(FLAG_IS_OUT, &lh->descs[0]->flags)) in linehandle_ioctl()
470 lh->descs, in linehandle_ioctl()
491 gpiod_free(lh->descs[i]); in linehandle_release()
[all …]
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-v4.19/drivers/dma/ioat/
Dprep.c43 static void xor_set_src(struct ioat_raw_descriptor *descs[2], in xor_set_src()
46 struct ioat_raw_descriptor *raw = descs[xor_idx_to_desc >> idx & 1]; in xor_set_src()
51 static dma_addr_t pq_get_src(struct ioat_raw_descriptor *descs[2], int idx) in pq_get_src()
53 struct ioat_raw_descriptor *raw = descs[pq_idx_to_desc >> idx & 1]; in pq_get_src()
65 static void pq_set_src(struct ioat_raw_descriptor *descs[2], in pq_set_src()
68 struct ioat_pq_descriptor *pq = (struct ioat_pq_descriptor *) descs[0]; in pq_set_src()
69 struct ioat_raw_descriptor *raw = descs[pq_idx_to_desc >> idx & 1]; in pq_set_src()
204 struct ioat_raw_descriptor *descs[2]; in __ioat_prep_xor_lock() local
219 descs[0] = (struct ioat_raw_descriptor *) xor; in __ioat_prep_xor_lock()
220 descs[1] = (struct ioat_raw_descriptor *) xor_ex; in __ioat_prep_xor_lock()
[all …]
Ddma.c350 pos = (u8 *)ioat_chan->descs[chunk].virt + offs; in ioat_alloc_ring_ent()
351 phys = ioat_chan->descs[chunk].hw + offs; in ioat_alloc_ring_ent()
387 struct ioat_descs *descs = &ioat_chan->descs[i]; in ioat_alloc_ring() local
389 descs->virt = dma_alloc_coherent(to_dev(ioat_chan), in ioat_alloc_ring()
390 SZ_2M, &descs->hw, flags); in ioat_alloc_ring()
391 if (!descs->virt && (i > 0)) { in ioat_alloc_ring()
396 descs->virt, descs->hw); in ioat_alloc_ring()
397 descs->virt = NULL; in ioat_alloc_ring()
398 descs->hw = 0; in ioat_alloc_ring()
418 ioat_chan->descs[idx].virt, in ioat_alloc_ring()
[all …]
Dinit.c627 int descs; in ioat_free_chan_resources() local
641 descs = ioat_ring_space(ioat_chan); in ioat_free_chan_resources()
642 dev_dbg(to_dev(ioat_chan), "freeing %d idle descriptors\n", descs); in ioat_free_chan_resources()
643 for (i = 0; i < descs; i++) { in ioat_free_chan_resources()
648 if (descs < total_descs) in ioat_free_chan_resources()
650 total_descs - descs); in ioat_free_chan_resources()
652 for (i = 0; i < total_descs - descs; i++) { in ioat_free_chan_resources()
660 ioat_chan->descs[i].virt, in ioat_free_chan_resources()
661 ioat_chan->descs[i].hw); in ioat_free_chan_resources()
662 ioat_chan->descs[i].virt = NULL; in ioat_free_chan_resources()
[all …]
/Linux-v4.19/samples/bpf/
Dxdpsock_user.c283 const struct xdp_desc *descs, in xq_enq() argument
295 r[idx].addr = descs[i].addr; in xq_enq()
296 r[idx].len = descs[i].len; in xq_enq()
328 struct xdp_desc *descs, in xq_deq() argument
341 descs[i] = r[idx]; in xq_deq()
744 u64 descs[BATCH_SIZE]; in complete_tx_l2fwd() local
756 rcvd = umem_complete_from_kernel(&xsk->umem->cq, descs, ndescs); in complete_tx_l2fwd()
758 umem_fill_to_kernel(&xsk->umem->fq, descs, rcvd); in complete_tx_l2fwd()
766 u64 descs[BATCH_SIZE]; in complete_tx_only() local
774 rcvd = umem_complete_from_kernel(&xsk->umem->cq, descs, BATCH_SIZE); in complete_tx_only()
[all …]
/Linux-v4.19/drivers/rpmsg/
Dqcom_glink_smem.c197 __le32 *descs; in qcom_glink_smem_register() local
237 descs = qcom_smem_get(remote_pid, in qcom_glink_smem_register()
239 if (IS_ERR(descs)) { in qcom_glink_smem_register()
241 ret = PTR_ERR(descs); in qcom_glink_smem_register()
251 tx_pipe->tail = &descs[0]; in qcom_glink_smem_register()
252 tx_pipe->head = &descs[1]; in qcom_glink_smem_register()
253 rx_pipe->tail = &descs[2]; in qcom_glink_smem_register()
254 rx_pipe->head = &descs[3]; in qcom_glink_smem_register()
/Linux-v4.19/drivers/staging/comedi/drivers/
Dmite.c681 desc = &ring->descs[i]; in mite_init_ring_descriptors()
690 desc = &ring->descs[i]; in mite_init_ring_descriptors()
710 struct mite_dma_desc *descs = ring->descs; in mite_free_dma_descs() local
712 if (descs) { in mite_free_dma_descs()
714 ring->n_links * sizeof(*descs), in mite_free_dma_descs()
715 descs, ring->dma_addr); in mite_free_dma_descs()
716 ring->descs = NULL; in mite_free_dma_descs()
730 struct mite_dma_desc *descs; in mite_buf_change() local
740 descs = dma_alloc_coherent(ring->hw_dev, in mite_buf_change()
741 n_links * sizeof(*descs), in mite_buf_change()
[all …]
/Linux-v4.19/drivers/net/ethernet/cirrus/
Dep93xx_eth.c162 struct ep93xx_descs *descs; member
245 rstat = ep->descs->rstat + entry; in ep93xx_rx()
287 struct ep93xx_rdesc *rxd = &ep->descs->rdesc[entry]; in ep93xx_rx()
350 txd = &ep->descs->tdesc[entry]; in ep93xx_xmit()
385 tstat = ep->descs->tstat + entry; in ep93xx_tx_complete()
399 int length = ep->descs->tdesc[entry].tdesc1 & 0xfff; in ep93xx_tx_complete()
454 if (!ep->descs) in ep93xx_free_buffers()
460 d = ep->descs->rdesc[i].buf_addr; in ep93xx_free_buffers()
470 d = ep->descs->tdesc[i].buf_addr; in ep93xx_free_buffers()
477 dma_free_coherent(dev, sizeof(struct ep93xx_descs), ep->descs, in ep93xx_free_buffers()
[all …]
/Linux-v4.19/drivers/clk/mvebu/
Dclk-corediv.c42 const struct clk_corediv_desc *descs; member
196 .descs = mvebu_corediv_desc,
212 .descs = mvebu_corediv_desc,
228 .descs = mvebu_corediv_desc,
240 .descs = mv98dx3236_corediv_desc,
294 corediv[i].desc = soc_desc->descs + i; in mvebu_corediv_clk_init()
/Linux-v4.19/drivers/net/ethernet/ibm/
Dibmveth.c997 union ibmveth_buf_desc *descs, unsigned long mss) in ibmveth_send() argument
1011 descs[0].desc, descs[1].desc, in ibmveth_send()
1012 descs[2].desc, descs[3].desc, in ibmveth_send()
1013 descs[4].desc, descs[5].desc, in ibmveth_send()
1032 union ibmveth_buf_desc descs[6]; in ibmveth_start_xmit() local
1086 memset(descs, 0, sizeof(descs)); in ibmveth_start_xmit()
1098 descs[0].fields.flags_len = desc_flags | skb->len; in ibmveth_start_xmit()
1099 descs[0].fields.address = adapter->bounce_buffer_dma; in ibmveth_start_xmit()
1101 if (ibmveth_send(adapter, descs, 0)) { in ibmveth_start_xmit()
1118 descs[0].fields.flags_len = desc_flags | skb_headlen(skb); in ibmveth_start_xmit()
[all …]
/Linux-v4.19/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()
Dvnic_cq.h81 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
98 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
/Linux-v4.19/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()
Dvnic_dev.c220 memset(ring->descs, 0, ring->size); in svnic_dev_clear_desc_ring()
241 ring->descs = (u8 *)ring->descs_unaligned + in svnic_dev_alloc_desc_ring()
253 if (ring->descs) { in svnic_dev_free_desc_ring()
258 ring->descs = NULL; in svnic_dev_free_desc_ring()
406 dc2c->result = (struct devcmd2_result *) dc2c->results_ring.descs; in svnic_dev_init_devcmd2()
407 dc2c->cmd_ring = (struct vnic_devcmd2 *) dc2c->wq.ring.descs; in svnic_dev_init_devcmd2()
/Linux-v4.19/drivers/regulator/
Dltc3589.c465 struct ltc3589_regulator *descs; in ltc3589_probe() local
481 descs = ltc3589->regulator_descs; in ltc3589_probe()
482 memcpy(descs, ltc3589_regulators, sizeof(ltc3589_regulators)); in ltc3589_probe()
484 descs[LTC3589_LDO3].desc.fixed_uV = 1800000; in ltc3589_probe()
485 descs[LTC3589_LDO4].desc.volt_table = ltc3589_ldo4; in ltc3589_probe()
487 descs[LTC3589_LDO3].desc.fixed_uV = 2800000; in ltc3589_probe()
488 descs[LTC3589_LDO4].desc.volt_table = ltc3589_12_ldo4; in ltc3589_probe()
Dltc3676.c364 struct regulator_desc *descs; in ltc3676_regulator_probe() local
375 descs = ltc3676->regulator_descs; in ltc3676_regulator_probe()
376 memcpy(descs, ltc3676_regulators, sizeof(ltc3676_regulators)); in ltc3676_regulator_probe()
377 descs[LTC3676_LDO3].fixed_uV = 1800000; /* LDO3 is fixed 1.8V */ in ltc3676_regulator_probe()
/Linux-v4.19/drivers/vhost/
Dvringh.c153 struct vring_desc **descs, int *desc_max) in move_to_indirect() argument
174 *descs = addr; in move_to_indirect()
209 struct vring_desc **descs, int *desc_max) in return_from_indirect() argument
214 *descs = vrh->vring.desc; in return_from_indirect()
267 struct vring_desc desc, *descs; in __vringh_iov() local
272 descs = vrh->vring.desc; in __vringh_iov()
290 err = slow_copy(vrh, &desc, &descs[i], rcheck, getrange, in __vringh_iov()
293 err = copy(&desc, &descs[i], sizeof(desc)); in __vringh_iov()
316 &descs, &desc_max); in __vringh_iov()
323 vringh_bad("Descriptor loop in %p", descs); in __vringh_iov()
[all …]
/Linux-v4.19/drivers/net/ethernet/faraday/
Dftmac100.c68 struct ftmac100_descs *descs; member
312 return &priv->descs->rxdes[priv->rx_pointer]; in ftmac100_current_rxdes()
578 return &priv->descs->txdes[priv->tx_pointer]; in ftmac100_current_txdes()
583 return &priv->descs->txdes[priv->tx_clean_pointer]; in ftmac100_current_clean_txdes()
706 struct ftmac100_rxdes *rxdes = &priv->descs->rxdes[i]; in ftmac100_free_buffers()
718 struct ftmac100_txdes *txdes = &priv->descs->txdes[i]; in ftmac100_free_buffers()
730 priv->descs, priv->descs_dma_addr); in ftmac100_free_buffers()
737 priv->descs = dma_zalloc_coherent(priv->dev, in ftmac100_alloc_buffers()
741 if (!priv->descs) in ftmac100_alloc_buffers()
745 ftmac100_rxdes_set_end_of_ring(&priv->descs->rxdes[RX_QUEUE_ENTRIES - 1]); in ftmac100_alloc_buffers()
[all …]
/Linux-v4.19/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-v4.19/drivers/net/ethernet/cisco/enic/
Dvnic_cq.h83 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
100 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
/Linux-v4.19/include/linux/gpio/
Dconsumer.h75 void gpiod_put_array(struct gpio_descs *descs);
97 void devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs);
228 static inline void gpiod_put_array(struct gpio_descs *descs) in gpiod_put_array() argument
290 struct gpio_descs *descs) in devm_gpiod_put_array() argument

1234