Home
last modified time | relevance | path

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

/linux/drivers/gpio/
H A Dgpio-sa1100.c117 static void sa1100_update_edge_regs(struct sa1100_gpio_chip *sgc) in sa1100_update_edge_regs() argument
119 void *base = sgc->membase; in sa1100_update_edge_regs()
122 grer = sgc->irqrising & sgc->irqmask; in sa1100_update_edge_regs()
123 gfer = sgc->irqfalling & sgc->irqmask; in sa1100_update_edge_regs()
131 struct sa1100_gpio_chip *sgc = irq_data_get_irq_chip_data(d); in sa1100_gpio_type() local
135 if ((sgc->irqrising | sgc->irqfalling) & mask) in sa1100_gpio_type()
141 sgc->irqrising |= mask; in sa1100_gpio_type()
143 sgc->irqrising &= ~mask; in sa1100_gpio_type()
145 sgc->irqfalling |= mask; in sa1100_gpio_type()
147 sgc->irqfalling &= ~mask; in sa1100_gpio_type()
[all …]
/linux/drivers/scsi/esas2r/
H A 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 …]
H A 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 …]
H A Desas2r_ioctl.c92 static u32 get_physaddr_fm_api(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fm_api() argument
94 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api()
95 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api()
101 static u32 get_physaddr_fm_api_header(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fm_api_header() argument
103 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api_header()
104 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api_header()
191 static u32 get_physaddr_buffered_ioctl(struct esas2r_sg_context *sgc, in get_physaddr_buffered_ioctl() argument
194 int offset = (u8 *)sgc->cur_offset - esas2r_buffered_ioctl; in get_physaddr_buffered_ioctl()
211 struct esas2r_sg_context sgc; in handle_buffered_ioctl() local
265 sgc.cur_offset = esas2r_buffered_ioctl + bi->offset; in handle_buffered_ioctl()
[all …]
H A Desas2r_main.c761 static u32 get_physaddr_from_sgc(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_from_sgc() argument
765 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
771 if (sgc->sgel_count < sgc->num_sgel) { in get_physaddr_from_sgc()
773 if (sgc->exp_offset > (u8 *)0) { in get_physaddr_from_sgc()
775 sgc->cur_sgel = sg_next(sgc->cur_sgel); in get_physaddr_from_sgc()
776 ++(sgc->sgel_count); in get_physaddr_from_sgc()
780 len = sg_dma_len(sgc->cur_sgel); in get_physaddr_from_sgc()
781 (*addr) = sg_dma_address(sgc->cur_sgel); in get_physaddr_from_sgc()
784 sgc->exp_offset += len; in get_physaddr_from_sgc()
789 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
[all …]
H A 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/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.c30 ddp->sgc = 0; in ixgbe_fcoe_clear_ddp()
111 dma_unmap_sg(&adapter->pdev->dev, ddp->sgl, ddp->sgc, in ixgbe_fcoe_ddp_put()
134 struct scatterlist *sgl, unsigned int sgc, in ixgbe_fcoe_ddp_setup() argument
171 xid, ddp->sgl, ddp->sgc); in ixgbe_fcoe_ddp_setup()
189 dmacount = dma_map_sg(&adapter->pdev->dev, sgl, sgc, DMA_FROM_DEVICE); in ixgbe_fcoe_ddp_setup()
203 ddp->sgc = sgc; in ixgbe_fcoe_ddp_setup()
324 dma_unmap_sg(&adapter->pdev->dev, sgl, sgc, DMA_FROM_DEVICE); in ixgbe_fcoe_ddp_setup()
345 struct scatterlist *sgl, unsigned int sgc) in ixgbe_fcoe_ddp_get() argument
347 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in ixgbe_fcoe_ddp_get()
366 struct scatterlist *sgl, unsigned int sgc) in ixgbe_fcoe_ddp_target() argument
[all …]
H A Dixgbe_fcoe.h38 unsigned int sgc; member
H A Dixgbe.h1031 struct scatterlist *sgl, unsigned int sgc);
1033 struct scatterlist *sgl, unsigned int sgc);
/linux/net/8021q/
H A Dvlan_dev.c403 struct scatterlist *sgl, unsigned int sgc) in vlan_dev_fcoe_ddp_setup()
410 rc = ops->ndo_fcoe_ddp_setup(real_dev, xid, sgl, sgc); in vlan_dev_fcoe_ddp_done()
450 struct scatterlist *sgl, unsigned int sgc) in vlan_dev_fcoe_ddp_target()
457 rc = ops->ndo_fcoe_ddp_target(real_dev, xid, sgl, sgc); in vlan_dev_fcoe_get_wwn()
394 vlan_dev_fcoe_ddp_setup(struct net_device * dev,u16 xid,struct scatterlist * sgl,unsigned int sgc) vlan_dev_fcoe_ddp_setup() argument
441 vlan_dev_fcoe_ddp_target(struct net_device * dev,u16 xid,struct scatterlist * sgl,unsigned int sgc) vlan_dev_fcoe_ddp_target() argument
/linux/kernel/sched/
H A Dfair.c11352 sdg->sgc->capacity = capacity; in update_idle_cpu_scan()
11353 sdg->sgc->min_capacity = capacity; in update_idle_cpu_scan()
11354 sdg->sgc->max_capacity = capacity; in update_idle_cpu_scan()
11366 sdg->sgc->next_update = jiffies + interval;
11398 struct sched_group_capacity *sgc = group->sgc; in update_sd_lb_stats()
11400 capacity += sgc->capacity; in update_sd_lb_stats()
11401 min_capacity = min(sgc->min_capacity, min_capacity); in update_sd_lb_stats()
11402 max_capacity = max(sgc->max_capacity, max_capacity); in update_sd_lb_stats()
11407 sdg->sgc in update_sd_lb_stats()
10403 struct sched_group_capacity *sgc = group->sgc; update_group_capacity() local
[all...]
H A Dsched.h2235 struct sched_group_capacity *sgc;
2259 return to_cpumask(sg->sgc->cpumask);
2209 struct sched_group_capacity *sgc; global() member
/linux/drivers/android/
H A Dbinder.c2437 * This is used for the sg copy list (sgc) which is created and consumed
2471 struct binder_sg_copy *sgc, *tmpsgc; in binder_do_deferred_txn_copies() local
2477 list_for_each_entry_safe(sgc, tmpsgc, sgc_head, node) { in binder_do_deferred_txn_copies()
2480 while (bytes_copied < sgc->length) { in binder_do_deferred_txn_copies()
2482 size_t bytes_left = sgc->length - bytes_copied; in binder_do_deferred_txn_copies()
2483 size_t offset = sgc->offset + bytes_copied; in binder_do_deferred_txn_copies()
2494 sgc->sender_uaddr + bytes_copied, in binder_do_deferred_txn_copies()
2524 list_del(&sgc->node); in binder_do_deferred_txn_copies()
2525 kfree(sgc); in binder_do_deferred_txn_copies()
2548 struct binder_sg_copy *sgc, *tmpsg in binder_cleanup_deferred_txn_lists() local
[all...]
/linux/drivers/scsi/fcoe/
H A Dfcoe.c1060 * @sgc: The number of sg items
1065 struct scatterlist *sgl, unsigned int sgc) in fcoe_ddp_setup()
1072 sgc); in fcoe_ddp_setup()
1082 * @sgc: The number of sg items
1087 struct scatterlist *sgl, unsigned int sgc) in fcoe_ddp_target()
1093 sgl, sgc); in fcoe_ddp_target()
1062 fcoe_ddp_setup(struct fc_lport * lport,u16 xid,struct scatterlist * sgl,unsigned int sgc) fcoe_ddp_setup() argument
1084 fcoe_ddp_target(struct fc_lport * lport,u16 xid,struct scatterlist * sgl,unsigned int sgc) fcoe_ddp_target() argument
/linux/include/linux/
H A Dnetdevice.h1248 * struct scatterlist *sgl, unsigned int sgc);
1260 * struct scatterlist *sgl, unsigned int sgc);
1553 unsigned int sgc);
1559 unsigned int sgc);