Home
last modified time | relevance | path

Searched refs:amt (Results 1 – 25 of 34) sorted by relevance

12

/linux/drivers/net/
A Damt.c291 struct amt_dev *amt = gnode->amt; in amt_source_work() local
316 struct amt_dev *amt = tunnel->amt; in amt_act_src() local
412 struct amt_dev *amt = gnode->amt; in amt_group_work() local
480 gnode->amt = amt; in amt_add_group()
640 amt->gw_port, amt->relay_port, in amt_send_discovery()
730 amt->remote_ip, amt->local_ip, in amt_send_request()
731 amt->gw_port, amt->relay_port, in amt_send_request()
1290 struct amt_dev *amt = tunnel->amt; in amt_clear_groups() local
1309 struct amt_dev *amt = tunnel->amt; in amt_tunnel_expire() local
1445 struct amt_dev *amt = tunnel->amt; in amt_lookup_act_srcs() local
[all …]
A DMakefile17 obj-$(CONFIG_AMT) += amt.o
/linux/include/linux/sched/
A Dxacct.h12 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar() argument
14 tsk->ioac.rchar += amt; in add_rchar()
17 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar() argument
19 tsk->ioac.wchar += amt; in add_wchar()
32 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar() argument
36 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar() argument
/linux/drivers/crypto/
A Domap-crypto.c161 int amt; in omap_crypto_copy_data() local
178 amt = min(src->length - srco, dst->length - dsto); in omap_crypto_copy_data()
179 amt = min(len, amt); in omap_crypto_copy_data()
184 memcpy(dstb, srcb, amt); in omap_crypto_copy_data()
191 srco += amt; in omap_crypto_copy_data()
192 dsto += amt; in omap_crypto_copy_data()
193 len -= amt; in omap_crypto_copy_data()
/linux/kernel/sched/
A Dstats.h38 #define __schedstat_add(var, amt) do { var += (amt); } while (0) argument
39 #define schedstat_add(var, amt) do { if (schedstat_enabled()) { var += (amt); } } while (0) argument
76 # define __schedstat_add(var, amt) do { } while (0) argument
77 # define schedstat_add(var, amt) do { } while (0) argument
/linux/include/net/
A Damt.h230 struct amt_dev *amt; member
282 struct amt_dev *amt; member
380 static inline u64 amt_gmi(const struct amt_dev *amt) in amt_gmi() argument
382 return ((amt->qrv * amt->qi) + amt->qri) * 1000; in amt_gmi()
A Dsock.h1369 sk_memory_allocated_add(struct sock *sk, int amt) in sk_memory_allocated_add() argument
1371 return atomic_long_add_return(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()
1375 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub() argument
1377 atomic_long_sub(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()
1500 static inline int sk_mem_pages(int amt) in sk_mem_pages() argument
1502 return (amt + SK_MEM_QUANTUM - 1) >> SK_MEM_QUANTUM_SHIFT; in sk_mem_pages()
2377 int amt = 0; in sock_wspace() local
2380 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2381 if (amt < 0) in sock_wspace()
2382 amt = 0; in sock_wspace()
[all …]
/linux/drivers/video/fbdev/riva/
A Dnv_driver.c161 u32 amt; in riva_get_memlen() local
231 pci_read_config_dword(dev, 0x7C, &amt); in riva_get_memlen()
233 memlen = (((amt >> 6) & 31) + 1) * 1024; in riva_get_memlen()
236 pci_read_config_dword(dev, 0x84, &amt); in riva_get_memlen()
238 memlen = (((amt >> 4) & 127) + 1) * 1024; in riva_get_memlen()
A Driva_hw.c2075 u32 amt; in nv10GetConfig() local
2088 pci_read_config_dword(dev, 0x7C, &amt); in nv10GetConfig()
2090 chip->RamAmountKBytes = (((amt >> 6) & 31) + 1) * 1024; in nv10GetConfig()
2093 pci_read_config_dword(dev, 0x84, &amt); in nv10GetConfig()
2095 chip->RamAmountKBytes = (((amt >> 4) & 127) + 1) * 1024; in nv10GetConfig()
/linux/net/sctp/
A Ddiag.c161 int amt; in inet_sctp_diag_fill() local
164 amt = asoc->sndbuf_used; in inet_sctp_diag_fill()
166 amt = sk_wmem_alloc_get(sk); in inet_sctp_diag_fill()
167 mem[SK_MEMINFO_WMEM_ALLOC] = amt; in inet_sctp_diag_fill()
169 amt = atomic_read(&asoc->rmem_alloc); in inet_sctp_diag_fill()
171 amt = sk_rmem_alloc_get(sk); in inet_sctp_diag_fill()
172 mem[SK_MEMINFO_RMEM_ALLOC] = amt; in inet_sctp_diag_fill()
/linux/drivers/video/fbdev/nvidia/
A Dnv_setup.c243 u32 amt; in nv10GetConfig() local
245 pci_read_config_dword(dev, 0x7c, &amt); in nv10GetConfig()
246 par->RamAmountKBytes = (((amt >> 6) & 31) + 1) * 1024; in nv10GetConfig()
248 u32 amt; in nv10GetConfig() local
250 pci_read_config_dword(dev, 0x84, &amt); in nv10GetConfig()
251 par->RamAmountKBytes = (((amt >> 4) & 127) + 1) * 1024; in nv10GetConfig()
/linux/tools/testing/selftests/net/
A Damt.sh139 ip netns exec "${GATEWAY}" ip link add amtg master br0 type amt \
143 ip netns exec "${RELAY}" ip link add amtr type amt mode relay \
204 ip link help 2>&1 | grep -q amt
A DMakefile25 TEST_PROGS += amt.sh
/linux/fs/gfs2/
A Daops.c518 unsigned amt; in gfs2_internal_read() local
523 amt = size - copied; in gfs2_internal_read()
525 amt = PAGE_SIZE - offset; in gfs2_internal_read()
530 memcpy(buf + copied, p + offset, amt); in gfs2_internal_read()
533 copied += amt; in gfs2_internal_read()
/linux/samples/mei/
A D.gitignore2 /mei-amt-version
A DMakefile3 userprogs-always-y += mei-amt-version
/linux/tools/testing/selftests/kvm/lib/
A Dkvm_util.c686 size_t amt; in kvm_memcmp_hva_gva() local
692 for (uintptr_t offset = 0; offset < len; offset += amt) { in kvm_memcmp_hva_gva()
705 amt = len - offset; in kvm_memcmp_hva_gva()
706 if ((ptr1 >> vm->page_shift) != ((ptr1 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
707 amt = vm->page_size - (ptr1 % vm->page_size); in kvm_memcmp_hva_gva()
708 if ((ptr2 >> vm->page_shift) != ((ptr2 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
709 amt = vm->page_size - (ptr2 % vm->page_size); in kvm_memcmp_hva_gva()
711 assert((ptr1 >> vm->page_shift) == ((ptr1 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
712 assert((ptr2 >> vm->page_shift) == ((ptr2 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
719 int ret = memcmp((void *)ptr1, (void *)ptr2, amt); in kvm_memcmp_hva_gva()
/linux/drivers/infiniband/hw/qib/
A Dqib_init.c1545 unsigned amt; in qib_create_rcvhdrq() local
1552 amt = ALIGN(dd->rcvhdrcnt * dd->rcvhdrentsize * in qib_create_rcvhdrq()
1560 &dd->pcidev->dev, amt, &rcd->rcvhdrq_phys, in qib_create_rcvhdrq()
1567 amt, rcd->ctxt); in qib_create_rcvhdrq()
1588 rcd->rcvhdrq_size = amt; in qib_create_rcvhdrq()
1604 dma_free_coherent(&dd->pcidev->dev, amt, rcd->rcvhdrq, in qib_create_rcvhdrq()
/linux/net/ipv4/
A Dinet_connection_sock.c523 int amt; in inet_csk_accept() local
533 amt = sk_mem_pages(newsk->sk_forward_alloc + in inet_csk_accept()
536 if (newsk->sk_memcg && amt) in inet_csk_accept()
537 mem_cgroup_charge_skmem(newsk->sk_memcg, amt, in inet_csk_accept()
A Dudp.c1441 int amt; in udp_rmem_release() local
1463 amt = (sk->sk_forward_alloc - partial) & ~(SK_MEM_QUANTUM - 1); in udp_rmem_release()
1464 sk->sk_forward_alloc -= amt; in udp_rmem_release()
1466 if (amt) in udp_rmem_release()
1467 __sk_mem_reduce_allocated(sk, amt >> SK_MEM_QUANTUM_SHIFT); in udp_rmem_release()
1525 int rmem, delta, amt, err = -ENOMEM; in __udp_enqueue_schedule_skb() local
1559 amt = sk_mem_pages(size); in __udp_enqueue_schedule_skb()
1560 delta = amt << SK_MEM_QUANTUM_SHIFT; in __udp_enqueue_schedule_skb()
1561 if (!__sk_mem_raise_allocated(sk, delta, amt, SK_MEM_RECV)) { in __udp_enqueue_schedule_skb()
A Dtcp_output.c3352 int amt; in sk_forced_mem_schedule() local
3356 amt = sk_mem_pages(size); in sk_forced_mem_schedule()
3357 sk->sk_forward_alloc += amt * SK_MEM_QUANTUM; in sk_forced_mem_schedule()
3358 sk_memory_allocated_add(sk, amt); in sk_forced_mem_schedule()
3361 mem_cgroup_charge_skmem(sk->sk_memcg, amt, in sk_forced_mem_schedule()
/linux/net/core/
A Dsock.c2826 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind) in __sk_mem_raise_allocated() argument
2829 long allocated = sk_memory_allocated_add(sk, amt); in __sk_mem_raise_allocated()
2834 !(charged = mem_cgroup_charge_skmem(sk->sk_memcg, amt, in __sk_mem_raise_allocated()
2892 mem_cgroup_charge_skmem(sk->sk_memcg, amt, in __sk_mem_raise_allocated()
2902 sk_memory_allocated_sub(sk, amt); in __sk_mem_raise_allocated()
2905 mem_cgroup_uncharge_skmem(sk->sk_memcg, amt); in __sk_mem_raise_allocated()
2923 int ret, amt = sk_mem_pages(size); in __sk_mem_schedule() local
2925 sk->sk_forward_alloc += amt << SK_MEM_QUANTUM_SHIFT; in __sk_mem_schedule()
2926 ret = __sk_mem_raise_allocated(sk, size, amt, kind); in __sk_mem_schedule()
2928 sk->sk_forward_alloc -= amt << SK_MEM_QUANTUM_SHIFT; in __sk_mem_schedule()
/linux/drivers/infiniband/hw/hfi1/
A Dinit.c1761 unsigned amt; in hfi1_create_rcvhdrq() local
1766 amt = rcvhdrq_size(rcd); in hfi1_create_rcvhdrq()
1772 rcd->rcvhdrq = dma_alloc_coherent(&dd->pcidev->dev, amt, in hfi1_create_rcvhdrq()
1779 amt, rcd->ctxt); in hfi1_create_rcvhdrq()
1803 dma_free_coherent(&dd->pcidev->dev, amt, rcd->rcvhdrq, in hfi1_create_rcvhdrq()
/linux/Documentation/devicetree/bindings/scsi/
A Dhisilicon-sas.txt54 - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the
/linux/arch/arm64/boot/dts/hisilicon/
A Dhip06.dtsi648 hip06-sas-v2-quirk-amt;

Completed in 69 milliseconds

12