Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/include/linux/sched/
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
/kernel/linux/linux-5.10/drivers/crypto/
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()
192 srco += amt; in omap_crypto_copy_data()
193 dsto += amt; in omap_crypto_copy_data()
194 len -= amt; in omap_crypto_copy_data()
/kernel/linux/linux-5.10/kernel/sched/
Dstats.h36 #define __schedstat_add(var, amt) do { var += (amt); } while (0) argument
37 #define schedstat_add(var, amt) do { if (schedstat_enabled()) { var += (amt); } } while (0) argument
50 # define __schedstat_add(var, amt) do { } while (0) argument
51 # define schedstat_add(var, amt) do { } while (0) argument
/kernel/linux/linux-5.10/drivers/video/fbdev/riva/
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()
Driva_hw.c2095 u32 amt; in nv10GetConfig() local
2108 pci_read_config_dword(dev, 0x7C, &amt); in nv10GetConfig()
2110 chip->RamAmountKBytes = (((amt >> 6) & 31) + 1) * 1024; in nv10GetConfig()
2113 pci_read_config_dword(dev, 0x84, &amt); in nv10GetConfig()
2115 chip->RamAmountKBytes = (((amt >> 4) & 127) + 1) * 1024; in nv10GetConfig()
/kernel/linux/linux-5.10/net/sctp/
Ddiag.c158 int amt; in inet_sctp_diag_fill() local
161 amt = asoc->sndbuf_used; in inet_sctp_diag_fill()
163 amt = sk_wmem_alloc_get(sk); in inet_sctp_diag_fill()
164 mem[SK_MEMINFO_WMEM_ALLOC] = amt; in inet_sctp_diag_fill()
166 amt = atomic_read(&asoc->rmem_alloc); in inet_sctp_diag_fill()
168 amt = sk_rmem_alloc_get(sk); in inet_sctp_diag_fill()
169 mem[SK_MEMINFO_RMEM_ALLOC] = amt; in inet_sctp_diag_fill()
/kernel/linux/linux-5.10/drivers/video/fbdev/nvidia/
Dnv_setup.c246 u32 amt; in nv10GetConfig() local
248 pci_read_config_dword(dev, 0x7c, &amt); in nv10GetConfig()
249 par->RamAmountKBytes = (((amt >> 6) & 31) + 1) * 1024; in nv10GetConfig()
251 u32 amt; in nv10GetConfig() local
253 pci_read_config_dword(dev, 0x84, &amt); in nv10GetConfig()
254 par->RamAmountKBytes = (((amt >> 4) & 127) + 1) * 1024; in nv10GetConfig()
/kernel/linux/linux-5.10/samples/mei/
DMakefile3 userprogs-always-y += mei-amt-version
D.gitignore2 mei-amt-version
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
Dkvm_util.c535 size_t amt; in kvm_memcmp_hva_gva() local
541 for (uintptr_t offset = 0; offset < len; offset += amt) { in kvm_memcmp_hva_gva()
554 amt = len - offset; in kvm_memcmp_hva_gva()
555 if ((ptr1 >> vm->page_shift) != ((ptr1 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
556 amt = vm->page_size - (ptr1 % vm->page_size); in kvm_memcmp_hva_gva()
557 if ((ptr2 >> vm->page_shift) != ((ptr2 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
558 amt = vm->page_size - (ptr2 % vm->page_size); in kvm_memcmp_hva_gva()
560 assert((ptr1 >> vm->page_shift) == ((ptr1 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
561 assert((ptr2 >> vm->page_shift) == ((ptr2 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
568 int ret = memcmp((void *)ptr1, (void *)ptr2, amt); in kvm_memcmp_hva_gva()
/kernel/linux/linux-5.10/fs/gfs2/
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()
Drgrp.c1370 u64 amt; in gfs2_fitrim() local
1420 &amt); in gfs2_fitrim()
1425 trimmed += amt; in gfs2_fitrim()
/kernel/linux/linux-5.10/include/net/
Dsock.h1362 sk_memory_allocated_add(struct sock *sk, int amt) in sk_memory_allocated_add() argument
1364 return atomic_long_add_return(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()
1368 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub() argument
1370 atomic_long_sub(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()
1465 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1491 static inline int sk_mem_pages(int amt) in sk_mem_pages() argument
1493 return (amt + SK_MEM_QUANTUM - 1) >> SK_MEM_QUANTUM_SHIFT; in sk_mem_pages()
2296 int amt = 0; in sock_wspace() local
2299 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2300 if (amt < 0) in sock_wspace()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
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()
/kernel/linux/linux-5.10/net/ipv4/
Dinet_connection_sock.c520 int amt; in inet_csk_accept() local
530 amt = sk_mem_pages(newsk->sk_forward_alloc + in inet_csk_accept()
533 if (newsk->sk_memcg && amt) in inet_csk_accept()
534 mem_cgroup_charge_skmem(newsk->sk_memcg, amt); in inet_csk_accept()
Dudp.c1430 int amt; in udp_rmem_release() local
1452 amt = (sk->sk_forward_alloc - partial) & ~(SK_MEM_QUANTUM - 1); in udp_rmem_release()
1453 sk->sk_forward_alloc -= amt; in udp_rmem_release()
1455 if (amt) in udp_rmem_release()
1456 __sk_mem_reduce_allocated(sk, amt >> SK_MEM_QUANTUM_SHIFT); in udp_rmem_release()
1514 int rmem, delta, amt, err = -ENOMEM; in __udp_enqueue_schedule_skb() local
1548 amt = sk_mem_pages(size); in __udp_enqueue_schedule_skb()
1549 delta = amt << SK_MEM_QUANTUM_SHIFT; in __udp_enqueue_schedule_skb()
1550 if (!__sk_mem_raise_allocated(sk, delta, amt, SK_MEM_RECV)) { in __udp_enqueue_schedule_skb()
Dtcp_output.c3380 int delta, amt; in sk_forced_mem_schedule() local
3385 amt = sk_mem_pages(delta); in sk_forced_mem_schedule()
3386 sk->sk_forward_alloc += amt * SK_MEM_QUANTUM; in sk_forced_mem_schedule()
3387 sk_memory_allocated_add(sk, amt); in sk_forced_mem_schedule()
3390 mem_cgroup_charge_skmem(sk->sk_memcg, amt); in sk_forced_mem_schedule()
/kernel/linux/linux-5.10/net/core/
Dsock.c2599 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind) in __sk_mem_raise_allocated() argument
2602 long allocated = sk_memory_allocated_add(sk, amt); in __sk_mem_raise_allocated()
2606 !(charged = mem_cgroup_charge_skmem(sk->sk_memcg, amt))) in __sk_mem_raise_allocated()
2667 sk_memory_allocated_sub(sk, amt); in __sk_mem_raise_allocated()
2670 mem_cgroup_uncharge_skmem(sk->sk_memcg, amt); in __sk_mem_raise_allocated()
2688 int ret, amt = sk_mem_pages(size); in __sk_mem_schedule() local
2690 sk->sk_forward_alloc += amt << SK_MEM_QUANTUM_SHIFT; in __sk_mem_schedule()
2691 ret = __sk_mem_raise_allocated(sk, size, amt, kind); in __sk_mem_schedule()
2693 sk->sk_forward_alloc -= amt << SK_MEM_QUANTUM_SHIFT; in __sk_mem_schedule()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dinit.c1802 unsigned amt; in hfi1_create_rcvhdrq() local
1807 amt = rcvhdrq_size(rcd); in hfi1_create_rcvhdrq()
1813 rcd->rcvhdrq = dma_alloc_coherent(&dd->pcidev->dev, amt, in hfi1_create_rcvhdrq()
1820 amt, rcd->ctxt); in hfi1_create_rcvhdrq()
1844 dma_free_coherent(&dd->pcidev->dev, amt, rcd->rcvhdrq, in hfi1_create_rcvhdrq()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/scsi/
Dhisilicon-sas.txt54 - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the
/kernel/linux/linux-5.10/arch/arm64/boot/dts/hisilicon/
Dhip06.dtsi649 hip06-sas-v2-quirk-amt;
Dhip07.dtsi1622 hip06-sas-v2-quirk-amt;
/kernel/linux/linux-5.10/drivers/tty/
Dn_tty.c1929 int amt = poll && !TIME_CHAR(tty) && MIN_CHAR(tty) ? MIN_CHAR(tty) : 1; in input_available_p() local
1934 return ldata->commit_head - ldata->read_tail >= amt; in input_available_p()
/kernel/linux/linux-5.10/arch/m68k/ifpsp060/src/
Dpfpsp.S1485 neg.w %d0 # -shft amt
2316 addi.w &0x3f81,%d0 # find amt to shift
3920 mov.l %a0,%d0 # pass amt to dec by
Dfpsp.S1486 neg.w %d0 # -shft amt
2317 addi.w &0x3f81,%d0 # find amt to shift
7637 neg.w %d0 # new exp = -(shft amt)
18111 movq.l &0x1,%d0 # pass amt to inc by

12