Home
last modified time | relevance | path

Searched refs:sgc (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/drivers/gpio/
Dgpio-sa1100.c110 static void sa1100_update_edge_regs(struct sa1100_gpio_chip *sgc) in sa1100_update_edge_regs() argument
112 void *base = sgc->membase; in sa1100_update_edge_regs()
115 grer = sgc->irqrising & sgc->irqmask; in sa1100_update_edge_regs()
116 gfer = sgc->irqfalling & sgc->irqmask; in sa1100_update_edge_regs()
124 struct sa1100_gpio_chip *sgc = irq_data_get_irq_chip_data(d); in sa1100_gpio_type() local
128 if ((sgc->irqrising | sgc->irqfalling) & mask) in sa1100_gpio_type()
134 sgc->irqrising |= mask; in sa1100_gpio_type()
136 sgc->irqrising &= ~mask; in sa1100_gpio_type()
138 sgc->irqfalling |= mask; in sa1100_gpio_type()
140 sgc->irqfalling &= ~mask; in sa1100_gpio_type()
[all …]
/Linux-v5.4/drivers/scsi/esas2r/
Desas2r_io.c188 struct esas2r_sg_context *sgc) in esas2r_build_sg_list_sge() argument
190 struct esas2r_request *rq = sgc->first_req; in esas2r_build_sg_list_sge()
193 while (sgc->length) { in esas2r_build_sg_list_sge()
198 len = (*sgc->get_phys_addr)(sgc, &addr); in esas2r_build_sg_list_sge()
204 if (unlikely(len > sgc->length)) in esas2r_build_sg_list_sge()
205 len = sgc->length; in esas2r_build_sg_list_sge()
222 if (unlikely(sgc->sge.a64.curr > sgc->sge.a64.limit)) { in esas2r_build_sg_list_sge()
237 sgelen = (u8)((u8 *)sgc->sge.a64.curr in esas2r_build_sg_list_sge()
238 - (u8 *)sgc->sge.a64.last); in esas2r_build_sg_list_sge()
244 memcpy(sgl->virt_addr, sgc->sge.a64.last, sgelen); in esas2r_build_sg_list_sge()
[all …]
Desas2r_flash.c144 if (fc->sgc.cur_offset == NULL) in esas2r_fmapi_callback()
181 struct esas2r_sg_context *sgc = &fc->sgc; in build_flash_msg() local
186 if (sgc->cur_offset) in build_flash_msg()
187 cksum = esas2r_calc_byte_xor_cksum(sgc->cur_offset, in build_flash_msg()
188 sgc->length, in build_flash_msg()
199 sgc->length); in build_flash_msg()
208 fc->curr_len = fc->sgc.length; in build_flash_msg()
210 if (sgc->cur_offset) { in build_flash_msg()
212 esas2r_sgc_init(sgc, a, rq, &rq->vrq->flash.data.sge[0]); in build_flash_msg()
214 if (!esas2r_build_sg_list(a, rq, sgc)) { in build_flash_msg()
[all …]
Desas2r_ioctl.c90 static u32 get_physaddr_fm_api(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fm_api() argument
92 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api()
93 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api()
99 static u32 get_physaddr_fm_api_header(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fm_api_header() argument
101 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api_header()
102 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api_header()
189 static u32 get_physaddr_buffered_ioctl(struct esas2r_sg_context *sgc, in get_physaddr_buffered_ioctl() argument
192 int offset = (u8 *)sgc->cur_offset - esas2r_buffered_ioctl; in get_physaddr_buffered_ioctl()
209 struct esas2r_sg_context sgc; in handle_buffered_ioctl() local
263 sgc.cur_offset = esas2r_buffered_ioctl + bi->offset; in handle_buffered_ioctl()
[all …]
Desas2r_main.c753 static u32 get_physaddr_from_sgc(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_from_sgc() argument
757 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
763 if (sgc->sgel_count < sgc->num_sgel) { in get_physaddr_from_sgc()
765 if (sgc->exp_offset > (u8 *)0) { in get_physaddr_from_sgc()
767 sgc->cur_sgel = sg_next(sgc->cur_sgel); in get_physaddr_from_sgc()
768 ++(sgc->sgel_count); in get_physaddr_from_sgc()
772 len = sg_dma_len(sgc->cur_sgel); in get_physaddr_from_sgc()
773 (*addr) = sg_dma_address(sgc->cur_sgel); in get_physaddr_from_sgc()
776 sgc->exp_offset += len; in get_physaddr_from_sgc()
781 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
[all …]
Desas2r_vda.c68 struct esas2r_sg_context *sgc) in esas2r_process_vda_ioctl() argument
135 u8 *cmdcurr_offset = sgc->cur_offset in esas2r_process_vda_ioctl()
162 cmdcurr_offset = sgc->cur_offset; in esas2r_process_vda_ioctl()
175 esas2r_sgc_init(sgc, a, rq, in esas2r_process_vda_ioctl()
177 sgc->length = payldlen; in esas2r_process_vda_ioctl()
179 if (!esas2r_build_sg_list(a, rq, sgc)) { in esas2r_process_vda_ioctl()
195 sgc->cur_offset = cmdcurr_offset; in esas2r_process_vda_ioctl()
255 esas2r_sgc_init(sgc, a, rq, firstsg); in esas2r_process_vda_ioctl()
256 sgc->length = datalen; in esas2r_process_vda_ioctl()
258 if (!esas2r_build_sg_list(a, rq, sgc)) { in esas2r_process_vda_ioctl()
Desas2r.h408 struct esas2r_sg_context *sgc);
598 typedef u32 (*PGETPHYSADDR) (struct esas2r_sg_context *sgc, u64 *addr);
712 struct esas2r_sg_context sgc; member
1068 struct esas2r_sg_context *sgc);
1074 struct esas2r_request *rq, struct esas2r_sg_context *sgc);
1105 struct esas2r_sg_context *sgc);
1107 struct esas2r_sg_context *sgc);
1139 struct esas2r_sg_context *sgc);
1166 static inline void esas2r_sgc_init(struct esas2r_sg_context *sgc, in esas2r_sgc_init() argument
1171 sgc->adapter = a; in esas2r_sgc_init()
[all …]
Desas2r_disc.c53 static u32 esas2r_disc_get_phys_addr(struct esas2r_sg_context *sgc, u64 *addr);
888 struct esas2r_sg_context sgc; in esas2r_disc_passthru_dev_addr() local
896 sgc.cur_offset = NULL; in esas2r_disc_passthru_dev_addr()
897 sgc.get_phys_addr = (PGETPHYSADDR)esas2r_disc_get_phys_addr; in esas2r_disc_passthru_dev_addr()
898 sgc.length = offsetof(struct atto_ioctl, data) in esas2r_disc_passthru_dev_addr()
901 esas2r_sgc_init(&sgc, a, rq, rq->vrq->ioctl.sge); in esas2r_disc_passthru_dev_addr()
903 esas2r_build_ioctl_req(a, rq, sgc.length, VDA_IOCTL_HBA); in esas2r_disc_passthru_dev_addr()
905 if (!esas2r_build_sg_list(a, rq, &sgc)) { in esas2r_disc_passthru_dev_addr()
1030 static u32 esas2r_disc_get_phys_addr(struct esas2r_sg_context *sgc, u64 *addr) in esas2r_disc_get_phys_addr() argument
1032 struct esas2r_adapter *a = sgc->adapter; in esas2r_disc_get_phys_addr()
[all …]
/Linux-v5.4/kernel/sched/
Dtopology.c78 group->sgc->id, in sched_domain_debug_one()
87 if (group->sgc->capacity != SCHED_CAPACITY_SCALE) in sched_domain_debug_one()
88 printk(KERN_CONT " cap=%lu", group->sgc->capacity); in sched_domain_debug_one()
569 if (free_sgc && atomic_dec_and_test(&sg->sgc->ref)) in free_sched_groups()
570 kfree(sg->sgc); in free_sched_groups()
909 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
910 if (atomic_inc_return(&sg->sgc->ref) == 1) in init_overlap_sched_group()
921 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sg_span); in init_overlap_sched_group()
922 sg->sgc->min_capacity = SCHED_CAPACITY_SCALE; in init_overlap_sched_group()
923 sg->sgc->max_capacity = SCHED_CAPACITY_SCALE; in init_overlap_sched_group()
[all …]
Dfair.c5604 group->sgc->capacity; in find_idlest_group()
5606 group->sgc->capacity; in find_idlest_group()
7767 sdg->sgc->capacity = capacity; in update_cpu_capacity()
7768 sdg->sgc->min_capacity = capacity; in update_cpu_capacity()
7769 sdg->sgc->max_capacity = capacity; in update_cpu_capacity()
7781 sdg->sgc->next_update = jiffies + interval; in update_group_capacity()
7799 struct sched_group_capacity *sgc; in update_group_capacity() local
7816 sgc = rq->sd->groups->sgc; in update_group_capacity()
7817 capacity += sgc->capacity; in update_group_capacity()
7831 struct sched_group_capacity *sgc = group->sgc; in update_group_capacity() local
[all …]
Dsched.h1409 struct sched_group_capacity *sgc; member
1432 return to_cpumask(sg->sgc->cpumask); in group_balance_mask()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c29 ddp->sgc = 0; in ixgbe_fcoe_clear_ddp()
110 dma_unmap_sg(&adapter->pdev->dev, ddp->sgl, ddp->sgc, in ixgbe_fcoe_ddp_put()
133 struct scatterlist *sgl, unsigned int sgc, in ixgbe_fcoe_ddp_setup() argument
170 xid, ddp->sgl, ddp->sgc); in ixgbe_fcoe_ddp_setup()
188 dmacount = dma_map_sg(&adapter->pdev->dev, sgl, sgc, DMA_FROM_DEVICE); in ixgbe_fcoe_ddp_setup()
202 ddp->sgc = sgc; in ixgbe_fcoe_ddp_setup()
323 dma_unmap_sg(&adapter->pdev->dev, sgl, sgc, DMA_FROM_DEVICE); in ixgbe_fcoe_ddp_setup()
344 struct scatterlist *sgl, unsigned int sgc) in ixgbe_fcoe_ddp_get() argument
346 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in ixgbe_fcoe_ddp_get()
365 struct scatterlist *sgl, unsigned int sgc) in ixgbe_fcoe_ddp_target() argument
[all …]
Dixgbe_fcoe.h38 unsigned int sgc; member
Dixgbe.h929 struct scatterlist *sgl, unsigned int sgc);
931 struct scatterlist *sgl, unsigned int sgc);
/Linux-v5.4/net/8021q/
Dvlan_dev.c401 struct scatterlist *sgl, unsigned int sgc) in vlan_dev_fcoe_ddp_setup() argument
408 rc = ops->ndo_fcoe_ddp_setup(real_dev, xid, sgl, sgc); in vlan_dev_fcoe_ddp_setup()
448 struct scatterlist *sgl, unsigned int sgc) in vlan_dev_fcoe_ddp_target() argument
455 rc = ops->ndo_fcoe_ddp_target(real_dev, xid, sgl, sgc); in vlan_dev_fcoe_ddp_target()
/Linux-v5.4/include/linux/sched/
Dtopology.h175 struct sched_group_capacity *__percpu *sgc; member
/Linux-v5.4/drivers/crypto/caam/
Dcaampkc.c255 int sgc; in rsa_edesc_alloc() local
306 sgc = dma_map_sg(dev, req_ctx->fixup_src, src_nents, DMA_TO_DEVICE); in rsa_edesc_alloc()
307 if (unlikely(!sgc)) { in rsa_edesc_alloc()
312 sgc = dma_map_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc()
313 if (unlikely(!sgc)) { in rsa_edesc_alloc()
/Linux-v5.4/drivers/scsi/fcoe/
Dfcoe.c1063 struct scatterlist *sgl, unsigned int sgc) in fcoe_ddp_setup() argument
1070 sgc); in fcoe_ddp_setup()
1085 struct scatterlist *sgl, unsigned int sgc) in fcoe_ddp_target() argument
1091 sgl, sgc); in fcoe_ddp_target()
/Linux-v5.4/include/linux/
Dnetdevice.h1335 unsigned int sgc);
1341 unsigned int sgc);