Home
last modified time | relevance | path

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

/Linux-v5.4/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
/Linux-v5.4/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
/Linux-v5.4/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.c2114 u32 amt; in nv10GetConfig() local
2127 pci_read_config_dword(dev, 0x7C, &amt); in nv10GetConfig()
2129 chip->RamAmountKBytes = (((amt >> 6) & 31) + 1) * 1024; in nv10GetConfig()
2132 pci_read_config_dword(dev, 0x84, &amt); in nv10GetConfig()
2134 chip->RamAmountKBytes = (((amt >> 4) & 127) + 1) * 1024; in nv10GetConfig()
/Linux-v5.4/net/sctp/
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-v5.4/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()
/Linux-v5.4/samples/mei/
D.gitignore1 mei-amt-version
DMakefile5 PROGS := mei-amt-version
/Linux-v5.4/tools/testing/selftests/kvm/lib/
Dkvm_util.c508 size_t amt; in kvm_memcmp_hva_gva() local
514 for (uintptr_t offset = 0; offset < len; offset += amt) { in kvm_memcmp_hva_gva()
527 amt = len - offset; in kvm_memcmp_hva_gva()
528 if ((ptr1 >> vm->page_shift) != ((ptr1 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
529 amt = vm->page_size - (ptr1 % vm->page_size); in kvm_memcmp_hva_gva()
530 if ((ptr2 >> vm->page_shift) != ((ptr2 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
531 amt = vm->page_size - (ptr2 % vm->page_size); in kvm_memcmp_hva_gva()
533 assert((ptr1 >> vm->page_shift) == ((ptr1 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
534 assert((ptr2 >> vm->page_shift) == ((ptr2 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
541 int ret = memcmp((void *)ptr1, (void *)ptr2, amt); in kvm_memcmp_hva_gva()
/Linux-v5.4/fs/gfs2/
Daops.c558 unsigned amt; in gfs2_internal_read() local
563 amt = size - copied; in gfs2_internal_read()
565 amt = PAGE_SIZE - offset; in gfs2_internal_read()
570 memcpy(buf + copied, p + offset, amt); in gfs2_internal_read()
573 copied += amt; in gfs2_internal_read()
Drgrp.c1404 u64 amt; in gfs2_fitrim() local
1450 &amt); in gfs2_fitrim()
1455 trimmed += amt; in gfs2_fitrim()
/Linux-v5.4/include/net/
Dsock.h1273 sk_memory_allocated_add(struct sock *sk, int amt) in sk_memory_allocated_add() argument
1275 return atomic_long_add_return(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()
1279 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub() argument
1281 atomic_long_sub(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()
1376 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1402 static inline int sk_mem_pages(int amt) in sk_mem_pages() argument
1404 return (amt + SK_MEM_QUANTUM - 1) >> SK_MEM_QUANTUM_SHIFT; in sk_mem_pages()
2175 int amt = 0; in sock_wspace() local
2178 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2179 if (amt < 0) in sock_wspace()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/net/ipv4/
Dudp.c1366 int amt; in udp_rmem_release() local
1387 amt = (sk->sk_forward_alloc - partial) & ~(SK_MEM_QUANTUM - 1); in udp_rmem_release()
1388 sk->sk_forward_alloc -= amt; in udp_rmem_release()
1390 if (amt) in udp_rmem_release()
1391 __sk_mem_reduce_allocated(sk, amt >> SK_MEM_QUANTUM_SHIFT); in udp_rmem_release()
1449 int rmem, delta, amt, err = -ENOMEM; in __udp_enqueue_schedule_skb() local
1483 amt = sk_mem_pages(size); in __udp_enqueue_schedule_skb()
1484 delta = amt << SK_MEM_QUANTUM_SHIFT; in __udp_enqueue_schedule_skb()
1485 if (!__sk_mem_raise_allocated(sk, delta, amt, SK_MEM_RECV)) { in __udp_enqueue_schedule_skb()
Dtcp_output.c3106 int amt; in sk_forced_mem_schedule() local
3110 amt = sk_mem_pages(size); in sk_forced_mem_schedule()
3111 sk->sk_forward_alloc += amt * SK_MEM_QUANTUM; in sk_forced_mem_schedule()
3112 sk_memory_allocated_add(sk, amt); in sk_forced_mem_schedule()
3115 mem_cgroup_charge_skmem(sk->sk_memcg, amt); in sk_forced_mem_schedule()
/Linux-v5.4/net/core/
Dsock.c2497 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind) in __sk_mem_raise_allocated() argument
2500 long allocated = sk_memory_allocated_add(sk, amt); in __sk_mem_raise_allocated()
2504 !(charged = mem_cgroup_charge_skmem(sk->sk_memcg, amt))) in __sk_mem_raise_allocated()
2565 sk_memory_allocated_sub(sk, amt); in __sk_mem_raise_allocated()
2568 mem_cgroup_uncharge_skmem(sk->sk_memcg, amt); in __sk_mem_raise_allocated()
2586 int ret, amt = sk_mem_pages(size); in __sk_mem_schedule() local
2588 sk->sk_forward_alloc += amt << SK_MEM_QUANTUM_SHIFT; in __sk_mem_schedule()
2589 ret = __sk_mem_raise_allocated(sk, size, amt, kind); in __sk_mem_schedule()
2591 sk->sk_forward_alloc -= amt << SK_MEM_QUANTUM_SHIFT; in __sk_mem_schedule()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dinit.c1844 unsigned amt; in hfi1_create_rcvhdrq() local
1850 amt = rcvhdrq_size(rcd); in hfi1_create_rcvhdrq()
1856 rcd->rcvhdrq = dma_alloc_coherent(&dd->pcidev->dev, amt, in hfi1_create_rcvhdrq()
1863 amt, rcd->ctxt); in hfi1_create_rcvhdrq()
1908 dma_free_coherent(&dd->pcidev->dev, amt, rcd->rcvhdrq, in hfi1_create_rcvhdrq()
/Linux-v5.4/Documentation/devicetree/bindings/scsi/
Dhisilicon-sas.txt54 - hip06-sas-v2-quirk-amt : when set, indicates that the v2 controller has the
/Linux-v5.4/arch/arm64/boot/dts/hisilicon/
Dhip06.dtsi649 hip06-sas-v2-quirk-amt;
Dhip07.dtsi1622 hip06-sas-v2-quirk-amt;
/Linux-v5.4/drivers/tty/
Dn_tty.c1934 int amt = poll && !TIME_CHAR(tty) && MIN_CHAR(tty) ? MIN_CHAR(tty) : 1; in input_available_p() local
1939 return ldata->commit_head - ldata->read_tail >= amt; in input_available_p()
/Linux-v5.4/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
Dfplsp.S9264 cmpi.w %d0,&-0x3fff # is the shft amt really low?
9299 addi.w &0x3fff,%d0 # turn src amt into exp value
10960 sub.w &32, %d1 # adjust shft amt by 32